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-beb4306ee129. 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 toissue-to-pr.dep: dependency, lockfile, registry, or toolchain drift, routed toissue-to-prunless the repository policy names another lane.needs_agent: ambiguous or truncated evidence, contradictory signals, or confidence belowescalation_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 offlake,infra,real-break,dep, orneeds_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 ofread_only_rerun_verdict,read_only_operator_page_note, orrouting_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_confidencewithout 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_agentwhen 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 isreal-breakwith recommended laneissue-to-pr.ambiguous_truncated_logs: truncated failure with no grounding evidence. Expected status isneeds_agentand no routing packet.
Published execution profile
The execution profile published with sha-beb4306ee129, shown as its exact bytes.
| Runner |
|
|---|---|
| Profile digest | sha256: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.
This exact version passed its recorded harness run: 2 checks passed · 0 failed.
Test result
| Harness result | Passed |
|---|---|
| Tested version | sha-beb4306ee129 |
| Recorded result | 2 checks passed · 0 failed |
| Result source | Reported by the publisher (runx_registry_publish) |
| Suite | runx-harness |
| Test recorded | |
| Declared cases | 2 |
| Test record | Open the recorded run |
Inspect receipt references
sha256:ea698fd0c065a6e5dbadbb587982712cc2c2b5fbc7afcc686031717054a3b782sha256:f5cab72b9f44f93147f7ca321789278cc3c8eb248fb7419d2be1396e634df9abPackage identity
| Published revision | sha-beb4306ee129 |
|---|---|
| Content digest | sha256:beb4306ee129c2ce0350fdd0b770a6fd3811282cc143d645855dd942562e1822 |
| SKILL.md digest | sha256:fe504e6d81cc505e5a3df6c3dda9d98297c81b3348e0721463e3139eb8e0544e |
| Execution profile digest | sha256:0b0db6294d16638ebab91a8a8202a08b74916b8036af7f5df07cf71ab9194244 |
| Publisher identity | Unverified publisher · liomilet4-png |
| Trust tier | CommunityPublished through the registry without publisher verification. This tier is not a code assessment. |
| Attestations |
|
| Source provenance | Not published with this version |
Version history
sha-28ff5112c80dContent digest sha256:28ff5112c80d603051e4175186afe4b350c9a80d267acca72321d6694de57fc1sha-beb4306ee129ViewingContent digest sha256:beb4306ee129c2ce0350fdd0b770a6fd3811282cc143d645855dd942562e1822sha-12252841f777Content digest sha256:12252841f7774b39244e8426c0f6499e0b5601aad635978f604ba6e21666cdecsha-6dc9ae5b7f28Content digest sha256:6dc9ae5b7f282d7cef076eff8dd1097d0f271dd17e3deaee39733320d04ec45b