Incident commander

Advance a declared incident over the runx agency spine with a fixed commander, responder, and communications roster, approval-bound send handoffs, and receipt-backed resolution.

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

Overview

Advance one command decision for a declared incident whose durable case is owned by the runx agency spine. The skill consumes the already-folded case state and fixed incident roster, asks ops-desk for one bounded move, reviews that move, and applies deterministic roster and evidence guards before returning one typed incident_turn.

The skill does not open or persist a case, append events, send messages, mint authority, or resolve approvals. An agency driver owns those actions. In particular, a communication decision is dispatch-by-naming: this skill may name a separate governed slack-notify or send-as run after approval, but it never executes that run.

SKILL.md

Incident commander

Advance one command decision for a declared incident whose durable case is owned by the runx agency spine. The skill consumes the already-folded case state and fixed incident roster, asks ops-desk for one bounded move, reviews that move, and applies deterministic roster and evidence guards before returning one typed incident_turn.

The skill does not open or persist a case, append events, send messages, mint authority, or resolve approvals. An agency driver owns those actions. In particular, a communication decision is dispatch-by-naming: this skill may name a separate governed slack-notify or send-as run after approval, but it never executes that run.

What this skill does

  • asks a package-local binding of the pinned official ops-desk advance contract for one roster-constrained move;
  • applies a reviewer act and deterministic enforcement to that move;
  • returns one typed, audit-friendly incident turn;
  • names a plan-only communication handoff while leaving execution to a separate governed run.

When to use this skill

Use this skill when an existing agency case represents a declared incident and the next command decision must stay within its fixed roster, approval lane, and receipt trail.

When not to use this skill

Do not use it to declare or persist a case, send a message, authenticate an approval, mint authority, bypass the agency lease, or substitute an unverified string for a receipt. Those responsibilities remain with the agency driver and the named governed skill.

Incident lifecycle

Use incident_objective with exactly one of these values:

  • begin: advance declaration and initial command work.
  • assign: dispatch work only when folded state names a roster owner.
  • send: gate and name a digest-bound communications handoff.
  • resolve: require linked resolution evidence before closure.
  • postmortem: dispatch follow-up work within the fixed roster.

Inputs are case_id, driver_id, incident_objective, folded case_state, and the fixed roster. approval is optional and carries { principal, reason }. member_result is optional and carries { outcome, receipt_ref } from a previously dispatched member.

The roster contains exactly commander, responder_lead, and comms_lead. Every entry names its principal, skill, and scope ceiling. The enforcement stage rejects missing or duplicate roles, mismatched skills, excess scopes, invented principals, and incomplete entries.

Communication gate

A pending send is represented in folded state as a non-actionable pending_escalation.proposed_handoff. It binds:

  • skill: slack-notify for an internal post or send-as for a stakeholder send.
  • principal: the exact comms_lead principal.
  • channel and audience.
  • content_digest: a SHA-256 digest of the reviewed content.

Without an approval whose principal exactly matches comms_lead, the turn stays awaiting_approval in the human incident-reviewer lane. named_run describes the bound plan with executable: false; it carries no dispatch authority. After a match, the turn may become advanced and name the bounded handoff. That is still not proof of delivery. Delivery requires a later member_result linked to the receipt emitted by the named communications skill.

Agency ownership

Durable state and contention remain in agency. Its runner folds the event stream, plans one turn, and appends at expected_version. The logical idempotency key is case_id:turn:driver_id; the current agency serialization is <case_id>:turn:<turn>:<driver_id>. The ungated compare-and-swap append is the per-turn lease, so a racing driver conflicts before any dispatch. This package does not compose data-store and cannot bypass that lease.

Output

The runner emits one incident_turn with status, case id, turn, dispatch or escalation, optional named run, and reason. It also records severity and approval principal for audit. Expected statuses are advanced, awaiting_approval, resolved, needs_agent, or refused.

Output schema

