# Postmortem
<!--
ref: @any-corp/engineering/postmortem
type: protocol
tags: [engineering, postmortem, incident, retrospective, blameless]
triggers: [postmortem, retrospective, post-incident, root cause, learn]
version: 1
updated_at: 2026-04-30T17:25:41.704Z
-->

Every Sev-1, Sev-2, and customer-impacting Sev-3 gets a postmortem. The point is **learning**, not blame.

## When

- Within **5 business days** of incident resolution.
- Drafted by the **Incident Commander**.
- Reviewed in a **postmortem meeting** with everyone who was on the response (and anyone else useful).

## Blameless

Postmortems are blameless **as a discipline**, not as a slogan. That means:

- We name **systems, decisions, and tooling** as causes — not people.
- "Engineer X deployed without checking" is wrong framing.
- "The deploy tool didn't surface the failing canary metric" is right framing.
- People aren't perfect. Systems should be designed for that.

If the same person makes the same mistake repeatedly, that's a coaching conversation — separate from the postmortem.

## The template

```markdown
# Postmortem: [one-line description]

**Date of incident:** YYYY-MM-DD
**Severity:** Sev-X
**Duration:** [start time → end time, total minutes]
**Customer impact:** [N customers, what they experienced]
**Authors:** [IC + co-authors]

## Summary
2–4 sentences. What happened, what was the impact, what we did about it.

## Timeline
A table or list with timestamps in UTC.

| Time | Event |
|---|---|
| 14:32 | Deploy of <SHA> begins |
| 14:45 | First customer complaint in support |
| 14:46 | Alert fires for elevated 5xx |
| 14:47 | On-call paged |
| 14:51 | Incident declared, IC assigned |
| 14:54 | Rollback initiated |
| 15:02 | Rollback complete, errors return to baseline |
| 15:32 | Incident marked resolved |

## What happened
A narrative explanation of the incident. What broke and why. Detail enough that a reader unfamiliar with the system can follow.

## Why it happened
Root cause analysis. Use **the 5 whys** if useful. Identify all contributing factors, not just the proximate cause.

## What went well
- Things the team did well during the response.
- This section is real, not pro-forma.

## What didn't go well
- Things that should have gone better.
- Detection time, mitigation time, communication, tooling, runbook gaps.

## Where we got lucky
- Things that could have been worse but weren't.
- Implicit dependencies on luck become future incidents.

## Action items
| Action | Owner | Due | Severity prevention |
|---|---|---|---|
| Add alert for X | @owner | YYYY-MM-DD | Detection |
| Update runbook for Y | @owner | YYYY-MM-DD | Response |
| Refactor Z to remove single point of failure | @owner | YYYY-MM-DD | Prevention |

Each action item has an owner, a due date, and a category.

## Customer comms (if applicable)
- What we told customers.
- Status page links.
- Incident-comms post-mortem if there's something to learn there too.
```

## The 5 whys (when useful)

Stack five "why" questions to push past the proximate cause.

```
Symptom: 5xx errors on /login
Why? The login service crashed.
Why? It ran out of memory.
Why? A new feature loaded all users into memory at startup.
Why? The startup-load pattern wasn't tested at scale.
Why? Our load tests use 100 users; we have 50,000.
```

The action item attaches to the deepest "why" we have a fix for — usually 3–5 layers down.

## Action items — the discipline

Action items go into the team's tracker **with a real due date**. We do not let postmortem actions rot in a backlog.

- **High-severity** (would prevent a recurrence): due **within 4 weeks**.
- **Medium-severity**: due **within 8 weeks**.
- **Low-severity** (nice-to-have): due **within the quarter** or accept it won't happen and remove it.

Each engineering manager reviews their team's open postmortem actions in their **monthly engineering review**. Old actions either close or get explicitly retired.

## The postmortem meeting

- 60 minutes max.
- Attendees: IC, on-call, anyone hands-on, the relevant manager. CTO occasionally.
- Walk through the doc. The doc should already be 90% complete; the meeting is for refinement and action-item commitment.
- One **note-taker** captures changes back to the doc.

## Publishing

After the meeting:

1. Doc is finalized.
2. Posted in `#engineering-postmortems`.
3. Sent to the team that owns the service.
4. Action items filed.
5. **For Sev-1**: shared at the next all-hands; if customer-facing, summarized for the public status page postmortem.

Postmortems are **not secret**. Internal-by-default; published externally for major customer-facing Sev-1s.

## What makes a good postmortem

- The narrative is honest and specific.
- The action items are achievable and have owners.
- The reader could prevent this incident from happening at their company by reading the postmortem.
- A new hire reading it would understand the system better, not just the failure.

## What makes a bad postmortem

- Vague action items ("be more careful," "improve monitoring").
- No timeline.
- One person blamed.
- Closed without action items getting done.
- Filed and never read again.

## What we don't do

- We don't punish the IC for declaring an incident "too high." Better to over-call than miss.
- We don't punish the engineer who shipped the bug. Bugs are normal; the system that let it through is what we fix.
- We don't skip the postmortem because "everyone knows what happened." Writing it is the work.
- We don't let actions rot. If you're not going to do it, retire it explicitly — don't just let it age out.

---

*Related: `@protocol/retro` · `@protocol/caper` · `@any-corp/engineering/code-review` · `@protocol/project-status` · `@any-corp/engineering/git-and-pr`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*