DEV Community

Debashish Ghosal
Debashish Ghosal

Posted on

When the Agent Causes the Incident, Whose Name Goes in the Postmortem?

When the Agent Causes the Incident, Whose Name Goes in the Postmortem?

The agent made the change. CI approved it. A human clicked merge. Production burned.

The postmortem template has a name field. What goes in it?

"The agent did it" is the answer your team will reach for first, and it is the most expensive sentence in the entire document. It ends the analysis, teaches nobody anything, and files the incident in a drawer marked nobody's fault, which is where lessons go to die.

The Triangle That Should Replace the Name Field

Blameless postmortems were designed for human actors, and they work because they separate the action from the person: the person is not the problem, the system that permitted the action is. Agents break that model in a specific way, and the fix is not a new philosophy. It is three fields instead of one.

Action: what did it. The agent, named, with the run and the tool call. This field exists so the technical timeline is accurate. The agent made the change, and the postmortem should say so.

Author: who delegated, and on what instructions. Which human assigned the task, what the agent was told, what instructions it had, and what the instructions failed to cover. This is where most of the learning lives, because agent incidents are almost always instruction gaps wearing a robot costume.

Accountable owner: the human whose name goes in the doc. Not as blame. As ownership. The person who answers for the delegation, reviews the instructions, and follows the fix through. This field exists because a postmortem with no name attached is a postmortem nobody is responsible for completing.

The one-field template collapses all three into "who caused it," and with an agent in the mix, the answer feels like nobody, which is the failure the triangle prevents.

Why "the Agent Did It" Ends the Analysis

Watch what the sentence does to a real incident review.

If the agent caused it, the remediation options shrink to agent-shaped ones: better prompts, more guardrails, maybe a scarier warning label. The review never asks the questions that actually prevent the next incident: who authorized this class of work, what was the delegation missing, why did the instructions permit this action, why was there no gate.

An agent that goes off the rails is a measurement instrument for your delegation quality. Every incident report should be read that way: the agent revealed an instruction gap that a human reviewer would have silently papered over. The agent is the messenger. "The agent did it" is shooting the messenger and calling it a postmortem.

tip: In an agentic incident, the postmortem's first job is separating the actor from the accountability. The action field names the agent. The owner field still names a human. Both fields are doing necessary, different work.

The Policy, in Three Fields

The template change is small enough to adopt tomorrow. A postmortem for an agent-involved incident adds three lines:

Action: agent name, run ID, tool call.
Author: delegating human, task as assigned, instructions as given.
Owner: accountable human, remediation owner, follow-up date.

And one rule that makes the triangle honest: the owner field cannot be blank, and it cannot say "the team." A team is not an owner. An owner is a person who reads the postmortem comments and closes the action items.

The Cultural Shift Underneath

The deeper change is what the fields make normal.

Agents join the team, and humans keep the pager. The agent is an actor with real capability and zero accountability, and that combination is only safe inside a system that binds every action to an accountable human before the action, not after the incident. The triangle is not bureaucracy. It is the price of letting a non-accountable actor take real actions, and the alternative to paying it is not having agents do real work.

There is a management parallel worth naming, because it is the same shape: delegating to a junior engineer without written expectations, then being surprised at the output. The fix was never "better juniors." The fix was clearer delegation. Agents are the same lesson, except the junior never gets better, never gets offended, and executes your vague instructions at machine speed, which means the instruction gaps surface faster and louder.

The Objection I Take Seriously

Does attaching a human name to an agent's action discourage the honest reporting that blameless culture spent twenty years building? If people fear their name in a doc, they will hide agent involvement entirely.

The objection confuses ownership with blame, and the distinction is enforceable. The owner field is for accountability of remediation, not causation of error. Say it explicitly in the template: the owner owns the follow-up, the action field owns the cause, and nobody is ever blamed for an agent action they delegated within policy. The triangle exists to protect people from the exact ambiguity that makes them defensive, which is a postmortem that cannot say who did what and settles for who was nearby.

Ask Before the First Incident

The worst time to design an incident process is during an incident, and the agentic version of that mistake is arriving. If agents make changes in your org, your first agent-caused incident is a matter of when.

So here is the question to take to your next process review, before it is urgent: if an agent caused your last incident, whose name is in the postmortem right now, and is that answer written down anywhere the team can see?

If the honest answer is "it depends on who is writing the doc," then the triangle is the upgrade. Three fields, one rule, twenty minutes of template work, and your first agentic postmortem becomes a lesson instead of a shrug.

Top comments (11)

Collapse
 
max_quimby profile image
Max Quimby •

