From code to intent: When the specification becomes the source code
We are in the middle of a shift the industry has been through before without noticing: the source code, the ‘truth’ about what a system does, is moving one level of abstraction up. When the code can be regenerated from the description, the description is the work. The open question is whether an industry that has rarely had to write precisely can learn to now.
The shift we have been through before
When did you last read the machine code your compiler produced?
Never, most likely, and that is as it should be. At one point in history the machine code was the work, and the high-level language merely an aid. Then it flipped: the compiler became reliable enough that nobody checked its output, and “the source code” moved up a level. What had been the work turned into an artifact.
We are standing inside the same shift again. Only this time it is our code that is on its way to becoming the artifact, and the description of it that is becoming the work.
That sounds dramatic, and it raises one question the industry is not trained for:
If the specification is the new source code, can we write specifications?
Part 1: What is actually happening
The shift gets misread in both directions.
What is not happening: you write “build me a web shop” and get a system. Vagueness in gives vagueness out. It was true of requirements on paper, and models do not change it.
What is happening: the relationship between description and code inverts. Today the code is the truth and the documentation is a quickly outdated shadow of it. In the new pattern, the precise description – the intent, the requirements, the invariants, the examples – is what gets versioned, reviewed and owned. The code is generated from it, verified against it, and can in principle be regenerated when the description changes.
That is no longer a thought experiment. When GitHub released its spec-driven development toolkit in September 2025, the argument was exactly this: “AI makes specifications executable”, so “specs become the shared source of truth”, and a vague prompt “forces the model to guess at potentially thousands of unstated requirements”.
Notice what that does to the old truths. “The code never lies” was the argument for reading code rather than docs. In the new pattern it is the specification that is not allowed to lie, and every bit of discipline we built around code (review, versioning, TDRs (in Norwegian), ownership) has to move up with it.
Part 2: The uncomfortable truth about our specifications
The problem is not technical:
This industry has rarely had to write precisely, and so is rarely good at it. We got away with it, because the precision always arrived in the next link of the chain, in the code. Requirements could be vague, because the developer would be forced to settle every detail anyway once the compiler demanded it. The code was where vagueness went to die.
Remove that link, and the vagueness survives. It flows straight through – into generated code that does something, plausibly and confidently, in every hole the specification left behind. It is the same mechanism that makes AI-generated code risky: the model fills omissions with the average, and the average is rarely what you meant.
So the skill that becomes scarce is not a prompting trick. It is something older and harder:
Knowing what you want, precisely enough that it can be checked.
Brooks said so in 1987, in No Silver Bullet: “the hardest single part of building a software system is deciding precisely what to build”. The hard part, he argued, was never the labor of representing the construct in code but “the specification, design, and testing of this conceptual construct”. The code hid that for nearly forty years. Now it stops hiding it.
Brooks, for that matter, counted “automatic programming” – code generated from a statement of the problem – among the hopes he did not believe in, and for nearly forty years he was right. What is new is that the generation actually works on ordinary code. That is reason enough to keep the claim about the shift as narrow as possible.
Which states are invalid? What happens on failure? Where are the boundaries, who is allowed to do what, what is not included? That is engineering work. It has simply always been hidden inside the coding. Now it stands on its own, and more people than before have to learn it.
Part 3: What must be built around the specification
If the specification is the source code, it needs the source code’s infrastructure. Four things:
Review of intent. The most important quality gate moves from “is the code right?” to “is the description right – complete, unambiguous, testable?” That is a different kind of reading from code review, and it has to be trained: hunt for the gaps, the unsaid, the buried assumptions. The eye for omissions, one level up.
Verification as contract. A specification with nothing checking it is a wish. The tests, the examples and the invariants are what make a description binding. They are the specification’s compiler – and unlike the compiler, the model is not deterministic: the same description can produce different code tomorrow, so it is the checks that have to hold still. Teams that already ask “what real bug would this test have caught?” start with a lead: they have practiced expressing intent as claims you can check.
Ownership and history. Who owns the description once the code is generated? Who answers “why is it like this?” two years from now? Everything we have learned about decisions that must be stored counts double – because a codebase that gets regenerated no longer carries the traces of why it ended up that way. Intent that never got written down is gone.
And a new guard against divergence. Ten developers specifying in ten different idioms at ten different levels of precision produce the same fragmentation as ten who prompt differently – only higher up, where it costs more. Shared specification patterns become a standard on a par with code style. The simplest pattern is a template with the four questions from the previous part – invalid states, failure handling, boundaries, what is out of scope – that every specification has to answer before it is reviewed. Someone has to hold them together, and on most teams that is the tech lead.
Part 4: The transition, and what you do now
The shift does not arrive as a date. It creeps in, module by module, as more and more of the code becomes safely regenerable and less and less of it is read. You will know it has happened in your codebase the day somebody fixes a bug by changing the description and regenerating, instead of touching the code.
Three preparations that pay off whatever the pace:
- Train the precision now. Write requirements that can be checked. Make “what is an invalid state?” a standard question in design. This is valuable even if the shift stops tomorrow.
- Treat the tests as specification already. They are the most precise description of intent you own. Raise their quality accordingly.
- And write down the intentions behind today’s system – while the people who carry them are still here. A regenerable future depends on someone first capturing what the system is supposed to do. Start with the module nobody dares touch and the invariant only one person can explain; that is where regeneration will go wrong first.
One level up, like last time
The last time the source code moved upward, three things happened: the work became an artifact, the aid became the work, and whoever mastered the new level defined the decade that followed.
This time it moves to intent – to the precision of what we mean.
The skill that becomes scarce is one of the oldest in the trade: knowing exactly what you want, and being able to write it down so that someone else – or something else – can build it. Start with the next requirement you write.