Skip to content

Lesson 22 of 28Production ownership

Blameless Postmortems

Write the review that makes an outage worth something: blameless language, timelines, contributing factors, root-cause tools and action items that get done.

12 min read0/4 questions

On Tuesday a config change took checkout down for 47 minutes. It was rolled back, the graphs went green, and everyone went home tired. On Wednesday your manager asks you to write the postmortem, and the meeting is on Thursday. What you write decides whether the team learns something real or whether the same outage comes back in three months wearing a different hat. It also decides whether the engineer who pressed deploy feels safe telling the truth next time. This lesson is about writing that document well and running the process around it.

Why blameless is a practical choice, not a kind one

Blameless does not mean nobody is responsible. It means you assume that everyone involved acted reasonably given what they knew, what their tools showed them and the pressure they were under at the time. The question changes from "who did this?" to "how did our system make this the easy thing to do?"

There is a hard-nosed reason for this. Postmortems run on information, and the only people who have the best information are the ones closest to the failure. If telling the full story gets you blamed, people tell a shorter story. They leave out the shortcut they took, the warning they ignored because it fires every day, the runbook step that made no sense. Those missing details are exactly where the fixes are. John Allspaw's well-known 2012 post on blameless postmortems at Etsy made this argument, and the Google SRE book's chapter on postmortem culture says the same: a blamed engineer stops reporting, and an organisation that cannot see its near misses only learns from its disasters.

Two ideas help you write this way:

  • Local rationality. People do what makes sense to them in the moment. If a reasonable engineer ran the command, the interesting question is why it seemed reasonable: the docs said so, the staging run passed, the flag name was misleading.
  • The second story. The first story is "Sam pushed a bad config." The second story is "a config change with no validation, deployed to every region at once, through a tool that showed no diff, at the end of a sprint with a release deadline." The first story ends the conversation. The second one produces action items.

Blameless also has limits, and seniors know where they are. Deliberate harm or repeated, reckless disregard of agreed rules is a management matter, handled privately and separately from the postmortem. The postmortem itself stays about the system.

When to write one

Most teams write a postmortem when an incident crosses a line that is written down in advance, so nobody has to argue about it afterwards. Typical triggers:

  • Any SEV1 or SEV2 (the severity levels from Incident Response).
  • User-visible downtime or degradation beyond a threshold the team agreed.
  • Any data loss or corruption, however small.
  • A security incident or a leaked secret.
  • A rollback or manual intervention by on-call to keep production up.
  • A monitoring failure: users or support found the problem before your alerts did.
  • A near miss that would have been serious with slightly worse luck.

Write the draft within a few days, while memories and chat logs are fresh. The incident lead or the person who knows the technical story best usually owns the draft, but it is a team document: everyone involved adds and corrects.

The template

A shared template keeps postmortems comparable, so you can spot patterns across a year of them. Most companies use something close to this. Copy it into your team's docs and adjust the headings to match your incident process.

# Postmortem: <short, factual title>
 
**Status:** Draft | In review | Final
**Incident date:** 2026-10-20  **Severity:** SEV2
**Authors:** <names>  **Incident commander:** <name>
**Review meeting:** <date>
 
## Summary
Two or three sentences a director could read: what broke, for whom,
for how long, and how it was fixed.
 
## Impact
- Users affected: <number or share, and which users>
- Duration: <start to mitigation, start to resolution>
- Business impact: <failed orders, refunds, SLA credits, support tickets>
- Error budget consumed: <share of this month's budget>
- Data: <lost, corrupted, or "none">
 
## Timeline (UTC)
| Time  | Event |
|-------|-------|
| 14:02 | Deploy 4812 reaches all checkout pods |
| 14:09 | Alert fires: checkout 5xx above 5% |
| ...   | ... |
 
## Detection
How did we find out? How long did it take? Would we have noticed
without the alert (or did a customer tell us)?
 
## Root cause and contributing factors
The technical trigger, then every condition that let it cause harm
and let it last as long as it did. Several factors, not one culprit.
 
## What went well
## Where we got lucky
## What went wrong
 
## Action items
| Action | Type | Owner | Priority | Ticket | Due |
|--------|------|-------|----------|--------|-----|
| Validate config schema in CI | Prevent | @team-checkout | P1 | PAY-512 | 2026-11-01 |
 
## Supporting material
Links: incident channel, dashboards, the PR, related postmortems.

Three sections are easy to skip and are the most valuable. Detection tells you whether your monitoring works. Where we got lucky names the things that kept it from being worse ("it happened at 2 p.m., not 2 a.m."; "the one person who knew the cache config was online"), which are risks you have not fixed yet. And what went well is not a pat on the back: it tells the team which practices to protect, like the rollback that took four minutes because someone automated it last quarter.

Build the timeline first

