Using AI to Draft an Incident Postmortem: Prompts for the Timeline, the Blameless Narrative, and the Action Items

Flight control team monitoring consoles in a mission control room

AI can shorten an incident postmortem in three specific places: turning scattered logs, alerts, and chat messages into a clean timeline, rewriting a first draft so it reads as blameless rather than accusatory, and converting root causes into action items with an owner and a date attached. It cannot decide which contributing factors actually mattered, and it should not be the one signing off on the final report. That judgment call stays with the engineers who lived through the incident.

The postmortem is usually the bottleneck, not the incident

Most teams are reasonably good at the first part of an incident: someone gets paged, a few people jump on a call, a fix or a rollback goes out, and the dashboards go green again. The part that stalls is what happens afterward. The person who carried the pager is tired, the context is scattered across a monitoring tool, a chat channel, and a handful of terminal windows, and writing a postmortem feels like homework assigned right after a fire drill. Google’s SRE book treats the postmortem itself, not just the fix, as the mechanism that keeps an organization from relearning the same lesson every few months. If the write-up never gets finished, that mechanism doesn’t run — and when a postmortem does get published publicly, as in the AWS outage report that initially blamed an AI coding agent, how carefully it separates fact from assumption becomes everyone’s problem, not just the team that wrote it.

AI is a reasonable fit here because the three slow parts of writing a postmortem — assembling a timeline, finding neutral language, and turning vague causes into concrete follow-ups — are exactly the kind of drafting work a language model does well when it’s given the raw material and told what shape to produce. None of what follows replaces the incident review meeting; it just gets a draft on the table so that meeting starts from something better than a blank page.

Step 1: Turning raw incident data into a timeline

The slowest part of a first draft is usually the timeline: correlating a deploy notification, three alert firings, a dozen Slack messages, and a handful of log lines into one ordered sequence. Paste the raw material into a prompt built to produce exactly that, and nothing more.

You are helping reconstruct a timeline for an incident postmortem.
I will paste raw material below: alert notifications, deploy logs,
and a chat transcript. Build a single chronological timeline from it.

Rules:
- Convert every timestamp to UTC and show the original next to it.
- One line per event: "HH:MM UTC — event — source (alert / chat / log / deploy)".
- Mark anything you had to infer rather than read directly as "(inferred)".
- If there's a gap of more than 10 minutes with no data, add a line:
  "[gap: no data between X and Y]" instead of guessing what happened.
- Do not summarize or shorten quoted error messages — keep them verbatim.
- End with a short "Open questions" list for anything the timeline
  doesn't explain yet (e.g., why a retry storm started, who approved
  a change) — these are for the team to answer, not for you to guess.

Raw material:
[paste alert history, deploy log, and chat export here]

Two instructions in that prompt matter more than the rest. Forcing a label on anything inferred keeps the model from quietly smoothing over a gap in the data with a plausible-sounding guess — the same failure mode worth watching for when reading a stack trace with AI: a confident explanation is not the same as a correct one. And the “Open questions” list turns the exercise into something closer to a research assistant than a storyteller, which is the posture you want from a tool that wasn’t in the room when the pager went off.

Step 2: Writing a blameless narrative, not a confession

Blameless, in the sense Google’s SRE book and PagerDuty’s incident postmortem guide both describe it, doesn’t mean the report avoids specifics. It means the report explains why a reasonable, well-intentioned engineer made the decision they made given what they could see at the time, instead of stopping at the fact that a person made a mistake. The difference shows up in phrasing more than in content. Compare two ways of describing the same event:

Blaming: “The on-call engineer pushed a config change without checking the rollout dashboard, which caused the outage.”
Blameless: “A config change was rolled out through a path that doesn’t surface the rollout dashboard by default, so the on-call engineer had no visual indicator that the change was still propagating when the error rate began climbing.”

