Insights Business| SaaS| Technology Specification Governance: Why Review Moves to the Plan, Not the Code
Business
|
SaaS
|
Technology
•
Nov 30, 2026

Specification Governance: Why Review Moves to the Plan, Not the Code

AUTHOR

James A. Wondrasek James A. Wondrasek
Specification Governance and Why Review Moves to the Plan

You open a pull request and the diff is four thousand lines. Somewhere inside it a decision was made about how retries should behave under partial failure, and you are now reconstructing that decision from what the code happens to do. Everyone in the review thread is guessing at intent. It is a familiar feeling, and it is a sign the merge gate no longer matches the shape of the work.

Coding assistants have pushed the volume of code up without pushing confidence in its correctness up alongside it. In 2026 most engineering teams use them weekly, and the bottleneck has shifted from writing code to verifying it. That reframes the hard question as one about governance. Inside the spec-driven delivery cluster, each change runs through stages that produce a committed artefact for the next, and together those artefacts form the audit trail.

Why does review move to the plan rather than the code?

Review moves upstream because the spec is where intent and acceptance criteria get decided, and changing course there costs a document edit. Approval lands on the plan first, then code review becomes conformance checking against the approved baseline.

The old approval gate sat at the merge, and as one account of the shift puts it, code review got stuck there. By the time the diff exists you are reviewing the consequences of a decision made hours earlier.

Upstream review puts a specification review gate before any code exists. A human checks completeness, interfaces, constraints, and testable behaviour while a correction still costs a document edit. Some tooling enforces the discipline mechanically: Claude Code’s plan mode will not edit a file until the engineer accepts the plan.

There is a measurable difference between asking for a spec and the code in one breath and doing the two steps separately. In one study of a twenty-invariant banking task, the single-prompt version was indistinguishable from just writing code, both scoring 23.8% on a weak model, while authoring the spec and then implementing from it in a fresh generation step nearly doubled the pass rate to 45%. The spec has to be written down and delivered as its own artefact before the code is generated, and mentioning it in the same prompt does not achieve that.

How does specification governance work as a loop?

Specification governance is a five-stage operating loop. Spec authoring writes the draft baseline, the review gate approves that baseline, guided generation builds the system from it, drift detection finds where code has moved away from the approved baseline, and reconciliation settles what each divergence means. Each stage emits an artefact the next consumes, running from draft baseline to approved baseline to generation record to drift log to reconciliation record.

Define it more fully and it is the policies, processes, roles, and controls that hold AI-generated and human-written code accountable to an approved specification. The control surface is the approved specification baseline: the spec plus its high-level design and low-level design, approved and versioned as a single artefact.

Reconciliation is where the loop closes. It routes each fix back to the stage it came from, so a design change returns to the review gate and a code defect goes back to generation. A named human makes those calls, which is what keeps drift from accumulating. The case for the baseline that is the loop’s control surface is that everything downstream can be checked against it consistently.

The loop also settles accountability. Under a RACI split the model is Responsible for generation and never Accountable for the outcome. Accountability always rests with a human. Compliance frameworks ask for this evidence, so the loop is about more than good practice.

What do the EU AI Act, ISO/IEC 42001, and NIST AI RMF require of spec-driven delivery?

The EU AI Act sets binding, tiered obligations, and for high-risk systems they include risk management, technical documentation, record-keeping, and meaningful human oversight. ISO/IEC 42001 asks for a certifiable AI management system built on Plan-Do-Check-Act, with documented controls and audit trails. The NIST AI RMF organises similar expectations under Govern, Map, Measure, and Manage, and stays voluntary.

Each of those wants documentary evidence that risk was managed, decisions were recorded, and a person was paying attention. The loop produces that as a by-product. Saying you review the output carefully provides little evidence of how those controls are implemented. A drift log with a named resolver is that evidence.

Reach matters here. The Act reaches any system placed on the EU market or whose output affects people in the EU, regardless of where the organisation is headquartered, which exposes Australian and APAC teams through their customer base. Governing to the highest standard you might face costs little extra, since a single documented human-oversight control can satisfy the Act, the NIST functions, and the ISO annexes at once.

There is a distinction worth keeping clear when you take this upward. Model governance controls the AI system itself, covering which providers supply it, how it is evaluated, and where bias shows up. Specification governance controls the work loop: what specification was accepted, what context the agent received, who authorised execution, and what proof came back. Compliance turns the second into an operating-model decision with a price attached, which is why the economics of whether it pays off belong in the same conversation as the obligation.

Human drift review vs LLM automated review: what does each buy you?

