A software specification, or spec, is a document that says what a program should do, written before or alongside the code that does it. Specs have returned with AI coding agents. In "spec-driven development" a person writes a spec into the repository, and the agent turns it into a plan, a task list and working code. GitHub's Spec Kit describes the workflow as "Define what to build and why, then turn the specification into a plan, tasks, and working code."[15]
The trouble is that a spec and the code both describe what the program does, and only the code is guaranteed to be current. Once someone changes the code without touching the spec, the two disagree, and anyone who reads the spec, person or agent, gets the wrong answer. An architecture decision record (ADR) stores something different. It is a short note that captures one decision, the context that led to it and its consequences. A decision record describes a moment in the past, so later changes to the code do not make it false.
I keep decision records and treat specs and plans as disposable. My confidence is medium because I have not yet found a pattern for capturing intent that I am happy with.
Background
Engineering teams have written documents before code for decades. Requests for comment (RFCs) and design docs are the common forms today. The engineering writer Gergely Orosz describes them as a way to clarify assumptions and circulate plans before a non-trivial project starts, and compares them to tests and code review as habits that tend to produce more maintainable work. Most of these documents stay internal to the companies that write them.[14]
The decision record came out of a complaint about large documents. In 2011 the software architect Michael Nygard proposed recording architecture as a series of small, numbered records, each with a title, context, decision, status and consequences. His reason was blunt: "Large documents are never kept up to date." Small records stood a better chance, and they kept "the motivation behind previous decisions" visible to everyone who came later.[12] A widely used collection of ADR templates adds a rule for change. A team does not edit an old decision. It writes a new record that supersedes the old one.[13]
Agents raised the stakes. An agent reads whatever text is in the repository and treats it as true, so a stale document now misleads a reader that acts on it immediately and at speed. Agents also write code fast enough that a spec can fall behind in an afternoon.
My position
The spec is the code. In June 2026 I wrote that specs are "kinda useless" for this reason, because docs rot the minute the code is updated and the spec is not. I had started recording ADRs instead, since they hold the context behind a decision instead of restating what the code is supposed to do. The example I gave was that "We picked this database over this one because of these constraints" is far more useful than "Use this database with this schema".[1] A month later I put it in terms of intent. Specs were worse at capturing intent because they rotted so quickly, and decision records looked like a better home for it.[4]
Plans are a separate case. A plan is an implementation detail, and the implemented code supersedes it as soon as the work is done. User-facing documentation still has a job, since it explains a product to people who will never read its code.[2] I don't object to documents as such. My requirement is that they live in one accessible place instead of being strewn across tools, where design docs become hard to find.[3]
The same reasoning rules out committing an agent's chat transcripts next to the code. When the idea came up in August 2026 I called it worse than docs or ADRs and "all noise". Teams don't store meeting notes next to code, and a transcript is a longer meeting note.[6] Searching old transcripts when a question comes up is a different matter, covered in Agent memory.
Behind this sits a view that code is cheaper and more temporary than spec-driven processes assume. I wrote in 2024 that on a long enough timeline all code is throwaway code.[7] In 2026 I argued that people act as if code is written once and runs forever, when the practical course is to get it working and optimize it once it becomes a problem.[8] When a spec makes the work hard, the pragmatic answer is often to change the requirements instead of jumping through hoops to satisfy them, and experienced engineers learn that aversion by getting burned.[9] The parts of a project that survive rewrites are the decisions and the constraints that forced them. Those are what a new engineer or a new agent needs and cannot recover from the code.
This connects to Complexity is the enemy, which argues against keeping anything that has to be maintained without paying its way. A spec that duplicates the code is one more artifact to keep in sync.
Agents and the cost of change
Agents make code cheaper to write and cheaper to change, and they make it easy to defer cleanup. I called Claude Code, Anthropic's terminal coding agent, "Klarna for tech debt", after the buy-now-pay-later service.[10] That cuts both ways for documents. Cheap rewrites make a spec go stale faster. They also make it easier to rebuild the code from a recorded decision when the old implementation no longer fits.
Most of a business has always worked this way. The functions outside engineering never read the code. They inspected the output, and engineering was a black box to them.[11] What they needed from engineers was the reasoning behind choices that affected them, which is what a decision record holds. How people and agents come to understand code they did not write is covered in Understanding unfamiliar code.
Criticism and counterpoints
Code says what a program does, not what it was meant to do. A bug is code that disagrees with intent, and without a written statement of intent nobody can point to the disagreement. Spec-driven development answers that the spec is the agent's input, and that an agent given only a one-line request will guess at the rest.[15]
The programmer Salvatore Sanfilippo, known as antirez and the creator of the Redis database, argues for a document close to a spec. His point is that when models write most of the code, a developer's main job is owning the ideas instead of reading every line. He suggests asking a model to write a DESIGN.md that describes each data structure in plain language.[16] That is a descriptive document of the kind I say rots. Agents weaken my argument here too, since a model can regenerate such a file from the current code whenever it changes, which removes much of the maintenance cost.
Decision records drift as well. The maintainers of the ADR template collection advise against altering old records, then admit that "In practice, mutability has worked better for our teams", and that they add dated notes to existing records to keep them current.[13] A record edited in place is a living document again and can rot like any other.
Some intent can be checked by machine. Tests and formal verification turn parts of a spec into something that fails loudly when the code drifts, so they cannot go silently stale. One engineer, @poteto, wrote in November 2026 that adversarial reviews by agents were mostly a waste of tokens, and that the tokens were better spent on empirical and formal verification.[17] Formal verification needs a precise specification to check against, so this route brings specs back in a form that cannot rot unnoticed. Start with the eval makes a related case for building the test set before the model work.
Decision records also take discipline. Someone has to decide which choices deserve one and write it at the moment the choice is made, which is when the team is busiest.
Open questions
- What is the right home for intent? In July 2026 I had not seen a good pattern for it.[5]
- Can an agent draft a decision record at the moment a choice is made in a session, so that nobody has to remember to write it?
- Does a regenerated design document, rebuilt from the code on every change, count as a spec at all?
- Where should records live so that agents find them, alongside AGENTS.md or in a separate folder?
History and timeline
- Nov 2011: Nygard proposes short architecture decision records.[12]
- Dec 2024: I write that all code is throwaway on a long enough timeline.[7]
- Jun 2026: I call specs useless because they rot, start exploring ADRs[1] and separate disposable plans from user-facing docs.[2]
- Jul 2026: antirez argues for controlling ideas instead of code.[16] I write that specs rot too fast to capture intent[4] and that code should be made to work before it is optimized.[8]
- Aug 2026: I argue against committing chat transcripts next to code.[6]
- Oct 2026: I argue that changing requirements is often more pragmatic than satisfying a bad spec.[9]
- Nov 2026: one engineer (@poteto) moves agent review effort toward empirical and formal verification.[17]
See also
Change log
- 2026-12-03: First written, from my posts on specs, plans and decision records, Nygard's original ADR post, and antirez on controlling ideas.
Reading
- Michael Nygard, Documenting Architecture Decisions. The 2011 post that introduced the short decision record: title, context, decision, status and consequences.
- Joel Parker Henderson, Architecture decision record examples and templates. Templates and teamwork advice, including the case for editing records in place.
- Salvatore Sanfilippo (antirez), Control the ideas, not the code
- Gergely Orosz, Companies Using RFCs or Design Docs and Examples of These
- Diátaxis, a systematic approach to technical documentation. Splits documentation into tutorials, how-to guides, reference and explanation, each written for a different reader need.
- Martin Fowler, Conway's Law
References
- ^ Specs are kinda useless; the spec is the code (@trashpandaemoji, Jun 2026), since deleted
Yeah, specs are kinda useless. The spec is the code. Docs rot the minute a the code is updated but not the spec. I've been exploring recording ADRs b/c that's more context behind why decisions were made, rather than what the code is supposed to do. "We picked this database over this one because of these constraints" is way more useful than "Use this database with this schema".
- ^ Docs are user facing; plans get superseded by the implemented code (@trashpandaemoji, Jun 2026), since deleted
@PavelSnajdr @zekramu Docs!= Plans though. Docs are typically user facing. Plans are implementation details that immediately get superseded by the implemented code.
- ^ Docs are fine if they live in one accessible place (@trashpandaemoji, Jun 2026), since deleted
@zekramu Yeah that's fair. As long as its somewhere that's accessible and in a single location its fine. Its just easy for docs to get strewn all over the place. Like trying to find design docs in google docs is a nightmare.
- ^ Specs were worse at capturing intent because they rotted so quickly (@trashpandaemoji, Jul 2026), since deleted
@zeeg I found specs worse at capturing intent since they rotted so quickly. Did you look at keeping ADRs to capture decisions and intent instead?
- ^ No good pattern yet for capturing intent (@trashpandaemoji, Jul 2026), since deleted
@zeeg Yeah, I haven’t see any good pattern yet for this either 😩
- ^ Chat transcripts next to code are worse than docs or ADRs (@trashpandaemoji, Aug 2026), since deleted
@cassidoo IMO It sounds like a good idea but is an objectively terrible idea. It’s worse than docs or adrs. All noise. People don’t store meeting notes or design docs next to code, why would a chat transcript be any more useful?
- ^ On a long enough timeline all code is throwaway code (@trashpandaemoji, Dec 2024)
- ^ Get it working and optimize it when it becomes a problem (@trashpandaemoji, Jul 2026), since deleted
@zekramu @MattATXDev People act like you write code once and it runs till the end of time. Just get it working and optimize it when it becomes a problem? Who cares if it’s not written in your preferred way or is inelegant.
- ^ The pragmatic answer is often to change the requirements (@trashpandaemoji, Oct 2026)
- ^ Claude Code is like Klarna for tech debt (@trashpandaemoji, Jul 2026), since deleted
Claude Code is amazing. Its like Klarna for tech debt.
- ^ The rest of the business never read the code; it inspected the output (@trashpandaemoji, Aug 2026), since deleted
The way I see it, all non-engineering functions in a business didn't read the code. They inspected the output. Engineering has always been a black box to them. And just because you have human engineers working on the thing, doesn't mean its good or built the best way. Having high quality engineering in your product is more of an outlier than norm. Consider an enterprise with several levels of engineering capability pre-AI: - An enterprise with a high-paid in-house excellent engineering team - probably produces high quality code but expensive - An enterprise with a low-paid, okay but not great engineering team -- probably produces working but shit code, more affordable - An enterprise that contracts with a high quality external firm -- probably produces okay quality code, very expensive - An enterprise that contracts with a cheap and low quality external firm -- probably produces shit code, prices vary but probably expensive for what you get My point is that we've (as an industry) has been producing shit code that businesses don't read for ages.
- ^ Michael Nygard, Documenting Architecture Decisions (2011)
- ^ Joel Parker Henderson, Architecture decision record examples and templates
- ^ Gergely Orosz, Companies Using RFCs or Design Docs and Examples of These
- ^ GitHub, Spec Kit
- ^ Salvatore Sanfilippo (antirez), Control the ideas, not the code (Jul 2026)
- ^ Adversarial reviews are mostly a waste of tokens; use empirical and formal verification (@poteto, Nov 2026)