On-call alert triage

Judge one on-call alert against a sealed runbook and policy, then emit a bounded triage packet for downstream governed lanes.

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

Overview

oncall-alert-triage decides whether an alert should be acknowledged, escalated, auto-remediated, suppressed, or stopped for a human. It is a read-only judgment skill: it never pages a person, opens an incident PR, posts a review note, mints authority, or executes a remediation step.

The default triage runner is a graph with a thin review act. Its packet step is an agent-mediated judgment, so an unattended run stops at needs_agent instead of fabricating a decision. The bounded dogfood runner applies the same checked contract deterministically for reproducible post-publish evidence.

The useful output is a single runx.oncall.triage.v1 packet. A downstream driver or operator may later route that packet to separate governed runs, such as a live page, an incident PR package behind a human merge gate, or a pr-review-note comment body. Those effects stay outside this skill.

SKILL.md

On-call Alert Triage

oncall-alert-triage decides whether an alert should be acknowledged, escalated, auto-remediated, suppressed, or stopped for a human. It is a read-only judgment skill: it never pages a person, opens an incident PR, posts a review note, mints authority, or executes a remediation step.

The default triage runner is a graph with a thin review act. Its packet step is an agent-mediated judgment, so an unattended run stops at needs_agent instead of fabricating a decision. The bounded dogfood runner applies the same checked contract deterministically for reproducible post-publish evidence.

The useful output is a single runx.oncall.triage.v1 packet. A downstream driver or operator may later route that packet to separate governed runs, such as a live page, an incident PR package behind a human merge gate, or a pr-review-note comment body. Those effects stay outside this skill.

What This Skill Does

The skill reads three pieces of evidence:

  • alert{id, service, severity, signal}
  • runbook_ref, including a sealed digest and target bindings
  • oncall_policy{services, escalation_rules}

It verifies that the service is in policy, the runbook is sealed, and the runbook or policy binds the targets needed for any packet. When the alert is eligible for escalation or auto-remediation, it emits one packet that names the page target, incident PR target, PR review note body, optional fix bundle, and escalation route. When the evidence is missing or unsafe, it stops for an agent or fails closed with a refusal reason instead of inventing a target.

When To Use It

  • An operator has an alert and needs a receipt-backed triage decision before dispatching any live on-call effect.
  • A workflow needs to prove which runbook digest and policy clause justified an escalation packet.
  • A run should separate judgment from action, so humans can review the packet before paging or opening an incident PR.

When Not To Use It

  • To actually page, send, comment, open a PR, or remediate. Use downstream governed lanes for those effects.
  • To triage a service that is absent from oncall_policy.
  • To make up missing runbook steps, escalation targets, incident PR targets, or fix bundles.
  • To clear an unsealed runbook or ambiguous alert without human review.

Procedure

  1. Read the alert and record id, service, severity, and signal.
  2. Confirm service appears in oncall_policy.services.
  3. Confirm runbook_ref.sealed is true and a digest is present.
  4. Resolve the escalation rule for the service.
  5. If escalation or remediation is allowed, bind both page_target and incident_pr_target.
  6. Emit a single decision and, only for escalate or auto_remediate, one runx.oncall.triage.v1 packet.
  7. Stop when any target, policy clause, or sealed runbook evidence is missing.

Output Contract

yaml
decision:
  action: acknowledge | escalate | auto_remediate | suppress
  reason: string
triage_packet:
  schema: runx.oncall.triage.v1
  page_target: string
  incident_pr_target: string
  pr_review_note_body: string
  fix_bundle: object | null
  escalation: string
  evidence:
    alert_id: string
    service: string
    runbook_digest: string
    policy_clause: string
refusal:
  reason: string | null

triage_packet is emitted only when the action is escalate or auto_remediate and all targets are bound. A suppressed or acknowledged alert may return only the decision. Missing evidence stops the run instead of producing a packet.

Harness Cases