Human drift review brings context: a person can read intent and risk tolerance and decide whether a divergence is a defect, an acceptable deviation, or desirable evolution, and who owns the resolution. LLM automated review flags every divergence against the baseline without tiring.

Each misses what the other catches. Language models become less reliable as the instructions get richer: in a peer-reviewed study of LLM code reviewers, prompts that demanded explanations and proposed fixes pushed one model’s false-negative rate on HumanEval from 26.2% up to 73.2%, so it missed the defects it was asked to explain. Human reviewers have the opposite problem: they tire, and their attention wanes across a long session.

The automated side has a structural limit of its own: without an approved baseline its attribution collapses, and the measured work on review shows it. That work also reports the baseline’s measured effect on attribution and recall. The division of labour is straightforward: automation flags every divergence at volume, and a named human resolves each one.

Placement follows precision and recall. High-recall flagging belongs in an advisory stream, where a person can skim past a wrong comment, while high-precision judgement belongs in the blocking gate, because every false positive there stops a merge. Wire a recall-tuned reviewer into a required check and your team will call it inaccurate, and they will be right. Strictness is a separate decision, and it depends on whether the spec is a contract or a compass.

Spec as a contract vs spec as a compass: which review strategy fits your team?

Contract means strict conformance and gate enforcement: any deviation is a defect to fix or a breaking change to approve. Compass means directional guidance that tolerates drift, and the gate does not block on a deviation from it. Choose by risk. Regulated or stable interfaces where deviation is expensive take contract discipline, and exploratory work takes compass latitude.

These are degrees of gate strictness, and one team described the trade after reducing their spec review to the acceptance criteria: it eliminated duplicate work and reduced effort per feature. Strictly conforming to a full specification early in a feature’s life means paying twice for the same understanding.

Spec-first teams write a spec, generate once, then maintain the code, and from there the spec goes stale. At the spec-anchored level both stay in sync, so drift is detectable. Regenerating from the spec on every change is spec-as-source, which makes regeneration safe but demands heavy investment.

The targeting rule keeps this from becoming ceremony. Spend contract discipline on hard, multi-constraint, long-lived systems where deviation is expensive and the model has room to improve. Skip it for throwaway scripts and prototypes. That calculation is the same one behind where contract discipline earns its cost, and the commitment levels in more depth explain how contracts end up before code in the first place.

Reviewing the spec vs reviewing the code: where should scarce review time go?

Human judgement belongs on the spec, before generation. Code review is verification against the approved baseline. The spec is the decision and the code is its consequence, so you read the intent and let the implementation be checked against it.

The reviewer reads roughly ten lines of intent and acceptance criteria with one question in mind: is this solving the right problem with the right constraints? Invariants, golden tests, and traceability IDs make that work. An invariant encoded as a golden test turns a changed output into a drift event, and a traceability ID ties a finding back to the requirement it belongs to. Both of those make the diff something you can verify against the baseline.

That allocation compounds. The spec-anchored review in the measured study took about 48 minutes against 27 for code-only, and it produced findings that could each be tied to a named requirement. Review time spent re-litigating design at the merge is wasted. Keeping the spec good enough to deserve that time is its own discipline, and it is covered in the companion piece on keeping specs good.

The review was never the ritual

Governance as a loop changes what you are buying with review time. The spec becomes the place where human judgement concentrates, generation and drift detection become verification against an approved baseline, and reconciliation sends what was learned into the next authoring pass.

Strictness is a risk decision you make deliberately: tight where deviation is expensive, loose where strict conformance would throttle delivery. The full spec-driven delivery overview puts the loop, the compliance obligations and the review strategies in one place.

Frequently Asked Questions

What exactly is a specification baseline?

A specification baseline is the committed control surface that everything downstream is checked against: the specification itself plus the high-level design (HLD) and low-level design (LLD). Once the review gate approves it, it stops being a draft and becomes the reference point for generation, drift detection, and reconciliation. Code is judged by conformance to this baseline, not by a reviewer’s fresh interpretation of what was intended.

What’s the difference between specification governance and model governance?

Model governance controls the AI system itself, its training, deployment, and risk management. Specification governance is different: it controls the work loop, holding generated and human-written code accountable to an approved plan. The two are complementary obligations, not synonyms. Model governance asks whether the model is safe and compliant; specification governance asks whether the output conforms to an approved specification and who is accountable when it doesn’t.

How is spec-driven delivery different from test-driven development?

