SelfscribeDownloadOpen the app

Incident review

A timeline, the impact in numbers and the follow-ups, readable at a glance.

Document · Advanced · uses timeline, totals, table

Edit it in the playgroundRead the file

What it shows

Write a blameless incident review that reads at a glance.

What you learn

A row of pills split from one line, total tiles from a data block, a summary box, a timeline grouped from "at" lines, status tags as word rules, owners and due dates as inline marks.

Try this

  • Tick the mock provider action item, and its box fills in.
  • Change UK's failed from 2390 to 2600, and the "failed" tile and the table's total both follow.
  • Add a line at 15:20 | Status page updated under 14:53, and it joins the timeline in the same style.
examples/incident-review.self · 153 lines
~~~ selfscribe
# Lesson: Write a blameless incident review that reads at a glance.
# You learn: a row of pills split from one line, total tiles from a data block, a summary box, a timeline grouped from "at" lines, status tags as word rules, owners and due dates as inline marks.
# Try this: tick the mock provider action item, and its box fills in.
# Try this: change UK's failed from 2390 to 2600, and the "failed" tile and the table's total both follow.
# Try this: add a line `at 15:20 | Status page updated` under 14:53, and it joins the timeline in the same style.
# summary: A timeline, the impact in numbers and the follow-ups, readable at a glance.
# category: plans
# tags: document, advanced, work
# uses: timeline, totals, table
use markdown
use data
set title Incident review
set style sans
set page A4 portrait margins normal
set lang en-GB

# ---- The palette: each colour named once, with its shade for dark pages ----------------
# alert is the red of failure, ok the green of done, watch the amber of work in progress.
palette
  alert   #c92a2a  dark #ff8787
  ok      #2f7d3a  dark #69db7c
  watch   #b36b00  dark #ffc266
  ink     #1d4f91  dark #8ab8f5
  rule    color-mix(in srgb, currentColor 14%, transparent)

