Skip to article content
FrontendXLesson 10 / 20

Production incident review

Turn a vague failure report into a reproduction, isolate the cause, form and falsify hypotheses, instrument the code, fix async and state bugs, lock the fix behind a regression test and review changes for real trade-offs.

advanced · about 45 minutes · 2 exercises

  • Explain
  • Interview

What you will be able to do

#
  • Build a timeline that separates the trigger from the cause.
  • Write specific, owned and testable action items.

Overview

#

An incident review is a debugging artifact written for the future. Its goal is to make the same failure less likely and less costly, not to assign blame.

Start with impact and a timeline. What broke, for whom, for how long, and how did you find out? A timeline lists events in order with times: first error, detection, mitigation and resolution.

Separate the trigger from the cause. The trigger is the change that started the failure; the cause is the condition that allowed it to matter. A deploy shipped a bad config is a trigger. Nothing validated the config before it reached production is the cause.

Use the three observability signals to reconstruct what happened. Logs give discrete events with detail. Metrics give the shape over time, such as a spike in errors or latency. Traces follow one request across services and show where it slowed or failed.

snippet.js
logger.error({ requestId, route, status }, 'request failed');

A structured log line with a request id lets you join a user report to the exact server events. Without it, you are guessing from timestamps.

Write action items that are specific, owned and testable. Add a schema check that rejects an invalid config in CI is better than be more careful. Prefer a system fix over a reminder, because reminders do not survive a busy week.

Finally, state what you still do not know. An honest we could not reproduce the second spike is more useful than a confident story the evidence does not support.

Exercises

#

Reference answers and expected output are authored, not executed in this browser. Nothing you type is run, and there is no Run or Pass control on this page.

  1. Exercise 1Interview

    Walk through how you would run a postmortem for a checkout outage. Describe the timeline, the separation of trigger and cause, and two action items.

    Reveal the reference answer
    reference.text
    Timeline: first failed request at 09:12, error-rate alert at 09:14, rollback at 09:20, full recovery at 09:25. Trigger: a deploy shipped an invalid tax config. Cause: nothing validated the config before production. Action items: add a schema check in CI that rejects an invalid config, and add an alert on checkout error rate above one percent for two minutes. Each item is specific, owned and testable.

    Authored expected output: A timeline with times, a trigger separated from a cause, and two specific, owned and testable action items.

    The timeline reconstructs the sequence from detection to recovery. Separating the trigger from the cause moves the fix from the specific change to the condition that let it reach production, and testable action items can be verified later.

  2. Exercise 2Explain

    Why is be more careful a weak action item?

    Reveal the reference answer
    reference.text
    It names no owner, no change and no way to verify it happened. It relies on memory under pressure, which is exactly the condition that caused the incident. A system fix, such as a validation step in CI, removes the failure mode instead of asking people to remember.

    Authored expected output: An explanation that a reminder is unverifiable and does not remove the failure mode.

    A reminder names no owner, no change and no check, so it cannot be verified and depends on memory under pressure. A system fix removes the failure mode instead of asking people to remember.

Common misconceptions

#
  • The trigger and the root cause are the same thing.
  • A reminder to be more careful is a sufficient action item.

Follow-up practice

#
  • debugging-review-11-code-review-trade-offs

Related resources

#

Your progress

#

Answers, drafts and completion marks are stored only in this browser. Nothing is sent to a server and no account is used.

Verification: authored. Answers and outputs on this page are authored reference material, not executed results.

© 2026 FrontendX. All rights reserved.