Chapter 03 · 7 min read

What a Specification Is For

Code is a lossy projection of the reasoning that produced it. A specification is the surface you argue on before that reasoning is lost.

THE ARGUMENT · CHAPTER 3
CHAPTER 03/1,597 words/Drafting

Every tool in this book can produce a specification. Several can produce one in under a minute, from a sentence. That ability arrived faster than any agreement about what the document is for, which is why teams now argue about format while sharing no view of the purpose.

The question worth settling first is not what goes in a specification. It is what the specification is supposed to do once it exists.

The artifact you think you produce

Figure 3.1/How code loses the reasoning that produced itCLICK TO ENLARGE

Sean Grove works on alignment research at OpenAI. He opens with a show of hands: who writes code, whose job is to write code, and then — keep your hand up if you believe the most valuable professional artifact you produce is code (Sean Grove, OpenAI). Plenty of hands stay up. He finds that natural, and he thinks it is wrong.

His argument is structural rather than moral. The work before the code is substantial: talking with people, gathering requirements, thinking through implementation, integrating sources. The code is where all of that lands, but it is not where all of that is kept. "Code itself is actually a lossy projection from the specification" (Sean Grove, OpenAI).

The analogy he uses makes the loss concrete. Decompile a compiled C binary and you do not get the comments back, or the well-named variables. You get something that runs and tells you almost nothing about why. You are left inferring what the author was trying to do. That information was never in the binary. The same relationship, Grove argues, holds between intent and source: the reasoning that produced the code is not recoverable from the code, because it was never stored there.

If that is right, then a team that keeps only its code has been discarding its most expensive output for decades, and merely got away with it while the people who remembered the reasons were still in the building.

It is an alignment device before it is an input

Grove's positive is sharper than write things down. A specification, he says, "effectively aligns humans and it is the artifact that you use to communicate and to discuss and debate and refer to and synchronize on" (Sean Grove, OpenAI). And then the line that does the most work in this chapter: "If you don't have a specification, you just have a vague idea" (Sean Grove, OpenAI).

Note what that makes the document for. Not instructions for a machine. A surface for disagreement. Its first value is that it can be argued with — that two people reading it can discover they wanted different things, early, while changing their minds is still cheap.

This reframes the usual complaint about specification work. Teams say the document went stale, or nobody read it, as though the writing were therefore wasted. But if the document's job was to surface a disagreement in week one, it did that job whether or not anybody opened it again in week nine. The waste is not in writing specifications that age. It is in writing ones nobody ever disagreed with, which usually means nobody engaged.

Chapter 1 ended on the constraint being agreement. This is the instrument for reaching it.

What the absence costs

Figure 3.2/How skipping the specification bills you on MondayCLICK TO ENLARGE

Corey Gallon describes the other side of this with a clinical image, and it is the most precise account in the corpus of what skipping the document actually buys you.

The weekend goes well. The thing works, and it feels like genuine leverage. "But then Monday rolls around. You want to add a feature or you want to change the way that it works and you realize that you don't understand it. You can't maintain it and you have to throw most or all of it away" (Corey J. Gallon, Rexmore).

His definition is worth keeping intact, because it names the trade honestly rather than scolding: is "the low-spec zero planning approach to AI accelerated development that feels productive but results in brittle unmaintainable demo wear", and the hangover is "the resulting despair when you try to build maintainable, understandable software this way" (Corey J. Gallon, Rexmore).

Two things in that are worth separating. The approach feels productive, and the feeling is not an illusion — the code appeared and it ran. What was skipped does not bill until later, which is why is self-reinforcing in the short term and collapses on contact with the second change.

And notice what is lost on Monday. Not the code; the code is still there. The understanding is gone, which is Geoffrey Litt's argument from Chapter 1 arriving from the other direction. A specification is partly a message to the person who will need to change this and will no longer remember why.

Gallon's framing also usefully narrows the . The hangover appears when you try to build maintainable software that way. For a throwaway prototype answering a question, there is no hangover, because there is no Monday. is not wrong; it is being used past the point where its trade stops paying.

The second reader changes the economics

What is new is that the document now has a second audience that did not exist before, and that audience reads everything.

Michal Cichra frames his material as capturing decisions for humans and AI alike, and reports that the consistency problems teams hit with AI are the same ones he saw across a decade on a single product (Michal Cichra, Safe Intelligence). The problem predates the agents. The agents made it expensive enough to fix.

A human picking up unfamiliar code asks a colleague why it is that way. An agent does not. It infers, confidently, from whatever is in front of it, and writes more code consistent with its inference. Where a missing rationale used to cost one awkward conversation, it now propagates. That is the economic change: documentation of decisions moved from courtesy to load-bearing infrastructure, because the fastest-moving contributor on the team cannot ask.