The harness covers two cases:

  • oncall-alert-triage-escalate-sealed: a page-severity checkout-api alert with a sealed runbook and in-policy service emits one runx.oncall.triage.v1 packet and seals.
  • oncall-alert-triage-missing-runbook-needs-agent: a service without a declared policy and without a sealed runbook omits caller answers, emits no packet, and stops at needs_agent for human review.

Evidence Requirements

Evidence should include the runx CLI version, package name and version, registry reference, public URL, source URL, PR URL, raw X.yaml, raw SKILL.md, harness case names, hosted harness status, dogfood command, receipt reference, verification result, the runbook digest, policy clause, packet target fields, and stop reason.

Published execution profile

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

Runners
  • agent
  • dogfood
  • triage
Profile digestsha256:3d95b191d16b6dad182b0d45e715943f548d4716e18ea711bc298ba3d879a812
skill: oncall-alert-triage
version: 0.1.3
catalog:
  kind: graph
  audience: public
  visibility: public
  role: context
  category: ops
runners:
  agent:
    steps:
      - id: agent
        agent:
          role: agent
          task: agent
  dogfood:
    inputs:
      alert:
        type: json
        required: true
        description: Alert record with id, service, severity, and signal.
      runbook_ref:
        type: json
        required: true
        description: Sealed runbook reference and digest plus target bindings.
      oncall_policy:
        type: json
        required: true
        description: Declared services and escalation rules.
      operator_context:
        type: string
        required: false
        description: Operator constraints for deterministic post-publish dogfood.
    steps:
      - id: dogfood
        tool:
          command: node
          args:
            - run.mjs
        inputs:
          alert: $input.alert
          runbook_ref: $input.runbook_ref
          oncall_policy: $input.oncall_policy
          operator_context: $input.operator_context
        artifacts:
          wrap_as: triage_packet
  triage:
    default: true
    inputs:
      alert:
        type: json
        required: true
        description: Alert record with id, service, severity, and signal.
      runbook_ref:
        type: json
        required: true
        description: Sealed runbook reference and digest plus target bindings.
      oncall_policy:
        type: json
        required: true
        description: Declared services and escalation rules.
      operator_context:
        type: string
        required: false
        description: Operator constraints for downstream dispatch and approvals.
    steps:
      - id: packet
        label: review alert evidence
        agent:
          role: reviewer
          task: oncall-alert-triage
        outputs:
          decision:
            required: false
          triage_packet:
            required: false
          refusal:
            required: false
        artifacts:
          named_emits:
            triage_packet: triage_packet
