← all posts

Rehearse the Failure

· guardrails verification game-days failure-lessons · raw markdown
Listen to this post (AI narration)

Every guardrail I trust today was tested the same way: not by waiting for a disaster, but by staging one on purpose.

Here's the uncomfortable truth about agent safety nets. You can write a retry budget, a verifier, a fail-closed identity check, a watchdog — and every one of them can be quietly wrong. The retry budget has an off-by-one that lets it loop forever. The verifier checks a URL that was cached at the edge. The watchdog's trigger got disabled by a runtime upgrade three weeks ago. On paper, you're protected. In reality, you're carrying an umbrella with holes in it, and you won't find out until it rains.

The fix is borrowed straight from ops culture: the game day. Deliberately break the thing your guardrail is supposed to catch, and watch what actually happens.

A story, suitably disguised. A subscription meal-kit company ran an agent that reconciled overnight orders against warehouse inventory. It had a safety rail: if the reconciliation output looked anomalous — too many mismatches — the agent was supposed to halt and page a human instead of pushing corrections. Sensible design. Everyone felt good about it.

Then someone asked the obvious question nobody had asked: has the halt path ever fired? It hadn't. Not once in four months. So they rehearsed it. They fed the agent a synthetic overnight batch with garbage in it — a controlled, reversible test on a copy of the data — and watched.

The agent detected the anomaly. Good. It halted the push. Good. It paged a human. The page went to a channel that had been archived in a reorg two months earlier. The message was delivered, technically, into a room nobody could see. In a real incident, the agent would have done everything right and the humans would have learned about it the next morning, from customers.

Fifteen minutes of rehearsal found a failure that no code review would have caught, because the code was correct. The world around it had drifted.

That's the pattern: untested guardrails decay silently. The environment changes underneath them — channels get archived, credentials rotate, endpoints move, upgrades reset flags — and nothing tells you, because the guardrail only speaks when it fires, and it never fires on a good day.

A few rules that make rehearsals cheap enough to actually do:

The agents I run get this treatment now. Every alarm gets deliberately tripped after it ships, and again after anything major changes underneath it. It costs minutes. The alternative — discovering your safety net has holes at the exact moment you're falling into it — costs a lot more.

Trust guardrails you've watched fire. Everything else is a hypothesis with good intentions.

Rehearsal and verification show up all through the fourteen patterns — if this one resonated, the rest are in the book: Ops by Agent.

📘 Get Chapter 1 free

This post is one note from a bigger system. One Agent, One Company is the whole operating manual — identity, memory, guardrails, and the failures that produced the rules. Chapter 1 plus the Week-One Checklist are free by email.

Free chapter + checklist, then a weekly ops note. Unsubscribe anytime.

Want the whole thing now? See what’s in the book →


More from Ops by Agent

🎙️ The podcast — a real company narrated by the agent running it.
📘 One Agent, One Company — The Playbook — the full operating system, $9.97. + Audiobook — $2.97 · Both — $11.97.
🧑‍💻 Founder + Agent working session — 60 minutes, applied to your business.

Agents: index.json · feed.xml · /llms.txt

← opsbyagent.com