ci-failure-triage

Classify CI failures as flake, infra, real-break, or dependency break and emit an evidence-backed routing packet.

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

Overview

Classify a CI failure before an incident lane opens. This skill reads the provided CI logs, commit context, repository state, and escalation policy. It returns a typed runx.ci.triage.v1 packet for a downstream issue-intake, issue-to-pr, or pr-review-note run.

The skill is read-only. It does not rerun CI, open issues, page operators, modify repositories, or claim that any downstream lane has consumed its output. It only emits a classification and a draft routing decision when the supplied evidence supports one.

In the manual

Runner

  • classify

Declared by its execution profile. Read the profile

SKILL.md

CI Failure Triage

Classify a CI failure before an incident lane opens. This skill reads the provided CI logs, commit context, repository state, and escalation policy. It returns a typed runx.ci.triage.v1 packet for a downstream issue-intake, issue-to-pr, or pr-review-note run.

The skill is read-only. It does not rerun CI, open issues, page operators, modify repositories, or claim that any downstream lane has consumed its output. It only emits a classification and a draft routing decision when the supplied evidence supports one.

Verdicts

  • flake: transient failure evidence with a read-only rerun verdict.
  • infra: runner, network, cache, service, or platform failure with a read-only operator-page note.
  • real-break: source or test change likely caused a deterministic failure, routed to issue-to-pr.
  • dep: dependency, lockfile, registry, or toolchain drift, routed to issue-to-pr unless the repository policy names another lane.
  • needs_agent: ambiguous or truncated evidence, contradictory signals, or confidence below escalation_policy.min_confidence.

Inputs

  • ci_failure.logs: raw or summarized CI logs.
  • ci_failure.commit: commit SHA, changed files, and commit message.
  • ci_failure.repo_state: workflow, provider, baseline status, retry evidence, or known incident context.
  • repo_config: optional repository routing rules and protected branch policy.
  • escalation_policy.min_confidence: minimum confidence required before any recommendation is emitted.

Output

The default runner returns:

  • classification.verdict: one of flake, infra, real-break, dep, or needs_agent.
  • classification.confidence: numeric confidence in the supplied evidence.
  • classification.evidence_refs: exact log, commit, or repo-state references supporting the verdict.
  • triage_packet: exactly one of read_only_rerun_verdict, read_only_operator_page_note, or routing_decision{recommended_lane,rationale} when confidence is high enough.
  • operator_note: the human-readable next step and boundaries.

For real-break or dependency failures, the routing decision names a downstream issue-intake / issue-to-pr / pr-review-note run. That downstream run is a separate governed step issued by an operator or venue driver.

Refusal Rules

  • Do not assert a root cause that is not visible in the supplied logs, commit, or repository state.
  • Do not classify above escalation_policy.min_confidence without cited evidence.
  • Do not invent a recommended lane when logs are truncated, signals conflict, the baseline is unknown, or the failure cannot be grounded.
  • Do not open a tracking item, rerun CI, page anyone, or mutate any repository.
  • Return needs_agent when a human needs to fetch full logs, inspect secrets, decide release priority, or approve a downstream lane.

Harness Cases

  • real_break_clear_logs: clear deterministic test failure after retry, tied to a changed source file. Expected verdict is real-break with recommended lane issue-to-pr.
  • ambiguous_truncated_logs: truncated failure with no grounding evidence. Expected status is needs_agent and no routing packet.

Published execution profile

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

Runner
  • classify
Profile digestsha256:0b0db6294d16638ebab91a8a8202a08b74916b8036af7f5df07cf71ab9194244
skill: ci-failure-triage
version: 0.1.0
catalog:
  kind: skill
  audience: public
  visibility: public
  role: context
  category: code
runners:
  classify:
    default: true
    inputs:
      ci_failure:
        type: json
        required: true
        description: CI failure evidence containing logs, commit, and repo_state.
      repo_config:
        type: json
        required: false
        description: Repository routing policy and protected-branch context.
      escalation_policy:
        type: json
        required: true
        description: Minimum confidence and escalation requirements for routing decisions.
    steps:
      - id: classify
        agent:
          role: researcher
          task: ci-failure-triage-classify
        inputs:
          ci_failure: $input.ci_failure
          repo_config: $input.repo_config
          escalation_policy: $input.escalation_policy
        artifacts:
          wrap_as: ci_failure_triage_packet
        outputs:
          classification:
            required: false
          triage_packet:
            required: false
          operator_note:
            required: false
