Skip to content

ctxbrew-manifest schema (v1.3)

The ctxbrew-manifest file is validated by the normative JSON Schema published at its canonical URL:

.ctxbrew manifest.json schema v1

PropertyTypeRequiredDescription
version"1.3.0"yesFormat version (semver-like, major.minor.patch). 1.3.0 — evaluation suites (T1335, 2026-09-30): ModelIndex/CTXBREW_FILES/CtxbrewModels gained evals (models/evals.json). Older archives unpack unchanged: readers ignore unknown manifest fields and unlisted ZIP entries. 1.2.0 — authored documents (2026-09-26): the manifest gained an optional documents index and archives may carry documents/<slug>.mdx raw MDX entries (see CtxbrewDocument). 1.1.0 — additive widening (audit W6.3, 2026-09-19): ModelIndex/ CTXBREW_FILES/CtxbrewModels gained cbrl/c4/absl/context-map/esdm/ decision. 1.0.0 archives (five model kinds only) unpack unchanged.
createdAtstringyesISO 8601 timestamp when the file was created
projectIdstringyesUnique project identifier (UUID or slug)
projectNamestringyesHuman-readable project name
modelsModelIndexyesMap of model type to filename within models/
historystringnoOptional history snapshot log filename
documentsDocumentIndexEntry[]noAuthored project documents carried in this archive (1.2.0). Each entry corresponds to a raw documents/<slug>.mdx ZIP entry; the index holds the metadata + integrity digest while the MDX text stays verbatim (plain, git-diffable, no JSON wrapping).
encryptionEncryptionMetadatanoOptional encryption metadata (reserved for future use)

One review-comment thread attached to an anchored span in the MDX.

PropertyTypeRequiredDescription
authorstringyes
textstringyes
createdAtstringyesISO 8601 creation timestamp.
resolvedbooleannoResolved threads stay visible (greyed) until deleted.
PropertyTypeRequiredDescription
titlestringno
subtitlestringno
authorstringno
datestringno
logoUrlstringno
accentColorstringno
vocabVersionnumberno
commentThreadsRecord<string, CommentThreadPayload>noThreaded review comments (WS5): keyed by threadId; the MDX carries only <span data-thread-id="…"> anchors. Written through the server-side merge route (POST /api/documents/:id/comment-threads) — never via a wholesale frontmatter PUT, which would clobber sibling keys like frozenEmbeds.
contextbrewFirstUsefulExperienceRecord<string, unknown>noFirst Useful Experience first-task marker (apps/web lib/server/first-task-document.ts is the owner). Bounded ids/enums only; opaque to the document editor and carried verbatim on frontmatter round-trips. Grants no authority.

Metadata for one authored document in the manifest’s documents index. The MDX content itself lives in the ZIP entry documents/&lt;slug&gt;.mdx.

PropertyTypeRequiredDescription
slugstringyesURL-safe document slug (unique within the archive; no path separators).
titlestringyes
sectionDocumentSectionyes
contentVersionnumberyes
frontmatterDocumentFrontmatterno
sha256stringyesHex sha256 of the raw .mdx bytes — verified on unpack.

Document Facet — domain types for project documents.

Type: "input" | "work" | "archived"

Encryption metadata (reserved for v2+). In v1, files are stored as plaintext JSON+gzip.

PropertyTypeRequiredDescription
algorithmstringyesEncryption algorithm identifier (e.g., "aes-256-gcm")
kdfstringyesKey derivation function identifier (e.g., "argon2id")
saltstringyesSalt used for key derivation (base64url)
noncestringyesNonce/IV for the encryption (base64url)

Index of available models in the archive. Each value is the relative path to the model JSON within the ZIP.

PropertyTypeRequiredDescription
dddstringno
usmstringno
scmstringno
dsmstringno
simstringno
cbrlstringnoAudit W6.3: requirements/spec exports (previously silently dropped).
c4stringno
abslstringno
context-mapstringno
esdmstringno
decisionstringno
evalsstringnoT1335 (1.3.0): evaluation suites — the tiered verification artifact.

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