Spec-driven delivery is spreading through AI-assisted development, and its advocates rarely say what a contract actually buys. That gap matters because code generation became cheap while verification stayed slow. Review became the bottleneck, which turns writing a spec into an economic and governance question.
The evidence here is stranger than the marketing. Reviewers holding an approved spec baseline caught 52.5% of seeded defects against 51.8% without one (p=0.69). Attribution, the share of findings tied to a prior decision, went from 0.00 to 0.81 (p=0.043) while review time rose from 26.7 to 48.4 minutes.
Seven themes run through the cluster, and each one routes to its home article below. They cover what a contract actually buys, why recall stayed flat, the economics of ports, governance as a supply chain, review moving to the plan, second-codebase decay, and event modelling’s reversal of the ordering.
In This Series
- Spec-Driven Development and Why Contracts Come Before Code: it defines the practice and traces its lineage.
- What an Approved Specification Baseline Actually Buys You: it covers the flat recall and the real attribution.
- Where Spec-Driven Delivery Pays Off and What It Actually Costs: it lays out the targeting rule and the economics.
- Specification Governance and Why Review Moves to the Plan: it explains the loop and the oversight.
- Keeping Specs Good and Choosing the Right Spec-Driven Tooling: it covers the quality, the decay, and the tooling.
What is spec-driven development, and why do contracts come before code?
Direct answer: Spec-driven development means writing and approving a specification, a contract, before generation begins, so code is produced against a decision that has already been made and approved, instead of an ad-hoc prompt. Contracts-before-code differs from prompt-first AI coding in ordering and in status. A spec in the prompt carries no authority. A governing artefact has a review gate, approval and drift detection behind it.
The practice continues a contract-first lineage. OpenAPI, AsyncAPI and JSON Schema predate AI coding by years. What changed is the sheer volume of code being written, which has shifted the hard problem from producing code to checking that the code is right.
Intent degrades at every handoff from idea to spec to prompt to code to behaviour, and each gap is a translation loss. The same words can sit in a prompt and carry no weight. What gives them weight is the review gate, the approval, and the drift detection that sit behind a governing artefact.
Event modelling reverses the ordering: model the events before the entities and the contract nearly writes itself. Definitions are in the explainer on spec-driven development, which builds the vocabulary the rest of this series leans on.
What does an approved specification baseline actually buy you?
Direct answer: A baseline buys attribution, which rose from 0.00 to 0.81 (p=0.043). It does not make reviewers better bug-finders. Recall stayed at 52.5% with a baseline against 51.8% without (p=0.69), and review time nearly doubled from 26.7 to 48.4 minutes. The trade is time for accountability: reviewers spend nearly twice as long, and in return their findings can each be traced to the decision that produced them. The baseline changes what a finding connects to, not how many findings surface.
Flat recall says bug-finding is bounded by reasoning and review capacity. The attribution jump says a reviewer can write “this deviates from the decision we made” instead of “this looks wrong, but I cannot tell whether it was intended”, as the study’s author observed.
GAISS 2026 is a small study. Whether the gain traces to reasoning is a separate question, taken up in where spec-driven delivery pays off and what it actually costs, and the operating loop is in how specification governance runs as an operating loop.
Where does spec-driven delivery pay off, and what does it actually cost?
Direct answer: The one place contract-first genuinely moved detection is test generation, up 9.8 percentage points on Google production bugs (p=0.0352). On easy tasks, a reasoning-only arm that wrote no specification scored 95% and a spec-first arm scored 92%, as the InfoQ study reports, so the reasoning effect accounts for most of the gain and the specification itself adds little. The rule is to adopt it where verification, coordination or repeatability is the binding constraint, and skip it where generation speed is all that matters.
Staged delivery is what changes the outcome. Authoring a spec and then implementing from it in a fresh step is not the same as one “spec-then-code” prompt.
Giant Swarm’s pull requests tripled from around 700 to more than 2,100 a month, and human review moved from the code diff to review of the plan. Akka ran 65 projects on 9.41 billion tokens. Token spend is best measured against the review effort it saves. More on the targeting rule and the agent-scale economics.
How does specification governance work, and why does review move to the plan?
Direct answer: Specification governance runs as a five-stage loop that starts with authoring the spec, passes it through a review gate, guides generation from it, detects drift, and then reconciles what changed. Reconciliation feeds the next authoring pass, and that return path is what makes it a loop. Review moves to the plan because the spec is the highest-leverage decision point. Once the contract is right, code review becomes verification against it.
The audit trail is a by-product: each behaviour traces to an approved requirement and a named human. The obligations are already in force. The EU AI Act’s high-risk provisions, ISO/IEC 42001 and the NIST AI RMF all ask for documentation, oversight and a record of decisions.
Treating the spec as a contract or as a compass sets how strict the gate should be, and whether a human or an LLM holds the review gate. The loop and the obligations are covered in the governance backgrounder.
How do you keep specs good and choose the right spec-driven tooling?
Direct answer: A good spec is testable, complete but minimal, and decision-bearing enough to support attribution — not verbose boilerplate that restates the code, which feeds second-codebase decay, where a spec that duplicates the code drifts out of sync and becomes a second, weaker codebase nobody trusts. Tooling choice turns on the greenfield/brownfield axis: Spec Kit for greenfield, Kiro for brownfield, and BMad for a repeatable method.
Spec Kit suits a greenfield task pipeline and runs a named lifecycle that starts with a Constitution, moves through Specify, Clarify, Plan and Tasks, and ends with Implement and Validate. Kiro is the IDE-native brownfield option. BMad is for teams that want a repeatable method, and all three assume more of a clean slate than most enterprises have.
None of them rescue a spec that governs nothing real. More in the full tooling comparison.
Resource Hub: Spec-Driven Delivery Deep Dives
Foundations and Evidence
- Spec-Driven Development and Why Contracts Come Before Code: what it is and why it governs (6 min).
- What an Approved Specification Baseline Actually Buys You: it covers the flat recall, the attribution, and the time cost (5 min).
Economics and Governance
- Where Spec-Driven Delivery Pays Off and What It Actually Costs: it sets out the targeting rule and the agent-scale economics (5 min).
- Specification Governance and Why Review Moves to the Plan: it explains the loop, the compliance, and the allocation (6 min).
Quality and Tooling
- Keeping Specs Good and Choosing the Right Spec-Driven Tooling: it covers the quality, the decay, and the tool choice (5 min).
Where each theme lives, and where to start
Contract value and flat recall: what an approved specification baseline actually buys you. Port economics: where spec-driven delivery pays off and what it actually costs. Governance as a supply chain and review moving to the plan: specification governance and why review moves to the plan. Second-codebase decay: keeping specs good and choosing the right spec-driven tooling. Event modelling’s reversal of the ordering: spec-driven development and why contracts come before code.
New to the concept? Begin with the article that defines it. Want the evidence? Begin with the article on the experiment. Weighing the upfront cost? Go to the article that lays out the targeting rule. Justifying governance upward? Go to the article on the governance loop. Maintaining specs or picking tooling for an existing codebase? Go to the article on quality and tooling.
Frequently Asked Questions
What is translation loss, and why does it matter?
Translation loss is the intent that degrades at each handoff: from idea to spec, to prompt, to code, to behaviour. Every gap between those steps drops information, and the drops compound the further you get from the original decision. Contracts-before-code exists to catch that loss at the earliest and cheapest point, before it spreads through generation and becomes expensive to trace back.
If review moves to the plan, do I still need code review?
Yes. Review moving to the plan does not remove code review; it refocuses it. Once the contract is right, code review becomes verification against the contract instead of a search for intent. In the study, review time rose rather than fell, from 26.7 to 48.4 minutes. Someone still checks that the code matches the decision, the gate just sits earlier.
What does “attribution” actually mean in spec-driven development?
Attribution is the share of review findings tied to a prior decision rather than an unexplained hunch. In the study it rose from 0.00 to 0.81 once reviewers held a baseline. Practically, it means a reviewer can say “this deviates from the decision we made” instead of “this looks wrong, but I cannot tell whether it was intended”.
What is the difference between treating a spec as a contract and as a compass?
A contract gets a strict gate: nothing merges without matching it. A compass is looser guidance that steers generation without binding it. The choice sets how strict your gate should be. Compliance-bound or high-risk work leans contract, while exploratory work where direction matters more than exactness can run on a compass.
Does using a spec make me compliant with the EU AI Act?
Not by itself. The obligations behind spec-driven development are already in force under the EU AI Act’s high-risk provisions, ISO/IEC 42001 and the NIST AI RMF, and they ask for documentation, oversight and a record of decisions. A spec with an approval gate gives you that record as a by-product, but compliance still depends on how the gate is run.
What happens when my spec falls out of sync with the code?
You get second-codebase decay. The spec becomes a second, weaker copy of the code that nobody trusts, and it drifts further with every change. The fix is to keep the spec minimal, testable and decision-bearing, and to run drift detection that flags divergence. If the spec simply restates the code, it was never doing its job.
Does spec-driven development work for an existing, brownfield codebase?
Yes, but with more friction. Most tools assume more of a clean slate than enterprises actually have, so brownfield work suits an IDE-native approach like Kiro or a process you can retrofit. Start with one bounded module: write the contract for the behaviour you are about to change, and let drift detection cover the parts you are not touching.
Do I need a dedicated tool to start spec-driven development?
No. Start with a versioned markdown file, an approval gate and drift detection, and you have the loop. Tools earn their place once you need a repeatable lifecycle: Spec Kit suits a greenfield pipeline, Kiro is the brownfield option, and BMad is a method rather than a tool. None of them rescue a spec that governs nothing.
Why is test generation the one place a contract genuinely moved the needle?
Because tests are verification, not generation. A contract gives the generator ground truth about expected behaviour to assert against, which is exactly where a decision helps. In the study, contract-first test generation rose 9.8 percentage points on production bugs (p=0.0352), the one statistically meaningful gain, while most other spec-first gains were reasoning in disguise.
How much extra time does spec-driven development add?
Plan for review time to nearly double. In the study it rose from 26.7 to 48.4 minutes per task, and that is before you count authoring time. The cost is the purchase price of accountability, not of better bug-finding. It pays back only where the spec removes rework or replaces manual verification at scale.
Where should I start if I am new to spec-driven development?
Start small and start with the gate, not the tool. Pick one bounded change, write a minimal and testable spec for the behaviour you are about to build, get a named human to approve it, then generate against it and check drift. Definitions first if you need the concepts, the experiment if you need evidence, the targeting rule before you commit.