Write the timeline before you write any analysis. It is the shared set of facts, and arguments about causes usually turn out to be disagreements about what happened when. Pull it from the incident channel, deploy logs, alert history and dashboards, not from memory. Record what people knew and believed at each point, not just what the system did: "14:15, on-call suspects the payment provider because its status page shows an incident" explains the next ten minutes better than any graph.

With a timeline you can measure where the time went. These intervals are what most incident metrics are built from.

Python
from datetime import datetime # Timeline from the incident channel, all times UTC.timeline = [ ("14:02", "start", "Deploy 4812 reaches 100% of checkout pods"), ("14:09", "detect", "Alert: checkout 5xx rate above 5% for 5 minutes"), ("14:11", "ack", "On-call engineer acknowledges the page"), ("14:24", "declare", "SEV2 declared, incident channel opened"), ("14:38", "mitigate", "Deploy 4812 rolled back, error rate falls"), ("14:49", "resolve", "Error rate normal for 10 minutes, incident resolved"),] def t(hhmm): return datetime.strptime(hhmm, "%H:%M") at = {kind: t(hhmm) for hhmm, kind, _ in timeline} def minutes(a, b): return int((at[b] - at[a]).total_seconds() // 60) print("time to detect :", minutes("start", "detect"), "min")print("time to ack :", minutes("detect", "ack"), "min")print("time to declare :", minutes("ack", "declare"), "min")print("time to mitigate :", minutes("start", "mitigate"), "min")print("total duration :", minutes("start", "resolve"), "min") # Impact: checkout attempts per minute, and the share that failed.attempts_per_min = 420failure_rate = 0.31failed = round(attempts_per_min * failure_rate * minutes("start", "mitigate"))print("failed checkouts : about", failed) # Where did the time go? The biggest gap is usually the best action item.gaps = []for (h1, k1, _), (h2, k2, _) in zip(timeline, timeline[1:]): gaps.append((minutes(k1, k2), f"{k1} -> {k2}"))print("largest gap :", max(gaps))
Output
Press Run (⌘ Enter) to see what happens.

Read the output like a reviewer would. Detection took 7 minutes, which is fine for an alert with a 5-minute window. But 13 minutes passed between acknowledging the page and declaring an incident, and another 14 before the rollback. That pattern is common: one engineer debugging alone, hoping it is small, before calling for help. The fix is not "declare faster" written in an action item. It is a rule in the on-call guide ("declare if customers are affected; you can always downgrade"), and a deploy dashboard that shows the last change next to the error graph so rollback is the obvious first move. Being On Call and Incident Response cover those habits; the postmortem is where you find out whether they held.

Quick check
A timeline shows: alert at 03:10, acknowledged at 03:12, rollback at 03:58. The engineer spent the gap reading logs alone. What is the strongest finding?
Need a nudge? A hint rules out a wrong answer.

Root cause is usually plural

Teams love a single root cause because it makes a tidy sentence. Real outages almost never have one. A bug only becomes an incident when several defences fail at once: the code review missed it, the tests did not cover it, the rollout went everywhere at once, and the alert was too slow. That is why good templates say root cause and contributing factors, and why many experienced reviewers avoid the phrase "root cause" altogether.

The Swiss cheese model, from the safety researcher James Reason, is the picture to keep in your head. Each layer of defence is a slice of cheese with holes in it. Harm happens when the holes line up.

The defences a bad config change passed through
  1. Author and code reviewthe diff looked like a one-line change
  2. CI checksno schema validation for config files
  3. Stagingstaging has a different payment config
  4. Progressive rolloutconfig bypassed the canary and went to all regions
  5. Alertingfired after 7 minutes
  6. Mitigationrollback needed a manual revert PR

The change started with a person, as every change does. Stopping the analysis here gives you one action item: be more careful. That is not a fix.

1/5

The 5 whys and where it goes wrong

The 5 whys, which comes from Toyota's production system, asks "why?" repeatedly until you reach something you can fix. It is quick and works well in a meeting. Its weakness is that it follows a single chain, so it produces a single cause, and the chain bends towards whatever the person asking already suspects. Ask it from "why did checkout fail?" and you may end at "the config was wrong". Ask it from "why did it last 47 minutes?" and you end somewhere completely different. Use it on several starting questions (why did it happen, why did it spread, why did we not catch it earlier, why did recovery take so long), and stop when an answer is a condition you can change, not a person.

The fishbone diagram (Ishikawa) is the other common tool: you draw the incident as the head of a fish and list possible causes along bones grouped by category, such as code, config, process, tooling, people and environment. It is better than the 5 whys at surfacing many factors at once, and worse at showing how they connect. Neither tool replaces a careful timeline. They are prompts for discussion, not proof.

Write it without blame

