recipe-lock schema (v1.0)
The ctxbrew.recipe.lock file is validated by the normative JSON Schema published at its canonical URL:
- $id: https://contextbrew.dev/schemas/recipe-lock/v1.0/schema.json
- Format version:
1.0.0 - Schema dialect: draft-07
- Validate with:
ctx schema recipe-lockor any JSON Schema validator (ajv, VS Code, …)
Root object: RecipeLock
Section titled “Root object: RecipeLock”The session lock — the context contract.
| Property | Type | Required | Description |
|---|---|---|---|
kind | "ctxbrew.recipe.lock" | yes | |
schemaVersion | "1.0.0" | yes | |
sessionId | string | yes | The session this lock governs (caller-supplied; stable per start). |
startedAt | string | yes | ISO timestamp — the ONLY clock input (caller-provided). |
recipes | RecipeLockEntry[] | yes | The pinned recipes, sorted by id for byte-stability. |
lockHash | string | yes | sha256:<hex> over the canonical lock payload (recipes + startedAt). |
Definitions
Section titled “Definitions”RecipeLockEntry
Section titled “RecipeLockEntry”One pinned recipe: resolved version + content hash.
| Property | Type | Required | Description |
|---|---|---|---|
id | string | yes | Recipe id (the manifest's id). |
path | string | yes | Project-relative manifest path. |
formatVersion | string | yes | The manifest's declared formatVersion. |
contentHash | string | yes | sha256:<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.
