Why Agent Incidents Need a Different Postmortem Structure
Traditional incident reports were built around request/response failures: a user session broke, a service returned an error, a deploy caused a regression. AI agents introduce a different failure surface. They act under their own credentials, chain multiple tool calls together, and make decisions based on model reasoning that is not always deterministic or fully observable after the fact. A postmortem template built for stateless software incidents will miss the fields that actually explain what happened.
This is why an agent postmortem needs dedicated sections for agent identity, permission scope, and the tool-call chain, in addition to the standard timeline and impact assessment. Without these, teams end up debating what the agent "meant to do" instead of what it was actually authorized and able to do.
Core Sections of the Template
A complete AI agent postmortem generally includes:
- Summary and impact: what happened, what systems or data were affected, and the business impact.
- Agent identity: the specific service account, role, or agent instance responsible for the action.
- Permission scope at time of incident: the exact grants in effect, including any recent changes to those grants.
- Tool-call chain: a sequenced record of every tool invocation, its inputs, outputs, and timestamps.
- Policy decisions: which policies evaluated the action, whether they allowed or denied it, and the policy version enforced.
- Root cause classification: categorization into model reasoning failure, runtime policy misconfiguration, or compromised tool integration.
- Remediation and ownership: the specific fix, the owning team, and the target date.
- Sign-off: engineering and governance approval that remediation is complete.
Root Cause Classification: Three Distinct Failure Modes
Not every agent incident has the same cause, and conflating causes leads to the wrong fix being applied. It is useful to classify each incident into one of three categories:
- Model reasoning failure: the agent selected a poor or incorrect action despite operating within its granted permissions and available tools. The remediation typically involves prompt, evaluation, or model changes.
- Runtime policy misconfiguration: the agent was granted broader access than intended, or a policy that should have blocked the action was missing, disabled, or misconfigured. The remediation typically involves the platform or security team.
- Compromised tool integration: a downstream tool or API the agent called was itself compromised or returned manipulated data. The remediation typically involves the integration owner and may require a security investigation.
Recording the classification explicitly, rather than leaving it implicit in the narrative, makes it possible to track failure-mode trends across incidents over time.
Operational and Tradeoff Considerations
Producing a useful postmortem depends on logging granularity that many teams do not yet have in place. Structured logs of agent identity, permission checks, tool invocations, and policy decisions need to exist before an incident occurs; retrofitting this after the fact is rarely possible. Teams should also weigh how long postmortems are retained: they can contain sensitive operational or customer data, so retention and access controls deserve the same rigor as the logs themselves.
Finally, a postmortem is only as useful as the runtime's ability to enforce the resulting policy change. Identifying that a permission was too broad has limited value if there is no mechanism to tighten and re-verify that permission going forward.
Frequently Asked Questions
How is an AI agent postmortem different from a standard incident report?
A standard incident report tracks user sessions and application errors. An AI agent postmortem must separately capture agent identity, permission scope, and the full tool-call chain, since agents act autonomously under their own credentials and can invoke a sequence of tools that a traditional error log does not represent.
Who should sign off on an AI agent incident postmortem?
Both the engineering or runtime team that owns policy enforcement and the governance or compliance function should sign off, consistent with NIST AI RMF's governance function, which requires clear accountability for AI system incidents.
What logging is required to support this template?
Structured, immutable logs of agent identity, permission checks, tool invocations with inputs and outputs, and policy decisions including the policy version in effect. Without this granularity, root cause classification relies on inference rather than evidence.