DEV Community

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

Debashish Ghosal on December 05, 2026

When the Agent Causes the Incident, Whose Name Goes in the Postmortem? The agent made the change. CI approved it. A human clicked merge....
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.