yaml
incident_turn:
  status: advanced | awaiting_approval | resolved | needs_agent | refused
  case_id: string
  turn: number
  dispatch: object | null
  escalation: object | null
  named_run:
    skill: slack-notify | send-as
    runner: plan
    executable: boolean
    data:
      principal: string
      channel: string
      audience: object
      content_digest: sha256:<hex>
  reason: string

Procedure

  1. Receive a folded, declared incident state and its fixed roster from the agency driver.
  2. Ask the package-local ops-desk-advance binding for exactly one move. The binding carries the official advance task and typed decision contract without importing the agency loop or persistence graph.
  3. Review the move against the incident objective and existing evidence.
  4. Enforce roster role, principal, skill, scope, approval, handoff, owner, and receipt invariants deterministically.
  5. Return one incident turn. The agency driver appends it under the folded version before issuing any named dispatch.

The judgment stops rather than guessing when:

  • an assignment has no named owner in folded state;
  • a send lacks a valid roster-bound handoff or matched approval;
  • a dispatch names a role, skill, or scope outside the roster;
  • a delivered communication lacks a slack-notify or send-as receipt;
  • resolution lacks linked evidence;
  • the incident is undeclared or lacks severity or scope.

Edge cases and stop conditions

  • An unknown ops-desk decision is refused rather than treated as a dispatch.
  • Missing or malformed needed_scope is refused.
  • A named assignment owner must resolve to one roster role or principal, and the dispatch must select that role.
  • A communication handoff is always hard-coded to runner plan; caller input cannot select a live execution runner.
  • Only the resolve objective can close the incident, and its receipt reference must have runx receipt shape.

Inputs

  • case_id and driver_id: current agency case and driver identifiers.
  • incident_objective: begin, assign, send, resolve, or postmortem.
  • case_state: folded declared incident state, including severity, scope, turn, pending escalation, and linked evidence.
  • roster: exactly commander, responder lead, and communications lead with principal, skill, and nonempty scope ceiling.
  • approval: optional { principal, reason } supplied by the agency approval path; this skill matches it but does not authenticate it.
  • member_result: optional { outcome, receipt_ref } already verified and carried back by the agency driver.

Worked example

A SEV-2 checkout incident has a pending send-as stakeholder update bound to an audience and content digest. The prior turn names that plan as non-executable and waits in human:incident-reviewer. On the follow-up turn, approval principal incident:comms:morgan matches the comms_lead roster entry. The output advances and names send-as runner plan with the same audience and digest. It does not claim delivery; a later member result must link the send receipt.

Run

Run the local harness before publication:

text
runx harness ./skills/incident-commander --json

After publication, install and run the immutable registry version, then verify the dogfood receipt:

text
runx add <owner>/incident-commander@0.1.1
runx skill <owner>/incident-commander@0.1.1 --json
runx verify --receipt <receipt.json> --json

The package is self-contained. Its internal ops-desk-advance binding is scoped to this graph and returns only the typed judgment; it does not vendor or compose the agency state loop, data-store, or any execution lane.

Published execution profile

The execution profile published with sha-e6a57d21a6c7, shown as its exact bytes.

Runner
  • advance
Profile digestsha256:cc148a49681ea677c69862416382c96ef5291f1b87d5efd76766ad8da527c2ca
skill: incident-commander
version: 0.1.2
catalog:
  kind: graph
  audience: operator
  visibility: public
  role: context
  category: ops
