How Do You Write a Data Incident Postmortem?

SRE postmortems miss what data incidents break: who already used the bad numbers, for how long, and what got restated. A template built for that.

How Do You Write a Data Incident Postmortem?

A data incident postmortem is a written review of a data quality failure that records when bad data first landed, who consumed it before anyone noticed, how it was corrected, and which control should have caught it, so the same failure doesn't recur.

Data teams borrowed the format from site reliability engineering, and the borrowing mostly works. Blameless tone, a timeline, contributing factors, action items. What doesn't carry over is the shape of the damage. When a service goes down, users get errors and the damage stops when the service comes back. When a table goes wrong, nobody gets an error. They get a number, they believe it, and they put it in a deck. Fixing the pipeline doesn't un-send the deck.

That one difference changes what a postmortem has to record, and the template at the end of this post is built around it.

Why doesn't an SRE postmortem template work for data?

Because SRE templates assume the outage and the damage end at the same time. For data, they almost never do.

A 40-minute API outage has a 40-minute impact window. Requests failed, users retried, the service recovered, and the postmortem measures those 40 minutes. A data incident that runs for 40 minutes can produce a wrong revenue figure that sits in a monthly report for three weeks. The pipeline was broken for 40 minutes. The business was misinformed for 21 days.

There are four structural differences, and each one needs a field the standard template lacks.

Dimension Service outage (SRE) Data incident
How damage shows up Errors, latency, failed requests Plausible wrong numbers that nobody questions
Who detects it Usually a monitor or a pager Often a human downstream: an analyst, a finance lead, an exec
When damage stops When the service recovers When every consumer has corrected numbers and knows the old ones were wrong
What "fix" means Deploy, rollback, restart Fix the pipeline, backfill or restate history, notify consumers
Blast radius Requests during the outage Every downstream table, dashboard, extract, and model that read the bad rows
Can damage persist after fix? Rarely Usually, in exports, decks, emails, and trained models

The row that matters most is the third one. In SRE, "resolved" is a technical state. In data, "resolved" is partly a communication state, because a corrected table that the CFO doesn't know was corrected still leaves the CFO holding the wrong number.

The second row is the uncomfortable one. Think about how your last five data incidents were detected. I'd bet at least two started with a Slack message from outside the data team asking "is this number right?" A template that doesn't record detection source can't tell you whether that's improving.

What timestamps does a data postmortem need?

Six. A service postmortem typically tracks start, detect, mitigate, and resolve. A data postmortem needs to separate the moment the data went wrong from the moment anyone used it, and separate the pipeline fix from the correction of history.

I call this the data incident clock. Each timestamp is a distinct event, and the gaps between them are the metrics worth tracking.

# Timestamp What happened Where to find it
T0 Onset First bad row was written Load history, _loaded_at columns, table version history
T1 First consumption Someone or something read a bad row Warehouse access history, BI query logs
T2 Detection Someone on the data team knew Alert timestamp, Slack thread, ticket
T3 Containment No new bad rows are being written Pipeline fix deploy, job pause, rollback
T4 Restatement Historical rows corrected Backfill job completion
T5 Notification Every affected consumer told what was wrong and for how long Your sent messages

From those six, three numbers fall out:

  • Time to detect = T2 minus T0. This is the number data downtime builds on, and it's the one monitoring is supposed to shrink.
  • Silent consumption window = T2 minus T1. How long people were using bad data before you knew. If T1 is before T2, damage already happened before anyone on your team could act.
  • Exposure window = T5 minus T0. The full period during which some consumer could hold a wrong number without knowing it. This is the real impact window, and it's almost always the longest of the three.

The point of separating them is that each one has a different owner and a different fix. Time to detect is a monitoring problem. Silent consumption is a monitoring problem plus a scheduling problem, because a check that runs after the dashboard refreshes is guaranteed to lose the race. The gap between T3 and T5 is a process problem that no tool solves.