Blameless writing is a skill you can practice. Name roles, not people, in the analysis ("the on-call engineer", "the deploy author"). Describe what the system allowed. Replace counterfactuals ("should have", "failed to") with what actually happened and why it made sense. Hindsight makes every warning look obvious; your job is to explain why it was not obvious at the time.

Match the pairs0/4 matched

Match each blaming sentence to a blameless rewrite that keeps the useful information.

Choose an item, then its match on the other side.

Action items that change something

The action items are the point of the whole exercise, and they are where most postmortems are weakest. "Be more careful with configs", "improve monitoring" and "add more tests" are wishes, not actions. A good action item is specific, owned, prioritised and tracked in the same ticket system as all other work, with a due date.

Rank your ideas by how much they depend on people remembering things. From strongest to weakest:

  1. Eliminate the hazard: remove the dangerous option, make the bad state impossible (a schema that rejects the invalid field).
  2. Guardrail it: automation that stops or limits the damage (config goes through the canary; a deploy blocks if the error rate rises).
  3. Detect it faster: an alert on the symptom users feel, a dashboard that shows recent changes.
  4. Recover faster: one-click rollback, a tested runbook.
  5. Document or train: useful, but the weakest, because it relies on memory under pressure.

A healthy action list has a mix: one or two preventive items, one for detection, one for recovery. Keep it short. Ten P2 items that never get done teach the team that postmortems are theatre. Three P1 items that ship in two weeks teach the opposite.

Quick check
Which action item is strongest for an outage caused by a feature flag that was turned on for 100% of users by mistake?
Need a nudge? A hint rules out a wrong answer.

The review meeting and what happens after

The review meeting is where the draft becomes the team's understanding. A few habits make it work:

  • Send the draft a day early so people arrive having read it. The meeting is for questions and disagreement, not for reading aloud.
  • Have a facilitator who was not deeply involved. Their job is to keep the conversation on the system, ask "what made that seem reasonable at the time?", and stop anyone drifting into blame, including people blaming themselves.
  • Invite the people who were there, the owners of the systems involved, and anyone who will own an action item.
  • Agree action items and owners in the room, then file the tickets before people leave.

After the meeting, share the postmortem widely. Many companies have an internal list or channel where every postmortem is posted, and reading other teams' incidents is one of the fastest ways to learn how your company's systems really fail. Then track the action items to completion. A quick monthly check of open postmortem actions, and a habit of linking a new postmortem to old ones when the same factor appears, turns a pile of documents into an improvement programme. If the same contributing factor shows up in three postmortems, that is a project, not another action item.

Put it in order6 steps

Put the postmortem process in order, from the end of an incident to the last step.

  1. Tap the steps below in the right order.
Need a nudge? A hint shows where it starts.

Reading a real postmortem

Big infrastructure companies publish detailed postmortems, and they are free lessons. Cloudflare's write-up of its 2 July 2019 outage is a good one to start with. Paraphrased, the story is this:

  • Trigger. An engineer deployed a new rule for the web application firewall. It contained a regular expression that backtracked catastrophically on certain inputs, so CPU on machines handling HTTP traffic went to nearly 100% worldwide.
  • Why it spread. Firewall rules were deployed to the whole network at once, because fast global rule updates are a feature when you are responding to a new attack. Code changes had a staged rollout; this kind of change did not.
  • Why it was not caught. The rule ran in a mode intended to be safe, but CPU cost was a hazard in any mode. A protection that limited regex CPU usage had been removed by accident in an earlier refactor.
  • Why recovery was slower. Some internal tools sat behind Cloudflare itself, and the bypass access engineers needed was rarely used, so not everyone had it ready.
  • Action items. Moving to a regex engine with guaranteed run-time bounds, adding staged rollouts for rule changes, and restoring and testing the safeguards and emergency access.

Notice what it does: no names, a clear timeline, several contributing factors across code, process and tooling, and action items that remove whole classes of failure. Read the original on Cloudflare's blog, then look at a couple of other public postmortems from cloud providers. You will start seeing the same patterns everywhere: global changes without a canary, safeguards removed quietly, and recovery tools that depend on the thing that is down.

Key terms
blameless postmortem
A written review of an incident that asks how the system allowed it, assuming people acted reasonably with what they knew.
contributing factor
One of the several conditions that together allowed an incident to happen, spread or last; there is rarely a single root cause.
Swiss cheese model
James Reason's picture of layered defences, each with holes; harm happens when the holes line up.
5 whys
Asking why repeatedly to move from a symptom to a fixable condition; quick, but biased towards a single chain.
near miss
An event that could have caused an incident but did not, often by luck; worth reviewing because it is cheap to learn from.
time to mitigate
Time from the start of impact until users stop being hurt, often by rollback, before the cause is fully understood.
action item
A specific, owned, prioritised and tracked change that removes a contributing factor.