Skip to content

The Seven Principles

Written by ContextBrew · 2026-09-25 · the first six principles below are prior art we adopt with attribution, not vocabulary we coined; corrections welcome via the repository issue tracker.

A principle that nothing enforces is a wish. The AI Unified Process (Simon Martinelli) publishes six principles for spec-driven development — the cleanest narration of the category’s intent we know of, and we adopt them here with attribution. ContextBrew adds a seventh the category keeps skipping, and then does the part we actually claim: each principle is wired to a primitive in this repository that enforces it. Nothing in the right-hand column is a plan.

# Principle What it means The primitive that enforces it
01 Requirements-Centric Requirements are first-class artifacts owned by requirements engineering, not prompts a developer writes and discards The CBRL requirements DSL with acceptance criteria and EARS classification, plus USM personas and stories — typed artifacts validated against normative schemas, not prose (CBRL, USM)
02 AI-Assisted AI handles the tedious work; humans focus on business logic — humans edit the spec, agents edit code The Execution Engine (multi-model runs, cost tracking) and the MCP server exposing the spec corpus to any agent over 62 tools
03 Iterative Improvement Spec, code, and tests evolve together through short cycles — change the spec first Change propagation is computed, not remembered: SIM constraint propagation resolves which downstream services a change touches; the semantic-diff cross-reference pass (packages/core/src/semantic-diff/propagation.ts) records every affected cross-model reference; the Recipe Server branches and re-runs the recipe against the changed spec
04 Test-Protected Comprehensive tests ensure consistent behavior during AI regeneration Tests are brewed from the spec before code exists: CBRL acceptance criteria become EARS-aware Gherkin scenarios (generators/gherkin-cbrl.ts); DSM tables become live-database schema tests via information_schema (generators/schema-test.ts, Drizzle schemas from generators/dsm-to-drizzle.ts); and the recipe suite runner attributes every result and flips the recipe to blocked on failure (packages/core/src/recipes/test-runner.ts)
05 Stakeholder-Centric Continuous validation with business users at every iteration USM personas, stories, and acceptance criteria are authored artifacts, and the same models the agents read are what the Studio surfaces render — one canon, every audience
06 Traceable Every line of code traces back to a business requirement The bidirectional traceability matrix and cross-model consistency validator (packages/core/src/traceability/engine.ts, the get_traceability MCP tool, ctxbrew validate-consistency) — references resolve or the validator says so
07 Oracle-Verified Ours. Something grades “done”: tests exist is not tests verify The oracle loop: failing-first suites (generators/vitest.ts — scaffolds assert expect.fail until the behavior exists), attributed suite runs with recorded verdicts, gate commands that exit 1 (ctxbrew lint --gate, ctxbrew check --gate), and the hash-chained Brew Ledger recording who changed what, against which spec version — see Oracles and Rubrics

“Test-protected” without an oracle is just “tests exist.” The question that decides whether a spec-driven practice is real is: what grades done? In ContextBrew, every recipe ships with a failing test suite brewed first; the recipe closes when the suite passes — with every test result attributed (spec-derived, agent-authored, or unknown, so an agent’s own test cannot pose as evidence); and gate commands refuse rather than warn. The ratchet then turns every escape into a permanent automated check. That loop — brewed first, graded on run, recorded in the ledger, ratcheted on escape — is the verification machine, and it is the principle the six-principle narrations of the world lack.

The seven principles are enforced by the instruments described on the sibling pages — Oracles and Rubrics (the machine/judgment taxonomy), Drift (whether brewed knowledge is still true), and The ContextBrew SDLC (the loop that keeps the trunk stable while agents run in parallel) — and positioned on the map by The Three Levels of SDD.

  • The six principles (names and framing): unifiedprocess.ai (methodology page) — our source pass 2026-09-20; the seventh is ours
  • ContextBrew enforcement claims: each row’s repo path builds in this monorepo and is exercised by its module’s test suite — see Oracles and Rubrics and Drift for the receipts