A worked example. A Fivetran connector starts writing duplicate rows at 02:10 on a Monday (T0). The finance dashboard refreshes at 06:00 and an analyst exports it at 08:30 (T1). A freshness check stays green the whole time, because duplicates are fresh. An analyst flags the revenue spike at 14:00 on Wednesday (T2). The connector is fixed at 16:00 (T3), the dedupe backfill finishes Thursday at 11:00 (T4), and the last consumer is told on Friday (T5).

Time to detect: about 60 hours. Silent consumption: about 54 hours. Exposure window: about 4 days. If the postmortem only records "connector broken Monday, fixed Wednesday," it understates the damage by two days and misses that the export at 08:30 Monday is still sitting in someone's inbox with the wrong total.

How do you reconstruct the impact window from load history?

Start from the data, not from memory. People's recollection of when something broke is anchored on when they noticed it, which is T2, and the whole point is to find T0.

There are three sources, from most to least portable: a load timestamp column in the table itself, the warehouse's write history, and the table's version history.

If the table has a load timestamp column, this works on either warehouse. Replace the predicate with whatever identifies a bad row: a null, a duplicate key, a value out of range.

-- Works on Snowflake and Databricks SQL.
-- Finds onset (T0), last bad load, and bad rows per load batch.
-- Replace the WHERE predicate with your definition of a bad row.
WITH bad_rows AS (
    SELECT
        _loaded_at,
        order_id
    FROM analytics.fct_orders
    WHERE _loaded_at >= '2026-11-01'
      AND (amount IS NULL OR amount < 0)
)
SELECT
    DATE_TRUNC('hour', _loaded_at)  AS load_hour,
    COUNT(*)                        AS bad_rows,
    MIN(_loaded_at)                 AS first_bad_load,
    MAX(_loaded_at)                 AS last_bad_load
FROM bad_rows
GROUP BY 1
ORDER BY 1;

The first row's first_bad_load is your T0. The last row's last_bad_load tells you whether containment actually worked: if bad rows keep appearing after the time you recorded for T3, your fix didn't fix it. That happens more often than people admit, and the postmortem is the cheapest place to find out.

On Snowflake, when the table has no load column or was rebuilt by a transform job, ACCESS_HISTORY records every query that modified it. It needs Enterprise Edition or higher, and the view can lag by up to three hours, which doesn't matter for a postmortem.

-- Snowflake: every write to the affected table in the suspected window.
-- Each row is one load or transform run. Look for the first run after
-- the upstream change; that run's QUERY_START_TIME is your T0 candidate.
SELECT
    ah.query_start_time,
    ah.user_name,
    ah.query_id,
    qh.query_type,
    qh.rows_inserted,
    qh.rows_updated,
    qh.rows_deleted
FROM snowflake.account_usage.access_history ah
JOIN snowflake.account_usage.query_history qh
  ON qh.query_id = ah.query_id,
     LATERAL FLATTEN(input => ah.objects_modified) m
WHERE m.value:"objectName"::STRING = 'ANALYTICS.PUBLIC.FCT_ORDERS'
  AND ah.query_start_time BETWEEN '2026-11-01' AND '2026-11-08'
ORDER BY ah.query_start_time;

A sudden jump in rows_inserted on one run, or a rows_deleted count that's suddenly zero on a table that normally replaces a partition, is usually where the incident starts. Then use Time Travel to prove it, by comparing the table before and after the suspect run:

-- Snowflake: compare a row count before and after the suspect load.
-- Time Travel retention defaults to 1 day; Enterprise allows up to 90.
SELECT 'before' AS state, COUNT(*) AS row_count, SUM(amount) AS total
FROM analytics.public.fct_orders AT(TIMESTAMP => '2026-11-03 02:00:00'::TIMESTAMP_LTZ)
UNION ALL
SELECT 'after', COUNT(*), SUM(amount)
FROM analytics.public.fct_orders AT(TIMESTAMP => '2026-11-03 03:00:00'::TIMESTAMP_LTZ);

On Databricks, every Delta table carries its own version history, which is the equivalent of the Snowflake write log and doesn't need a separate edition.

