Skip to content

recipe-manifest schema (v0.6)

The .contextbrew/recipes/<id>.json file is validated by the normative JSON Schema published at its canonical URL:

PropertyTypeRequiredDescription
formatVersion"0.6.0" | "0.5.0" | "0.4.0" | "0.3.0" | "0.2.0" | "0.1.0"yes0.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.
idstringyes
titlestringyes
aggregatestringyes
requirementsarrayyes0.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.
createdstringyes
ownerstringno0.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.
statusRecipeLifecycleStatusno0.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.
digeststringno0.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.
accessScopeRecipeAccessScopeno0.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.
evalsstring[]noEvaluation-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.
inputsstring[]noSPEC-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.
outputsstring[]no
maturityMaturityLevelno
filesobjectyes
metricsobjectyes
contextobjectnoH06 (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.
contextFilesContextFileInclude[]no2026-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).
epistemicConstraintsEpistemicConstraintProfilenoHR-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.
PropertyTypeRequiredDescription
matrixMarkdownstringyesPath of the access-matrix rendering (markdown/SVG text fallback).
gapReportstringyesPath of acm-gap-report-<projectId>.md.
complianceDocstringyesPath of acm-compliance-<projectId>.md.
routeGuardsobject[]yesGenerated per-screen guards: .contextbrew/generated/guards/*.
accessTestsobject[]yesGenerated access tests: .contextbrew/generated/tests/access/*.
rbacExportstringyesPath of rbac-export-<projectId>.json.

One context-file include on a RecipeManifest (spec R2). Additive and optional — manifests without it are unchanged and fully valid.

PropertyTypeRequiredDescription
refstringyesProject-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"yesreference = live file (drift-tracked); snapshot = frozen at seal.
priorityContextRefPrioritynoExplicit 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.
sectionsstring[]noResolve only these section keys; omit = all sections (budget-clamped).
originContextFileOriginyesTrust tier — drives the MUST ceiling and the provenance header.

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"

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"

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.

PropertyTypeRequiredDescription
max_npinumbernoCeiling on the Narrative Pressure Index (per-section AND bundle).
min_evidence_class"verbatim" | "derived" | "inferred"noMinimum 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_markersstring[]noMarkers (case-insensitive substrings) that must not appear at all.

LocalFirstContext — the CRDT/local-first provenance block carried in a recipe manifest (H06 — audit F-4).

PropertyTypeRequiredDescription
canvasSyncState"local-only" | "dirty" | "syncing" | "synced" | "conflict" | "unknown"yes
crdtOriginobject | nullyesYjs clientID + Lamport clock at the moment the recipe was bundled — gives the agent a hint about offline-edit depth.
lastSyncedAtstringyesISO timestamp of the last server-side sync, or null if never synced.
migratedAtstringyesISO timestamp of the IDB migration (server → IDB backfill), or null.
storagePersistGrantedbooleanyesWhether navigator.storage.persist() granted durable storage.
awarenessobject | nullyesOther collaborators' awareness state at bundle time — anonymized to { count, names } (no cursors, no selection, no userIds).
track"A-canvas" | "B-text" | "unknown"yesWhich CRDT track the spec came from — A (canvas) or B (text).

Type: 0 | 1 | 2 | 3 | 4 | 5

0.4.0 — the SCM screen ids a recipe is scoped to, as selected by the existing aggregate/requirement traceability resolution at bundle time.

PropertyTypeRequiredDescription
screenIdsstring[]yes

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"

0.5.0 object-form requirement entry (ADR-039 R3).

PropertyTypeRequiredDescription
idstringyes
descriptionstringno

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