Root Cause Analysis and Postmortems
Learn from incidents without blame: build timelines, analyze contributing factors rather than a single cause, use structured techniques, write postmortems, define actions that change the system, and track them to completion.
Introduction
The incident is over. The easiest conclusion is “the engineer who deployed on Friday made a mistake.” It feels satisfying, and it is almost always useless: the next engineer, under the same conditions, will make the same mistake. The valuable question is different: what about our system allowed a reasonable person’s reasonable action to cause this?
Root cause analysis (RCA) and the postmortem are how organizations turn incidents into lasting improvements. Done well, they are the cheapest source of reliability work, because someone else’s pain has already paid for the lesson.
Learning Objectives
- Explain the principles of blameless analysis.
- Build an accurate timeline of an incident.
- Analyze contributing factors using structured techniques, and avoid single-cause thinking.
- Distinguish detection, mitigation, and prevention failures.
- Write a postmortem that is clear, honest, and useful.
- Define effective actions with owners and dates, and track them to completion.
- Use AI to assist the analysis while avoiding false certainty.
1. Blameless Does Not Mean Accountability-Free
A blameless postmortem assumes that people acted sensibly given what they knew, the tools they had, and the pressures they faced. It looks at systems, processes, and decisions, not at personal failings.
Why this matters:
- Blame hides information. If people expect punishment, they stop telling you what really happened, and you lose the facts that matter.
- Human error is a symptom, not a cause. If one person’s slip can take down production, the system lacked guardrails, tests, review, or rollback.
- Learning requires safety. Teams that feel safe report near misses, which is where the cheapest lessons are.
Blameless does not mean that nothing is ever someone’s responsibility. Leaders are accountable for the system of work, and where behavior is reckless or repeatedly ignores agreed practice, that is addressed separately and fairly. The postmortem itself stays focused on learning.
Language matters. “The engineer ran the wrong command” invites blame. “The command was available in production without a confirmation step, and its output did not identify the environment” opens the door to a fix.
2. When to Hold a Postmortem
Agree on criteria in advance. Typical triggers:
- Any SEV1 or SEV2 incident.
- Any user-visible data loss or security exposure.
- A near miss that could have been severe.
- An incident that exhausted a significant part of an error budget.
- A rollback or manual intervention that was needed in production.
- Any incident the team feels it learned something from.
Hold the review soon (within a few days), while memory is fresh, but not in the middle of exhaustion. Include the responders, the owners of the affected systems, and someone to facilitate who was not central to the incident.
3. Build the Timeline
The timeline is the factual backbone. Reconstruct it from the incident channel, monitoring and deployment records, logs, and alerts, with time stamps in one time zone:
1
2
3
4
5
6
7
8
9
14:02 Release 0.1.4 deployed to production (rolling, 25%)
14:09 Release reaches 100%; automated verification passes
14:41 Provider rate-limit responses begin to rise (metric)
15:12 First customer email: summaries missing
15:25 Import SLO burn alert pages on-call <-- detected 44 min after onset
15:31 Incident declared SEV2; IC assigned
15:48 Feature flag for summaries turned off; imports recover
16:20 Retry configuration reverted to previous values
16:32 Summaries re-enabled gradually; incident resolved
Mark the key points: when the problem started, when it was detected, when it was mitigated, and when it was resolved. The gaps between them show where the response can improve: time to detect, time to engage, time to mitigate, time to resolve.
Distinguish facts (what the evidence shows) from interpretations (what we think it means). Note where the timeline is uncertain.
4. Find the Causes: Contributing Factors
Complex systems rarely fail from a single root cause. Several conditions line up: a change, a latent weakness, a missing safeguard, an unlucky timing. Searching for “the” root cause tends to stop at the first convenient answer.
Prefer to ask: what contributed, and what would have prevented, detected, or limited it? Consider categories:
| Category | Questions |
|---|---|
| Trigger | What event started it: a release, a configuration change, a traffic pattern, a dependency failure? |
| Latent conditions | What weaknesses already existed: missing limits, unsafe defaults, an untested path? |
| Detection | Why did we not notice sooner? Was the right alert missing, too slow, or ignored? |
| Response | What slowed mitigation: unclear ownership, missing runbook, access problems, uncertainty about rollback? |
| Prevention | Which review, test, or gate could have caught it, and why did it not? |
| Impact | Why was the damage as large as it was? Was there no degraded mode, no per-tenant limit? |
| Communication | Were users and stakeholders told promptly and accurately? |
| Luck | What went right by chance that might not next time? |
Techniques
The five whys asks “why?” repeatedly to move from the symptom to deeper causes:
1
2
3
4
5
6
Why were summaries missing? The worker could not call the provider.
Why not? The provider returned rate-limit errors.
Why did we exceed the limit? The new retry setting multiplied calls.
Why was that setting changed? To improve success on slow responses.
Why was its effect not seen? No load test for the retry path; no
alert on provider rate-limit responses.
The technique is useful but has traps: it follows one line when there are several, it can drift into blaming a person, and it stops where the questioner stops. Use it to open lines of inquiry, and branch where the answers branch.
Fishbone (cause and effect) diagrams organize factors by category (people, process, tooling, environment, dependencies). Fault trees work backward from the failure through logical conditions. Change analysis compares what changed with what did not: releases, configuration, data, traffic, dependencies. Timeline analysis reveals where decisions were made with incomplete information, and why they were reasonable then.
Whatever the technique, check the causal claims against evidence. “The retry change caused the surge” should be supported by the metric showing outbound call volume rising after the change, and by a reproduction in staging if possible.
5. Beware of Common Biases
- Hindsight bias: knowing the outcome makes the warning signs look obvious. Ask what was visible at the time.
- Outcome bias: judging a decision by its result instead of by the information available when it was made.
- Single-cause thinking: stopping at the first plausible answer.
- Human-error endings: “operator error” is where analysis should begin, not end.
- Fix-the-instance: repairing the one failure instead of the class (a missing guardrail that will fail again).
- Overreaction: adding heavy process after a rare event, slowing everything. Weigh actions by their value.
6. Write the Postmortem
A postmortem is a short document, written for people who were not there, including future team members. A useful structure:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Postmortem: Summaries unavailable and imports delayed (SEV2)
Summary: [3 to 5 sentences: what happened, impact, duration, resolution]
Impact: [users and tenants affected, duration, data loss or not,
SLO and error budget consumed]
Timeline: [key events with times; start, detection, mitigation,
resolution]
Detection: [how it was found; time to detect; what would have found
it sooner]
Response: [what was done; what worked; what slowed us]
Contributing factors: [trigger, latent conditions, missing safeguards]
What went well: [specific things worth keeping]
What went poorly: [specific gaps]
Where we got lucky: [things that could have made it worse]
Actions: [table: action, type, owner, due date, priority, status]
Lessons learned: [what the team now understands]
Appendix: [graphs, logs, links]
Write in plain language, in the active voice, with the system as the subject. Include numbers: durations, percentages, budget consumed. Avoid names where roles will do, and never write in a way that assigns fault to an individual.
Share the postmortem widely within the organization, and with customers in summarized form when they were affected. Transparency builds trust and spreads learning. Treat sensitive details (security) appropriately.
7. Actions That Change the System
The value of the postmortem is in the actions. Weak actions (“be more careful,” “improve communication”) change nothing. Strong actions alter the system:
| Type | Example |
|---|---|
| Prevent | Add validation to reject retry settings that exceed provider limits; add a load test for the retry path |
| Detect | Add an alert on provider rate-limit responses; improve the alert that fired late |
| Mitigate | Provide a one-step feature switch with a runbook; add a per-tenant rate limit to cap damage |
| Respond | Update the runbook; fix access problems found; improve the status page process |
| Process | Require a risk note for configuration changes to external call behavior |
| Learn | Add a case to the training or tabletop exercise |
Rank actions by risk reduction versus effort, and prefer those higher in the hierarchy: eliminate the hazard or add an automatic safeguard before relying on training, reminders, or manual vigilance. Each action needs:
- A specific outcome (testable: “alert fires within 5 minutes when provider rate-limit responses exceed 5 percent”).
- An owner and a due date.
- A place in the normal backlog with a priority, so that it competes visibly for capacity. Limit the number per postmortem to the few that matter; a list of twenty will not be done.
- Tracking to completion and a check that it worked: after the fix, does the scenario now behave better? Review open actions regularly (lesson 9).
Where the error budget is exhausted, the policy from lesson 2 gives reliability actions priority.
8. Learn Across Incidents
One postmortem teaches about one event; many together reveal patterns.
- Keep an incident register with date, severity, duration, impact, trigger, contributing factors, and category.
- Review it quarterly: recurring triggers (releases, configuration, one dependency), recurring gaps (detection, rollback time), and trends in time to detect and resolve.
- Look at near misses and at incidents prevented by safeguards; they are cheap lessons.
- Share learning across teams: brief write-ups, a regular review, a library of runbooks and past cases.
If the same factor appears in several incidents, treat it as a structural problem worthy of a project.
9. Using AI for Root Cause Analysis and Postmortems
AI is helpful for assembling and structuring; it is dangerous when it supplies causes.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Act as a facilitator helping a team prepare a blameless postmortem.
Inputs (redacted):
- Incident channel transcript and decisions: [paste]
- Deployment and configuration change records for the period: [paste]
- Metric and alert summaries with times: [paste]
- Our postmortem template and the definition of blameless: [paste]
Tasks:
1. Build a timeline with times, marking start, detection,
mitigation, and resolution, and the time between them.
2. Separate facts from interpretations, and mark gaps.
3. List contributing factors by category (trigger, latent
conditions, detection, response, prevention, impact), each with
the evidence from the inputs.
4. List questions the team should answer to complete the analysis.
5. Draft the postmortem sections in blameless language, flagging any
sentence that could be read as assigning fault to a person.
6. Propose candidate actions by type, noting for each what it would
change and how we would verify it.
Do not state a root cause as fact unless the evidence is cited. Do
not invent details. Mark every inference.
Use the result carefully:
- Check every factual claim against records. Models fill gaps with plausible details.
- Do not let the draft end the thinking. A fluent narrative can feel finished; the team’s discussion is where understanding grows.
- Invite challenge: ask the model to argue for an alternative explanation, then test both against the evidence.
- Spot patterns across incidents by giving a set of past postmortems (sanitized), asking for recurring factors, and verifying them yourself.
- Keep sensitive data out of unapproved tools.
10. Practical Exercise
For SignalDesk (or your project):
- Write the postmortem criteria and the template, and define blameless principles for your team.
- Take a real or simulated incident (the provider rate-limit scenario from this lesson is suitable) and build the timeline with start, detection, mitigation, and resolution marked.
- Analyze contributing factors with the categories, using at least two techniques (for example, five whys and change analysis), and cite evidence for each.
- Write the postmortem in blameless language, including what went well and where you got lucky.
- Define five to seven actions across types, each with an outcome, an owner, a date, and a way to verify.
- Run the AI postmortem prompt on the same material, and compare: what did it get right, invent, or miss?
- Create the incident register and enter the incident.
- Schedule the first quarterly review of incidents and actions.
Verification
You are ready to continue when:
- The timeline distinguishes facts from interpretations and shows time to detect, mitigate, and resolve.
- Analysis lists several contributing factors with evidence, not a single cause.
- The postmortem contains no blame, and includes what went well and where luck played a part.
- Actions are specific, owned, dated, prioritized in the backlog, and verifiable, with a preference for system changes over reminders.
- An incident register exists, with a scheduled review.
- Any AI-written statements were checked against records.
Key Takeaways
- Blameless analysis uncovers the truth and improves the system; blame hides information.
- Incidents have multiple contributing factors; look at trigger, latent conditions, detection, response, and impact.
- Timelines separate what we know from what we infer.
- Good actions change the system and are owned, dated, tracked, and verified.
- AI helps draft and structure; it must not supply unverified causes.
What’s Next?
During an incident, the same tools that help in a postmortem can speed up troubleshooting, and can mislead it. The next lesson covers AI-assisted troubleshooting: how to use AI as a disciplined hypothesis generator during live problems, with guardrails.