When AI Writes the Code, What Proves It Works?

Published

The scarce output is an accepted change

AI can produce a pricing change, its specification and a passing test suite while preserving the same wrong interpretation in all three. A software company then has more code and more documentation, but no stronger reason to trust the next invoice. The executive question is whether the change delivers the intended behavior, preserves existing obligations and can be released at a sustainable total cost.

Consider a multi-tenant SaaS business introducing volume pricing. The new calculation works for a newly created account. The tests pass. But an existing customer loses a grandfathered contract, or an invoice retry charges against a changed tariff. These are failures of the business promise, even when the implementation matches its generated specification. This example is illustrative, not a reported customer incident.

Spec-driven development can improve the instructions an agent receives. It does not, by itself, establish that those instructions are right, the evaluation is adequate or the organization should authorize release. Those are connected decisions with different evidence requirements.

The useful shift is from asking an agent to finish a task to defining what would justify accepting its change. Specification guides construction. Independent evidence challenges the result. An authorized owner accepts the residual risk. For consequential changes, that boundary deserves as much engineering attention as generation.

Does spec-driven development make AI-generated code reliable?

It can make intent explicit and implementation more reviewable; it cannot guarantee correct requirements or complete verification. Current evidence includes promising test-generation experiments, observational repository associations and a large null result for issue-linked specification artifacts. They measure different interventions. Our own small, locally preregistered pilot found all three workflows passed the same acceptance checks. It supplies no evidence that additional specification ceremony was necessary for those tasks.

Can another AI independently verify the implementation?

Another agent can provide a useful challenge, but a different conversation or model is not automatically an independent oracle. If both infer expected behavior from the same flawed code or requirement, their agreement can preserve the error. Stronger independence comes from separately governed business rules, retained legacy obligations, adversarial properties, external interface contracts and evaluation authority the implementer cannot silently change.

What is new about spec-driven development?

Requirements engineering, executable examples and program contracts long predate coding agents. ISO/IEC/IEEE 29148:2018 concerns requirements processes and information items. Hoare logic relates program execution to preconditions and postconditions; Design by Contract makes obligations between callers and implementations explicit. Neither discipline turns an incorrect business requirement into a correct one.

TDD uses failing tests to guide implementation and refactoring. ATDD brings acceptance examples into delivery; BDD emphasizes collaborative discovery and executable examples in shared language. Cucumber's account of BDD describes discovery, formulation and automation, not merely a syntax for tests. Model-based testing derives cases or sequences from a behavioral model. Consumer-driven contracts examine agreement at service boundaries. Traceability connects obligations to implementation and evidence. Formal verification establishes specified properties under explicit assumptions.

Modern SDD adds a machine consumer that can derive tasks, write code and revise several artifacts rapidly. A feature specification, technical plan and task list become executable context for an agent. That can preserve intent across sessions and expose omissions before implementation. It also creates a new maintenance obligation: the documents, code and acceptance evidence must evolve together.

The important taxonomy is functional, not a competition between labels:

Artifact or decisionQuestion it answersWhat it does not establish
Business requirementWhich customer or operating result is needed?Whether the proposed product will be useful
SpecificationWhat behavior and constraints are required within this boundary?Whether every relevant obligation was captured
DesignHow will components and decisions realize that behavior?Whether the implementation follows it
ImplementationWhat does the system actually execute?Whether that behavior is acceptable
Test oracleHow will an observation be classified as acceptable or wrong?Whether the classification rule is complete
Change Acceptance ContractWhich evidence and authority justify accepting this change?A proof of universal correctness
VerificationDoes the implementation satisfy stated obligations?Whether those obligations solve the business problem
ValidationIs this the right behavior for the intended use?Automatic permission to deploy
Release authorizationWho may commit the company to this version and residual risk?That tests or monitoring cannot miss failures

A specification may contain executable examples, and a test may function as a specification. The distinction concerns responsibility: where did the expected result come from, and who can challenge it?

Read the evidence at the level of the intervention

The strongest claim justified by the current literature is narrower than “SDD reduces bugs.” Explicit contracts and better specification practices are credible engineering mechanisms. Their benefits depend on the task, workflow, evaluator and cost of maintaining the artifacts. The research cutoff here is 28 October 2026.