-- Databricks: list every write to the table, with row counts per operation.
-- operationMetrics holds numOutputRows, numDeletedRows, and similar.
DESCRIBE HISTORY main.analytics.fct_orders;

DESCRIBE HISTORY returns version, timestamp, userName, operation, job, and operationMetrics. Scan for the first version after the upstream change where numOutputRows looks wrong. Then confirm it with time travel, same as on Snowflake:

-- Databricks: compare totals across the suspect version boundary.
SELECT 'before' AS state, COUNT(*) AS row_count, SUM(amount) AS total
FROM main.analytics.fct_orders VERSION AS OF 411
UNION ALL
SELECT 'after', COUNT(*), SUM(amount)
FROM main.analytics.fct_orders VERSION AS OF 412;

Delta keeps the files behind old versions until VACUUM removes them, and the default retention threshold is 7 days. If your incident was detected 10 days after onset, the version history still lists the write, but you may not be able to query the old version. Write that limitation into the postmortem if you hit it, because it's a finding about your retention policy.

How do you find out who consumed the bad data?

This is the query most postmortems skip, and it's the one that tells you who to notify. You want every read of the affected table between T0 and T3, grouped by who did the reading.

On Snowflake, ACCESS_HISTORY records reads as well as writes. BASE_OBJECTS_ACCESSED resolves through views, so a dashboard that queries a view on top of your table still shows up.

-- Snowflake: who read the affected table during the impact window (T0 to T3).
SELECT
    ah.user_name,
    COUNT(DISTINCT ah.query_id)     AS queries,
    MIN(ah.query_start_time)        AS first_read,
    MAX(ah.query_start_time)        AS last_read
FROM snowflake.account_usage.access_history ah,
     LATERAL FLATTEN(input => ah.base_objects_accessed) b
WHERE b.value:"objectName"::STRING = 'ANALYTICS.PUBLIC.FCT_ORDERS'
  AND ah.query_start_time BETWEEN '2026-11-03 02:10:00' AND '2026-11-05 16:00:00'
GROUP BY ah.user_name
ORDER BY first_read;

The earliest first_read is your T1. Service accounts are the interesting rows: a BI tool's service user, a reverse-ETL sync, a feature pipeline. Each one is a channel through which bad numbers left the warehouse.

On Databricks, Unity Catalog's lineage system table records reads by notebooks, jobs, dashboards, and pipelines.

-- Databricks: what read the affected table during the impact window.
SELECT
    entity_type,
    entity_id,
    target_table_full_name,
    created_by,
    MIN(event_time) AS first_read,
    MAX(event_time) AS last_read,
    COUNT(*)        AS events
FROM system.access.table_lineage
WHERE source_table_full_name = 'main.analytics.fct_orders'
  AND event_time BETWEEN '2026-11-03 02:10:00' AND '2026-11-05 16:00:00'
GROUP BY ALL
ORDER BY first_read;

Rows with a target_table_full_name are downstream tables that copied the bad data and now need their own backfill. Rows without one are reads that ended somewhere outside the warehouse: a dashboard, a notebook, an export. Those are the notifications.

Neither query sees past the warehouse boundary. If someone exported a CSV at 08:30 on Monday and emailed it, both queries show you the read and neither shows you the email. That's why the template asks for consumers by name as well as by service account.

What goes in a data postmortem template?

Here's the template. Copy it into your incident doc, fill every field, and write "unknown" rather than deleting a field you can't answer. An "unknown" is a finding.

# Data incident postmortem
incident_id: DI-2026-047
title: "Duplicate orders in fct_orders inflated revenue by 4.1%"
severity: SEV2            # SEV1: external or board-level numbers wrong
author: ""
review_date: ""
status: draft             # draft | reviewed | actions_complete

summary: >
  Two to three sentences a non-engineer can read. What was wrong,
  in business terms, for how long, and whether it's fixed.

