Agents write fast and almost right.
It isn't just you. In Stack Overflow's 2025 survey, 66% of developers named AI solutions that are "almost right, but not quite" as their biggest frustration. Stack Overflow, 2025
You don't persuade an agent with words. You put gates on it.
A gate is what has to be proven before going on.
The idea for the product is still ours, even when we no longer build it by hand. We write down what must be true and design the gates our agents will go through.
- 1
Before it starts, you decide what has to be true.
That a charge happens only once. That a total is never negative. You write it yourself, before the agent touches anything.
- 2
It's proven by something the agent can't touch.
A test, a linter or another person's review: things you already use, which don't depend on what the agent says.
- 3
More risk, more checks.
If the change is a typo, you barely notice. If it touches payment, you ask for more, and it may call you.
- 4
What slips through gets hardened.
You add the check that would have stopped it. One that no longer adds anything, you relax or retire.
Risk decides, not the size of the change.
Choose what you ask the agent and see which gates stand in front of it, and how many times it calls you.
Scenarios
Open
Check · You read
Check · Your approval
A text change needs no new rules. It goes straight through.
It calls you before it starts: you approve its rules before anyone builds.
It calls you before it starts: you read the scenarios and correct them.
Tests and linters
Check
Check · Reviewer
Check · Reviewer
The machine checks it. If it fails, it goes back to the agent.
Another agent reads the change. If it finds a fault, the agent fixes it. Nobody calls you.
A test fails. The error goes back to the agent, and it fixes it. Nobody calls you.
Release
Open
Check
Check · Your approval
If it got through the gates, it ships.
It ships. It only called you when your judgment was needed.
Because it touches payment, it calls you again. You check it can be undone, give your approval, and it ships.
Times it calls you
0
1
2
All you do is ask for the change.
You approve its rules before anyone builds.
You approve its rules, and review the change at the end.
Three example gates: your project will have the ones it needs. What can't be undone is never green. And on red, nothing ships without a verified way to undo it, and if there isn't one, a person decides knowing that.
What changes in your day.
And you don't change tools. Gates are made with what your repository already has: tests, linters, CI, protected branches and review.
| Without gates | With gates |
|---|---|
| You review every diff, or none. | You review what your blueprint marks as delicate. With the template, on a green change, nothing. |
| "Done" is what the agent says. | "Done" is what got through the check. |
| The rules live in the prompt, and the agent can ignore them. | A rule only counts if something checks it. |
| The same failure comes back in another change. | A check reproduces the failure and blocks that regression. |
| Nobody quite knows who approved what. | Every change has an author who answers for it. The AI never answers for you. |
GDD puts order into what already works.
Controls outside the agent, demands that follow the risk, and a person where it matters. GDD gives that a common language, a test to know whether a gate holds, and a path to follow.
Asking it not to cheat changed nothing.
Passing by cheating
On impossible tasks, where the tests contradict the specification and only cheating passes, GPT-5 passed 76% in one of the variants. ImpossibleBench, 2025
The impression misleads
Sixteen experienced developers took 19% longer with AI. They believed they had taken 20% less time. METRbelieves the speedup has increased since then, on data it considers a weak signal. METR, July 2025
The document isn't enough
In 88,052 PRs, the ones that linked a specification introduced no fewer defects than the rest. It measures issues and tickets, not SDD tools. Hill, ESEM 2026
AI amplifies
It magnifies the strengths and weaknesses the organization already had. DORA, 2025
This is how teams already working with agents at scale do it.
Stripe
More than a thousand PRs a week written entirely by agents. The fixed steps, such as git, linters and tests, are not up to the model. There are two CI rounds at most, and a person reviews. Stripe, February 2026
Anthropic
From around 2,500 changes merged a day in May 2026 to more than 30,000 in September. Its review requires different approvals depending on how delicate the change is, and permissions per directory protect the sensitive code. Anthropic, October 2026
OpenAI
"Humans steer. Agents execute." Engineering work moves from writing code to designing the agent's environment and its checking loops. OpenAI, 2026
How it differs from vibe coding, SDD and TDD.
Vibe coding, specifications and TDD answer how to build. GDD answers another question: what has to be proven before a change is done.
| Vibe coding | SDD | TDD | GDD | |
|---|---|---|---|---|
| What decides it is done | That it seems to work. | That it matches the specification. | That the test passes. | That all the gate's checks pass. |
| Who writes what judges it | Nobody. | Whoever reads the document: you or the agent itself. | Usually, whoever writes the code. | Someone who doesn't build. The agent can't touch it. |
| How it spreads the demand | There is none. | By document, not by risk. | The same across the code. | By risk: green, yellow or red. |
| When something slips through | You fix it and move on. | You extend the specification. | You add a test. | It becomes one of the gate's checks. |
| Your role | Trying it by hand. | Writing and keeping the document. | Writing tests and code. | Designing the blueprint and approving where it matters. |
TDD fits inside GDD, which adds who writes what, how much each risk demands and what to do with what slips through. What about TDD?
With SDD it shares the specification, but here it is short and executable (rules and a few scenarios in Given, When, Then), and what decides is the gate.
One rule, seven principles, five moments.
Every change goes through Brief, Execute and Close. You return to Prepare and Adjust when the gates themselves need work.
Prepare
You write the blueprint and build the first gates. You try to fool them on purpose, and the rest come when a change needs them.
Brief
Agree on the rules, scenarios and risk. If the change promises an outcome for its users, decide where to look for evidence later.
Execute
The agent gets through the gates one by one. If it gets stuck, it stops and asks.
Close
Once the change reaches its intended users, the person responsible for the product decides whether it helped.
Adjust
Explore what the gates miss, add checks for defects that escaped, and relax or retire gates that cost more than they protect. You approve changes to the blueprint.
The seven principles
- 1Decide what a gate requires before work starts on the change that needs it.
- 2A gate has to close.
- 3Give each gate the context it needs.
- 4Getting through a gate takes evidence.
- 5Whoever goes through the gate doesn't decide how it's validated.
- 6Gates reflect the nature and sensitivity of each change.
- 7Gates have to earn their place, too.
A gate holds if you answer yes four times
- Did you agree on what the change had to prove before work started?
- Can it judge the change independently of what the agent says?
- Are the criteria, the run that counts and the evidence that opens the gate all beyond the builder's reach?
- Have you seen it reject a bad case for the expected reason and let a valid one through?