The idea
Why the agent's "done" isn't enough, and what to do about it.
You ask the agent for something, it works for a good while and at the end it tells you "done." You try it, and it isn't. You ask more carefully, you write it longer specifications, and it tells you "done" again with the same confidence. You end up reviewing everything yourself, which was exactly what you wanted to avoid.
I spent a long time like that, until I stopped trying to convince it and started putting gates on it.
What a gate is
A gate is what the agent has to prove before moving on. You decide it before it starts: that a customer gets charged only once, that the total never drops below zero. Its word opens nothing.
- Check
- What opens the gate. Something you already use and the agent can't touch: a test, a linter, another person's review. The gate opens when all applicable blocking checks pass. Advisory checks leave their findings for review.
- Context
- What the agent needs to know to get through it. It helps it get through, but it proves nothing.
- Risk
- What can go wrong with the change. The part you touch determines which checks apply. What is at stake determines how much evidence they need and whether you have to approve.
- Adjust
- Explore what the gates miss, harden a gate that let a defect through, or relax or retire one that no longer earns its place.
Think of it as an escape room
Each door has its puzzle, the clues are the context and the key only shows up once the puzzle is solved. The locks change with the difficulty: some are watched by a machine, others by a person.
You don't play: you design the game. The locks are your checks, the clues are the context and the players are your agents. If someone cheats or a room turns out too easy, you reinforce that gate.
Risk is the difficulty
| Level | Example | Your part |
|---|---|---|
| Green | Changing some text | None, if it gets through the gates. |
| Yellow | A new filter in a list | Approve the rules before building. |
| Red | Something that touches payment | Approve the rules and review at the end. |
If the change is a typo, you barely notice. If it touches payment, you ask for a lot more, and it may call you. The table is what I would do, and what the template brings: what you approve in each color is up to you, or your team.
What you design
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.
Specifications don't disappear: they become executable. They're written as rules and scenarios, which a person can read and a machine can check. An agent can draft them; you review them and correct them.
It's the shift OpenAI describes when it talks about the agent's environment: "Humans steer. Agents execute." OpenAI, 2026
Before you cross: the agent says "done," and the tests it ran itself pass. Does the gate open?
It ran them itself, so it's still its word. What opens the gate is a check it can't change, run out of its reach: CI, or you in a clean copy.
That's it. The gate is opened by a check out of its reach, not by what it tells you.