The Three Levels of SDD
Written by ContextBrew · 2026-09-25 · the framework below is prior art we adopt with attribution, not vocabulary we coined; corrections welcome via the repository issue tracker.
“How long does the spec live?” turns out to be the sharpest single question you can ask of any spec-driven development practice. The best answer we know is the three-levels framework published by Simon Martinelli as part of his AI Unified Process methodology and his Apress book “Spec-Driven Development: From Specs to Code with AI Agents”. We adopt the framework here, cite it as prior art, and place ContextBrew on it precisely — including the level we deliberately do not claim.
The framework
Section titled “The framework”| Level | Name | Spec lifespan | Who sits here |
|---|---|---|---|
| L1 | Spec-first | One change request — the spec is dropped after the feature ships | The level most spec-driven tooling actually operates at, including tools we review on this site (Amazon Kiro, GitHub Spec Kit, OpenSpec) |
| L2 | Spec-anchored | The life of the system — the spec is updated with every change, and agents read it before touching code | AIUP sits here by methodology. ContextBrew sits here by machine (see below) |
| L3 | Spec-as-source | The spec is permanent; the code is disposable, regenerated on demand | Model-driven engineering — “the most experimental of the three” in the framework’s own words |
Why L2 is the right level
Section titled “Why L2 is the right level”The framework’s argument for L2 — which we endorse, because it matches our practice — is that the spec is a permanent artifact (requirements, use cases, domain and data models maintained for the life of the system, not written for a single prompt); code evolves and is reconciled in place rather than regenerated from zero; and teams keep reading, reviewing, and understanding their own system. Brownfield is the normal case: existing systems are reverse-engineered into specifications and improved from there, which is impossible when code must come out of a generator.
Why not L1: a spec that dies with the change request is a prompt with better manners. Nothing downstream can depend on it.
Why not L3: model-driven development has a twenty-year failure history — CASE tools, Executable UML, JetBrains MPS — and the framework’s own rejection of it is correct. Generating everything from a spec means the same spec produces a different implementation on every run, and the code stops being something a team can own. We explicitly do not claim L3. It is a trap, and refusing it is a feature.
Where ContextBrew sits: L2, with oracle-verification
Section titled “Where ContextBrew sits: L2, with oracle-verification”ContextBrew lives at L2 like AIUP does — the spec is permanent, the code evolves. The difference is what enforces the level:
- AIUP holds L2 by methodology. The discipline — update the spec first, re-run the implementation against it — is written down and taught well. Compliance is a practice the team maintains.
- ContextBrew holds L2 by machine. The spec is a set of typed, schema-conformant models (File Schemas); change propagation is computed, not remembered (SIM constraint propagation, the semantic-diff cross-reference pass); conformance is graded by oracles — failing tests brewed from the spec before code exists, executed with every result attributed (Oracles and Rubrics); drift is measured continuously (Drift); and who changed what, against which spec version, is recorded in a hash-chained ledger.
“Spec-anchored” without an oracle is a policy; with an oracle it is a property the system keeps or loses visibly. That sub-level — L2 with oracle-verification — is our explicit position, and we credit AIUP as the named peer holding L2 by methodology.
Levels are a floor, not a score
Section titled “Levels are a floor, not a score”Being at L2 says the spec stays alive. It does not say the spec is true — that is the work of the other methodology pages: the Seven Principles (seven, not six — the seventh is the one this category keeps skipping), Oracles and Rubrics, and Drift.
Verify our claims
Section titled “Verify our claims”- The three-levels framework, level names, and the L2 argument: unifiedprocess.ai (methodology page) — our source pass 2026-09-20
- ContextBrew machinery claims: File Schemas, Oracles and Rubrics, Drift — every link resolves to the implementing surface