Test-driven development writes failing tests before code to pin down behaviour. Spec-driven delivery moves the decision further upstream: the specification, high-level design, and low-level design are approved before any code exists, then code and tests are generated against that baseline. Tests remain useful as conformance checks, but they are a consequence of the spec, not a substitute for it. The spec is the decision; the test is one artefact that verifies it.

Can the LLM write the specification itself?

It can draft one, but it cannot own one. An LLM can produce a competent first pass of a specification, and automated review can flag gaps at scale. What the model cannot do is decide intent, risk tolerance, or what counts as a desirable evolution versus a defect. Those decisions belong to a named human at the review gate. Automation flags and drafts; a human approves, which is the entire operational meaning of oversight.

Who writes the specification, and who is accountable when it goes wrong?

The specification is usually authored by the people who understand the domain best: product, engineering, or architecture, depending on the change. Accountability is separate from authorship. In the loop, a named human is always Accountable for resolving every decision and every drift flag, while the model is only Responsible for generation. When something goes wrong, the audit trail links the decision back to the person who owned it, which is what regulators actually ask for.

What are golden tests and traceability IDs, and why do they matter?

Golden tests and traceability IDs are what let code review become conformance checking instead of fresh design. Golden tests encode the specification’s invariant behaviour as executable checks, so a passing system matches the approved intent. Traceability IDs link each code finding back to a named requirement, making defects attributable rather than anonymous. Together they turn the diff from a document you re-read into a ledger you can verify against the baseline.

Is it true that a 95 percent accurate specification is worse than no specification?

Yes, and the reason is trust. A specification that is almost right but wrong in a few places quietly compounds drift, because reviewers stop checking it closely and assume the details are correct. No specification at least forces a reviewer to reconstruct intent each time. This is why drift detection and reconciliation exist in the loop: a near-miss spec must be caught and corrected, not relied on as though it were complete.

Does specification governance slow down delivery?

It front-loads time rather than adds it. You spend more time on the specification before generation, and far less time re-litigating design during code review, because review becomes conformance checking instead of fresh design. The correction that used to cost a rework now costs a document edit. Over the life of a regulated or long-lived system, that trade compounds in your favour; the waste is concentrated at the merge, not at the plan.

When is specification governance overkill?

When the cost of drift is low. Throwaway scripts, one-shot migrations, and exploratory prototypes rarely justify a full baseline, review gate, and drift log. Save contract-grade discipline for hard, multi-constraint, high-stakes, long-lived systems where deviation is expensive. That targeting rule is the difference between governance as an operating model and governance as ceremony: apply the strictness the risk actually earns.

Does the EU AI Act apply to my organisation if we’re outside the European Union?

Very likely yes if you have users in the EU. The EU AI Act follows the product, not the headquarters: any organisation with EU users falls in scope regardless of where it is incorporated, and Australian and APAC teams are exposed through their customer base. The practical response is to govern to the highest standard you may face. An audit trail that satisfies the strictest framework will satisfy the others too, so it costs little to aim high.

How do we get started with specification governance?

Start small: pick one non-trivial change, write a specification with its high-level and low-level design, and put a human review gate before any code exists. Then generate against that baseline and record the drift you find. The artefacts you produce, draft, approved baseline, generation record, drift log, reconciliation record, are the loop. You don’t need the whole framework on day one; you need one decision made upstream and one audit trail to prove it.

AUTHOR

James A. Wondrasek James A. Wondrasek

SHARE ARTICLE

Share
Copy Link

Related Articles

Need a reliable team to help achieve your software goals?

Drop us a line! We'd love to discuss your project.

Offices Dots
Offices

BUSINESS HOURS

Monday - Friday
9 AM - 9 PM (Sydney Time)
9 AM - 5 PM (Yogyakarta Time)

Monday - Friday
9 AM - 9 PM (Sydney Time)
9 AM - 5 PM (Yogyakarta Time)

Sydney

SYDNEY

55 Pyrmont Bridge Road
Pyrmont, NSW, 2009
Australia

55 Pyrmont Bridge Road, Pyrmont, NSW, 2009, Australia

+61 2-8123-0997

Yogyakarta

YOGYAKARTA

Unit A & B
Jl. Prof. Herman Yohanes No.1125, Terban, Gondokusuman, Yogyakarta,
Daerah Istimewa Yogyakarta 55223
Indonesia

Unit A & B Jl. Prof. Herman Yohanes No.1125, Yogyakarta, Daerah Istimewa Yogyakarta 55223, Indonesia

+62 274-4539660
Bandung

BANDUNG

JL. Banda No. 30
Bandung 40115
Indonesia

JL. Banda No. 30, Bandung 40115, Indonesia

+62 858-6514-9577

Subscribe to our newsletter