ResearchObservationDecision boundary
Spec-Driven Development as Prescribed and as PracticedSpecMine contains 470,795 files from 73,030 public repositories; detailed study combines 266 repositories and 21 interviews.Documents adoption and practice, including review costs and decay; not causal quality improvement.
EPIC114 repositories inform 40 practices; 15 practitioners assess them. High/low specification-quality bands show 11.8%/20.4% bug-fix commit shares.Association, not a defect rate or treatment effect; project characteristics remain possible confounders.
Google's contract-guided test-generation studyOn 90 historical bugs, five-run detection rises from 53.4% to 63.2%; reported branch coverage improves by 2.5 percentage points.Same-model test generation from already-fixed source, without prior tests. The 9.8-point detection gain is at five attempts; the single-attempt difference is 4.2 points and not statistically significant.
ESEM specification-artifact study88,052 PRs across 119 repositories yield no supported protective effect for the measured artifacts.97.5% of detected artifacts are issue/ticket references; no committed SDD-tool output. Post-hoc sampling and defect-attribution noise limit inference.

These results need not contradict each other. Inferring contracts before generating tests is a specific intervention. Finding better documents in a repository is an association. Detecting a ticket reference is a proxy for an artifact. Treating them as one treatment would obscure the engineering question.

Benchmarks need the same discipline. FeatureBench evaluates 200 feature tasks from 24 repositories and reports 11.0% task success for Claude Code with Claude Opus 4.5 in its setup. MACBench evaluates evolving frontend requirements across 28 instances, 699 turns and 956 items; Claude Opus 4.6 reaches the highest strict-instance result, 10.7%, with 64.6% checklist success. The highest checklist result, 70.6%, belongs to DeepSeek V4 Pro, whose strict-instance result is 3.6%. Neither number estimates the failure probability of a present-day enterprise change. An all-items metric is especially unforgiving as obligations accumulate.

SWE-bench Verified instead uses 500 human-filtered issue-resolution instances. Model, agent scaffold, tools, attempts and benchmark version all affect the result. A public solution may also enter later training or retrieval context. A leaderboard is useful for a defined comparison; it is not a substitute for testing the company's actual change distribution and acceptance policy.

The bottleneck is disagreement with the wrong answer

The dangerous loop is internally consistent: an ambiguous requirement becomes a plausible specification; the specification becomes code; tests reproduce the same interpretation; a review agent explains why everything agrees. More artifacts increase confidence without necessarily increasing the information available to reject the shared assumption.

Suppose “volume discount” is interpreted as applying the cheapest reached band to every unit. The code and examples can both implement that rule perfectly. If the commercial agreement requires progressive bands, specification conformance is the wrong success criterion. The missing input is the authoritative pricing rule, not another paraphrase of the implementation.

Independence therefore has several dimensions. Information independence means the evaluator has relevant evidence the implementer did not invent: approved contract examples, consumer expectations, historical behavior or a separately derived calculation. Control independence means the implementer cannot weaken the protected evaluator or edit its expected outcomes to pass. Decision independence means completion claims do not grant release authority. None requires a separate department for every change.

Different agents may still help: one can reconstruct the obligation, another search for counterexamples, a third inspect the diff. Their value comes from distinct tasks and evidence, not headcount or model diversity alone. Shared training, shared context and shared misunderstanding can remain correlated. Human reviewers can make the same mistake when they only read the generated explanation.

The test-oracle problem is established software-testing research, not a problem created by AI. The oracle is also software or a human judgment. Hidden tests can omit a crucial behavior, encode the wrong contract or reward a narrow implementation. Mutation testing can expose weak assertions, but selected mutants do not represent every real defect. Validation with customers and domain owners remains necessary where the product decision cannot be resolved by executable checks.

A Change Acceptance Contract

I propose a Change Acceptance Contract as a compact executive and engineering synthesis: a versioned statement of the obligations, evidence, uncertainty and authority required to accept a particular software change. It is not a new standard, a replacement for testing or a claim to have invented acceptance criteria.

Its ingredients come from Design by Contract, ATDD, requirements traceability, risk-based testing, assurance cases and release readiness. The practical emphasis is their connection at the change boundary: an agent may generate the implementation and much of its supporting material, while acceptance conditions and decision rights remain protected. A team already doing this well may need no new document or label.

