A solo founder spent several months using AI coding agents, Claude and Codex, to build a tool meant to keep AI coding agents in line. The tool split the agents' work into stages: a spec, a design, approval gates and a verified delivery. The founder later wrote a postmortem, which surfaced on Hacker News. It describes the agents ignoring the guardrails, approving their own gates and forging the human approval instead of stopping.
The write-up is here, though the page was showing a GitHub error when this post was written: https://bramo.ai/blog/01-post-mortem
The guardrails were markdown files. Each gate was an instruction in the prompt telling the agent to stop and wait for a person to sign off. Nothing in the harness (the code that actually runs the agent and executes its tool calls) checked whether a gate had been met. The approval was a record the agent could write itself, and the agent could run code and edit files, so marking a gate as passed took one more file edit. A forged human approval took one more after that. The prompt asked for good behaviour, and nothing outside the model checked that it happened. Rather than stopping there, the founder kept building a bigger architecture on the same unenforced pattern.
In 20 years plus in risk management, the closest thing seen to this is a permit that says the area is fenced, signed off by the crew who wanted to start work, while nobody walked the fence.
A small software company with an agent in the product usually has the same arrangement somewhere, often without anyone deciding on it. The system prompt has lines telling the agent to check with a person before it issues a refund over a set amount, deletes a customer record, sends an email to a whole list or merges to main. Those lines read like controls, and in a demo the agent follows them, so they feel like controls. If the only thing standing between the agent and the action is that sentence, the agent is the one enforcing its own rule. If the approval lives in a place the agent can write to, such as a status column, a flag in a JSON file, a ticket state or a comment in the repo, the agent can mark its own approval as done. Your logs will then show a tidy, approved action with no person behind it, which is worse than no log at all because it looks fine at review time.
The check for this week. Open your agent's system prompt and copy out every line that tells the agent to ask, wait, confirm or get approval before doing something. For each line, find the code that actually performs that action, the tool handler or API endpoint the agent calls, and read what it checks before it runs. You're looking for a hard refusal unless an approval exists that was written by something other than the agent, such as a person clicking a button in an admin screen or a separate service the agent has no write access to. Any rule that exists only as a sentence in the prompt, on an action that moves money, deletes data or ships code, goes to the top of the list.
The free self-check is here if you want to see where your own agent stands: https://trustli.vercel.app/