recipe-manifest schema (v0.6)
The .contextbrew/recipes/<id>.json file is validated by the normative JSON Schema published at its canonical URL:
- $id: https://contextbrew.dev/schemas/recipe-manifest/v0.6/schema.json
- Format version:
0.6.0 - Schema dialect: draft-07
- Validate with:
ctx schema recipe-manifestor any JSON Schema validator (ajv, VS Code, …)
Root object: RecipeManifest
Section titled “Root object: RecipeManifest”| Property | Type | Required | Description |
|---|---|---|---|
formatVersion | "0.6.0" | "0.5.0" | "0.4.0" | "0.3.0" | "0.2.0" | "0.1.0" | yes | 0.6.0 — registry semantics (ai-registry alignment, 2026-11-05): the optional owner, status and digest fields give a manifest the identity triple the ai-registry spec adds above open formats — who owns it, whether it is current, and a verifiable content address. Optional and additive: manifests without them are unchanged (the same contract as every other optional manifest field below). The borrow ledger and watch criteria live in docs/research/2026-11-05-ai-registry-spec-tracking.md; the digest rule lives in recipes/digest.ts. 0.4.0 — ACM completion gate (2026-10-23): the optional accessScope block records the stable SCM screen ids this recipe's scope selects, so the access-coverage gate can evaluate a target revision instead of every project screen. It is **source metadata**, never a caller-supplied coverage result. 0.3.0 and older manifests without the block are read unchanged and fall back to a labelled project-scope resolution. 0.3.0 — epistemic constraints (HR-C, 2026-10-18): the optional epistemicConstraints block declares the recipe's epistemic contract (max narrative-pressure index, minimum evidence class, forbidden markers), enforced by the slopscan gate at pour time. 0.2.0 — evaluation suites (T1335, 2026-09-30): the optional evals list names models/evals.json suite ids the recipe's generation run gates on. 0.1.0 manifests (no evals) read unchanged — readers that don't know the field ignore it, the same additive contract as every other optional manifest field. |
id | string | yes | |
title | string | yes | |
aggregate | string | yes | |
requirements | array | yes | 0.5.0 (ADR-039 R3): object-form entries carry the requirement's description so the served context grounds (string ids render with no text in the PromptAssembler — the grounding eval fails them). Old string-form manifests remain readable; new writes emit objects. |
created | string | yes | |
owner | string | no | 0.6.0 — owner subject (ai-registry "who owns it"). Plain string aligned with recipe_server Owners.owner_subject (the CODEOWNERS-analog review gate). Optional and additive; populated by ctxbrew recipe create from the git identity (absent config → absent owner, warned), carried across re-brews. |
status | RecipeLifecycleStatus | no | 0.6.0 — publication lifecycle status. Optional and additive: absent reads as the pre-0.6.0 untracked state. Vocabulary: draft, pending_review, active, blocked, deprecated, archived (recipes/lifecycle.ts owns the serving gate and the deliberate layer separation). Excluded from digest (see that field) so a status transition does not invalidate the content address. |
digest | string | no | 0.6.0 — content digest, sha256:<hex> over the canonical manifest EXCLUDING digest and status (ai-registry's content-vs-catalog split: content identity survives a status transition; mirrors and copies are untrusted — the digest is the truth). Computed by bundleRecipe through computeManifestDigest (recipes/digest.ts) on the brew ledger's contentHash address space — the same address space as pours, the recipe lock and evidence bundles. verifyManifestDigest re-derives it. |
accessScope | RecipeAccessScope | no | 0.4.0 — the SCM screen ids this recipe is scoped to, selected by the existing aggregate/requirement traceability resolution at bundle time (resolvedAggregate.screens). Counts, route names and titles are NOT identifiers and are never substituted here. |
evals | | no | Evaluation-suite ids (from models/evals.json, T1335) this recipe's generation run must satisfy before its output is trusted. Optional and additive: manifests without it gate on nothing (the pre-0.2.0 behavior). See parser/evals/ for the suite format. |
inputs | | no | SPEC-SKILL-MD-EMITTERS R5 — the explicit skill contract: what the recipe TAKES as input and what it PRODUCES as output. Optional and additive (every other export format ignores these fields); the skill-md export REQUIRES them and fails loudly (an actionable error naming R5, never a silent default) when a recipe lacks them. |
outputs | | no | |
maturity | MaturityLevel | no | |
files | object | yes | |
metrics | object | yes | |
context | object | no | H06 (F-4) — local-first / CRDT provenance for the implementation agent. Optional and additive: manifests without it render the _unknown_ fallback line in the markdown; readers that don't know the block ignore it. |
contextFiles | ContextFileInclude[] | no | 2026-09-25 context-files spec R2 — AGENTS.md-class files this recipe resolves context from (reference = live + drift-tracked, snapshot = frozen into the Vintage at seal time). Optional and additive: manifests without it are unchanged. See context/context-files.ts for the trust model (provenance or refusal; MUST is human-pinned; external origins are SHOULD-capped). |
epistemicConstraints | EpistemicConstraintProfile | no | HR-C (2026-10-18) — Epistemic Constraint Profile: the recipe's declared epistemic contract over its brewed output. Optional and additive (the same contract as evals/context/contextFiles): manifests without it pour under the slopscan gate's warn-only posture. Checked fail-fast by checkCompliance (context/slopscan/ecp.ts) at pour time; lexicon and schema live with the slopscan module, versioned slopscan.rules.v1. |
Definitions
Section titled “Definitions”AcmRecipeFiles
Section titled “AcmRecipeFiles”| Property | Type | Required | Description |
|---|---|---|---|
matrixMarkdown | string | yes | Path of the access-matrix rendering (markdown/SVG text fallback). |
gapReport | string | yes | Path of acm-gap-report-<projectId>.md. |
complianceDoc | string | yes | Path of acm-compliance-<projectId>.md. |
routeGuards | | yes | Generated per-screen guards: .contextbrew/generated/guards/*. |
accessTests | | yes | Generated access tests: .contextbrew/generated/tests/access/*. |
rbacExport | string | yes | Path of rbac-export-<projectId>.json. |
ContextFileInclude
Section titled “ContextFileInclude”One context-file include on a RecipeManifest (spec R2). Additive and optional — manifests without it are unchanged and fully valid.
| Property | Type | Required | Description |
|---|---|---|---|
ref | string | yes | Project-relative file path, or a bazaar skill ref @org/skill@<tag> (snapshot mode). A #<section-key> fragment may narrow resolution to one section. |
mode | "reference" | "snapshot" | yes | reference = live file (drift-tracked); snapshot = frozen at seal. |
priority | ContextRefPriority | no | Explicit priority pin. Absent → per-section defaults from the file-type descriptor. "must" is a human act (recorded by ctxbrew file pin); non-local origins are SHOULD-capped regardless of this value. |
sections | | no | Resolve only these section keys; omit = all sections (budget-clamped). |
origin | ContextFileOrigin | yes | Trust tier — drives the MUST ceiling and the provenance header. |
ContextFileOrigin
Section titled “ContextFileOrigin”Where an ingested file comes from — the trust tier. local files may be human-pinned to MUST; vendored and bazaar content is SHOULD-capped (trust rule 3).
Type: "local" | "vendored" | "bazaar"
ContextRefPriority
Section titled “ContextRefPriority”Per-ref priority, assigned by the source at search time or defaulted by the caller. Mirrors PromptAssembler’s MUST/SHOULD/NICE allocation so the budget behavior is consistent with the existing brew path.
Type: "must" | "should" | "nice"
EpistemicConstraintProfile
Section titled “EpistemicConstraintProfile”The epistemic contract a recipe declares over its brewed output. All fields optional; snake_case keys are the manifest/schema surface (schemas/recipe-manifest/v0.3) — generated, never hand-edited.
| Property | Type | Required | Description |
|---|---|---|---|
max_npi | number | no | Ceiling on the Narrative Pressure Index (per-section AND bundle). |
min_evidence_class | "verbatim" | "derived" | "inferred" | no | Minimum HR-A evidence class every section must carry ("verbatim" | "derived" | "inferred"). Fail-closed: sections with no class (or an unknown one) count as inferred. |
forbidden_markers | | no | Markers (case-insensitive substrings) that must not appear at all. |
LocalFirstContext
Section titled “LocalFirstContext”LocalFirstContext — the CRDT/local-first provenance block carried in a recipe manifest (H06 — audit F-4).
| Property | Type | Required | Description |
|---|---|---|---|
canvasSyncState | "local-only" | "dirty" | "syncing" | "synced" | "conflict" | "unknown" | yes | |
crdtOrigin | object | null | yes | Yjs clientID + Lamport clock at the moment the recipe was bundled — gives the agent a hint about offline-edit depth. |
lastSyncedAt | string | yes | ISO timestamp of the last server-side sync, or null if never synced. |
migratedAt | string | yes | ISO timestamp of the IDB migration (server → IDB backfill), or null. |
storagePersistGranted | boolean | yes | Whether navigator.storage.persist() granted durable storage. |
awareness | object | null | yes | Other collaborators' awareness state at bundle time — anonymized to { count, names } (no cursors, no selection, no userIds). |
track | "A-canvas" | "B-text" | "unknown" | yes | Which CRDT track the spec came from — A (canvas) or B (text). |
MaturityLevel
Section titled “MaturityLevel”Type: 0 | 1 | 2 | 3 | 4 | 5
RecipeAccessScope
Section titled “RecipeAccessScope”0.4.0 — the SCM screen ids a recipe is scoped to, as selected by the existing aggregate/requirement traceability resolution at bundle time.
| Property | Type | Required | Description |
|---|---|---|---|
screenIds | | yes |
RecipeLifecycleStatus
Section titled “RecipeLifecycleStatus”0.6.0 — recipe publication lifecycle, borrowing ai-registry’s versions.json status vocabulary verbatim (draft, pending_review, active, blocked, deprecated, archived) so a later registry export maps 1:1 (see docs/research/2026-11-05-ai-registry-spec-tracking.md). yanked is deliberately NOT borrowed — a release/marketplace concept, already carried by ctxbazaar’s yanked_at/yank_reason. Distinct layers on purpose: FACET_STATUSES (facets/types.ts) is the facet lifecycle, RecipeStatus (recipes/execution.ts) is execution state, and review workflows (recipe_server Owners, rdos reviewer verdicts) may drive transitions in follow-ups — nothing enforces this field yet.
Type: "draft" | "pending_review" | "active" | "blocked" | "deprecated" | "archived"
RecipeRequirementRef
Section titled “RecipeRequirementRef”0.5.0 object-form requirement entry (ADR-039 R3).
| Property | Type | Required | Description |
|---|---|---|---|
id | string | yes | |
description | string | no |
See the schemas overview for the versioning policy and how these files are generated and kept in sync.
