Objective
A postmortem is only as trustworthy as its grounding in the timeline. Under deadline, narrative claims drift from the evidence — a root cause asserted that the logs don't show, a reassuring "no customer impact" nobody actually verified. This recipe matches each claim in the report to the timeline entry it concerns and separates the grounded conclusions from the ones that need evidence before sign-off.
Step 1: The recorded timeline
CREATE TABLE IF NOT EXISTS recipe_incident_timeline (
id INT PRIMARY KEY,
ts TEXT,
event TEXT
);
INSERT INTO recipe_incident_timeline (id, ts, event) VALUES
(1, '02:14', 'The primary database failed over to the replica, triggering the outage.'),
(2, '02:19', 'Automated alerts fired and the on-call engineer acknowledged.'),
(3, '02:41', 'The replica was promoted and traffic recovered.'),
(4, '03:05', 'A backlog of queued writes finished draining.');
Step 2: Report claims, each matched to the timeline entry it concerns
CREATE TABLE IF NOT EXISTS recipe_incident_claims (
id INT PRIMARY KEY,
claim TEXT,
timeline_id INT
);
INSERT INTO recipe_incident_claims (id, claim, timeline_id) VALUES
(1, 'The failover to the replica triggered the outage.', 1),
(2, 'The incident was caused by a configuration change.', 1),
(3, 'Traffic recovered after the replica was promoted.', 3);
!!! note "Match, then verify — don't dump the whole timeline"
NLI_VERIFY returns LIE if any anchor contradicts the claim. Pass
the full timeline as anchors and an unrelated entry can spuriously
contradict a true claim. Verify each claim against the entry it concerns;
when you lack an explicit mapping, retrieve the relevant entry by vector
similarity first — the pattern in the RAG Answer Gate
recipe.
Step 3: A conclusion the matched entry supports
SELECT JSON_UNQUOTE(JSON_EXTRACT(NLI_VERIFY('nli-default', c.claim,
JSON_ARRAY(t.event)), '$.verdict')) AS verdict
FROM recipe_incident_claims c
JOIN recipe_incident_timeline t ON c.timeline_id = t.id
WHERE c.id = 1;
Expected: TRUTH — the 02:14 entry entails it directly.
Step 4: A root cause the timeline does NOT establish
SELECT JSON_UNQUOTE(JSON_EXTRACT(NLI_VERIFY('nli-default', c.claim,
JSON_ARRAY(t.event)), '$.verdict')) AS verdict
FROM recipe_incident_claims c
JOIN recipe_incident_timeline t ON c.timeline_id = t.id
WHERE c.id = 2;
Expected: UNVERIFIED_PLAUSIBLE — the matched entry records a failover, not a
config change. The claim isn't contradicted, it's ungrounded: the most
common way a postmortem goes wrong is asserting a cause the evidence doesn't
establish. Treat UNVERIFIED_PLAUSIBLE on a root-cause statement as "attach
evidence or soften to a hypothesis."