The "Action / Author / Accountable owner" split is the cleanest framing I've seen for this. The line that's going to stick with me is "agent incidents are almost always instruction gaps wearing a robot costume" — that matches our experience almost exactly. Nearly every time one of our agents did something surprising, the root cause traced back to a standing instruction that was silently ambiguous, not a model failure.

Where I'd push a little: the Author field is also where you catch the instructions that were technically correct but under-specified for an unattended run. A directive that's fine when a human is watching ("clean up stale files") becomes an incident when it fires at 3am with nobody to sanity-check scope. So we started annotating delegated tasks with what they're allowed to do when no human can answer — the agent holds anything ambiguous rather than guessing. Curious whether you'd fold that into Author (delegation quality) or treat "unattended authority" as a fourth thing worth tracking.

Collapse
 
innokentyb profile image
Kent Bodrov •

I’d add the state of the controls to the timeline: what permissions the agent actually had, which checks ran, and what the reviewer could see before approving the change. Those records should come from the execution environment and CI, not only from the agent’s own summary. Otherwise the review can end at “the instructions were unclear” without finding the gate that failed or the evidence the human never had.

Collapse
 
heyvaldemar profile image
Vladimir Mikhalev •

That record also has to keep what was refused, or the timeline shows only the calls that went through. In the LLM gateway I run, a request made with a valid key leaves a request_logs row, refusals included, and revoking a key keeps its rows: in the v1.1.0 proof run, 920 requests left 920 rows, five 429 refusals among them.

That changes what the Action field holds. It stops being the agent's account of the run and becomes a query against rows the gateway wrote. The Owner then reviews evidence, not a summary.

Proof run 46223179416 for v1.1.0

Collapse
 
innokentyb profile image
Kent Bodrov •

Recording refusals matters, especially when the agent later retries. I’d test the full sequence with one correlation ID: denied request, permission change, then a new attempt. The review should show which policy version made each decision, while keeping credentials and sensitive payloads out of the log. That also distinguishes “the control blocked it” from “the call never reached the control”.

Collapse
 
thepopupshopai profile image
ThePopUpShopAI •

The Action / Author / Owner split is a clean way to keep blameless postmortems intact without letting "the agent did it" end the analysis.

One practical detail that pairs well with this: making the Action field require an immutable run ID plus the exact tool call and context snapshot the agent saw at decision time. Without that trace, postmortems easily drift into guessing whether it was a prompt gap, stale state, or an overly broad tool permission—whereas with it, the Owner has something concrete to turn into a guardrail or regression test.

Collapse
 
ayushdhanani369 profile image
Ayush Dhanani •

The Action / Author / Owner split is the part I would steal first. Naming the agent in Action and a person in Owner keeps the timeline honest without turning the postmortem into blame.

I build Aladdin, a job agent, and your line about instruction gaps matches what we see. A main agent holds the application, and a fresh worker reads the actual page and form for each one. When a form cannot be read, or an answer is not clearly covered by the user's own facts, the agent asks the user instead of guessing. That is our version of your Author field. The delegation is the thing being tested.

Max Quimby's point above is the one I would fold in: the agent holds anything ambiguous rather than guessing. In our case that hold is the safety rule, not a fallback.

Collapse
 
visionwei profile image
Wei Bin •

Debashish, the triangle maps onto my one-person setup: I let coding agents decide without me, and there I am Author and Owner at once, which is why the split matters with no team. I will steal this: an agent off the rails measures my delegation, not the agent. Does the Owner field work when owner and author are one person?

Collapse
 
member_7c8c7e8d profile image
Max K. •

Splitting Action, Author, and Accountable owner solves the exact dead end we saw in early agent reviews. Calling out the run ID and tool call keeps the timeline honest, while naming the human owner forces the fix back onto the missing gate or ambiguous standing instruction instead of just writing a stricter prompt. One extra line we found useful is listing which automated check should have blocked the action before merge. Have you seen teams put a hard approval boundary on external writes directly into that postmortem checklist?

Collapse
 
thepopupshopai profile image
ThePopUpShopAI •

Splitting Action, Author, and Accountable owner is a very practical way to keep blameless postmortems focused on system design rather than blaming "the AI." In automated workflows, capturing the exact prompt/rule version alongside the environment permissions at the time of execution makes it much easier to tell whether an incident came from an ambiguous instruction or a missing guardrail.

Collapse
 
smtahosin profile image
S M Tahosin •

Thanks Debashish! 'Owner can't be the team' lol, I've seen a timeout action item sit in a doc for 3 weeks untouched. One named guy fixed it by Friday in about an hour. Funny how that works :)

Collapse
 
x1y1co profile image
X1Y1 •

What goes in Author when the task came from another agent? A planner writes the brief, a worker runs it, and the only thing a person wrote was the line that started the planner.