Skip to content
be-human.ai
← Back to the journal

Testing & reliability

Superintelligent Agent Incident Postmortem: A Blameless Template

A blameless postmortem template for AI agent incidents: timeline, affected memory and tools, the detection gap, and fixes that land in the harness.

Be Human typographic cover with the title: Superintelligent Agent Incident Postmortem: A Blameless Template
Conceptual illustration created with AI · Be Human

An AI agent incident postmortem is a short written record of one failed or harmful agent run that reconstructs the timeline, names the memory and tools involved, identifies why detection was late, and assigns corrective actions to the system rather than to a person. Blameless means the document never ends with "the operator should have noticed": every action item changes a prompt, a permission, a tool contract, a limit or an alert. Use the template below as a fixed shape so that incidents become comparable over months instead of one-off stories.

Key takeaways

  • A postmortem is worth writing when an agent produced a wrong, duplicated or unauthorized outcome that reached a customer, a record or a payment, or when a run was stopped by a human instead of by a limit.
  • Blameless is a mechanical discipline, not a tone: each corrective action must name a file, a setting, a permission or a check that changes.
  • The most neglected sections are affected memory and affected tools, because a bad fact written into an agent's memory keeps producing new incidents after the run ends.
  • The detection gap is usually the real finding: most agent incidents were visible in logs before anyone noticed them.
  • Keep the document to one page, close actions with owners and dates, and review open actions in your weekly maintenance pass.

What makes an agent postmortem different from a software one

Classic incident reviews assume deterministic code: the same input produces the same wrong output, and a fix is a patch. Agents break that assumption in three ways. The same input can produce different behaviour across runs, the agent carries state (memory, retrieved context, conversation history) that outlives the incident, and the agent takes actions through tools that may have partially succeeded before anything looked wrong.

So an agent postmortem has to answer questions a code postmortem never asks. What did the agent believe at the moment it acted, and where did that belief come from? Which tool calls committed real changes before the run derailed? Is the faulty context still in memory right now? A template that does not force these questions produces documents that read well and prevent nothing.

The second difference is the location of the fix. With agents it is tempting to write "we told the agent not to do that again" and close the ticket. Prompt edits are legitimate, but they are the weakest class of fix because they depend on the model honouring an instruction under pressure. Stronger fixes change the harness: narrower tool scopes, idempotency keys, hard limits, required confirmations, a validator that rejects bad output before it ships. If you want more on the harness idea, Anthropic's engineering notes on long running agents are a useful companion to this template.

The template, section by section

Copy this into a document, a wiki page or an issue template. Nine sections, one page, no appendices unless you genuinely need them.

  • Header: incident identifier, date and time with the time zone written out, the agent and version involved, severity, author, status (draft, in review, closed).
  • One paragraph summary: what the agent did, who or what was affected, and how it ended. Written so someone outside the project understands it without context.
  • Impact: records written, messages sent, money moved, customers touched, work that had to be redone. Count things, do not characterize them.
  • Timeline: timestamped events from the trigger to the last corrective step.
  • Affected memory and context: what the agent read, what it wrote, what is still stored.
  • Affected tools and actions: each tool called, whether it committed, and whether the effect was reversed.
  • Detection: how the incident was found, by whom or by what, and how long it ran before that moment.
  • Contributing conditions: the stack of conditions that had to coexist. No single root cause required.
  • Corrective actions: a table-free list of items, each with a change target, an owner and a date.

Two rules make the template hold. First, nothing goes in corrective actions unless you can state the artifact it modifies. Second, the postmortem is written within a few days, while the run traces still exist in your retention window.

How do you write a timeline that is actually useful?

