Blog

The first hour of an agent incident.

An agent incident is not an outage. The system is still up, still confident, and still doing the wrong thing. The first hour decides whether it stops — or keeps going.

A launch console during a live deployment
The first hour

November 19, 2026 · 6 min read

When a server goes down, everyone knows what to do. The alerts fire, the dashboards go red, the runbook opens, and the team converges on a system that has clearly stopped. When an agent goes wrong, none of that happens. The agent is still running. The dashboards are green. The agent is answering customers, sending messages, and making changes — confidently, fluently, and wrong.

That is what makes the first hour of an agent incident different, and harder. The urgent question is not "how do we bring it back up". It is "how do we stop it doing more damage, and how do we find out what it has already done". The teams that handle this well have decided the answers before the incident, not during it.

Pause first, diagnose second

The first move is always the same: stop the bleeding. Pause the agent, quarantine it from customers, or hit the kill-switch — whichever matches the severity, and whichever you have actually tested. A pause that has never been exercised is a theory, not a control. The teams that recover fastest are the ones that have pressed the button in a drill and watched the agent actually stop.

Pausing feels like losing time. It is the opposite. Every minute an agent keeps running while the team diagnoses is a minute of new actions to undo, new messages to retract, and new records to untangle. Diagnosis is important, but it happens after the agent is contained — not while it is still acting. The order matters: contain, then understand, then fix.

Preserve the record before you touch anything

Once the agent is paused, the next step is to freeze the evidence. The run record, the tool-call log, the prompt and model versions in use, the data the agent read, and the actions it took — all of it, copied somewhere the investigation cannot overwrite. If the agent's own memory or logs are the only copy, they are already at risk: the next run, the next compaction, or the next well-meaning fix can erase the very evidence that explains what happened.

This is why out-of-band telemetry is not a luxury. An incident investigation that depends on asking the agent what it did is not an investigation. It is an interview with a witness that has already forgotten the details and is very good at sounding certain about the ones it invents.

Scope it like a breach, even when it is a bug

With the agent contained and the record preserved, the question is scope: what did it touch, who did it affect, and how far did it get. Pull the list of actions from the audit trail, not from memory. Which customers received messages, which records were changed, which payments moved, which permissions were used. Work outward from the run ID, and do not stop at the first clean-looking answer — the second and third waves of an agent incident are usually the ones that were still queued when the pause landed.

Treat the scope question seriously even when the cause looks like an ordinary bug. A prompt error and a poisoned input look identical in the first hour, and they demand different responses afterwards. One gets a prompt fix and a re-run of the eval. The other gets a credential rotation, a tool review, and a look at everything that input could have reached. Assuming the kinder explanation in the first hour is how a bug becomes a breach.

# first hour, in order — no step skipped
1_contain: pause, quarantine, or kill-switch — tested in advance
2_preserve: freeze the run record, logs, and versions
3_scope: what it touched, who it affected, how far it got
4_notify: the people affected, with what is known so far
5_restore: rollback to the last known-good version
6_learn: postmortem, with the gate that would have caught it

Tell the people affected early

Notification is part of the first hour, not the postmortem. The people affected — customers, teammates, a client — deserve to hear what happened, what is known, what is still unknown, and what is being done, before they discover it themselves. The message does not need to be complete. It needs to be honest about what is known and what is not, and it needs to arrive while the team still controls the story.

The instinct to wait until everything is understood is strong, and it is usually wrong. A short, honest update in the first hour buys trust that a perfect report on day three cannot. Say what happened in plain language, say what you are doing about it, and say when the next update will come. Then keep that promise.

Restore, then learn — in that order

Restoration means rolling back to the last known-good version: the previous prompt, the previous model, the previous tool set. Not a hotfix written during the incident, however tempting. A hotfix written under pressure is the next incident, scheduled for a slightly later date. Roll back, verify the old version behaves, and then fix the new version properly, through the gate, with the eval that should have caught it.

Then, and only then, the postmortem. Not a blame exercise — a record of what happened, what the first hour got right, what it got wrong, and what changes as a result. The most useful output of a postmortem is a concrete addition to the gate: a new eval case, a new threshold, a new check that would have caught this incident before it shipped. An incident that does not change the gate is an incident that will happen again, to the same fleet, for the same reason.

The first hour is a skill, and like any skill it improves with rehearsal. Run the drill: pick a scenario, pause the agent, freeze the record, scope the damage, and write the notification — before any of it is real. The hour you spend rehearsing is the hour you will not have to invent when it counts.

← Back to all posts
Open the Watch → Join the waitlist