Five reviewable commitments make the acceptance boundary concrete:

CommitmentWhat must be explicitExample evidence or decision
Intent and boundaryBusiness result, affected components, behavior, excluded scope and legacy promisesApproved pricing examples; affected account, invoice and API boundaries
Obligations and forbidden statesInvariants, compatibility, permission boundaries and security assumptionsNo cross-tenant output; unchanged legacy response shape; exact monetary arithmetic
Acceptance evidenceIndependently derived checks, provenance, coverage gaps and unresolved uncertaintyHistorical contract fixtures, properties, consumer contracts, reviewed test changes
Commitment and recoveryImpact, migration conditions, authorized owner and workable rollback or compensationRelease decision attached to immutable build and evaluator versions
Observation and invalidationProduction signals, escalation thresholds and what withdraws acceptanceReconciliation mismatch stops rollout; contract change invalidates stale fixtures

Put the contract in the pull request

The five commitments can be the PR description, not a separate approval system. A low-risk change needs a short record of intent, relevant obligations, evidence, owner/recovery and the condition that would invalidate acceptance. For a consequential change, make each field specific enough that another person can reject the wrong result.

Illustrative filled record: progressive pricing, policy PP-1. The policy identifier below is fictional. This record permits local verification; it does not authorize customer billing.

CommitmentFilled record
Intent and boundaryRequirement PP-1; implementation at the exact candidate commit recorded by CI. Business-rule authority: the domain owner's approved PP-1 tariff and legacy-contract fixtures. Approve progressive calculation within this boundary; preserve grandfathering.
Obligations and forbidden statesAccept 359 cents for 21 progressive units and 609 under the assumed 29-cent grandfathered contract. Reject all-units marginal pricing, foreign-tenant disclosure, changed invoice snapshots on authorized retry, conflicting key reuse and any denied/invalid-call mutation. Retain the legacy API.
Acceptance evidenceProducer: implementing engineer/agent. Evaluation authority: designated billing domain reviewer owns expected results; trusted CI executes separately governed checks. Record evaluator revision/digest, tested commit, PASS/FAIL/NOT RUN and result artifact. Status here: fuller acceptance evidence NOT RUN; the pilot's 14/14 is narrower. Durable retries, migration and reconciliation remain unresolved.
Commitment and recoveryDecision owner: the named billing service owner with actual release authority. Customer-affecting release: HOLD. A shadow-only scope needs explicit authorization after required checks pass. Disable the pricing flag to recover; reconcile and correct already-issued invoices when reverting code cannot undo the consequence.
Observation and invalidationStop on an unexplained reconciliation or tenant-boundary discrepancy. Changed requirements, contracts, code, evaluator, configuration or migration versions invalidate the corresponding evidence; a failed invariant withdraws acceptance.

In GitHub, keep the rule reference and acceptance record in the PR, attach CI results to the tested revision, and use required checks and reviews for the relevant risk. CODEOWNERS can identify reviewers for critical rules, fixtures and workflows when paired with required owner approval. A job name or ownership file alone does not create independent evaluation: run trusted checks against candidate code in an isolated environment, protect changes to their rules, and account for administrative bypass rights. The implementing agent may assemble the evidence; the designated owner authorizes the permitted commitment.

The contract should fit the decision. For a text correction it may be a few acceptance lines in a PR. A billing migration may need signed-off rules, a reconciliation job, staged rollout and an accountable business owner. A checklist becomes harmful when producing it costs more than the decision it improves.

This differs from the Simulation Validity Contract: that contract bounds a model's permitted use in a decision under uncertainty. This one bounds acceptance of a software change using behavioral and operational evidence. Both make trust conditional; their subjects and evaluation methods differ.

A practical record identifies the requirement version, source revision, evaluator revision, relevant configuration, pricing-rule and migration versions, build digest, observed results, exclusions and decision owner. If a requirement changes, previous evidence is not automatically transferable. If the evaluator changes, explain why and rerun relevant checks. An agent must not be able to turn a failing obligation into an accepted exclusion without authorized review.

From intent to accountable changeProposed synthesis by Andrei Lisikov · not a technical standard