Start earlier than the incident. The useful timeline usually begins with a change: a prompt edit, a model upgrade, a new tool, a schema change on a connected system, a permission that was widened for a legitimate reason last week. Then move through the run itself.

  • Change that preceded the incident, with the date it shipped and who approved it.
  • Trigger: the message, schedule or webhook that started the run.
  • First divergence: the earliest step where the agent's reasoning or tool choice stopped matching the intended path. This is the step to quote, briefly, in plain terms.
  • Each committing action after that point, in order, with the identifiers of the records it touched.
  • Detection moment, with the exact signal: a customer reply, a finance report, an alert, a staff member reading a draft.
  • Containment: what stopped the run, and whether it was a limit, a kill switch or a person.
  • Recovery: reversals, corrections, communications, manual work absorbed by the team.

Write times in a single time zone and label it. Scheduled agents fail in ways that only make sense when you can see that two runs happened an hour apart because of a daylight saving boundary, a pattern worth avoiding in scheduled agent tasks.

If your traces cannot support this level of detail, that is itself a finding. Put "we could not reconstruct steps four through nine" in the document and make trace coverage a corrective action. Deciding what to log, trace and alert on before the next incident is cheaper than guessing after it.

Affected memory and tools: the sections most teams skip

An agent incident has a half life. When a wrong fact, a stale policy or a poisoned instruction enters the agent's long term memory or its retrieval index, every future run inherits it. Treat memory as part of the blast radius.

For memory and context, record four things: what the agent retrieved at the moment of the first divergence, whether any retrieved document was wrong or out of date, what the agent wrote to memory during the run, and whether that written content has been removed or corrected. If it has not been removed yet, that is an open action with today's date on it.

For tools and actions, list every call that changed state outside the agent. For each one, mark it committed, partially committed or not committed, and mark the reversal as done, impossible or unnecessary. Partial commitment is where duplicates and double effects live: a run that retried after a timeout may have created two records while reporting one. This is exactly the class of problem that idempotent tool calls are designed to remove, and a recurring finding here is strong evidence that the tool contract, not the agent, needs work.

Also record what the agent was allowed to do but did not do. Permissions that were never needed during the incident are the easiest corrective action in the document: remove them.

Finding the detection gap

For most agent incidents, the interesting number is not how it happened but how long it ran unnoticed. Write two durations: time from first divergence to detection, and time from detection to containment. Then ask one question with four possible answers.

  • The signal existed and fired, but nobody acted on it. Fix the routing, the ownership and the on-call expectation, not the detector.
  • The signal existed in logs but nothing watched for it. Add the alert and define its threshold now, while you still remember what normal looked like.
  • The signal did not exist because the failure was silent: plausible output, successful tool responses, no errors. Add a check that inspects content or outcomes, not just status codes. This is the territory covered in silent failure detection.
  • The failure was only visible downstream, in a report, a customer reply or a reconciliation. Decide whether to move the check upstream or accept a known detection delay and document it.

A detection gap that keeps landing in the third answer means your review sampling is doing all the work. Sampling is valuable, but it is a slow detector, and it should be paired with automated checks on the few outcomes you cannot afford to get wrong.

Writing corrective actions that land in the harness

Rank proposed fixes by how little they rely on human vigilance. Use this order when deciding what to commit to.

  • Remove the capability. If the agent did not need the tool or the permission, delete it. Strongest fix, zero ongoing cost.
  • Make the action safe to repeat. Idempotency keys, deduplication on the receiving system, write-once semantics.
  • Add a hard limit. Loop caps, token or spend ceilings, run timeouts that hand work to a person instead of continuing.
  • Add a gate. Required confirmation above a threshold, a validator that rejects output failing a structural check, a dry run step.
  • Add a detector. An alert on the specific pattern, with an owner and a response note in the runbook.
  • Add a test. A new case in your evaluation set reproducing this incident, so the next model or prompt change cannot reintroduce it silently. Replay tests are the cheapest way to make this permanent.
  • Edit the prompt or the operating notes. Legitimate, but never the only action for an incident that reached a customer or a payment.
  • Train a person. Acceptable only for judgment steps that are intentionally human.