runners:
  advance:
    default: true
    inputs:
      case_id:
        type: string
        required: true
        description: Declared incident case id from the folded agency case.
      driver_id:
        type: string
        required: true
        description: Driver advancing this turn; the agency spine binds it into the contention key.
      incident_objective:
        type: string
        required: true
        description: One of begin, assign, send, resolve, or postmortem.
      case_state:
        type: json
        required: true
        description: Folded agency case state, including incident severity, scope, turn, pending escalation, and evidence.
      roster:
        type: json
        required: true
        description: Fixed incident roster containing commander, responder_lead, and comms_lead with principal, skill, and scope ceiling.
      approval:
        type: json
        required: false
        description: Optional approval with principal and reason, matched exactly against the selected roster entry.
      member_result:
        type: json
        required: false
        description: Optional downstream outcome and receipt_ref carried back by the agency driver.
    steps:
      - id: pending
        skill: ./graph/pending
        inputs:
          case_id: $input.case_id
          incident_objective: $input.incident_objective
          case_state: $input.case_state
        artifacts:
          wrap_as: incident_turn
      - id: decide
        skill: ./graph/ops-desk
        runner: advance
        inputs:
          mandate: $input.incident_objective
          case_state: $input.case_state
          candidate_roster: $input.roster
          scope_ref: $input.case_id
          approval_context: $input.approval
          operator_policy: Incident sends require a roster-matched principal; resolution and delivery require linked receipts.
      - id: review
        skill: ./graph/review
        inputs:
          case_id: $input.case_id
          driver_id: $input.driver_id
          incident_objective: $input.incident_objective
          case_state: $input.case_state
          roster: $input.roster
          approval: $input.approval
          member_result: $input.member_result
          decision: $steps.decide.dispatch_decision
        artifacts:
          wrap_as: incident_review
      - id: enforce
        skill: ./graph/enforce
        inputs:
          case_id: $input.case_id
          driver_id: $input.driver_id
          incident_objective: $input.incident_objective
          case_state: $input.case_state
          roster: $input.roster
          approval: $input.approval
          member_result: $input.member_result
          decision: $steps.decide.dispatch_decision
          proposed_turn: $steps.review.incident_review.incident_turn
          prior_turn: $steps.pending.incident_turn
        artifacts:
          wrap_as: incident_turn
harness:
  cases:
    - name: incident-send-awaits-then-approves
      runner: advance
      inputs:
        case_id: inc-sev2-checkout-2026-07-13
        driver_id: driver-primary
        incident_objective: send
        case_state:
          status: awaiting
          turn: 4
          severity: SEV-2
          scope: checkout-api
          declared: true
          pending_escalation:
            status: awaiting_approval
            lane: human:incident-reviewer
            reason: Stakeholder status update requires roster-matched approval.
            proposed_handoff:
              skill: send-as
              runner: plan
              principal: incident:comms:morgan
              channel: email
              audience:
                list_ref: stakeholders:checkout-api
                classification: incident-stakeholders
              content_digest: sha256:4e44f31f628799267f0957c554b8c47d90d2eabf41e5a84248941d28c45955ae
          evidence_refs:
            - incident:declaration:inc-sev2-checkout-2026-07-13
        roster:
          - role: commander
            principal: incident:commander:alex
            skill: ops-desk
            scope:
              - incident.command
          - role: responder_lead
            principal: incident:responder:rio
            skill: incident-response
            scope:
              - incident.respond
          - role: comms_lead
            principal: incident:comms:morgan
            skill: send-as
            scope:
              - stakeholder.send
        approval:
          principal: incident:comms:morgan
          reason: Approved the digest-bound checkout status update for the declared stakeholder audience.
      caller:
        answers:
          advance:
            effect_family: incident-commander
            operation: dispatch
            decision: dispatch
            reason: The roster-matched comms approval permits the bounded send-as handoff; a separate downstream run performs the send.
            escalation: {}
            resolution: {}
            dispatch:
              member: comms_lead
              skill: send-as
              task: Plan the approved stakeholder status update using the bound audience and content digest.
              needed_scope:
                - stakeholder.send
              consequence: stakeholder_send_handoff
              verification:
                expected_receipt: runx.receipt.v1
                readback: A later send-as receipt must be linked before communication is marked delivered.
          default:
            incident_turn:
              status: advanced
              case_id: inc-sev2-checkout-2026-07-13
              turn: 5
              dispatch:
                member: comms_lead
                skill: send-as
                needed_scope:
                  - stakeholder.send
              escalation: null
              named_run:
                skill: send-as
                runner: plan
                data:
                  principal: incident:comms:morgan
                  channel: email
                  audience:
                    list_ref: stakeholders:checkout-api
                    classification: incident-stakeholders
                  content_digest: sha256:4e44f31f628799267f0957c554b8c47d90d2eabf41e5a84248941d28c45955ae
              reason: Approval principal matches the comms_lead roster entry; emit only the governed handoff.
      expect:
        status: sealed
        receipt:
          schema: runx.receipt.v1
      operator_journeys:
        - mode: standalone
          confusors:
            - ops-desk
            - slack-notify
          request: Run this declared incident with our commander and responder roster.
          expected_outcome: Advance the incident with approval-bound send handoffs and receipt-backed resolution.
        - mode: composed
          request: Continue this incident-commander work from evidence already gathered upstream.
          expected_outcome: Advance the incident with approval-bound send handoffs and receipt-backed resolution.
          prior_evidence:
            - The declared incident and roster already recorded.
          must_not_repeat:
            - Do not re-declare the incident or resend approved updates.
    - name: incident-assign-missing-owner
      runner: advance
      inputs:
        case_id: inc-sev3-search-2026-07-13
        driver_id: driver-secondary
        incident_objective: assign
        case_state:
          status: working
          turn: 1
          severity: SEV-3
          scope: search-api
          declared: true
          named_owner: null
          evidence_refs:
            - incident:declaration:inc-sev3-search-2026-07-13
        roster:
          - role: commander
            principal: incident:commander:sam
            skill: ops-desk
            scope:
              - incident.command
          - role: responder_lead
            principal: incident:responder:lee
            skill: incident-response
            scope:
              - incident.respond
          - role: comms_lead
            principal: incident:comms:pat
            skill: slack-notify
            scope:
              - incident.internal_post
      expect:
        status: needs_agent