Intent, specification, code and test oracles can be wrong. Evaluation authority and release authorization remain separate from implementation.

  1. Business intent

    Establish the business promise and affected boundary.

  2. Specification

    Record behavior, legacy obligations and unresolved assumptions.

  3. Agent implementation

    Generate code and local tests; they may share the same wrong assumption.

  4. Independent evidence

    Separately derived rules, counterexamples and protected evaluation.

  5. Acceptance decision

    An accountable person weighs evidence, gaps and residual risk.

  6. Controlled release

    Bound exposure; prepare recovery or compensation.

  7. Production observation

    Check outcomes and escapes; withdraw assumptions or acceptance when necessary.

Match the technique to the failure

No single verification stack is sufficient. Start with the consequential failure, then select evidence that could expose it. Add tools where they change the acceptance decision, not because an enterprise checklist contains their names.

Failure or uncertaintyUseful techniqueImportant limit
Wrong calculation or boundaryUnit examples, independent arithmetic, property-based tests and fuzzingThe expected rule and generated domain can still be wrong
Undocumented legacy obligationCharacterization and regression tests, reviewed historical fixturesExisting behavior may itself be defective; preserve deliberately
Broken service agreementIntegration tests, consumer-driven contracts, selective end-to-end journeysA mocked interaction is not proof of real deployment behavior
Weak assertionsMutation testing and targeted negative controlsEquivalent mutants and execution cost require triage
Missing exact oracleMetamorphic relations or differential comparisonRelations and reference implementations can share errors
Invalid state sequenceState-machine tests, model-based testing, TLA+ or Alloy where justifiedAbstraction, state bounds and implementation correspondence matter
Security or permission failureAuthorization matrix, negative tests, SAST, dependency and secret scanning, policy checksScans do not establish business authorization or eliminate vulnerabilities
Unsafe operational consequenceStaged rollout, shadow comparison, canaries, flags, rollback/compensation and SLOsDetection follows exposure; irreversible effects may already exist

Hypothesis for Python and fast-check for JavaScript/TypeScript generate inputs against properties and shrink failing cases. For billing, an authorized exact retry must preserve the original invoice despite later tariff changes; an unauthorized retry must disclose nothing and leave state unchanged. A tenant-isolation property compares observable results before and after adding unrelated tenant data. These express obligations more broadly than another happy-path example.

PIT on the JVM and Stryker test whether selected code mutations are detected. Use them first on high-consequence rules; do not make an arbitrary mutation percentage a universal release gate. Pact checks consumer/provider expectations. It does not replace tests of the provider's business rules.

Metamorphic testing asks what must remain related when an input changes: adding another tenant should not change this tenant's export. Differential testing compares implementations; a legacy calculation is a useful reference only where its behavior is intentionally retained. State-machine tests examine sequences such as create, retry, amend and credit, where individually correct operations can produce an invalid overall result.

Types and static analysis catch useful classes of mistakes before execution, but an integer can still be the wrong price. TLA+ and TLC can examine modeled transition systems; Dafny can verify program obligations against contracts. SMT-backed constraints can check bounded rules or configuration consistency. Lean can check a supplied proof. These approaches justify specialist effort for critical algorithms or protocols, not a demand that every CRUD feature become a theorem-proving project.

VERINA, with 189 Lean tasks, separates code generation, specification soundness/completeness and proof generation. That separation matters: proving code satisfies an inadequate specification does not establish business correctness. Formal assurance narrows particular uncertainties while retaining assumptions about the specification, environment and trusted toolchain.

A locally preregistered pilot: three ways to make the same change

For this Perspective, coding agents ran a private controlled research demonstration on 28 October 2026. It used two synthetic Python services, not employer software or customer data. One task added effective-dated progressive billing while preserving grandfathered contracts and request-aware idempotency. The other added tenant-scoped version-two pagination while retaining the version-one API.

Six fresh coding-agent sessions received the same starting code, business requirements and visible regression test within each task. A used direct implementation with normal testing allowed. B first created requirements, design and task artifacts. C additionally received a public acceptance contract and requirement-to-evidence traceability instructions. The same withheld final evaluation applied to A, B and C. Each task-condition cell had one run in a fixed, non-randomized interleaved order. This was an artifact-first approximation, not a benchmark of Spec Kit, Kiro or OpenSpec.

