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.

You’re reading version sha-e773e8e8dac3. Go to the current version

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

  1. Native data.digest binds the exact fragment set.
  2. The drafting agent assembles a summary, an evidence-cited timeline, a root cause with a status of known, suspected, or unknown, open unknowns, and owned action items.
  3. 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.
  4. The verdict separates completeness from honesty: a fully cited postmortem with a supported root cause and no open unknowns is publishable and carries a publish proposal gated on a human approver through message-send; a grounded but incomplete one seals needs_more_evidence and 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.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_ref and incident_fragments.

Agent task contracts

postmortem-draft-draft

Read incident_ref 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 sha-e773e8e8dac3, shown as its exact bytes.

Runner
  • make
Profile digestsha256:a53262da8a8ae0d73d270069b7e6357b9dc96677512824a4e2f34fcb448669f1
skill: postmortem-draft
version: "0.1.9"

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_ref: 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.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_ref: 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_ref: 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_ref: inc-y
      expect:
        status: failure

runners:
  make:
    default: true
    inputs:
      incident_ref:
        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_ref: 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_ref: $input.incident_ref
          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
            schema:
              required: [schema, decision, reason, summary, timeline, root_cause, unknowns, action_items, publish_proposal, publish_performed, fragments_digest, validation]
              additionalProperties: false
              properties:
                schema: { const: runx.postmortem.v1 }
                decision: { type: string, enum: [publishable, needs_more_evidence, refused] }
                reason: { type: string, minLength: 1, maxLength: 2000 }
                summary: { type: [string, "null"], maxLength: 8000 }
                timeline:
                  type: array
                  maxItems: 500
                  items:
                    type: object
                    required: [entry, fragment_id, quote]
                    additionalProperties: false
                    properties:
                      entry: { type: string, minLength: 1, maxLength: 4000 }
                      fragment_id: { type: string, minLength: 1, maxLength: 200 }
                      quote: { type: string, minLength: 1, maxLength: 4000 }
                root_cause:
                  type: [object, "null"]
                  required: [status, statement, fragment_id]
                  additionalProperties: false
                  properties:
                    status: { type: string, enum: [known, suspected, unknown] }
                    statement: { type: [string, "null"], maxLength: 4000 }
                    fragment_id: { type: [string, "null"], maxLength: 200 }
                unknowns:
                  type: array
                  maxItems: 100
                  items: { type: string, minLength: 1, maxLength: 2000 }
                action_items:
                  type: array
                  maxItems: 100
                  items:
                    type: object
                    required: [action, owner]
                    additionalProperties: false
                    properties:
                      action: { type: string, minLength: 1, maxLength: 2000 }
                      owner: { type: string, minLength: 1, maxLength: 500 }
                publish_proposal:
                  type: [object, "null"]
                  required: [gate, delivery_skill, sent]
                  additionalProperties: false
                  properties:
                    gate: { const: human-approver }
                    delivery_skill: { const: message-send }
                    sent: { const: false }
                publish_performed: { const: false }
                fragments_digest: { type: string, pattern: "^sha256:[0-9a-f]{64}$" }
                validation:
                  type: object
                  required: [status, findings]
                  additionalProperties: false
                  properties:
                    status: { type: string, enum: [pass, fail] }
                    findings:
                      type: array
                      maxItems: 100
                      items:
                        type: object
                        required: [code, message]
                        additionalProperties: false
                        properties:
                          code: { type: string, minLength: 1, maxLength: 200 }
                          message: { type: string, minLength: 1, maxLength: 2000 }
        artifacts:
          named_emits:
            postmortem: postmortem

Published package and test evidence.

This exact version passed its recorded harness run: 5 checks passed · 0 failed.

Test result

Harness resultPassed
Tested versionsha-e773e8e8dac3
Recorded result5 checks passed · 0 failed
Result sourceReported by the publisher (runx_registry_publish)
Suiterunx-harness
Test recorded
Declared cases4
Test recordOpen the recorded run
Inspect receipt referencessha256:26080e27cdf8db93f8615b0eaccb31b3077648acfc790c54aa62bbc3cf96645esha256:135edd32af18f209e7ea9b8df6fed1917531f7aa4ac401d7597f316bb59c709fsha256:69da48b629caafcfc77f26c1b54c26b4b2d87fc5ded5677f60965590f4868d8bsha256:e1a919f1b890127fa02edc535e8af0a2e6904dc6936c0abdf362bdc57424f69esha256:6c308dc0427e8c1be8257ec7937e0ba9ef26b52d4ac8de1e086acdfdc0fb41b2

Package identity

Published revisionsha-e773e8e8dac3
Content digestsha256:e773e8e8dac34e3810df8407ae9221d5fc77850695af982a655cedb4613f06c3
SKILL.md digestsha256:acbb9258c2ef54b38e657e71973621ceb2f856946a80725d1e6f853fa4266e54
Execution profile digestsha256:a53262da8a8ae0d73d270069b7e6357b9dc96677512824a4e2f34fcb448669f1
Publisher identityVerified publisher · runx
Trust tierVerified publisherRunx has verified this publisher. This tier is not a code assessment.
Attestations
  • Publisher · Verifiedrunx · 18 Oct 2026
Source provenanceNot published with this version

Version history

  1. 0.1.10Content digest sha256:eb40ff007c2d7712ce1b318f76c3ed7a8c260f8a1bf686dff2a53329d62cddb2
  2. sha-e773e8e8dac3ViewingContent digest sha256:e773e8e8dac34e3810df8407ae9221d5fc77850695af982a655cedb4613f06c3