Both sentences describe the same sequence of events. Only the second one points at something the team can actually fix: a dashboard that should have been surfaced and wasn’t. A rewrite prompt can apply that shift mechanically, which is useful as a first pass even though a human still needs to check that the rewrite didn’t just launder away a real process failure along with the blame.

Rewrite the draft below as a blameless incident narrative.

For every sentence that names a person or a team as the cause of a
problem, rewrite it to instead name the system, process, or missing
safeguard that allowed the mistake to happen — without removing the
factual detail of what occurred. Do not soften or remove any
technical detail, timestamp, or impact figure. Do not add
speculation about motive. If a sentence already has no named
person responsible, leave it unchanged.

After the rewrite, list every sentence you changed, old next to new,
so a reviewer can check you didn't accidentally remove accountability
along with blame.

Draft:
[paste draft narrative here]

Step 3: Pulling action items that don’t rot in a backlog

“Add more monitoring” and “improve testing” are the two action items most likely to sit untouched in a backlog for a year, because neither one is actually a task — they’re categories of tasks. A useful extraction prompt forces the kind of specificity that makes an action item assignable in a single sprint planning meeting.

From the timeline and root-cause discussion below, extract a list
of action items. For each one, output:

- Action: a single concrete change (not a category like "improve
  monitoring" — name the specific alert, dashboard, test, or guardrail)
- Why: the one sentence linking it to something that happened in
  this incident
- Suggested owner: a team or role, not a named individual
- Effort: S / M / L (rough sizing only)
- Blocks a repeat? yes/no — would this action item alone have
  prevented this specific incident, or only made it easier to detect

Flag anything in the source material that sounds like an action
item but is too vague to assign as-is, and suggest a sharper version
instead of silently dropping it.

Timeline and discussion:
[paste timeline and root-cause notes here]

The “blocks a repeat?” column is worth keeping even when it feels redundant, because it separates prevention from detection. Faster alerting is genuinely valuable, but it’s a different kind of fix than one that removes the failure mode entirely — the same distinction that matters when deciding whether an AI guardrail actually stops a bad output or just logs it after the fact.

Where AI should stay out of the loop

A few parts of the process are worth keeping manual on purpose. If the incident touches customer data, a regulated workload, or anything that might need to be disclosed, the final wording is a legal and communications decision, not a drafting one — an AI-smoothed sentence can change the legal meaning of a disclosure without anyone intending it to. The same caution applies to infrastructure-as-code changes made during the incident itself: a hotfix written under pressure deserves the same scrutiny as any AI-written Terraform change does outside an incident, arguably more, since it’s more likely to have skipped review. And if the postmortem is being used as input to a performance conversation about a specific person, that’s exactly the moment to put the keyboard down — PagerDuty’s guidance is blunt about postmortems losing their value the moment people suspect they’ll be used against them.

A short checklist before you publish

  • Every inferred event in the timeline is labeled, and every open question has either an answer or an owner to chase it down.
  • Someone who wasn’t in the incident channel can read the narrative and understand what happened without needing the original Slack thread.
  • No sentence blames a named individual; every fix points at a system, process, or missing safeguard instead.
  • Every action item has an owner, a rough size, and is specific enough to start without a follow-up meeting.
  • A human who was actually part of the incident has read the final draft end to end — not skimmed it — before it goes out.

None of this turns writing a postmortem into a five-minute task, and it isn’t supposed to. What it removes is the blank page and the hour of mechanical transcription, so the time the team does spend goes into the part only they can do: deciding what the incident actually means for how the system gets built next.

A finished postmortem that only sits in a ticketing system does less good than one that actually gets read. Google’s SRE team built small rituals around this: a monthly roundup of one well-written postmortem shared with the wider organization, and recurring sessions where a team walks through an old incident, sometimes one that happened years earlier, purely to spread what was learned beyond the people who were paged. None of that requires AI. It requires someone deciding the report is worth a second audience, which an AI-assisted first draft makes easier to justify, since the team spent its own time on judgment instead of formatting.

Sources

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top