Is Spec-Driven Development Just for Show?
My old friend Jiang was taking on the whole software engineering group chat again today. The subject was spec-driven development (SDD). One of his opening lines was “Anyone who writes a spec at my company is fired.” Everyone piled in. Jiang was having a great time.
For all the heat, the two sides are closer than they sound. Most of the argument comes down to what each side means by “spec.” Jiang objects to long-winded design documents that are out of date the moment they’re written. What the SDD side wants to keep is a record of intent, constraints, trade-offs, and acceptance criteria. By the end, Jiang’s position had narrowed to “don’t put too many constraints on the model” and “these two lines are the spec—the function signature and the type constraints.” That’s a spec too.
The original question and the AI’s full analysis
The question
This came up in our group chat. All I could capture was the text.
One side thinks SDD is good. The other thinks it’s useless. Can you sort through what they said, lay out each side’s main arguments, and tell me which side has the better case?
The AI on who said what
The chat transcript doesn’t identify the speakers. I’ve grouped the comments by argument. In a few cases I inferred who was speaking from context.
The case against SDD (Jiang’s side)
- Code is the only source of truth that stays current. Documents go stale and leave room for interpretation. When integrating with someone else’s system, the skeptics would sooner have the source code than the documentation. When taking over a project, the repository itself gives them the best context. The long “Code Is the Best Spec” post someone shared, citing Reeves’s 1992 essay, makes the theoretical case for this view.
- Keep the spec as small as possible. Say what you want, write a few lines of function signatures and type constraints, and leave the model to write tens of thousands of lines of implementation. The person arguing that “types are the spec” made two further points. If you express a spec in the type system, the compiler checks it and keeps it in sync. An agent can also read just the signatures, leaving more room in its context window.
- Getting people to agree is the expensive part. In this view, the spec is just the peace treaty they end up signing. Getting two people on the same page is much harder than doing the same with an agent. Jiang’s teams work in groups of two or three, each responsible for the whole job. The less coordination they need, the faster they work. Why have a product manager write up requirements when they could deliver the HTML directly?
- Today’s leading models already know enough software engineering. For things that are hard to describe in writing, like a GUI or a game, rolling the dice with a model can get you a better result than designing it yourself.
- Look at what shipped. There are projects on GitHub and plenty of features already integrated into the product. The company ran the experiment from March through June. People who couldn’t adapt were let go. Those who stayed “all think it works pretty well.”
The case for SDD and engineering constraints
- Getting one good roll comes down to the model. Getting a good roll every time takes engineering (
pass@kversuspass^k). Constraints make repeated success possible. Without them you end up playing whack-a-mole. Fix one problem and two more pop up. - Code records which option you chose. It can’t tell you why you ruled out the others. That’s where an architecture decision record (ADR) earns its keep. An AI will try anything to reach its goal. Unless you write down “we discussed this route and ruled it out,” it will keep coming back to it.
- Scale matters. A solo developer or a small startup can get by without a spec. That stops working when dozens or hundreds of people build one product, when teams depend on each other, or when they have regulatory and quality-system documents to maintain.
- It’s hard to teach this method to anyone else. It depends on top-tier models and “star employees.” Asked whether the people around him could adopt it, Jiang’s answer was “anyone who doesn’t fit is out.”
- Naming things in code is only part of design. AI-generated code is full of jargon that makes sense to a model and leaves a human reader guessing.
- Types can’t cover a complex state space. They can describe a mathematical function. A GUI or a game has far too many possible states to enumerate that way.
- People have seen documentation work. It’s part of engineering the software and a source of context in its own right. One participant’s agent team keeps its memory and history in
docs/. With SDD, “at least there are some ground rules.”
The middle ground had the most to offer
- The real question is how much to specify. What’s the right way to get from intent to code, given the project and the resources available?
- Nobody agreed on a definition of “spec.” One suggestion was to call the long document a spec and the statement of purpose and boundaries the intent.
- Formal methods can be useful even when they cover less than 100% of the software. Verifying a state machine alone is worth doing.
My judgment
If I have to pick a side, SDD has the better answer to the more fundamental question. We need constraints beyond the code. Jiang is right about how much to write and what form those constraints should take. On balance, then, I side with SDD. A lightweight spec is enough. That’s a long way from signing up to maintain a pile of Markdown files.
Neither side answered the other’s strongest argument.
The best case for SDD is the part of an ADR that says why you rejected an alternative. Code has no way to express that knowledge. An agent reading the current code can’t see the options you discarded, so it keeps proposing a refactor you ruled out long ago. Even the “Code Is the Best Spec” post ends by recommending ADRs and short RFCs. The most thorough argument against specs makes that concession itself.
The strongest objection is that documents go stale and the context keeps growing. The SDD side had little to say about who would keep the documents current or how. Someone in the chat said, “When the model kept getting slower, I deleted
agents.mdand all the tests.” Too much documentation really can hurt. Deleting the tests goes too far, though. A test is an executable spec, precisely the kind of thing the “code is the spec” argument relies on.“Types are the spec” makes a case for specs.
Take the Riemann hypothesis example from the chat. You can state it formally in a few hundred lines. Proving it is another matter. That’s about as pure an example of spec-first as you’ll find. Write a machine-checkable specification independent of the implementation, then make the implementation satisfy it. The objection here is to writing specs in natural language.
That approach has limited use in mainstream software. To express meaningful propositions through the Curry–Howard correspondence, you need a dependent type system like the ones in Lean and Coq. TypeScript, Go, and Rust can check the shape of a value without guaranteeing the behavior. Two examples came up later in the chat. Whatever caused the seat-selection system failure, no function signature captured the requirement that all 300 students competing for 320 seats should get one. The ten people in development and testing missed it too. Who should receive the meeting minutes? That’s an access-control and data-security rule, also absent from the signature. Specs earn their keep where types fall short. That includes concurrency, performance, permissions, business invariants, and explicit non-goals.
Dismissing a 1992 argument as “archaeology” is weak. Reeves’s premise does need updating.
An argument has no expiration date. When Reeves said that coding was design and compiling was construction, he assumed people wrote the code. Now AI writes it. Code is still the only exact design. What people write and review has shifted to intent, constraints, and acceptance criteria. The question becomes how much of that a person should write.
The economics have changed, too. Documents used to go stale because people couldn’t be bothered to keep them in sync. An agent can update them in the same pull request at almost no cost. Letting them go stale is now a choice teams make about their process. An AI can also generate documents at almost no cost, which makes it easy to bury a project in them. Both sides need to update their arguments.
Jiang’s evidence holds up under some demanding assumptions.
He’s a CEO who can let people go. His teams of two or three work on a product the company owns. One person has the final say. They use top-tier models and face little regulatory oversight. You can work without a written spec under those conditions. A small team really does need less coordination. But consider the claim that “after 630, the people who couldn’t adapt were let go, and everyone who stayed thought it worked pretty well.” That tells you how the team was selected. It hardly gives you a method for other teams to follow. When asked how to extend the experiment to others, Jiang again said he’d let people go.
One other question went unanswered. Someone pointed out that a spec gives the engineer prompting the model something to check the result against. Jiang replied, “Then you might as well have the product manager prompt it directly.” That just moves the question. How does the product manager decide whether what came back is good enough to accept?
I’m less persuaded by the objection about needing top-tier models. Models keep getting cheaper. Betting on a good one is rational. The real question is whether you can reproduce the result. One successful roll tells you little about whether you’ll succeed every time. We’re back to
pass^k.The SDD side could have argued its case better, too.
“AI dividends for the rich,” “star employees,” “archaeology,” “dodge again,” “sophistry” — a lot of that was aimed at the person. Add old grievances over people being kicked out of the chat and it got hard to hear the argument. The points that stood up best, on ADRs,
pass^k, and scale, got the least discussion.
How I’d put this into practice
I’d take something from each side and keep the spec lightweight.
- State the intent. In a paragraph or two, say what you want, what you want to exclude, and where the boundaries are.
- Let machines check what they can. Use types, interface contracts (OpenAPI or Protobuf), and tests. Express critical state machines as models or property tests. This part of the spec stays current.
- Write an ADR for what a machine can’t check. Keep it short. Record the trade-offs and the alternatives you ruled out.
- Keep docs and code in the same repository and update both in the same PR. Delete obsolete material. Leaving it around as a historical record just feeds stale context to the agent.
- Decide how much else to write based on the project. How many people and teams are involved? Do other teams or customers rely on an interface contract? How tightly regulated is the work, and how long will you maintain it? Compatibility work, protocol implementations, and projects that combine pieces of different kernels stand to gain the most from SDD. The behavior of the system you need to match gives you a ready-made spec from which to derive tests.
If you want to post this back to the group, I can condense it to 300–400 Chinese characters.
I’m in favor of SDD. I also think Jiang is half right.
If SDD means churning out reams of waterfall paperwork (first the BRD, then the PRD, then the SRS), good riddance. Those documents start going stale the day you finish them. Three months later they’re actively misleading new hires. These days they lead coding agents astray too.
| Stage | Common documents | Terms and abbreviations |
|---|---|---|
| Requirements | Business, market, and product requirements, plus the software requirements specification | BRD, MRD, PRD, SRS, user stories with acceptance criteria, use cases |
| Design | Architecture documents, high-level and detailed designs, design documents, architecture decision records, interface specs, data models | SAD, HLD/LLD, design doc/RFC, ADR, OpenAPI, ER diagram, threat model |
| Development | Project overview, contribution guide, coding standards, code comments, changelog | README, CONTRIBUTING, style guide, CHANGELOG, Conventional Commits (commit message convention) |
| Testing | Test plans, test cases, test reports | Test Plan / Test Case / Test Report |
| Release and operations | Deployment and operations manuals, contingency plans, incident reviews, service objectives | Runbook, playbook, SOP, postmortem, SLO |
| Project management | Project charter, roadmap, work breakdown, risk register | Project Charter, Roadmap, WBS, Risk Register |
The other extreme is to skip the spec entirely and keep rolling the dice in the chat window. That’s fine for trying out a model. Ask it to draw a pelican riding a bicycle and see what you get. Run a large project that way and sooner or later your luck runs out.
Over the past few months, Jiang has built four or five database projects with AI. The sheer volume of code is impressive. There’s also precisely zero documentation. Projects like that are a blast when you’re the one writing them. Hand one to an employee to maintain and they’re probably cursing you under their breath. All the context lives in your head and your chat history. The next person can’t pick up where you left off. Give it three months and you might have trouble following it yourself.
As the argument wore on, Jiang gave a little ground. What he meant, he said, was “Don’t put a bunch of pointless constraints on the model.” Then he added, “A lot of the time you have to spell out what you want.” Well, if you’ve spelled out what you want, haven’t you just written a spec? What we still disagreed on was how detailed it should be, what form it should take, and how to maintain it.

