Skip to content

recipe-lock schema (v1.0)

The ctxbrew.recipe.lock file is validated by the normative JSON Schema published at its canonical URL:

The session lock — the context contract.

PropertyTypeRequiredDescription
kind"ctxbrew.recipe.lock"yes
schemaVersion"1.0.0"yes
sessionIdstringyesThe session this lock governs (caller-supplied; stable per start).
startedAtstringyesISO timestamp — the ONLY clock input (caller-provided).
recipesRecipeLockEntry[]yesThe pinned recipes, sorted by id for byte-stability.
lockHashstringyessha256:<hex> over the canonical lock payload (recipes + startedAt).

One pinned recipe: resolved version + content hash.

PropertyTypeRequiredDescription
idstringyesRecipe id (the manifest's id).
pathstringyesProject-relative manifest path.
formatVersionstringyesThe manifest's declared formatVersion.
contentHashstringyessha256:<hex> of the manifest bytes (content-addressed pin).

See the schemas overview for the versioning policy and how these files are generated and kept in sync.