Skip to content

Brew Maturity

Most teams do not adopt context engineering all at once — they climb. The Brew Maturity ladder names the four rungs we observe, so a team can locate itself honestly and know exactly what the next rung costs. It is a ladder about your project’s intent, not about your tooling budget: each rung is a property of what is true about your software, written down and enforced.

Locate your rung by the signals in the table below — ctxbrew doctor does not yet report a maturity row.

Level Name What is true Signal
L0 Prompted Intent lives in prose — READMEs, tickets, chat threads. Every agent interaction re-narrates the context from scratch. No .contextbrew/ directory in the repo
L1 Modeled Intent is typed and committed: DDD, USM, SCM, DSM, SIM models under .contextbrew/, each parse-valid against a normative schema. Models validate; nothing checks them against the code yet
L2 Gated The models are enforced: the drift gate (ctxbrew check --gate) runs in CI, cross-model consistency validation is on, decisions land in the ledger. A spec-code mismatch fails the build
L3 Served The models are load-bearing for agents: recipes compile context to Claude Code/Cursor/Codex via MCP or anchors, evidence packs and freshness scores answer “can I trust this?” on demand. Agents consume compiled context, not narrated prose

Teams climb in order, but the ladder reports the highest rung reached — a team can serve recipes before it wires the gate, and the gap shows: the missing “drift gate in CI” signal on an L3 project is the finding, not a contradiction.

L0 → L1: write the models you already have in your head. Start with one aggregate and one requirement — the Quick Start does exactly this in five minutes. Greenfield or brownfield (ctxbrew init --from-code .) both land you here.

L1 → L2: wire the gate before you need it. Add ctxbrew check --gate to CI and start logging decisions with ctxbrew log. The gate is advisory until it is in CI; it is protection the first time a refactor silently breaks an invariant.

L2 → L3: serve the context. ctxbrew mcp setup --agent <agent> wires your models into the coding agent you already use; recipes bundle spec + failing tests + work items; ctxbrew evidence produces the receipts your compliance review was going to ask for anyway.

L2 keeps humans honest: the build fails when intent and code diverge. L3 keeps agents honest: every context an AI coding agent consumes is compiled from the typed models, carries provenance, and is no fresher than the ledger says. The failure mode L3 removes is the quiet one — an agent working from a stale, narrated summary that nobody flagged.

The ContextBrew SDLC page also has an L0–L3 ladder. Different axis, same repo: those levels measure how this repository is engineered (isolation, hard gates, ratchets); these levels measure how much of your software’s intent is modeled, enforced, and served. A team can be SDLC-L3 and Brew-L1 — disciplined engineering around prose intent — and the gap between those two numbers is exactly the drift this ladder is about.