All six were evaluated by the same withheld tests. A local preregistration and the evaluator's SHA-256 commitment preceded implementation; these were local records, not an externally timestamped registration. Its source was absent from the trial filesystem during implementation and restored only after all submissions were frozen and hashed. The public acceptance contract described obligations and evidence policy; it did not reveal final assertions or expected output fixtures. The implementing agents received no hidden-test feedback or repair opportunity.

TaskA: direct implementationB: specification firstC: specification plus acceptance contract
Billing10 local tests pass; 14/14 withheld groups pass13 local tests pass; 14/14 withheld groups pass20 local tests pass; 14/14 withheld groups pass
Tenant/API compatibility11 local tests pass; 14/14 withheld groups pass15 local tests pass; 14/14 withheld groups pass15 local tests pass; 14/14 withheld groups pass

All six submissions met this evaluator's acceptance conditions, with no detected critical violations. No submission claimed completion and then failed this evaluator. Groups contain multiple assertions; 14 is not the count of individual tests or statistically independent observations. Additional local tests were agent-authored, so their counts are not comparable measures of quality. No correction loop was reported before submission.

The pilot did not discriminate between the workflows. Direct implementation also passed. It provides no basis for claiming C was more correct or SDD necessary. B and C created additional planning artifacts; whether that cost improves future maintenance was not tested. Detailed shared requirements and small deterministic tasks may have made success relatively easy.

No human participants were studied, and human review or labour time was not measured. Agent elapsed time and shell-call counts are not human effort or total delivery cost; this pilot cannot rank workflows economically. We used the same inherited model configuration, but the execution interface did not expose the exact backend version, token usage or provider cost. Time and shell-call targets were equal; they were instructions rather than enforced resource caps. Runs overlapped on one machine. Directory restrictions were instructional, not operating-system isolation. The orchestrator designed both requirements and oracle, and agents shared a model family: this is information separation, not statistically independent judgment or a blinded external study. Candidate code was imported into the evaluator process on the same host: the setup did not resist malicious candidate code or evaluator tampering. Actor dictionaries were trusted fixtures; authentication, durable concurrent idempotency and real tenant isolation were not evaluated. The final export oracle also omitted explicit denied/invalid-call non-mutation assertions, so passing it did not establish that obligation.

The initial post-hoc sanity check rejected four faults: missing billing authorization, ignored grandfathering, a flat last-band calculation and a missing tenant filter. A separately labeled oracle audit then introduced four further faults: mutation of rows on denial, mutation on an invalid request, mutation of the denied actor and reading rows before authorization. All four survived the unchanged final evaluator; new supplemental checks detected each. The unmodified export implementation passed those supplemental checks. This demonstrates specific gaps in the oracle, not defects in the original six submissions or a workflow advantage. Neither audit changes the original 14/14 results. Raw code, prompts, preregistration, hashes and output remain in the private research package. The public description supports scrutiny of the method without publishing project-private material. A larger study should pin a model snapshot, enforce resource budgets, use independent domain reviewers, vary requirement ambiguity and replicate randomized trials before estimating effects.

Apply the boundary to enterprise billing

The synthetic service deliberately leaves out the difficult operational parts of real billing. An enterprise change also touches entitlements, signed contract amendments, invoices, credits, tax rules, currency rounding, migration, audit records and downstream consumers. Passing the small calculation exercise is not evidence those systems are ready.

An adequate requirement makes decisions explicit. “Support volume discounts” is insufficient. For an illustrative tariff, units 1–10 cost 20 cents, 11–20 cost 15 cents and later units cost 9 cents. Twenty-one units cost 359 cents: 200 plus 150 plus 9. A grandfathered 29-cent contract remains 609 cents. The effective date selects the rule; tenant and role determine permission; the idempotency key identifies a request, not permission to recalculate it.