clock:                    # all times UTC
  t0_onset: ""            # first bad row written (from load history)
  t1_first_consumption: "" # first read of a bad row (from access history)
  t2_detection: ""        # data team aware
  t3_containment: ""      # no new bad rows
  t4_restatement: ""      # history corrected
  t5_notification: ""     # last affected consumer told
  time_to_detect: ""      # t2 - t0
  silent_consumption: ""  # t2 - t1
  exposure_window: ""     # t5 - t0

detection:
  detected_by: ""         # monitor name, or person and team
  detected_by_type: ""    # monitor | data_team | downstream_human | external
  detection_evidence: ""  # link to alert, Slack thread, or ticket

impact:
  affected_assets:        # every table that held bad rows
    - name: ""
      bad_rows: 0
      row_range: ""       # e.g. loaded_at between X and Y
  affected_consumers:     # every reader between t0 and t3
    - consumer: ""        # dashboard, job, person, extract
      owner: ""
      used_for: ""        # what decision or report used it
      notified_at: ""
  wrong_values_left_the_warehouse: unknown   # yes | no | unknown
  business_impact: ""     # in numbers: "$1.2M revenue overstated in weekly report"

root_cause:
  trigger: ""             # the change or event that started it
  contributing_factors:   # conditions that let it happen and persist
    - ""
  category: ""            # pipeline_failure | schema_change | data_source_issue |
                          # configuration_error | code_change | infrastructure | unknown

correction:
  containment_action: ""  # what stopped new bad rows
  restatement_method: ""  # backfill | restate | delete_and_reload | none
  restatement_scope: ""   # partitions, date range, row count
  restatement_verified_by: ""  # query or check that proves it
  downstream_rebuilt:     # tables rebuilt after the fix
    - ""

monitoring_gap:
  should_have_caught: ""  # the monitor that should have fired
  gap_type: ""            # fired_ignored | wrong_threshold | muted |
                          # ran_too_late | missing | not_monitorable
  why: ""

action_items:
  - action: ""
    owner: ""
    due: ""
    type: ""              # detect | prevent | contain | communicate

wrong_values_left_the_warehouse is the single most important field. If the answer is "no," the incident is an engineering problem. If it's "yes," it's a trust problem, and the notification list is the real remediation.

detected_by_type is the field you'll aggregate later. Count incidents by detection type every quarter. If downstream_human is the largest bucket, your monitoring is decorative, regardless of how many checks you run.

business_impact must contain a number. "Revenue was overstated" is not a postmortem finding. "$1.2M of weekly revenue was overstated by 4.1% for three reporting days" is. If you can't produce a number, write down why, because that's usually a finding about lineage.

action_items.type forces each action into one of four buckets. A postmortem with five prevent actions and zero detect actions has assumed you'll never hit a failure you didn't predict, which is the assumption that just failed.

Which monitor should have caught it?

Every data postmortem should answer this in one line, and the answer should be one of six types. Most teams write "we need better monitoring," which is an action item nobody can close.

Gap type What happened Typical fix
Fired, ignored The alert existed and fired, nobody acted Routing, ownership, alert volume
Wrong threshold The check ran and passed on bad data Tighten or switch to a learned baseline
Muted The rule was disabled during an earlier storm Unmute, fix the storm structurally
Ran too late The check fired after consumers already read the data Schedule checks before downstream refreshes
Missing No check covered this failure mode Add one, and ask what else is uncovered
Not monitorable The data was technically valid and semantically wrong Contract, review, or accept the risk

The first three are the embarrassing ones and they're common. "Fired, ignored" is usually an alert storm symptom: the real alert was message 23 of 30 and nobody read that far. "Muted" is the same story six months later.

"Ran too late" is the one I'd look for first, because it's the cheapest to fix. In the duplicate-orders example, even a perfect volume check that ran at 07:00 would have lost to the 06:00 dashboard refresh. The fix is a scheduling change, not a new monitor.

"Not monitorable" is a legitimate answer and you should be allowed to write it. A currency field that switched from cents to dollars passes every null, range, and freshness check and is still wrong. Pretending a monitor could have caught everything produces action items that add checks nobody needed. Some incidents are only preventable at the producer, which is what contracts are for.

