Incidents & blameless postmortems

In one sentence

During an incident, one commander coordinates, roles are split, and you mitigate before you diagnose; afterwards, a blameless postmortem turns the timeline into owned action items that fix the system, not the person.

Analogy: A fire scene: one chief directs, crews put the fire out before anyone investigates the cause, and the investigator's report changes the building code, not who gets blamed.

Coordination and mitigation come first; diagnosis happens in the postmortem, and it only counts once the action items close.

How it works

  • The incident commander coordinates and decides but never types commands; only Operations changes the system.
  • Severity sets who gets paged and how often you update; declare early, because downgrading is cheap.
  • Blameless means asking "what made this easy to get wrong?", because people hide facts when they fear blame.
  • Be wary of 5 whys: one chain stops where the author's knowledge ends; real incidents have several factors.
  • AI incidents need pinned model and prompt versions, a kill switch per feature, and rollback in minutes.

Check yourself

Answer to mark it learned; your answers aren't scored.

You're IC for a SEV2: since prompt v42 shipped to 100% half an hour ago, the support bot promises refunds outside policy. Five engineers are reading logs to find which prompt line caused it. Prompts are versioned and behind a flag. What do you do first?

Go deeper

Full explanation

An incident is an unplanned disruption that needs a coordinated response now. Staff engineers run them or coach whoever does.

During:

  • Roles (Google SRE's split). The incident commander (IC) coordinates and decides but does not debug. Operations is the only group changing the system. Communications updates stakeholders and customers. PagerDuty adds a Deputy and a Scribe who keeps the timeline. Small incidents merge roles; the IC still never types commands.
  • Severity sets who gets paged and how often you update: SEV1 is a customer-facing outage or data exposure, SEV3 a degraded internal tool. Declare early; downgrading is cheap.
  • Mitigate first: roll back, flip the flag, fail over. Root cause waits until users are safe.
  • Cadence: updates at a fixed interval. "No news" is news.

After: a blameless postmortem with timeline, impact, contributing factors, what went well, and action items with owners and dates. Blameless means asking what made this easy to get wrong?, not who did it?, because people hide facts when they fear blame. Be wary of 5 whys: one chain that stops where the author's knowledge ends; real incidents have several factors.

AI incidents add new triggers: a model or prompt release that degrades answers, a Prompt injection (direct & indirect) exploit, a data leak through retrieval or logs. You need pinned model and prompt versions, a kill switch per feature and rollback in minutes.

Code Blameless postmortem template
textBlameless postmortem template
POSTMORTEM: [title]        SEV: [1-4]        Status: draft | reviewed
Date: [yyyy-mm-dd]   IC: [name]   Author: [name]   Review meeting: [date]

SUMMARY (3 sentences an executive can read)
  What broke, who was affected, how it was mitigated.

IMPACT
  Users/tenants affected, duration, failed or wrong responses,
  data exposed (yes/no, what), SLO error budget used, contractual impact.

TIMELINE (UTC, facts only, no adjectives, no names as blame)
  14:02  prompt v42 released to 100% of traffic
  14:31  support agent reports bot promising refunds outside policy
  14:38  SEV2 declared, IC assigned, comms owner named
  14:42  mitigated: flag routes back to pinned prompt v41

DETECTION AND RESPONSE
  Time to detect, to mitigate, to resolve. What helped? What slowed us?

CONTRIBUTING FACTORS (several, not one "root cause")
  - Technical:  no eval cases for refund policy
  - Process:    prompt changes skip canary rollout
  - Detection:  alerts on volume and errors, none on answer quality

WHAT WENT WELL / WHERE WE GOT LUCKY

ACTION ITEMS (each: type prevent|detect|mitigate, one owner, due date, ticket)
  - Add 30 refund-policy cases to golden set       owner  due  ticket
  - Canary prompt releases at 5% with eval gate    owner  due  ticket
  - Alert on policy-violation classifier rate      owner  due  ticket

LESSONS (what would we tell another team?)
Real example

A prompt change to a support bot ships to 100% on Friday. Within half an hour, it starts promising refunds the policy doesn't allow. A support agent reports it; the on-call engineer declares SEV2 and acts as IC, a second engineer takes ops, the support lead handles comms. The feature flag routes back to prompt v41 in four minutes, possible only because prompts are versioned and pinned. The postmortem names three contributing factors: no eval cases for refunds, no canary for prompt changes, and alerts on volume but not on answer quality. Each becomes an action item with one owner and a date.

Trade-offs +3 · −3

+ You gain

  • One commander removes the "ten people debugging, nobody deciding" failure mode.
  • Mitigating first shortens customer impact even while the cause is still unknown.
  • Blameless reviews surface the shortcuts and near-misses that blame would keep hidden.

− You pay

  • Roles and documents feel heavy for small incidents; scale the process by severity.
  • Postmortems without tracked action items are theater, and the same incident comes back.
  • "Blameless" misread as "no accountability" erodes trust; owners still own the fixes.

Use it when

Any user-facing degradation, data exposure or security event, including "the model started saying wrong things". Declare early and downgrade later; an undeclared incident has no commander.

Avoid it when

Routine bugs with no user impact and a known fix: a ticket is enough. Reserve full postmortems for SEV1–2 and novel failures, or they stop being read.

Numbers to know 3
  • Rule of thumb: SEV1 stakeholder updates every 15–30 min, SEV2 every hour, even when the update is "no change".
  • Rule of thumb: postmortem draft within about a week, while memory and logs are fresh.
  • Track time to detect, time to mitigate and time to resolve separately; mitigation is the one users feel.
Common pitfalls 4
  • The most senior engineer becomes IC and starts debugging; coordination stops. The IC's hands stay off the keyboard.
  • Hunting the root cause while users are still down. Roll back first, investigate second.
  • Action items with no owner or date, or "be more careful". Fix the system: tests, guardrails, alerts.
  • AI features on an auto-updating model alias with no kill switch, so "rollback" means a code deploy or isn't possible.
Interview questions 3

Answer out loud first, then reveal.

You're paged: the AI assistant is showing one customer's data to another. Walk me through the first hour.Show answer

Minute one, I declare SEV1, take IC or hand it to someone, and name an ops lead and a comms lead, with security and legal in the channel because it's data exposure. Mitigation before diagnosis: I flip the feature's kill switch or turn off retrieval, accepting a degraded product over a continuing leak. Then we preserve evidence, prompts, retrieved chunks and logs, so we can scope exactly who saw what. Only then root cause, likely a missing tenant filter in retrieval. Comms go out on a fixed cadence, and legal owns notification deadlines.

How do you keep postmortems blameless and still get accountability?Show answer

I separate the person from the decision context. The timeline asks what people knew and why their action made sense at the time; if a reasonable engineer could make the same mistake, the fix belongs in the system. Accountability lives in the action items: each has one owner, a due date and a ticket, and I review open items in the weekly ops review until they close. I also push back on a single root cause; I want contributing factors across prevention, detection and response.

What is different about incidents in AI features?Show answer

They are usually silent: no 5xx, no latency spike, just wrong or unsafe answers, so detection depends on online evals, user feedback and policy classifiers, not only on error rates. Reproduction is harder because outputs are nondeterministic, so I log the exact model version, prompt version and retrieved context per request, with PII handled. And rollback needs design upfront: pinned model snapshots instead of floating aliases, prompts behind flags, and a kill switch that degrades to a non-AI path.