Postmortem
Turn resolved-incident fragments into a traceable postmortem that separates fragment-cited facts from hypotheses, blocks publication while unknowns remain, and keeps the comms send behind a human gate.
Overview
Produce a postmortem that never pretends unknowns are facts. The supplied incident fragments are the only evidence; the drafting agent separates what happened from what is suspected, and deterministic code verifies every claimed fact against the fragments. Publication is a gated proposal, never an effect of this skill.
In the manual
Runner
make
Declared by its execution profile. Read the profile
SKILL.md
Postmortem Draft
Produce a postmortem that never pretends unknowns are facts. The supplied incident fragments are the only evidence; the drafting agent separates what happened from what is suspected, and deterministic code verifies every claimed fact against the fragments. Publication is a gated proposal, never an effect of this skill.
Procedure
- Native
data.digestbinds the exact fragment set. - The drafting agent assembles a summary, an evidence-cited timeline, a root
cause with a status of
known,suspected, orunknown, open unknowns, and owned action items. - Deterministic enforcement checks every timeline entry and any non-unknown root cause: the cited fragment must exist and the quote must appear verbatim in that fragment's text. An invented citation refuses the whole run. Action items must carry an action and an owner.
- The verdict separates completeness from honesty: a fully cited postmortem
with a supported root cause and no open unknowns is
publishableand carries a publish proposal gated on a human approver throughmessage-send; a grounded but incomplete one sealsneeds_more_evidenceand publishes nothing.
To build the fragment set from live systems, compose web-fetch or store
reads upstream; the digest binds whatever evidence was supplied.
Running the incident belongs to its operator; this skill explains it afterward.
Output
postmortem (runx/postmortem-draft.postmortem.v1) carries decision (publishable,
needs_more_evidence, refused), summary, the cited timeline,
root_cause, unknowns, action_items, the gated publish_proposal or
null, validation, and the fragments digest. publish_performed is always
false.
Inputs are incident_id and incident_fragments.
Agent task contracts
postmortem-draft-draft
Read incident_id and incident_fragments from step inputs. Return
postmortem_draft with summary, timeline entries (each entry,
fragment_id, quote), root_cause (status, and for known or suspected a
statement, fragment_id, and quote), unknowns, and action_items
(each action, owner). Quote fragments verbatim, mark anything the
fragments do not support as unknown rather than asserting it, and never
invent fragments, quotes, owners, or deadlines.
Published execution profile
The execution profile published with 0.1.10, shown as its exact bytes.
| Runner |
|
|---|---|
| Profile digest | sha256:b9294ac34c85d72660ef9ea828242a9f5712cd8417e798f9f485f81e401b0c21 |
skill: postmortem-draft
version: "0.1.10"
catalog:
kind: graph
audience: operator
visibility: public
category: ops
role: canonical
execution: plan
completion: runtime_receipt
approval: none
harness:
files: [fixtures/support/composed.graph]
cases:
- name: postmortem-draft-publishable-seals
operator_journeys:
- mode: standalone
confusors: [operations-review, release]
request: Produce the postmortem for this resolved incident from the collected fragments.
expected_outcome: Return a fragment-cited postmortem with a supported root cause and a gated publish proposal, publishing nothing.
- mode: composed
request: Continue from this sealed postmortem into the governed comms send.
expected_outcome: Reuse the sealed postmortem and its publish proposal without re-deriving the timeline.
prior_evidence:
- The incident fragments and sealed postmortem supplied by the prior step.
must_not_repeat:
- Do not re-derive timeline entries or the root cause already sealed.
inputs:
incident_id: inc-checkout-2026-08-09
incident_fragments:
- id: frag-1
source: pagerduty
text: "03:12 UTC alert fired: checkout 5xx rate crossed 8 percent."
- id: frag-2
source: deploy-log
text: "03:02 UTC deploy 2026.08.09.3 rolled out a connection pool change to checkout-api."
- id: frag-3
source: slack-incident
text: "03:40 UTC rollback of 2026.08.09.3 completed and 5xx rate returned to baseline."
caller:
answers:
draft:
postmortem_draft:
summary: A connection pool change in deploy 2026.08.09.3 degraded checkout until rollback.
timeline:
- entry: Deploy 2026.08.09.3 shipped a connection pool change.
fragment_id: frag-2
quote: "deploy 2026.08.09.3 rolled out a connection pool change"
- entry: Checkout 5xx rate crossed the alert threshold.
fragment_id: frag-1
quote: "checkout 5xx rate crossed 8 percent"
- entry: Rollback restored baseline.
fragment_id: frag-3
quote: "rollback of 2026.08.09.3 completed and 5xx rate returned to baseline"
root_cause:
status: known
statement: The connection pool change in 2026.08.09.3 exhausted checkout database connections.
fragment_id: frag-2
quote: "connection pool change to checkout-api"
unknowns: []
action_items:
- action: Add pool saturation alerting before the next pool change ships.
owner: platform-oncall
expect:
status: sealed
steps: [digest-fragments, draft, finalize]
step_outputs:
finalize:
subset:
postmortem:
data:
schema: runx/postmortem-draft.postmortem.v1
decision: publishable
publish_proposal:
gate: human-approver
delivery_skill: message-send
sent: false
publish_performed: false
validation: { status: pass, findings: [] }
receipt: { schema: runx.receipt.v1 }
- name: postmortem-draft-unknowns-block-publish
inputs:
incident_id: inc-batch-2026-08-10
incident_fragments:
- id: frag-1
source: cron-log
text: "Nightly batch failed at step export with exit 1."
caller:
answers:
draft:
postmortem_draft:
summary: The nightly batch failed at the export step; cause not yet established.
timeline:
- entry: The nightly batch failed at the export step.
fragment_id: frag-1
quote: "Nightly batch failed at step export"
root_cause:
status: unknown
unknowns:
- Which upstream input changed before the export step failed.
action_items:
- action: Capture export step inputs on failure.
owner: data-oncall
expect:
status: sealed
steps: [digest-fragments, draft, finalize]
step_outputs:
finalize:
subset:
postmortem:
data:
decision: needs_more_evidence
publish_proposal: null
publish_performed: false
validation: { status: pass, findings: [] }
receipt: { schema: runx.receipt.v1 }
- name: postmortem-draft-invented-citation-refuses
inputs:
incident_id: inc-x
incident_fragments:
- id: frag-1
source: log
text: "Service restarted at 09:00."
caller:
answers:
draft:
postmortem_draft:
summary: Total outage caused by database corruption.
timeline:
- entry: The database corrupted.
fragment_id: frag-1
quote: "database corruption detected"
root_cause:
status: known
statement: Database corruption.
fragment_id: frag-1
quote: "database corruption detected"
unknowns: []
action_items: []
expect:
status: sealed
steps: [digest-fragments, draft, finalize]
step_outputs:
finalize:
subset:
postmortem:
data:
decision: refused
timeline: []
publish_proposal: null
validation: { status: fail }
receipt: { schema: runx.receipt.v1 }
- name: postmortem-draft-needs-fragments
inputs:
incident_id: inc-y
expect:
status: failure
runners:
make:
default: true
inputs:
incident_id:
type: string
required: true
description: Identifier of the resolved incident this postmortem covers.
incident_fragments:
type: json
required: true
description: Collected incident evidence fragments with stable id, source, and text; compose web-fetch or store reads to gather them.
examples:
- incident_id: inc-checkout-2026-08-09
incident_fragments:
- id: frag-1
source: pagerduty
text: "03:12 UTC alert fired."
result_from: [finalize]
steps:
- id: digest-fragments
tool: data.digest
inputs:
value: $input.incident_fragments
- id: draft
label: separate facts from hypotheses across the fragments
agent: { role: reviewer, task: postmortem-draft-draft }
outputs:
postmortem_draft: object
inputs:
incident_id: $input.incident_id
incident_fragments: $input.incident_fragments
artifacts:
named_emits:
postmortem_draft: postmortem_draft
- id: finalize
label: enforce fragment citations deterministically
inputs:
incident_fragments: $input.incident_fragments
postmortem_draft: $steps.draft.postmortem_draft
fragments_digest: $steps.digest-fragments.digest_result.digest
tool: { module: postmortem-draft.mjs, export: finalizePostmortem }
outputs:
postmortem:
type: object
artifacts:
named_emits:
postmortem: postmortem
packets:
postmortem: runx/postmortem-draft.postmortem.v1
Published package and test evidence.
This exact version passed its recorded harness run: 5 checks passed · 0 failed.
Test result
| Harness result | Passed |
|---|---|
| Tested version | 0.1.10 |
| Recorded result | 5 checks passed · 0 failed |
| Result source | Run by the Runx registry at publication |
| Suite | runx-harness |
| Test recorded | |
| Declared cases | 4 |
| Test record | Open the recorded run |
Inspect receipt references
sha256:6bd5528fa17c96baa29c8dad13b5fc33ce8d8fe4d6f0674fd861abf45c365a8asha256:416789cba4d571800e39a25532f983095493705e307fea74d27b2dedcf514226sha256:3095f71d5dcf6a4b9bb78a7615817f9c3dbb0a9e6d7099687f8b07d323e5a7b9sha256:5e1bb14f310a326c1bd7834a88f34264d5989123c1ca18770b89e8f8f62deb67sha256:0779d3bf0ee3bebee241622969c088bc3e343267fbecd7d8bc000a7106206e27Package identity
| Published revision | 0.1.10 |
|---|---|
| Content digest | sha256:eb40ff007c2d7712ce1b318f76c3ed7a8c260f8a1bf686dff2a53329d62cddb2 |
| SKILL.md digest | sha256:17d7fe40fa4626d257471983046ee81a91f91cc3da2aa5fb193dcce3de44304f |
| Execution profile digest | sha256:b9294ac34c85d72660ef9ea828242a9f5712cd8417e798f9f485f81e401b0c21 |
| Publisher identity | Verified publisher · runx |
| Trust tier | Verified publisherRunx has verified this publisher. This tier is not a code assessment. |
| Attestations |
|
| Source provenance | Not published with this version |
Version history
0.1.10ViewingContent digest sha256:eb40ff007c2d7712ce1b318f76c3ed7a8c260f8a1bf686dff2a53329d62cddb2sha-e773e8e8dac3Content digest sha256:e773e8e8dac34e3810df8407ae9221d5fc77850695af982a655cedb4613f06c3