What does blameless mean when another team caused it?

It means describing the system boundary instead of the person. And for data teams it's harder than in SRE, because the trigger is usually someone outside the team.

The typical data incident starts with a reasonable change made by someone who had no way to know it would break anything. A backend engineer renames a column. A RevOps admin changes a picklist value in Salesforce. A vendor changes their API's date format. None of these people did anything wrong by their own team's standards.

The blame-shaped version of the postmortem says "the backend team renamed a column without telling us." The blameless version says "a column rename in the orders service reached the warehouse with no check at the boundary, and nothing in the backend team's workflow indicates that the column has downstream readers." The second version produces an action item. The first produces a meeting.

A useful test: if your contributing factors would make the upstream team defensive when they read the doc, rewrite them. You'll need that team's cooperation for the fix, and a postmortem that reads as an accusation won't get it.

Blameless also applies inside the data team. "The on-call engineer didn't notice the alert" is never a root cause. Why didn't they? Thirty other alerts, an alert in the wrong channel, a severity that looked like noise. Those are system properties, and they're fixable.

Should the backfill be part of the postmortem?

Yes, and it should be verified as well as reported. A backfill is a second data change made under time pressure by someone who just had a bad day, and it can introduce its own incident.

Record three things. The scope: which partitions or date ranges, and how many rows. The method: a backfill rewrites history from source, a restatement corrects values in place, a delete-and-reload replaces the affected range. And the verification: the query that proves the corrected table is right.

The verification query is usually the onset query run again. If the bad-row predicate returns zero rows for the incident window after the backfill, write that query and its result into the doc. If you can, also compare the corrected totals to an independent source, such as the payment processor's own report, because a backfill that re-reads a broken source just reproduces the error.

Then decide what to do about numbers that already left. This is the restatement question, and it's a business decision, not an engineering one. For an internal dashboard, a corrected table plus a note is enough. For a number that went into a board deck, a customer invoice, or a regulatory filing, someone outside the data team has to decide whether to issue a correction. The postmortem's job is to put the exact wrong number and the exact right number side by side so that decision is easy.

Don't forget downstream tables. If fct_orders was wrong for three days, every incremental model built on it during those three days is also wrong, and most incremental models won't rebuild old partitions on their own. The Databricks lineage query and the Snowflake write log both help you find them. A blast radius query over your dbt lineage finds the rest.

What should you tell consumers, and when?

Tell them what was wrong, for which period, by how much, and whether it's fixed. In that order, in one message, before they ask.

A good correction notice is short:

Correction: fct_orders revenue, Nov 3 to Nov 5

What was wrong: duplicate order rows inflated revenue by 4.1%
              ($1.2M overstated across the three days).
Period affected: data loaded Nov 3 02:10 UTC to Nov 5 16:00 UTC.
Status: corrected as of Nov 6 11:00 UTC. Dashboards now show correct values.
If you exported or shared numbers from this period, they're wrong.
Corrected totals per day are in the linked incident doc.

The fifth line is the one people leave out, and it's the one that matters. The dashboard is fixed. The CSV in someone's email isn't, and only they know where it went.

Two timing rules. Send the first notice at containment (T3), not at restatement (T4). Consumers would rather know the numbers are wrong now than get a perfect explanation in two days. And send it to the consumer list from the access-history query, not to a general channel. A general announcement teaches everyone to ignore general announcements.

The T5 timestamp in the template is when the last affected consumer acknowledged the notice, not when you sent it. If that feels strict, it's because exposure doesn't end until the person holding the wrong number knows it's wrong.

Where does tooling help with postmortems, and where doesn't it?

Tools are good at the first half of the clock and bad at the second half. Detection, correlation, and root-cause evidence are machine work. Consumer notification, restatement decisions, and business impact are human work.