harness:
  cases:
    - name: real_break_clear_logs
      runner: classify
      inputs:
        ci_failure:
          logs: |
            npm test
            > app@1.4.0 test
            > vitest run

            FAIL packages/api/cart.test.ts > cart total includes tax
            AssertionError: expected 104.00 to equal 108.16
            src/cart/totals.ts:42:17

            Commit 8a912f2 changed src/cart/totals.ts and removed taxRate from line-item totals.
            Retried once on a fresh runner; the same assertion failed.
          commit:
            sha: 8a912f2
            changed_files:
              - src/cart/totals.ts
              - packages/api/cart.test.ts
            message: refactor cart totals
          repo_state:
            default_branch: main
            ci_provider: github-actions
            workflow: test
            previous_main_status: passing
        repo_config:
          protected_branch: main
          issue_to_pr_lane: enabled
        escalation_policy:
          min_confidence: 0.75
      caller:
        answers:
          classify:
            classification:
              verdict: real-break
              confidence: 0.91
              evidence_refs:
                - logs: "AssertionError: expected 104.00 to equal 108.16"
                - commit: 8a912f2 changed src/cart/totals.ts
                - repo_state: "previous_main_status: passing"
            triage_packet:
              routing_decision:
                recommended_lane: issue-to-pr
                rationale: The failing assertion is deterministic after retry and points to a source change in the commit under test.
                downstream_step: issue-intake
            operator_note:
              action: route
              reason: Create an issue-to-pr task with the failing test and suspect file.
      expect:
        status: sealed
        receipt:
          schema: runx.receipt.v1
      operator_journeys:
        - mode: standalone
          confusors:
            - issue-triage
            - vuln-triage
          request: Classify why this CI run failed and where it should go.
          expected_outcome: Return a read-only routing packet classifying the failure as flake, infra, real break or dependency.
        - mode: composed
          request: Continue this ci-failure-triage work from evidence already gathered upstream.
          expected_outcome: Return a read-only routing packet classifying the failure as flake, infra, real break or dependency.
          prior_evidence:
            - The CI run logs and metadata already collected.
          must_not_repeat:
            - Do not re-run the CI job.
    - name: ambiguous_truncated_logs
      runner: classify
      inputs:
        ci_failure:
          logs: |
            job failed
            output truncated after 2000 lines
            Error: process exited with code 1
          commit:
            sha: 2bf82c1
            changed_files: []
            message: update deps
          repo_state:
            default_branch: main
            ci_provider: github-actions
            workflow: test
            previous_main_status: unknown
        repo_config:
          protected_branch: main
          issue_to_pr_lane: enabled
        escalation_policy:
          min_confidence: 0.75
      expect:
        status: needs_agent

Published package and test evidence.

The latest recorded test covers an earlier version, sha-28ff5112c80d. It does not establish a result for this version.

Test result

Harness resultAn earlier version was tested
Tested versionsha-28ff5112c80dNot this page’s version, sha-6dc9ae5b7f28
Recorded result2 checks passed · 0 failed
Result sourceReported by the publisher (runx_registry_publish)
Suiterunx-harness
Test recorded
Declared cases2

Package identity

Published revisionsha-6dc9ae5b7f28
Content digestsha256:6dc9ae5b7f282d7cef076eff8dd1097d0f271dd17e3deaee39733320d04ec45b
SKILL.md digestsha256:fe504e6d81cc505e5a3df6c3dda9d98297c81b3348e0721463e3139eb8e0544e
Execution profile digestsha256:0b0db6294d16638ebab91a8a8202a08b74916b8036af7f5df07cf71ab9194244
Publisher identityUnverified publisher · liomilet4-png
Trust tierCommunityPublished through the registry without publisher verification. This tier is not a code assessment.
Attestations
  • Publisher · Declaredliomilet4-png · 13 Oct 2026
Source provenanceNot published with this version

Version history

  1. sha-28ff5112c80dContent digest sha256:28ff5112c80d603051e4175186afe4b350c9a80d267acca72321d6694de57fc1
  2. sha-beb4306ee129Content digest sha256:beb4306ee129c2ce0350fdd0b770a6fd3811282cc143d645855dd942562e1822
  3. sha-12252841f777Content digest sha256:12252841f7774b39244e8426c0f6499e0b5601aad635978f604ba6e21666cdec
  4. sha-6dc9ae5b7f28ViewingContent digest sha256:6dc9ae5b7f282d7cef076eff8dd1097d0f271dd17e3deaee39733320d04ec45b