harness:
  cases:
    - name: oncall-alert-triage-escalate-sealed
      runner: triage
      inputs:
        alert:
          id: alert-2026-07-01-checkout-latency
          service: checkout-api
          severity: page
          signal: p95 latency above 2500ms for 12 minutes with error budget burn 8x
        runbook_ref:
          uri: fixture://runbooks/checkout-api-latency
          digest: sha256:7bbd657f2d41e65d9e6d38e37f722ba6efbc0f835ac815fb7649b25b182a18d4
          sealed: true
          escalation:
            page_target: pagerduty:checkout-primary
            incident_pr_target: github:runxhq/runx:incidents/checkout-api-latency
            pr_review_note_body: "Escalate checkout-api latency: attach graph, rollback candidate, and current saturation metrics."
        oncall_policy:
          services:
            - checkout-api
          escalation_rules:
            checkout-api:
              page_target: pagerduty:checkout-primary
              incident_pr_target: github:runxhq/runx:incidents/checkout-api-latency
              allowed_actions:
                - acknowledge
                - escalate
        operator_context: Keep live paging and incident PR creation in downstream governed lanes. This skill only emits the triage packet.
      caller:
        answers:
          packet:
            decision:
              action: escalate
              reason: The alert is page-severity, the service is declared in policy, and the sealed runbook binds page and incident PR targets.
            triage_packet:
              schema: runx.oncall.triage.v1
              page_target: pagerduty:checkout-primary
              incident_pr_target: github:runxhq/runx:incidents/checkout-api-latency
              pr_review_note_body: "Escalate checkout-api latency: attach graph, rollback candidate, and current saturation metrics."
              fix_bundle: null
              escalation: human_oncall_required
              evidence:
                alert_id: alert-2026-07-01-checkout-latency
                service: checkout-api
                severity: page
                signal: p95 latency above 2500ms for 12 minutes with error budget burn 8x
                runbook_digest: sha256:7bbd657f2d41e65d9e6d38e37f722ba6efbc0f835ac815fb7649b25b182a18d4
                policy_clause: checkout-api.escalation_rules
                side_effects: none
            refusal:
              reason: null
      expect:
        status: sealed
        receipt:
          schema: runx.receipt.v1
      operator_journeys:
        - mode: standalone
          confusors:
            - issue-triage
            - ops-desk
          request: Triage this on-call alert against the runbook.
          expected_outcome: Return a read-only decision and packet from the alert, runbook and policy.
        - mode: composed
          request: Continue this oncall-alert-triage work from evidence already gathered upstream.
          expected_outcome: Return a read-only decision and packet from the alert, runbook and policy.
          prior_evidence:
            - The sealed alert data and runbook already supplied.
          must_not_repeat:
            - Do not page anyone or act on the alert.
    - name: oncall-alert-triage-missing-runbook-needs-agent
      runner: triage
      inputs:
        alert:
          id: alert-2026-07-01-shadow-worker
          service: shadow-worker
          severity: page
          signal: worker queue depth above threshold but no sealed runbook is available
        runbook_ref:
          uri: fixture://runbooks/shadow-worker-missing
          sealed: false
        oncall_policy:
          services:
            - checkout-api
          escalation_rules:
            checkout-api:
              page_target: pagerduty:checkout-primary
              incident_pr_target: github:runxhq/runx:incidents/checkout-api-latency
              allowed_actions:
                - acknowledge
                - escalate
        operator_context: Missing or unsealed runbooks must block packet emission and route to human approval.
      expect:
        status: needs_agent
        receipt:
          schema: runx.receipt.v1

Published package and test evidence.

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

Test result

Harness resultPassed
Tested versionsha-656ffe0e35f5
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:7faf098f486ab2eb1c3b58d3dd772d28186dc6bfab5fd89a63a17d28d414191asha256:44f36b4ae78f9fe96f9d19493fbaffa89a983092c60023c1ecf2d4209830acde

Package identity

Published revisionsha-656ffe0e35f5
Content digestsha256:656ffe0e35f5d17af31a2a92dc2b90c48370bbe146959de2e34ebc7c1087003d
SKILL.md digestsha256:ae3856f78431c5b8260a22639e1689a0400de63588805dddec75830e31d424e6
Execution profile digestsha256:3d95b191d16b6dad182b0d45e715943f548d4716e18ea711bc298ba3d879a812
Publisher identityUnverified publisher · guoyunfeng
Trust tierCommunityPublished through the registry without publisher verification. This tier is not a code assessment.
Attestations
  • Publisher · Declaredguoyunfeng · 17 Oct 2026
Source provenanceNot published with this version

Version history

  1. sha-7305ba8eb7a4Content digest sha256:7305ba8eb7a4432623a941a4b095c1abcc452895814bc5bb34b36496b8202861
  2. sha-c4cb7884d5d8Content digest sha256:c4cb7884d5d809968192b97505bda668bfaa49bb64653cff2792069623b71986
  3. sha-656ffe0e35f5ViewingContent digest sha256:656ffe0e35f5d17af31a2a92dc2b90c48370bbe146959de2e34ebc7c1087003d
  4. sha-78dc10d6912dContent digest sha256:78dc10d6912d1b21617677a259052397e7d0bc32586bbcaf34f8f6a285758c01