Definition

Spec-driven development (SDD) is an AI-assisted software engineering workflow in which a structured specification becomes the source of truth for implementation. Instead of prompting an agent to generate code directly, the workflow moves through requirements, design, implementation planning, task decomposition, and code generation.

Why the term crossed into a category

Spec-driven development has moved from a tool-specific feature into a durable category term. AWS positions Kiro around spec-driven development, describing specs as structured artifacts that turn high-level ideas into implementation plans with tracking and accountability. GitHub has published its own Spec Kit methodology, in which specifications generate implementation rather than merely informing it. JetBrains has covered the workflow for AI coding agents, and the wider ecosystem now includes active open-source projects such as OpenSpec and cc-sdd.

The shared idea across these tools is the same: the specification is promoted from a document you read into an artifact the system acts on.

The workflow

Spec-driven development replaces loosely prompted generation with a structured sequence. Rather than going straight from prompt to code, the work flows through explicit stages:

Requirements Design Implementation plan Task decomposition Code generation

Each stage narrows ambiguity before the agent writes code. The specification is the contract for what the system should do, and the plan and tasks decompose that contract into work an agent can execute.

Specs solve generation ambiguity. They do not solve architectural governance.

This is the part worth being precise about, and the page is not dismissive of SDD: structured specs are one of the healthiest responses to unstructured “vibe coding.” A spec can define what an agent should build. It does not, on its own, answer a separate question:

Which architectural decisions must remain true while the agent builds it? A change can satisfy its feature spec and still introduce a forbidden dependency, bypass an approved abstraction, use a deprecated service pattern, or violate an ADR.

Specification and governance are complementary layers, not competing ones:

  • Specification — what should the agent build?
  • Architectural governance — which decisions and invariants must constrain the implementation?
  • Verification — how do we prove the output complied?

Read top to bottom, that composes cleanly: intent becomes a specification, the specification becomes a plan and tasks, governance constrains the implementation, the agent executes, and verification contracts prove the result held the line.

A specification is not an architectural decision

A specification and an architectural decision can contain the same sentence and still be different objects. A specification is scoped to a change: it says what one feature or fix should do, and its job is done when that change ships. An architectural decision is scoped to the system: it says what must stay true across every change that comes near it, and it stays in force until someone with the authority to change it supersedes it.

  • Scope. A specification covers one change. A decision covers the system, or a named part of it.
  • Lifetime. A specification is finished when the change ships or is archived. A decision lasts until it is explicitly superseded or retired.
  • Authority. A specification is approved as part of one change. A decision is accepted by the people who own the architecture.
  • Use by an agent. A specification is context for building this feature. A decision is a constraint that every later change is checked against.

This is why pasting a spec into an agent's context does not turn it into a guardrail. “Use Amazon Simple Queue Service (SQS) for the invoice job queue” in one feature's design file is a choice made for that feature. “All asynchronous jobs use the existing SQS worker service” is a decision about the system. Only the second should stop a future change, and only after a person has accepted it as a decision.

Specs as decision evidence

SDD tools write down architectural choices as a side effect of their workflow. That makes their artifacts useful evidence of what a team decided, even though none of them is a decision record. In four widely used tools, the choices land in specific places:

  • GitHub Spec Kit. The project constitution, stored at .specify/memory/constitution.md, holds principles with a version number, a ratification date and a last-amended date. The plan step checks the plan against the constitution as a gate and writes a research.md file that records each choice as a decision, a rationale and the alternatives considered.
  • OpenSpec. Each change is a folder with a proposal (why), a design (how; the documented example has an “Architecture Decisions” section) and delta specs that add, modify or remove requirements. Archiving merges the deltas into the main specs and moves the folder to changes/archive/ under a date prefix.
  • Kiro. A spec produces requirements.md, design.md and tasks.md, with the technical architecture in the design file. Separately, steering files in .kiro/steering/ give Kiro persistent project knowledge, and the default structure.md covers file organization, naming conventions, import patterns and architectural decisions.
  • BMAD (Breakthrough Method for Agile AI-Driven Development). Its architect agent writes a short shared architecture document that records only the choices where independent builders could pick incompatible approaches, and gives each one a stable decision ID that epics and stories can cite. It can also help write short architecture decision records (ADRs).

Evidence is not authority. A decision in a design file was accepted for one change, by whoever approved that change, at that time. A later change may have superseded it, another spec may contradict it, and it may never have been meant to apply beyond one feature.

Spec files also age. In a 2026 study that combined interviews with 21 practitioners and a corpus of spec files from 73,030 public GitHub repositories, Agarwal, Singhal, Macvean, Vasilescu and Breaux report that practitioners checked specs against code mainly when a change was completed, not over time, and suggest that implementation detail makes specs prone to decay.

Turning that evidence into decisions an agent must respect takes three steps that the SDD tools leave to you: find the candidate decision in the artifact, check it against later changes for supersession or contradiction, and have a person who owns the architecture accept, modify or reject it. Whether the first two steps can be done reliably from spec artifacts is an open research question, the same one decision recovery from code and commits faces.

Mneme does not read spec artifacts as decision sources today. A decision that a person has accepted is recorded in the Decision Index, Mneme's versioned record of decisions and their lifecycle, and constraints written into it, such as a forbidden literal or a forbidden dependency, are checked deterministically in supported coding agents and in CI.

Where it sits in the Mneme ontology

Spec-driven development is an important development paradigm around Mneme, but Mneme does not own the term. The owned concepts in this ontology remain architectural governance, governance before generation, verification contracts, enforcement provenance, and architectural drift. SDD is the spec-surface neighbor that governance plugs into:

  • It depends on governance before generation — constraints injected before the agent acts on the spec, not after the diff exists.
  • It produces and validates verification contracts — the spec says what to build; the contract proves the build complied.
  • Without it, architectural drift still accumulates — a spec-conformant change can drift the architecture.
  • It relies on decision continuity — decisions must survive across the sessions and tools that execute a spec.
  • It is the spec-surface peer of agentic IDE governance, which constrains the same agents at the IDE-execution surface.

Specs improve generation. Governance preserves architecture.