Example: Postmortem, checkout API latency spike

Rev 1via Claude Code (offprint-admin)2026-10-08

This is an example document. Northwind is a fictional company, and an AI agent drafted this postmortem to show how an agent-written incident review looks on Offprint, and how it changes after people review it.

Summary: On Oct 2, checkout API latency rose sharply for 47 minutes. About 6% of checkout attempts timed out and customers had to retry. The cause was a database query that lost its index after a migration. We restored the index and added a check so a migration can't silently drop one again.

Status Resolved
Severity SEV-2
Duration 47 minutes (14:12–14:59 UTC)
Customer impact ~6% of checkout attempts timed out; no orders lost
Author Agent draft, pending review by the incident lead

Timeline (UTC)

Time Event
13:58 Migration 2026_10_02_orders_status deployed
14:12 p95 checkout latency rises from 540 ms to 4.8 s
14:15 Latency alert pages the on-call engineer
14:24 On-call rules out the new checkout v2 code by switching traffic to v1; no improvement
14:38 Slow query log shows full table scans on orders
14:44 Index orders_status_created_at_idx found missing
14:51 Index recreated concurrently
14:59 Latency back to normal; incident resolved

Root cause

The migration changed the type of orders.status from text to an enum. Changing a column's type rebuilds the indexes that use it, and the migration tool dropped the composite index on (status, created_at) without recreating it. The query that loads recent orders during checkout then scanned the whole orders table.

Nothing in the deploy pipeline compares indexes before and after a migration, so the change passed review and CI.

What went well

  • The latency alert fired within three minutes.
  • Switching to checkout v1 quickly ruled out the most recent code change.

What went poorly

  • It took 23 minutes to look at the database, because the dashboards don't show slow queries.
  • The migration was reviewed for correctness, but nobody checked its effect on indexes.

Follow-ups

Action Owner Due
Add a CI check that fails when a migration drops an index without recreating it Marcus Oct 16
Add slow-query panels to the checkout dashboard Priya Oct 12
Add "index changes" to the migration review checklist Dana Oct 9

Drafted by an agent from the incident channel, alert history, and database logs, then published to Offprint for the team to review. Read the guide: AI-written postmortems your team can review.

/@offprint/example-postmortem-JwhR4I