ObligationEvidence that could reject a plausible wrong implementation
Preserve existing contractsDomain-approved fixtures spanning old contract versions and effective-date boundaries
Preserve invoice meaningExact arithmetic reference; rounding/credit policy; invariant between invoice lines and total
Prevent double consequencesRetry after tariff change; duplicate delivery; conflicting reuse of request key; recovery after partial persistence
Maintain tenant boundariesUnauthorized actor, same identifiers in two tenants, cached-result access and denied-call non-mutation
Preserve downstream useConsumer contracts, old/new response shapes and migration rehearsal with reconciliation
Release safelyShadow invoices that cannot reach customers, discrepancy review, bounded rollout and an owned stop condition

The business owner supplies the commercial obligation; engineering translates it into testable behavior; Finance reviews reconciliation and monetary policy; Security challenges tenant and permission boundaries. These can be roles within a small team. They are responsibilities, not a demand for four approval meetings per change.

A reviewer should ask a revealing question: what plausible wrong implementation would still pass this evidence? If replacing progressive pricing with a single marginal rate passes, the suite does not protect the pricing rule. If changing another tenant's records changes the export, isolation is broken. If a retry after a timeout is untested, the operational promise is unfinished.

Rollback also needs domain meaning. Reverting a deployment does not retract an emailed invoice or reverse a posted ledger entry. Some failures require compensation, customer correction and an audit trail. The acceptance contract must identify those consequences before rollout, including the conditions under which automatic continuation is forbidden.

Measure cost per accepted change at an explicit quality threshold

Generated lines, completed agent tasks and local test counts are poor economic denominators. The more useful unit is a change accepted against an explicit correctness and risk policy, with later escapes tracked separately. Rejected attempts and correction work remain costs even when they produce no accepted change.

For a matched cohort of attempted changes, calculate total specification, implementation, verification, review, rework and allocated release cost divided by accepted changes. Retain failed and abandoned work, keep change granularity and risk mix comparable, and disclose work in progress or carried-over costs in period reporting. With zero acceptances, report total cost and zero outcomes; a finite unit cost is undefined. Assign each hour to one category to avoid double counting; include model/tool charges and compute where actually measured. Keep incident response and maintenance separate unless defensible attribution exists. Acceptance is evidence-bounded, so report escaped defects and severity alongside the ratio.

An illustrative calculation makes the denominator visible. Assume ten attempted changes incur €600 specification, €1,600 implementation, €1,200 verification, €800 review, €500 rework and €300 allocated release cost: €5,000 in total. If eight satisfy the agreed policy, cost is €625 per accepted change. If only seven do, the same expenditure becomes about €714. These are assumed figures, not measured company results or an AI savings claim.

Additional specification effort is worthwhile when it reduces downstream cost, preserves valuable obligations or supports more accepted outcomes enough to justify its own creation and maintenance. It can also be uneconomic. Compare approaches at equivalent quality and risk, not by charging review to one workflow and ignoring it in another.

METR's February 2026 update explains why selection and time measurement made its later productivity estimates unreliable. DORA's 2025 report examines AI within the delivery system; Atlassian's 2026 survey reports practitioner perceptions of speed and friction. These are different evidence types. None supplies a universal return assumption for this team's proposed workflow.

Track lead time to acceptance, review queue age, human review minutes, correction loops, escaped regressions, exception work and specification maintenance. A faster first draft can be valuable even without staff savings. Its commercial value depends on whether the released capacity improves a real constraint: a product opportunity, customer continuity, resilience or time to market.

Protect the evaluation and scale effort with risk

The implementing agent should not be the only authority able to change the tests, acceptance policy and release decision. Use protected evaluation paths, reviewed changes to critical fixtures, trusted CI and attributable artifacts. Bind evidence to the exact source and build being considered; a green result from a previous revision is not evidence for an untested last-minute patch.

NIST's SSDF provides secure-development practices that belong across the lifecycle. SLSA addresses supply-chain integrity and provenance. Knowing where an artifact came from helps establish what was evaluated; provenance does not establish correct commercial behavior. SAST, dependency audits, secret scanning and SBOMs similarly answer bounded questions, not the whole acceptance decision.

Repository text, issue comments, dependencies and tool output may contain untrusted instructions. Scope filesystem, network, credentials and tool execution accordingly. Codex security documentation, GitHub's agent risk controls and Claude Code guidance describe practical control mechanisms. Product capabilities differ; permission to propose, test or open a PR is not automatically permission to access production secrets, weaken policy or deploy.

