Spec-Driven Development With AI Coding Agents
Spec-driven development turns specifications into control systems for AI agents.
Sponsored by Graphide

AI coding agents have produced a result few teams anticipated: individual output accelerates while the team's capacity to review, stabilize, and coordinate that output degrades at the same time. Industrial reports describe this as a productivity paradox, and it is a genuine structural condition, not a perception problem or a training gap. The cause sits in architecture, not attitude. Vibe coding, the free-form natural-language exchange in which a developer accepts, rejects, or refines whatever an agent produces in a tight loop, leaves the sociotechnical structure of the team untouched even as the agent's pace increases, so the coordination mechanisms that once kept a codebase coherent fall further behind with every cycle.
What has changed is the unit of work itself. A single agent session now receives an objective, plans a sequence of steps, edits files, runs commands and tests, reads the results, and iterates, often touching far more of a codebase in one pass than a human engineer would touch in a day. That expansion in scope is what breaks the old assumptions behind code review, ownership, and change management. Three development models now coexist in the same industry, and they do not sit on a smooth continuum from slower to faster. Traditional Agile development with light generative AI assistance leaves the software development lifecycle intact. Vibe coding substitutes an individual's free-form dialogue with a model for a portion of that lifecycle. Agentic Software Engineering, or ASE, delegates goal-level tasks to agents and turns the human role into orchestration and verification.
These three models impose different demands on governance, and the jump from the second to the third is where most teams underestimate what is required of them. A team can grow comfortable with chat-assisted coding, but that does not make it competent in ASE. The governance gap between those two states is specific and documented: Díaz et al. (2026) distinguish the three models explicitly and argue that vibe coding, whatever its convenience for prototyping, fails silently in complex production environments, leaving implicit decisions no one recorded and inconsistencies between components that no one flagged. The acceleration agents provide comes with a cost: it exposes how thin the old coordination mechanisms were. That exposure is what makes a structural response necessary, and it is what spec-driven development is built to supply.
What spec-driven development means when agents are the authors
Spec-driven development, or SDD, reconstitutes under agent authorship the contracts that vibe coding dissolves: accountability for who decided what, verifiability of whether the system does what it was told to do, and transferability of that knowledge across people and across time. Díaz et al. (2026) make this argument directly: they describe SDD as a specification-centric reconstitution of exactly those contracts, where the spec functions as the substrate of agreement between humans and agents rather than as a reference document sitting beside the code.
A specification, built properly, defines three things in a structured, machine-readable format: what the system must do, the conditions under which its behavior counts as correct, and the means of validating that behavior automatically. Code becomes a strictly derived artifact under this model, and the primary site of decision-making moves to the specification. Prada (2026) frames the resulting flow this way: business requirements move into an executable SDD specification, which then produces AI agents and the code they derive. The specification does not describe the system after the fact. It governs the system as it is built.
You have to separate three rungs of rigor that get collapsed together in most discussions of SDD, and that conflation is responsible for much of the confusion around what the practice actually requires. Hartman (Databricks, 2026) lays out the ladder: spec-first, where the team agrees on a specification before any code gets written; spec-anchored, where the specification stays alive alongside the code and the two co-evolve; and spec-as-source, where the specification becomes the primary artifact and the code is treated as a build output of it. Spec-as-source is where most of the public enthusiasm concentrates, but spec-anchored is where the production value actually accumulates for most teams, since it preserves the specification as a living reference without requiring the organization to rebuild its entire delivery pipeline around code generation from a formal artifact. The major frameworks operationalize this through a canonical staged workflow: Specify, Plan, Tasks, Implement, with a human checkpoint at each phase boundary. Those checkpoints exist to stop drift before it compounds across phases, because that is cheaper than catching it after three phases have been built on a flawed assumption.
A usable specification is an executable spec, distinct from a raw spec that is merely decorative. A raw spec states intent in natural language, readable by a person but not evaluable by a machine. An executable spec declares that same intent in a form an agent can interpret and a gate can check automatically, so it works as a control system input, not documentation. Hartman (Databricks, 2026) states the control-system framing without softening it: once an agent is writing the code, the development framework becomes the control system for a non-deterministic worker, and its job is not to make a developer more productive but to constrain a probabilistic process so that its output can be trusted. That framing is the hinge the rest of this argument turns on, because a probabilistic worker under loose constraints will produce two specific and recurring failures.
The two structural failure modes that any spec approach must solve
Agents introduce two failure modes that existing spec-first approaches do not fully solve on their own, and both come from how agents operate, not from any failure of individual discipline. Grabowski (Hochschule Offenburg, 2026) names them precisely: context explosion, in which the agent must reason over an entire repository at once and quality degrades as the context window fills, and silent spec-code drift, in which the code evolves while the specification stays frozen and the resulting divergence stays invisible until it becomes expensive to fix.
Context explosion is an architectural boundary problem before it is a performance problem. Without a principled way to scope what an agent is allowed to see, "give the agent everything relevant" collapses quickly into "give it the whole repository," and an agent reasoning over the whole repository will conflate concerns from unrelated modules, producing fixes that reach across boundaries it was never asked to touch. Grabowski (2026) documents the measurable consequence of this: a strong model's performance on a long software-engineering benchmark collapsed as the context window grew from 32K to 256K tokens. What's missing is a mechanism to limit how much of the rest of the system the agent working on one module is allowed to know. Lacking that mechanism, a team is left with two bad options: feed the agent everything, which is expensive and noisy, or guess at what matters, which is fragile and inconsistent from one session to the next.
Silent spec-code drift is the quieter failure, and it is more dangerous because nothing in a standard pipeline announces it. Grabowski (2026) traces the mechanism: an agent changes the code, nobody updates the specification to match, the test suite still passes, and no signal anywhere flags the divergence. The specification, over enough iterations, stops functioning as a living contract and becomes a historical record of what the system used to be. Every future agent run that consults it is being guided by an account of the system that is no longer true. A passing test suite does not tell you whether the structural intent behind a change still matches the specification that was supposed to govern it. That is a silent failure mode by construction, since it never trips a pipeline the way a failing test would. Independent measurements of the AI-assisted era support this concern at the level of aggregate code health: duplicated code has risen as a share of changed lines, a maintainability signal moving in the wrong direction even as raw output accelerates.
Both failure modes share a cause. They originate in how agents reason over context and how specifications age, not in any individual engineer's carelessness, and that is why a disciplinary fix, telling developers to write better prompts or review more carefully, cannot resolve them. Only a structural fix, built into the tooling and the pipeline itself, can hold against failures that are themselves structural in origin.
How enforcement modes differ across the spec-driven framework landscape
The frameworks that have gained traction since 2025 agree on one premise: intent has to be captured up front, in some durable artifact, rather than negotiated turn by turn inside a chat window. Where they diverge, sharply and consequentially, is in how each one enforces the engineering discipline that keeps agent-written code clean, correct, and maintainable once that intent has been captured. Hartman (Databricks, 2026) characterizes three enforcement modes across the landscape. The weakest relies on prompt discipline the model is free to ignore. Enforcement by front-loaded structure relies on a strong specification followed by a build process the team chooses to trust. Enforcement through controls the agent cannot edit relies on a deterministic orchestrator, human-approved gates, immutable tests, and a green result that has to pass against a live, branched database.
The weakest of the three, persuasion, is what most teams are actually running when they believe they have adopted SDD. The specification exists on paper, but nothing in the pipeline stops an agent from satisfying its letter while violating its intent, or from reporting success that it did not in fact achieve. That gap between a specification that exists and a specification that is enforced is the entire difference between the three enforcement modes.
The comparative taxonomy assembled by Macedo (Federal Institute of Goias, 2026) evaluates six frameworks against six process dimensions: specification, context, roles, execution, validation, and portability. The six frameworks it covers, GitHub Spec Kit, OpenSpec, BMAD Method, Get Shit Done (GSD), Spec Kitty, and Reversa, each take a distinct path toward the same general goal, and none of the six scores strongly across all six dimensions at once. GitHub Spec Kit treats the specification as a central artifact that feeds plans, tasks, and implementation in sequence, a design comparable in spirit to AWS Kiro, which reached general availability on November 17, 2025. BMAD Method, standing for Breakthrough Method for Agile AI-Driven Development, is open-source and organizes planning, architecture, and implementation into phases carried out by specialized agents. Reversa works from the opposite direction: it applies reverse documentation engineering to extract operational specifications from legacy software that never had one, addressing codebases where no formal intent was ever written down. GSD, OpenSpec, and Spec Kitty are lighter-weight by design, covering context engineering over the agent, worktree isolation and review, and agent-driven agile planning, respectively. Among the frameworks that adopt any formal process at all, a clear pattern emerges: the isolated prompt loses its centrality, replaced by persistent artifacts, explicit work contracts, traceability, and human review as the mechanisms that actually reduce ambiguity and coordinate multiple agents working in parallel. A persistent tension runs through all six: process depth and portability across different agent platforms pull against each other, and this tension produces a taxonomy in which no framework resolves both at once.
Consort, built at Databricks, represents the strongest enforcement mode described in the current literature: controls the agent operates inside but cannot bypass. Hartman (Databricks, 2026) describes it as spec-first and test-driven, built on a deterministic conductor that drives separate role agents through a spec-first design lane and a red, green, refactor build lane, with all of it executing on a live, branched database. The tests and the gates in Consort live in code, which an agent cannot disregard the way it might disregard prompt text. The specialized roles inside Consort mirror the human roles they stand in for, and that mirroring is what keeps the resulting output maintainable: accountability attaches to a structural role in the pipeline rather than to a model's reputation for following instructions. Domain-specific governance tooling is moving in a parallel direction: specialized platforms now provide governance, security scanning, and audit logging for AI coding agent skills across an organization, a further data point on enforcement built into infrastructure rather than left to prompt text.
The spec graph as architectural contract: encoding structural intent in machine-readable form
Enforcement mechanisms only work if the specification they enforce encodes the right thing, and feature intent alone does not do that. A specification has to encode architectural intent as well, and the two kinds of intent need to be kept structurally separate for any enforcement mechanism to mean anything. Grabowski (Hochschule Offenburg, 2026) introduces the spec graph as the mechanism for this separation: a machine-readable graph whose nodes carry an explicit split between contract and design, where the contract states what a module promises to the rest of the system and the design states how that module fulfills the promise internally.
That split is not a documentation nicety. It determines what an agent assigned to one module is permitted to know about any other module, and it determines what a CI gate can check without reading a module's implementation internals. The Spine context assembler, which follows directly from this contract/design split, scopes an agent's context to an ownership path, the route from the root of the system down to the target module, plus the contracts (not the implementations) of whatever dependencies that module declares. The agent sees what it needs to do its assigned work and nothing that would tempt it to reach past the boundary of that work.
Conventional agent configuration files represent an early, informal version of the same instinct. Teams writing version-controlled convention files that travel with the repository, rather than relying on instructions typed fresh into each session, converged on this pattern from nothing, independently, across the current generation of agent tooling, which suggests the underlying need is real rather than fashionable. The spec graph formalizes and enforces what those files only approximate. An AGENTS.md file is a prompt an agent can choose to ignore. A spec graph node is a contract a CI gate can evaluate mechanically, and that gap in enforceability is the entire reason one approach scales to team-level governance and the other does not.
Grabowski (2026) builds the rest of the framework, the Spec Growth Engine, by synthesizing established software engineering principles rather than inventing new ones: Parnas information hiding, the C4 model, architectural decision records, the Walking Skeleton pattern, reflexion models, and fitness functions. So the result stays deliberately lean, and it avoids the overhead that heavier frameworks such as RUP or MDA impose on teams that adopt them. Its companion mechanism is a vertical-slice growth protocol that enforces hardest-first ordering: the structural decisions that constrain everything built afterward get specified and verified before the agent generates anything downstream of them. If you order work this way, you close off the most expensive category of drift, the one in which an early structural mistake propagates quietly through every subsequent agent run until the specification itself no longer describes the system it was meant to govern.
Sources
- From Prompt to Process: a Process Taxonomy and Comparative Assessment of Frameworks Supporting AI Software Development Agents
- Spec-Driven Development in 2026: The end of code as the center of development?
- Spec-Driven Development for Agentic Software Engineering: Harnessing Human-Agent Teamwork
- The Spec Growth Engine: Spec-Anchored, Code-Coupled, Drift-Enforced Architecture for AI-Assisted Software Development
- Introducing Consort: A Spec-First Agent Framework for Enforced, Test-Driven Development on Live Database Branches