To be specific about AnomalyArmor, since it's the tool I build: it has an incident model with an activity timeline that records detection, re-triggers, acknowledgement, resolution, assignment, and comments. Alerts that share an upstream cause are grouped into one root incident by walking the lineage graph up to 5 hops, and the root incident carries a downstream count. When it runs an investigation, the output is an EvidenceCapsule: a root-cause hypothesis, cited trigger and consequence evidence, a confidence score, and open questions. When you resolve an alert you can record a structured root-cause category, an action category, and a PR link, and once the same kind of resolution shows up 3 times it starts suggesting that fix on similar alerts.

Those map onto the template's detection, root_cause, and parts of impact.affected_assets. They're the parts of a postmortem that are tedious to reconstruct by hand, which is the argument for AI-assisted incident response in the first place.

It doesn't write postmortems. There's no postmortem document, no template, and no export. It doesn't know T0: the incident clock starts at detection, and the recorded resolution time runs from alert creation, not from when the bad data landed. It doesn't read warehouse access history, so it can't tell you who consumed the bad rows. It doesn't track backfills or notifications. The SQL above is how you get those, with or without any tool.

I think that split is right for any tool. A tool that writes the postmortem for you would mostly produce a confident-sounding summary of the half it can see, and the half it can't see is where the damage lives.

Frequently asked questions

What is a data incident postmortem?

A written review of a data quality failure that records when bad data first landed, who used it before detection, how it was corrected, and which control should have caught it. It follows the SRE postmortem format but adds fields for consumption, restatement, and consumer notification.

How is a data postmortem different from an SRE postmortem?

Service damage stops when the service recovers. Data damage persists after the pipeline is fixed, in dashboards, exports, and decisions already made. A data postmortem has to track who consumed the bad data and whether corrected numbers reached them.

What is the impact window of a data incident?

The period from the first bad row written (onset) to the moment the last affected consumer was told. This exposure window is almost always longer than the pipeline outage, often by days.

How do I find when bad data first landed?

Query the table's load timestamp column with a predicate that identifies bad rows and take the minimum. Without a load column, use Snowflake's ACCOUNT_USAGE.ACCESS_HISTORY or Databricks' DESCRIBE HISTORY to list writes, then compare versions with time travel.

How do I find who used the bad data?

On Snowflake, filter ACCESS_HISTORY.BASE_OBJECTS_ACCESSED for the table across the impact window and group by user. On Databricks, query system.access.table_lineage for the table as a source. Neither shows exports that left the warehouse, so ask the owners.

What is time to detect in a data incident?

Detection time minus onset time. It's measured from when bad data was written, not from when the alert fired, which is why tools that start the clock at the alert understate it.

What should a data postmortem template include?

Six timestamps (onset, first consumption, detection, containment, restatement, notification), detection source, affected assets and consumers, business impact as a number, root cause and contributing factors, the correction and its verification, the monitoring gap, and typed action items.

What does blameless mean in data engineering?

Describing the system boundary that let a change cause damage rather than the person who made the change. Upstream teams usually acted reasonably by their own standards, and you'll need their cooperation for the fix.

Should a backfill be documented in the postmortem?

Yes, with scope, method, and a verification query showing the bad-row predicate now returns zero. A backfill is a second data change made under pressure and can cause its own incident.

When should I notify data consumers about an incident?

At containment, when new bad rows have stopped, not after the backfill. Send it directly to the readers found in access history, and say plainly that exported or shared numbers from the period are wrong.

Which monitor should have caught a data incident?

Classify the gap as fired and ignored, wrong threshold, muted, ran too late, missing, or not monitorable. "Ran too late" is common and cheap to fix: schedule checks before the downstream refresh.

What if a data incident wasn't monitorable?

Write that down. Semantically wrong data that passes every structural check, like a unit change from cents to dollars, is only preventable at the producer. Adding checks that couldn't have caught it is wasted effort.

Does AnomalyArmor generate postmortems?

No. It records incidents with an activity timeline, correlates related alerts into a root incident, produces cited root-cause evidence, and stores structured resolution categories. Onset time, consumers, backfills, and notifications are outside what it tracks.

How often should a team review data postmortems?

Aggregate them quarterly by detection type and gap type. If downstream humans are the largest detection source, the monitoring isn't working, however many checks exist.

Read more