Published package and test evidence.

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

Test result

Harness resultPassed
Tested versionsha-e6a57d21a6c7
Recorded result2 checks passed · 0 failed
Result sourceReported by the publisher (runx_registry_publish)
Suiterunx-harness
Test recorded
Declared cases2
Test recordOpen the recorded run
Inspect receipt referencessha256:bf4c285d991844b57827ba9995c30e9343289a7972dc4b99ede88b4371f00d75sha256:45b0614bd6f96c43830bc2c365ea6da6609ce7e9dbafa34f3a8ac81d5273130b

Package identity

Published revisionsha-e6a57d21a6c7
Content digestsha256:e6a57d21a6c7d18e356c1c1ba4632a25b43c54900bfaaeee45a75f56c6057154
SKILL.md digestsha256:798f64cff0f71548bb9989ce40c13015cf4248d5f4c532e04aaf326ddb816322
Execution profile digestsha256:cc148a49681ea677c69862416382c96ef5291f1b87d5efd76766ad8da527c2ca
Publisher identityUnverified publisher · liomilet4-png
Trust tierCommunityPublished through the registry without publisher verification. This tier is not a code assessment.
Attestations
  • Publisher · Declaredliomilet4-png · 17 Oct 2026
Source provenanceNot published with this version

Version history

  1. sha-e6a57d21a6c7ViewingContent digest sha256:e6a57d21a6c7d18e356c1c1ba4632a25b43c54900bfaaeee45a75f56c6057154
  2. sha-ab2a2f66c267Content digest sha256:ab2a2f66c26704636da519cbef71da965ec912dbf8dabb1ffa9078a22b0d498b
  3. sha-0753fa4fd76bContent digest sha256:0753fa4fd76babddedfcea17b9f7430d9abad2472b06351c92698db73a49daae
  4. sha-ed2ec6f8f14bContent digest sha256:ed2ec6f8f14be9b33c12a52851009d8b0b1546415c28f893cc5d17de21ac0239