All guides

Blameless postmortems: what to write after an incident

A postmortem is the written record of an incident: what happened, what it cost and what will change. Google's SRE books and PagerDuty's guide describe what goes in it and how to keep blame out.

A wall covered in coloured sticky notes

When to write one

In Google's SRE book a postmortem is a written record with five parts: the incident, its impact, what was done to mitigate or resolve it, the root cause or causes, and the follow-up actions meant to stop it from recurring. It lists common triggers:

  • downtime or degradation that users can see, past a set threshold
  • data loss of any kind
  • on-call engineer intervention, such as a release rollback or rerouted traffic
  • a resolution time above some threshold
  • a monitoring failure

The book says to define these criteria before an incident occurs. PagerDuty's guide calls for a postmortem after every major incident. That includes any time incident response is triggered, even for a false alarm.

Write it promptly. The SRE workbook's reason is that information is fresh in the contributors' minds, and its model postmortem was circulated less than a week after the incident closed. Inside PagerDuty the policy gives a Sev-1 3 calendar days and a Sev-2 5 business days.

The sections of the document

The example postmortem in the SRE book has these sections, in this order:

Text

Date, Authors, Status
Summary
Impact
Root Causes
Trigger
Resolution
Detection
Action Items        columns: Action Item, Type, Owner, Bug
Lessons Learned     What went well, What went wrong, Where we got lucky
Timeline
Supporting information

The other sources add guidance for three of them:

  • Impact. PagerDuty's guide asks how long the impact lasted, how many customers were affected and what functionality was affected. It says to quantify impact with a business metric specific to the product. The workbook's rule: when data is missing, a well-informed estimate beats having none.
  • Timeline. To avoid hindsight bias, PagerDuty's guide says to start the timeline at a point before the incident and work forward from there.
  • Root causes. PagerDuty's guide states that a major failure in a complex system has no single root cause, only a combination of contributing factors. Never record what one person did as a root cause.

Blameless wording

The SRE book describes a blameless postmortem as one that identifies the contributing causes of the incident and does not indict any individual or team. Its starting assumption is that each person involved meant well and acted correctly on the information available to them. Where finger pointing prevails, the book says, fear of punishment keeps people from bringing issues to light.

PagerDuty's guide turns that into rules for the questions you ask:

  • Ask "what" and "how" questions, and avoid "who" and "why".
  • When you ask about a human action, abstract to an unnamed responder. Anyone could have made the same mistake.
  • Where someone's mistake did contribute to a failure, anonymize it in the document.

The workbook adds a rule for the prose: treat the postmortem as a factual artifact and keep personal judgments and subjective language out of it.

Action items with owners and dates

In the SRE workbook's model postmortem, every action item has an owner and a tracking number, a priority level and a verifiable end state. The workbook prefers a single owner with multiple collaborators.

PagerDuty's guide asks for items that are actionable, specific and bounded. Actionable means a sentence that starts with a verb. Specific means a scope defined as narrowly as possible. Bounded means the wording shows how to tell when the item is finished. Two of its examples:

Text

Poorly worded: Investigate monitoring for this scenario.
Better:        Add alerting for all cases where this service returns >1% errors.

Poorly worded: Fix the issue that caused the outage.
Better:        Handle invalid postal code in user address form input safely.

For dates, PagerDuty publishes its own policy: 15 days after a Sev-1 incident for the high-priority items that prevent a repeat, and 30 days for action items from a Sev-2. Set a policy of your own and document it.

Google's example labels each item by type: mitigate, prevent, process or other. The workbook states that changes to automated systems and processes are more reliable than attempts to change how people behave.

The review meeting

The SRE book's rule is that no postmortem is left unreviewed, and it encourages regular review sessions. It gives these review criteria:

  1. Key incident data was collected for posterity.
  2. The impact assessments are complete.
  3. The root cause is sufficiently deep.
  4. The action plan is appropriate, and the resulting bug fixes are at an appropriate priority.
  5. The outcome was shared with relevant stakeholders.

PagerDuty's guide adds the mechanics. Send a link to the document to attendees 24 hours before the meeting. The postmortem owner invites the incident commander, the service owners and key engineers involved, and the engineering and product managers for the impacted systems. A facilitator speaks as little as possible, keeps everyone on time, makes no decisions and takes no side. The facilitator does not need to be an expert in the affected systems. The most important outcome of the meeting is buy-in for the action plan.

What to track afterward

  • Tickets. PagerDuty's guide says to file each postmortem action item as a ticket in your work management system and to report on how many tickets from major incidents are still open.
  • Priority. The workbook quotes Google's Ben Treynor Sloss: to users, a postmortem with no subsequent action is indistinguishable from no postmortem. Every postmortem that follows a user-affecting outage must therefore have at least one P0 or P1 bug.
  • Audience. The workbook says a postmortem should be accessible to everyone at the company by default.
  • Closeout. The workbook warns against rewarding engineers for writing postmortems and not for closing the action items.

Sources

Want a second pair of eyes on yours? We do this work for a living.

Book a call

More guides