When the specification is meant to generate the work

Figure 3.3/Two theories of the specification, two ways to failCLICK TO ENLARGE

Al Harris describes Amazon's Kiro, and is direct about the problem it was built against. is great, he says, but " relies a lot on me as the operator getting things right" (Al Harris, Amazon) — the operator supplying the guardrails and holding the agent to a workflow. Quality then tracks the discipline of whoever is driving, which is not a property you can staff around.

Kiro's answer is to make the specification the thing that drives, and to shape it around the whole lifecycle rather than the coding step alone — to "represent the holistic SDLC", drawing on decades of accumulated practice rather than inventing a process from scratch (Al Harris, Amazon).

This is a different theory of the document from Grove's, and the difference is the book's subject. For Grove the specification aligns people and the code follows. In the generating model the specification is executable: it is the source, and the code is output. Both treat the document as more durable than the code. They disagree about who it is addressed to.

They also fail differently, which matters more. An alignment document fails by going stale while everyone nods. A generating document fails by being satisfied exactly — producing precisely what was written, including the parts that were wrong, with the fidelity of the pipeline concealing that nobody checked the premise.

The failure that looks like rigour

That second failure deserves naming, because it is the one this book keeps returning to.

A specification can be complete, well-formatted, reviewed, approved, and wrong. Worse, the more structured it is, the easier it becomes to satisfy without thinking — to fill every heading, answer every prompt, and produce a document that passes inspection while nobody asked whether the thing described should exist. Ceremony is satisfying to complete, and completion feels like judgment.

Harris's point about the operator cuts both ways here. depends on the operator getting it right. A heavy process depends on the operator getting it right too; it just moves the dependency somewhere less visible, into the quality of the thinking that filled in the template. The template cannot tell the difference between a considered answer and a plausible one.

This is why Chapter 2 came first. A specification is an excellent way to record a decision and a poor way to make one.

Brownfield, briefly

One practical note that Chapter 9 takes up properly. Harris is candid that an agent approaching an existing system starts from nothing: it reads the working tree to orient, because it does not know the system (Al Harris, Amazon). Spec-driven work on a greenfield project writes the specification first and builds to it. On a system that already exists, the specification has to be recovered from code that is, by Grove's argument, a lossy projection of reasoning nobody wrote down.

That is a harder problem than the demos show, and most real work is that problem.

What follows

A specification says what should be true. It does not say in what order to make it true, or how to cut the work so that each piece can be checked on its own. That is planning, and it is where the disagreement between these systems becomes concrete — how much of the plan to fix in advance, how small a unit has to be before an agent can finish it without losing the thread, and who decides when the plan was wrong.

That is Chapter 4.

Evidence — Source Anchors

Code is a lossy projection of the specification, so the reasoning behind it cannot be recovered from the code

  • “code itself is actually a lossy projection from the specification.”
    #265 — Sean Grove, OpenAIconfidence: high

A specification is an alignment device before it is an input to a machine

  • “specification effectively aligns and it is the artifact that you use to communicate and to discuss and debate and refer to and synchronize on.”
    #265 — Sean Grove, OpenAIconfidence: medium
  • “If you don't have a specification, you just have a vague idea.”
    #265 — Sean Grove, OpenAIconfidence: high

Skipping the specification feels productive but leaves software nobody understands on the second change

  • “But then Monday rolls around. You want to add a feature or you want to change the way that it works and you realize that you don't understand it. You can't maintain it and you have to throw most or all of it away.”
    #106 — Corey J. Gallon, Rexmoreconfidence: high
  • “the low-spec zero planning approach to AI accelerated development that feels productive but results in brittle unmaintainable demo wear.”
    #106 — Corey J. Gallon, Rexmoreconfidence: high
  • “the resulting despair when you try to build maintainable, understandable software this way.”
    #106 — Corey J. Gallon, Rexmoreconfidence: high

In the generating model, the specification drives the work across the whole lifecycle instead of relying on the operator

  • “vibe coding relies a lot on me as the operator getting things right.”
    #40 — Al Harris, Amazon Kiroconfidence: high
  • “represent the holistic SDLC”
    #40 — Al Harris, Amazon Kiroconfidence: high

Where a feature mostly orchestrates existing capability, instructions can replace the implementation

  • “markdown is basically the new code.”
    #633 — David Gomes, Cursorconfidence: high
  • “a lot of code a lot of dependencies a lot of complexity and tests”
    #633 — David Gomes, Cursorconfidence: high
  • “around 15,000 lines of code deleted.”
    #633 — David Gomes, Cursorconfidence: high
  • “almost as good as the previous one.”
    #633 — David Gomes, Cursorconfidence: high