A lucky roll can get you a demo. Shipping takes engineering.
A lucky roll shows what the model can do once. Getting reliable results change after change takes engineering. You can prompt your way to an impressive demo pretty quickly. Luck won’t carry a complex system through a year or two of changes. Without a clear spec, the agent fixes one thing and breaks another, and you’re stuck playing whack-a-mole.
Last year, Birgitta Böckeler of Thoughtworks wrote about SDD on Martin Fowler’s site. She grouped current practice into three levels.
- spec-first — Write a spec to guide the work. Once the work is done, set it aside.
- spec-anchored — Keep the spec around and let it evolve with the code. When you change the code, update the spec too.
- spec-as-source — The spec is the source. People edit the spec. All the code is generated, and nobody edits it by hand.
Looking back, that’s how waterfall teams ended up buried in paperwork. Everyone was supposed to keep the documents up to date. In practice, the whole process degenerated into spec-first. You wrote the thing and never looked at it again. At the other end of the scale, spec-as-source is still a pipe dream with today’s tools.
For my own projects, I’ve settled on the middle option, spec-anchored.
The spec serves as the project’s memory. It’s also where the agent reports back on its work. I spent a good chunk of time building Oink, a documentation framework, specifically so I could work this way.
- Why a Doc Framework Became My Delivery Backbone
- How Oink Adapts the Look of Anthropic’s Website
- OINK: After Six Years of Wrestling with Documentation Frameworks, Codex Finally Got Me Over the Line
- How Do You Sign Off on a Pile of AI-Generated Crap?
Get the context in order before you tinker with the tools
So how do you actually run a spec-anchored project? Ask an AI and it’ll give you a long list. There’s GitHub’s Spec Kit, there’s OpenSpec, and Amazon has built the whole SDD workflow into its Kiro IDE.
GitHub Spec Kit is the most widely used. The basic workflow is Spec → Plan → Tasks → Implement. For a formal project, the full sequence is constitution → specify → clarify → plan → checklist → tasks → analyze → implement → converge. The project “constitution” sets out fixed principles that apply throughout the work.
Amazon Kiro automatically generates three files for each spec. requirements.md says what the system should do, design.md says how, and tasks.md breaks the implementation down into tasks you can carry out. Kiro also has a Design-First mode for systems with strict nonfunctional requirements such as latency, throughput, or compliance.
OpenSpec is lighter. Its usual workflow is propose → apply → archive. Each change is a delta against a persistent spec that serves as the source of truth. That makes it a good fit for a legacy codebase. In November 2026, Thoughtworks moved OpenSpec to Trial, meaning it recommended trying the tool.
I think most of these tools barely scratch the surface. Installing an SDD framework or a ready-made skill won’t make you a better engineer overnight. You can pick a fancy orchestration tool and collect all the skills you like. You still have to decide what belongs in each document, what rules to set, and how to organize the context. For me, context management is the first problem to solve when building software with agents. Once the context is in good order, the choice of tool or skill is a minor detail.
What does that look like in practice? I recently wiped my old M1 Max Mac and reinstalled everything. Rebuilding my development environment from scratch gave me a chance to sort through all the context and rule files I’d accumulated. I’ve been organizing a few new projects this way, and one makes a good example.
I started Mimus today. The idea is to get one PostgreSQL kernel speaking several SQL dialects. That’s a sizable project by any measure, and I’m using SDD to build it. It’s getting late, so I’ll walk through the details tomorrow.
The Mimus project records and public documentation below are from 2026-11-30.
17 specs · 15 in progress, 2 completed
A spec says what to build, how to build it, and how to verify it. Each spec starts as a file and gets its own directory if it grows too long.
| ID | Spec | Status |
|---|---|---|
| SPEC-001 | pg_tde kernel patch for PostgreSQL 19.0 | implementing |
| SPEC-002 | Extract pg_mysql from OpenHalo 19.0.0 | review |
| SPEC-003 | Compatibility between the OpenHalo and Percona TDE patches | review |
| SPEC-004 | A fresh-install version of pg_mysql and a rewrite of the kernel patch | review |
| SPEC-005 | Patch for mixed-encryption compatibility between pg_mysql and pg_tde | review |
| SPEC-006 | pg_mysql SQL fragments and PGXS installation script | review |
| SPEC-007 | Decide what to do with each historical pg_mysql upgrade script | implementing |
| SPEC-008 | A single kernel patch for pg_mysql 1.0 | implementing |
| SPEC-009 | Credit the sources of the pg_mysql extension and kernel patch | review |
| SPEC-011 | The Babelfish 7.x kernel patch for PostgreSQL 19.0 and how it coexists with other changes | review |
| SPEC-013 | Transaction and storage interactions among Babelfish, MySQL, and TDE | review |
| SPEC-014 | Extension compatibility matrix for the three PostgreSQL 19 kernels | review |
| SPEC-015 | Can TDE, MySQL, and Babelfish be enabled independently in a single PostgreSQL 19 kernel? | draft |
| SPEC-016 | Fix reference ownership for T-SQL temporary relations | draft |
| SPEC-017 | Protect the table access method used by Babelfish temporary objects | draft |
| ID | Spec | Status |
|---|---|---|
| SPEC-010 | Consolidate the historical pg_mysql installation SQL and reorganize it into layers | done |
| SPEC-012 | Three generations of OrioleDB kernel patches and an assessment of a PostgreSQL 19 port | done |
No specs had been rejected. Original spec index
Mimus decision records and ideas · 4 ADRs and 8 ideas
Architecture decision records say what was decided and why. The record is append-only.
| ID | Decision | Status |
|---|---|---|
| ADR-0004 | Leave OrioleDB out of this Mimus release | accepted |
| ADR-0003 | Use /usr/mimus-$v as the standard install path for the mimus kernel | proposed |
| ADR-0002 | How names and versions are assigned to mimus, pg_mysql, and the MySQL protocol | proposed |
| ADR-0001 | Use ADRs to record architecture decisions | accepted |
Ideas track work the project might take on. Each starts as one line in an inbox and gets its own write-up once it’s under assessment.
| ID | Idea | Status |
|---|---|---|
| IDEA-0008 | Pg Mysql Cast Conflicts | assessing |
| IDEA-0007 | Why does Babelfish need PostgreSQL 19 kernel changes? | assessing |
| IDEA-0006 | Why does pg_mysql need PostgreSQL 19 kernel changes? | assessing |
| IDEA-0005 | Why does pg_tde need PostgreSQL 19 kernel changes? | assessing |
| IDEA-0004 | Spatial support and the spatial reference system catalog in pg_mysql | parked |
| IDEA-0003 | Should mimus ship an unsigned integer extension in contrib? | assessing |
| IDEA-0002 | Install directory for the mimus kernel on Debian, Ubuntu, and EL | go |
| IDEA-0001 | Differences between extensions in Percona’s PostgreSQL distribution and their upstream source | assessing |
Mimus public documentation · eight protocols, one dataset
One PostgreSQL, many wire protocols. Mimus is the working name for a PostgreSQL 18 base intended to give MySQL, SQL Server, MongoDB, Redis, etcd, and S3 clients access to the same data. Session protocols use a thin kernel hook, while service protocols connect through a gateway. The project was in the design stage. Its components were still released as independent projects.
- Protocol hook. PostgreSQL (5432), MySQL (3306), and SQL Server (1433) each get one backend process per connection.
- Gateway. Redis (6379), etcd (2379), S3 (9000), and MongoDB (27017) connect through a gateway that multiplexes connections. Dashed outlines around SQL Server and MongoDB mark them for a later phase.
- PostgreSQL 18. Both paths lead to the same data. The diagram lists PostgreSQL SQL, MySQL SQL, T-SQL, and orafce under dialects, and PostGIS, pgvector, Citus, TimescaleDB, and
pg_tdeunder capabilities.
Each protocol has its own page describing the implementation, its status, and its limits.
PostgreSQL, ,- Native protocol and SQL. All the other protocols read and write the same tables, so backup and replication cover all the data.
MySQL, ,- OpenHalo 18 combines a generic protocol hook spanning 12 files with the
aux_mysqlextension to provide the MySQL 5.7 protocol and dialect. SQL Server, ,- Babelfish provided TDS and T-SQL on the research build. Integrating it changes the kernel ABI, so the work was deferred to Mimus 2.
MongoDB, ,- DocumentDB stores BSON documents in PostgreSQL tables. A stateless gateway speaks the MongoDB protocol to clients.
Redis, ,pgrediscombines a Go gateway with thepg_redisextension. A Redis write can commit in the same SQL transaction as an update to application data.etcd, ,pgetcdprovides an etcd v3 API over gRPC. Revision numbers, watches, and leases are all stored in PostgreSQL tables.
I first published this essay on my WeChat channel, 老冯云数.