Each action gets an owner, a date and a verification method. An action without a verification method is a wish. And every closed incident should leave a visible trace in your change log, so the next person reading a strange behaviour can see what was changed and when.

An illustrative scenario

The following scenario is illustrative, not a client account.

A back office agent reconciles supplier invoices and posts approved ones to an accounting system. On a Monday, a supplier changes its invoice layout. The agent's extraction step reads the new layout, picks up a line total instead of the document total, and posts twelve invoices at the wrong amount. Each posting returns success. The agent writes a note to memory: "this supplier's totals appear in the second column." Nobody notices until the finance lead reviews a weekly summary four days later.

The postmortem records: twelve wrong postings, all reversible; first divergence at the extraction step on Monday morning; detection on Thursday through a downstream report, a detection gap of four days; the memory note still active and shaping new runs; no alert existed because every tool call succeeded.

Corrective actions, in harness order: delete the memory note and add a review step before the agent writes durable facts about a counterparty; add a validator that rejects a posting when the extracted total does not match the sum of line items; cap postings per run so a systematic error cannot reach twelve records; add an alert on postings that deviate from the supplier's historical range; add the new invoice layout to the evaluation set. Only the last item mentions the prompt, and no item asks a person to be more careful.

Making postmortems a routine rather than an event

Postmortems decay when they are only written after something embarrassing. Set a low bar: any run stopped by a human, any outcome that had to be reversed, any incident where the agent's own memory was involved. Keep them in one place, keep the headings identical, and read the last few side by side every month. Patterns appear quickly. Three incidents with the same detection answer tell you where to invest. Three incidents on the same tool tell you the tool contract is the problem. A monthly pass over open actions is part of a healthy support and maintenance routine.

Be Human builds this into managed operation: incidents are logged against the agent and its tools, corrective actions are tracked to a specific change in the prompt, permission set, limit or integration, and recurring evaluations include cases derived from past incidents so that fixes stay fixed through model and prompt changes. Permission review and change logging are part of the same routine, which keeps the record readable for the owner rather than only for engineers.

If you are earlier than that and still deciding where an agent belongs in your operation, take the free Be Human AI diagnostic to find the first task worth handing to an agent.

Frequently asked questions

How long should an AI agent postmortem be? One page, or roughly the length of this template filled in plainly. Longer documents are usually hiding uncertainty behind narrative. If you need supporting traces or transcripts, link them rather than pasting them, and keep the main document readable in five minutes by someone who was not involved.

What counts as an incident worth a postmortem? Any agent outcome that reached a customer, a financial record or an external system in a wrong state, plus any run a human had to stop manually. Add two softer triggers: incidents where the agent wrote something false into durable memory, and near misses caught by a reviewer that would have been costly if they had shipped. Minor formatting corrections belong in your weekly review notes, not in a postmortem.

How do you keep a postmortem blameless when a person really did make a mistake? Record the action without the adjective, then ask what allowed a single human action to cause that outcome. If one person widening a permission or approving a prompt edit can lead to customer impact, the missing controls are review, scope and limits. The person is part of the timeline; the system is where the corrective action goes.

Should postmortems be shared outside the team? Share the summary, impact and corrective actions with whoever owns the affected process, and keep raw traces restricted to the people who need them. Owners are more willing to extend an agent's authority when they can see that incidents are recorded, bounded and closed. Redact customer identifiers before circulating anything widely.

Your next step

See where an AI agent fits in your company first.

Take the free Be Human AI diagnostic. A few questions about your work show which task to hand to an agent first, what it needs to know and where a person approves.

Be Human editorial guidance. Examples are illustrative unless explicitly attributed. Sources provide background; implementation choices depend on your workflow.

Less busywork. More room for you.

Bring us the work you wish you had time for.

Book a call to try a personalized AI agent free for 7 days ↗Or take the free AI diagnostic →