# ---- "meta a | b | c" on its own line: a row of pills under the title -------------------
# split cuts the line at each "|", and each piece becomes one span with the class ir-pill.
# The first pill is the severity, filled in red, and the second the state, in green.
line   meta _         -> div.ir-meta     split "|" span.ir-pill  { display: flex; flex-wrap: wrap; gap: 0.4em; margin: -0.3em 0 1.4em }  as ir-meta
class  ir-pill  { padding: 0.3em 0.85em; border-radius: 999px; font: 600 0.8em/1.5 var(--doc-font-ui); background: color-mix(in srgb, currentColor 7%, transparent) }
class  ir-pill:first-child  { background: var(--alert); color: var(--doc-bg, #fff) }
class  ir-pill:nth-child(2)  { background: var(--ok); color: var(--doc-bg, #fff) }

# ---- "::: summary" ... ":::": a red-edged box for the story in three paragraphs --------
block  ::: summary ... :::  -> aside.ir-summary  { margin: 0.6em 0 1.6em; padding: 0.9em 1.2em 0.2em; border-radius: 10px; border-left: 5px solid var(--alert); background: color-mix(in srgb, var(--alert) 7%, transparent) }  as ir-summary

# ---- "at 14:06 | what happened": one row of the timeline -------------------------------
# group gathers neighbouring rows into one div.ir-timeline, so the line down the left is one line.
line   at _           -> div.ir-event    split "|" span.ir-cell  group div.ir-timeline  { display: grid; grid-template-columns: 4.2em 1fr; gap: 1em; padding: 0.4em 0; border-bottom: 1px solid var(--rule) }  as ir-event
class  ir-timeline  { margin: 0.6em 0 1.4em; border-left: 3px solid var(--rule); padding-left: 0.9em }
# The first cell of each row is the time: monospaced, so the times line up.
class  ir-cell:first-child  { font: 600 0.88em/1.6 var(--doc-font-mono); color: var(--ink); font-variant-numeric: tabular-nums }

# ---- "#resolved", "#in-progress", "#blocked" anywhere: a coloured status tag ------------
# The three tags share the class ir-tag for their shape, and each adds only its colour.
class  ir-tag  { padding: 0.05em 0.55em; border-radius: 4px; font: 700 0.72em/1.6 var(--doc-font-ui); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap }
word   #resolved      -> span.ir-tag     { color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent) }  as ir-resolved
word   #in-progress   -> span.ir-tag     { color: var(--watch); background: color-mix(in srgb, var(--watch) 15%, transparent) }  as ir-in-progress
word   #blocked       -> span.ir-tag     { color: var(--alert); background: color-mix(in srgb, var(--alert) 13%, transparent) }  as ir-blocked

# ---- "<Name>" and "(due DATE)" in a line: who owns an action, and by when ---------------
inline <_>            -> span.ir-owner   { padding: 0.05em 0.6em; border-radius: 999px; font: 600 0.8em/1.6 var(--doc-font-ui); background: color-mix(in srgb, var(--ink) 12%, transparent); white-space: nowrap }  as ir-owner
inline (due _)        -> span.ir-due     { font: 0.8em/1.6 var(--doc-font-ui); opacity: 0.7; white-space: nowrap }  as ir-due
# The brackets and the word "due" are dropped by the rule, so the page writes "due" back in front.
class  ir-due::before  { content: "due " }
~~~
# Failed payments at checkout

meta Severity 2 | Resolved | 18 November 2026 | 14:06–14:53 UTC | 47 minutes | Lead: Lena Fischer

view: impact as stats sum failed, "customers hit", "€ refunded", attempts plain

::: summary
**What happened.** For 47 minutes, 38% of checkout attempts on the web shop failed with "Payment could not be taken". A new version of the payments client opened a fresh connection for every request and ran out of connections to the payment provider under afternoon load.

**How it ended.** We rolled back to the previous release at 14:41. Errors stopped by 14:53.

**What changes.** Connection limits are now tested under load before release, and the error alert fires after two minutes instead of ten.
:::

This review is blameless. It looks at how our systems and habits made the failure possible, not at who pressed which button. Everyone involved acted reasonably on what they knew at the time.

## Timeline

All times UTC, Wednesday 18 November 2026.

at 13:52 | Release 2026.11.18-2 starts rolling out to the checkout service. It includes the payments client upgrade.
at 14:06 | Rollout reaches all 12 checkout instances. Payment errors start to climb.
at 14:11 | Customer support sees three chats about failed payments in a minute and posts in #shop-incidents.
at 14:16 | The error-rate alert fires after ten minutes above 5%. Marco Bianchi, on call, starts investigating.
at 14:24 | Marco declares an incident, Severity 2. Lena Fischer takes over as incident lead.
at 14:31 | Dashboards show open connections to the payment provider pinned at the limit of 200 per instance.
at 14:38 | The team agrees to roll back rather than raise the limit, as the cause is not yet certain.
at 14:41 | Rollback to release 2026.11.18-1 starts.
at 14:53 | Error rate back below 0.5%. Incident marked as resolved; monitoring continues.
at 16:30 | Root cause confirmed in a test environment: connections were never returned to the pool.

## Impact

Figures for the 47 minutes, by region, from the payments dashboard and the order database.

```data impact as table sum attempts, failed, "customers hit", "€ refunded"
region, attempts:number, failed:number, customers hit:number, € refunded:number
UK, 6420, 2390, 1710, 1240.50
Germany, 3980, 1530, 1102, 860.00
France, 2110, 812, 590, 410.75
Netherlands, 1240, 455, 331, 205.20
```

Of the customers who saw an error, 64% completed their order later that day. We emailed the rest a 10% voucher on 19 November.

## Root cause

The payments client went from one major version to the next in this release. The new version expects the caller to close each response. Our checkout code did not, because the old version closed responses itself.

Every payment request therefore held its connection until it timed out after 90 seconds. At afternoon traffic, each instance reached the limit of 200 connections within about four minutes. New payments then waited for a free connection and failed.

### Why it was not caught earlier

- The client's release notes mentioned the change in a single line under "Other changes".
- Our tests use a mock payment provider that does not limit connections.
- Staging traffic is too light to fill a pool of 200.
- The error alert waited ten minutes before firing, and support saw the problem first.

### What went well

- Support raised the alarm five minutes before the alert did.
- The rollback was a single command and took 12 minutes end to end.
- No payment was taken twice. The provider's idempotency keys held.

## Action items

- [x] Close every payments response in the checkout service, and add a test that fails if one is left open <Marco Bianchi> (due 2026-11-20) #resolved
- [x] Bring the error-rate alert down from ten minutes to two <Sara Lindgren> (due 2026-11-20) #resolved
- [ ] Give the mock payment provider the same connection limit as the real one <Marco Bianchi> (due 2026-12-04) #in-progress
- [ ] Run a 20-minute load test at peak traffic before any release that changes a client library <Dev Okafor> (due 2026-12-11) #in-progress
- [ ] Show open connections per instance on the checkout dashboard, with an alert at 80% <Sara Lindgren> (due 2026-12-11)
- [ ] Agree with support how they page the on-call engineer directly <Lena Fischer> (due 2026-12-18) #blocked

The action items are reviewed at the weekly reliability meeting until all are ticked.

## How it's made

- The pills under the title are one line that starts with `meta`, cut at each `|`. The first
  two take their colours from `class ir-pill:first-child` and `class ir-pill:nth-child(2)`.
- The tiles are a `view: impact as stats … plain` line. They total the rows of the impact
  table further down, so a changed figure there changes a tile.
- Each step of the timeline is a line that starts with `at`. The rule cuts it at the `|` and
  gathers the lines into one column, the times in a column of their own.
- In the action items, `<Name>`, `(due …)` and the tags such as `#blocked` are rules of this
  page too.

## Try it yourself

1. Change `#blocked` on the last action item to `#in-progress`. The red tag turns amber.
2. Add a row `Spain, 980, 360, 270, 190.00` to the impact table. The totals and the tiles take it in.
3. Add `at 15:05 | Support posts an all-clear in #shop-incidents` under the 14:53 line. It joins the timeline.
4. Add ` | Postmortem published 25 November` to the end of the `meta` line. A new pill joins the row.
5. Change `(due 2026-12-18)` to `(due 2027-01-08)`. The date in grey follows, still with "due" in front.

Next: *On-call runbook* is the page the on-call engineer opens during the incident; *Meeting
notes* records a meeting the same way.