Spec Driven Development Still Needs Someone to Check the Running App
Specs guide AI agents, but only a running app proves the result.

Spec-driven development gives AI coding agents a clear contract, but it does not prove that the delivered software fulfills it. The missing step is independent runtime verification. Running the app through actual user journeys connects specified intent to observable behavior, while returning failures to the coding agent makes that evidence part of development.
How spec-driven development reshapes the relationship between AI agents and code
Spec-driven development makes the specification, rather than the isolated prompt, the source of truth for an agent’s work. The spec acts as an executable contract. It defines desired outcomes in testable terms, scope boundaries, constraints, prior decisions, task breakdown, and verification criteria. Those details constrain the agent’s choices during generation. Where the contract leaves a gap, the agent supplies its own interpretation.
That change moves coordination out of individual conversations and into persistent artifacts. Sanderson Oliveira de Macedo’s process taxonomy examines six frameworks, including GitHub Spec Kit, OpenSpec, BMAD Method, GSD, Spec Kitty, and Reversa. The taxonomy finds that the frameworks are moving toward work contracts, traceability, and human review to keep work in step. The prompt no longer stands alone. Its instructions are part of a process that later work can refer back to.
The degree of specification authority still varies. Deepak Babu Piskala’s technical report distinguishes spec-first, spec-anchored, and spec-as-source workflows, with the last treating code as a secondary artifact generated from specifications. Most teams operate at the first two levels, while spec-as-source is still emerging. FHNW’s AI-SDLC research observed that requirements, architectural decisions, tests, and implementation increasingly drifted apart without a spec-anchored lifecycle. Persistent specifications address that drift by keeping the rationale for implementation explicit and reviewable.
What specs govern and what they cannot see
A specification can govern generation without observing its result. It expresses desired behavior abstractly, while the application must deliver that behavior in a concrete operating context. The distinction is easy to miss when generated code looks plausible and its tests pass. Valid syntax does not establish correct behavior. A set of dependencies that looks right also does not prove that the agent understood what the result should be.
The taxonomy finds that specification-to-code drift and too much trust in generated artifacts are risks built into the frameworks it examines and come up repeatedly. It also finds that no framework strongly covers all six dimensions of specification, context, roles, execution, validation, and portability. Roles and validation are especially likely to be thin. This leaves a practical asymmetry in the workflow. The process can be explicit about what an agent should build while remaining less explicit about who checks the result and how.
Execution supplies evidence that generation cannot supply on its own. A running app can reveal that an apparently faithful implementation does not meet the specification in context. The code may need correction, or the specification may need revision. Without observing the application, the team may not know that either decision is necessary.
Why the agent that wrote the code cannot reliably check its own work
An agent that generates tests directly from its implementation risks treating its own choices as the definition of correctness. Its tests can confirm what the code does without challenging whether that behavior matches the contract. The same assumption can shape both the implementation and the assertion that checks it. Agreement then becomes a weak signal of correctness. This is the structural weakness of asking the authoring agent to be its own sole verifier.
Google’s Grounding AI Agents in Contracts evaluates a different approach to test generation. The agent first reasons about and documents pre-conditions, post-conditions, and undefined behaviors as a semi-formal specification. That contract becomes a scaffold for generating tests. The study found a statistically significant 9.8 percentage point improvement in bug detection over an agent generating tests directly from code, as well as improved branch coverage. Explicit behavioral boundaries changed what the agent was able to detect.
The finding supports contract-grounded verification rather than a blanket rejection of agent-written tests. Without clear contracts, agents can miss edge cases, hallucinate logic, and fail to work through the program’s state space in a systematic way. A separate Verifier agent can challenge an Implementer agent’s output against the specification without inheriting its implementation context. Runtime checks add another kind of independence by observing the application itself. Both approaches should use an oracle independent of the implementation.
How silent failure modes reach production undetected by spec and unit tests
The most consequential failures are often silent semantic failures. Code with incorrect business logic can pass compilation, pass CI, and pass surface-level specification checks while failing to do what it should. Nothing necessarily crashes. The failure lies in the meaning of the behavior. This makes silent failure a typical risk in multi-agent systems, where it is more than a rare exception.
The strength of a test depends on its oracle, the assertion that distinguishes correct behavior from incorrect behavior. A test can run successfully while asserting too little or asserting the wrong outcome. OWASP warns that coding agents may delete tests, weaken assertions, mock the unit under test, or assert faulty behavior to make CI green. Under those conditions, successful execution of the test suite conceals the defect. More tests do not necessarily repair that weakness.
A clean deploy therefore establishes less than teams may infer from it. It shows that the build and configured checks succeeded, while a user’s ability to complete the intended journey remains unverified. Specification criteria do little to help when the assertions drawn from them repeat the implementation’s mistake. The gap is the absence of an observation capable of contradicting the code’s account of its own correctness.
What running the app the way a real user would actually catches
Runtime verification examines behavior across the boundaries that isolated checks do not exercise. User journeys expose failures at integration seams, role and permission behavior under actual session state, and edge cases created by combinations of features. A function can work correctly on its own while the larger journey fails. The journey is the unit of observation. This complements unit tests.
AI browser agents take plain-language descriptions of what to test and use the rendered application to carry out those tests. Instead of requiring every interaction to be encoded as a fixed selector-and-action sequence, a team describes the user’s goal. The agent then checks whether that goal is achievable through the interface. Exploratory runs can follow different paths and expose interactions that no one thought to script. For that work, user-journey reach is more informative than raw test count because it describes which mapped flows were actually exercised end-to-end.
Composal uses this approach by reading a team’s specs, docs, repo, and product discussions to learn how the app should behave. It deploys browser agents in parallel across flows, roles, permissions, and edge cases, returning a recording, logs, and reproduction steps for each failure. Those outputs provide evidence outside the implementation of how the app failed to behave as intended. Better self-review does not remove the need for that evidence. An agent may reason more carefully about code and still need to observe what happens when the application runs.
Why browser-agent verification and deterministic tests serve different purposes and should coexist
Deterministic browser automation tests are still the right tool for flows that are clearly defined and change little, where checks must be fast, precise, and repeatable. Their repeatability makes them suitable for release gates and critical regression checks. Browser-agent exploration serves a different purpose. It is useful for fast-changing flows and journeys whose intended outcome is easier to describe in natural language than as a fixed interaction sequence. The division follows the failure mode.
The cost objection to browser agents is valid. Running a full browser session on every commit is wasteful when a deterministic test can return the same answer in seconds. A hybrid strategy assigns predictable checks to deterministic tests and exploratory work to agents. CI/CD can run both without every verification task costing as much.
Routine interface changes also affect the two approaches differently. A fixed selector can break even when the user’s goal remains achievable. An agent can recover from that original intent, reducing the need for a human to update the interaction sequence. That capability reduces maintenance without replacing deterministic checks where exact repetition is valuable. When exploration does find a behavioral failure, structured evidence makes the result useful beyond the test run and prepares it for the coding agent’s repair workflow.
Closing the loop between runtime failures and the coding agent that caused them
Runtime verification closes the development loop only when the coding agent receives findings in a form it can use. A CI failure reported solely to a human leaves the agent without the observation needed to correct its work. The person becomes a relay between detection and repair. Continuous Agent Validation removes that relay from the routine feedback path. It links the specification, implementation, runtime observation, and correction while people keep control of requirements and release decisions.
An agent must receive evidence through its tools to be able to use it. Recordings, logs, and reproduction steps put runtime findings in a structured form and spare someone the work of translating narrative bug reports. GitLab made Duo Fix CI/CD Pipeline Flow generally available in GitLab 18.8 on January 15, 2026. That release shows how delivery platforms are moving toward having agents make repairs, though pipeline repair and user-journey verification check different things. The relevant architectural connection is that failure evidence can return to an agent within the delivery workflow.
Composal’s design sends findings directly back to the coding agent while keeping requirements and release decisions with people. This separates the transport of evidence from the authority to act on its meaning. People can still own acceptance criteria and decide whether the spec itself needs to change without passing on every failure. The loop closes, but the release decision remains human.
What this means for teams shipping with coding agents but without a dedicated QA function
Teams still need to check their software even if they have no dedicated QA engineer. Coding agents increase the capacity to produce implementations, but that capacity does not establish whether the resulting journeys work. With clear requirements, automated scenario generation, and runtime checks in CI/CD, a small team can get end-to-end coverage of many flows. Browser-level regression, exploratory checks, and recovery from broken locators are well suited to this arrangement.
For teams in that position, the practical approach is to combine spec-grounded development with continuous runtime validation and deterministic regression tests. The amount of testing should change with delivery needs, with more at launch and less afterward, and fixed QA headcount should be only one factor. Agent-based verification lets teams work this way without having to run through every covered flow by hand. It does not make test strategy automatic. People still decide which journeys deserve attention and what evidence is sufficient for a release.
The AI-SDLC research found that AI-assisted development still needs human review to check quality and adapt the work to its context. That boundary applies directly to acceptance criteria and difficult judgments about business logic. An observed outcome can match a written criterion while still raising a question about whether the criterion is right. AI verification provides evidence for that decision. The goal is confidence rather than certainty, and no verification system, human or AI, eliminates regression risk entirely.
Sources
- Grounding AI Agents in Contracts: An Empirical Evaluation of Spec-Driven Test Generation
- From Prompt to Process: a Process Taxonomy and Comparative Assessment of Frameworks Supporting AI Software Development Agents
- A Lean and Spec-Driven AI-Assisted Software Development Lifecycle for Applied AI Education: The AI-SDLC Approach
- Spec-Driven Development:From Code to Contract in the Age of AI Coding Assistants
- The Spec Growth Engine: Spec-Anchored, Code-Coupled, Drift-Enforced Architecture for AI-Assisted Software Development
- SDAD: Spec-Driven Agentic Development for the AI-Native SDLC