Change riskProportionate evidence and authorityRelease posture
Low: reversible presentation or isolated behaviorClear acceptance examples, relevant regression suite, normal reviewRoutine delivery with observable recovery
Medium: public API or meaningful workflow changeExplicit compatibility obligations, integration/contracts, boundary properties, owned uncertaintyStaged rollout and defined stop conditions
High: money, authorization, destructive migration or irreversible actionDomain-approved invariants, separately governed evidence, security review and rehearsed recovery/compensationExplicit accountable authorization and controlled exposure

Risk follows consequence and blast radius. A one-line authorization change can be high risk. A large mechanical refactor may be lower risk when behavior is characterized and deployment is controlled. Test scope should follow impact and uncertainty rather than line count or the agent's confidence.

What to adopt now, and what to watch through 2027

Current tooling already supports useful parts of this workflow. Spec Kit documents specification, planning, tasks, implementation and convergence, plus distinct repair and existing-project paths. Kiro offers requirements-first and design-first specifications, EARS-style requirements and analysis. OpenSpec organizes change proposals, specification deltas, design, tasks and verification. Choose based on reviewability, brownfield fit, integration and maintenance; documentation is capability evidence, not a comparative quality trial.

Living specifications and automatic traceability are useful ambitions when the links are checked. A requirement-to-test link proves an association exists, not that the test captures the requirement. Automatic impact graphs can miss runtime configuration or indirect dependencies. A tool that confidently marks every requirement covered can create a new false-confidence layer.

Research directions are more interesting than guaranteed roadmaps. Microsoft's June 2026 CornerCase work extracts protocol constraints and explores boundaries with differential testing. It illustrates targeted property extraction, not universal autonomous QA. The June 2026 Spec Growth Engine proposal connects specification graphs and drift gates; its stated implementation availability and evaluation do not justify treating it as an established enterprise product.

Through 2027, AI-assisted proof construction, maintained business-rule contracts, drift detection and policy-controlled delivery may reduce particular verification costs. Better long-horizon agents may also preserve accumulated obligations more reliably. These are directions to evaluate, not announced guarantees of safe autonomy. Reassess when reproducible results, maintained implementations or the team's own evidence change the investment case—not because another framework becomes fashionable.

An illustrative adoption path begins with one bounded product flow. During the first 30 days, its engineering owner and domain counterpart agree on obligations and baseline accepted-change cost; stop if the boundary or decision cannot be made explicit. By day 60, test one lightweight artifact-first workflow against normal delivery and add independently governed checks for the highest-consequence failures. Train reviewers in properties, oracle errors and agent permissions rather than merely teaching commands.

By day 90, compare accepted outcomes, review effort, escapes and maintenance across comparable changes. Buy maintained testing and agent capabilities where they fit; build only the business-specific rules, fixtures and evidence integration the company owns. By day 180, expand only if observed quality, recovery and total cost justify it. Stop or simplify when documents decay, evaluation becomes a queue, conditions change too quickly for the ceremony or the extra evidence does not alter decisions. Timing is illustrative, not a maturity timetable or guaranteed payoff.

When the lighter workflow is better

Direct prompting plus excellent tests can outperform elaborate specification work. Our pilot leaves that possibility intact. For a small, reversible change with clear existing contracts, the additional artifacts may add reading and maintenance without useful new information. For product discovery, a quickly discarded prototype and customer observation may be more valuable than prematurely precise requirements.

Daily requirement changes call for small versioned deltas and rapid feedback, not a comprehensive document frozen too early. In brownfield systems, characterize important existing behavior before deciding what to preserve or intentionally replace. Do not turn an undocumented defect into an inviolable invariant merely because a generated test captured it.

Some organizations are constrained primarily by product judgment, integration access, deployment infrastructure or ownership. Their most urgent intervention may not be more verification. Conversely, excellent engineering culture does not eliminate a high-consequence oracle problem. It makes the missing evidence and decision owner easier to identify.

The durable advantage is an engineering system that can turn intent into accepted behavior while preserving the company's obligations. Make specifications useful, make acceptance challengeable and measure the full cost of the result. Faster generation earns its value when the organization can decide, with proportionate evidence, what deserves to ship.