markspec/lock/v1.json

Schema for .markspec.lock, a machine-managed sidecar for frozen metadata.

Schema URL: https://driftsys.github.io/schemas/markspec/lock/v1.json

The lock file (.markspec.lock) is a machine-managed sidecar that stores frozen metadata for every entry and reference in the project. Each record is keyed by ULID and contains stamped identity, attributes, and provenance fields that survive across edits to the source markdown.

Quick guide

Properties

PathTypeRequiredDescription
entriesobjectyesEntry metadata indexed by ULID
entries.objectyesMetadata for a single entry
entries..displayIdstringyesCurrent display ID for the ULID
entries..createdAtstring (date-time)Creation timestamp
entries..createdBystringCreation author
entries..updatedAtstring (date-time)Latest update timestamp
entries..updatedBystringLatest update author
entries..externalobjectExternal tool sync metadata by tool key
entries..external..refstringyesExternal system identifier
entries..external..directionstringyesimport, export, or bidirectional
entries..external..syncedAtstring (date-time)Last sync timestamp
$schemastring (uri)Schema URI

Common pitfall

Do not assume all entries in markdown are already present in lock during partial workflows; validation should report drift explicitly.