ci-failure-triage
Classify CI failures as flake, infra, real-break, dep, or needs_agent and emit a read-only routing packet.
You’re reading version sha-2dfdfa7fe41f. Go to the current version
Overview
In the manual
Runner
default
Declared by its execution profile. Read the profile
SKILL.md
CI Failure Triage
What this skill does
This skill reads a bounded CI failure snapshot and emits a typed
runx.ci.triage.v1 packet. It classifies the failure as flake, infra,
real-break, dep, or unknown, attaches cited evidence from the supplied
logs, and returns exactly one read-only consequence when the evidence is strong
enough:
- a read-only rerun verdict for a flake,
- a read-only operator page note for infrastructure failure, or
- a routing decision for
issue-to-prwhen the failure is a real break or dependency break.
The skill never opens an issue, reruns CI, pages an operator, mints authority,
or claims that a downstream lane has consumed its output. A downstream
issue-intake, issue-to-pr, or pr-review-note run is the separate governed
step that may act on the packet.
When to use this skill
Use it at the first decision point after a CI job fails and before opening a tracking item. It is intended for public CI logs or explicitly authorized operator logs where a reviewer needs a quick, bounded classification with evidence citations and a conservative escalation path.
When not to use this skill
Do not use it to mutate repository state, retry CI, page a human, open a bug,
or infer root cause from thin logs. Do not feed it private secrets, tokens,
customer data, or logs that are not authorized for the reviewer. If logs are
truncated, contradictory, or below the configured confidence threshold, the
skill returns needs_agent without a routing decision.
Inputs
ci_failure: object withlogs,commit, andrepo_state.repo_config: optional repository context such as default branch and test command.escalation_policy: optional object withmin_confidencefor emitting a routing decision.output_dir: optional directory inside the skill directory fortriage-packet.jsonandreport.md.
Procedure
- Normalize the CI failure, repository config, and escalation policy.
- Extract short evidence references from the supplied log lines.
- Score visible signals for
real-break,dep,infra, andflake. - Refuse to route when logs are absent, truncated, contradictory, or below
min_confidence. - Emit the read-only triage packet with cited evidence and one bounded consequence when confidence clears the threshold.
- Optionally write the packet and a Markdown report under
output_dir.
Stop conditions
- Missing or very short logs return
needs_agent. - Truncated logs return
needs_agent. - Tied evidence between failure classes returns
needs_agent. - Confidence below
escalation_policy.min_confidencereturnsneeds_agent. - No visible evidence for the selected class returns
needs_agent.
Output
The primary output is triage_packet:
{
"schema": "runx.ci.triage.v1",
"status": "sealed",
"classification": {
"verdict": "real-break",
"confidence": 0.85,
"evidence_refs": []
},
"triage_packet": {
"routing_decision": {
"recommended_lane": "issue-to-pr",
"rationale": "clear code/test failure visible in logs"
}
}
}For ambiguous failures, status is needs_agent and
routing_decision is null.
Harness cases
real_break_clear_logs: clear test failure logs produceclassification.verdict=real-breakandrecommended_lane=issue-to-pr.ambiguous_truncated_logs: truncated logs stop withneeds_agentand no routing decision.
Published execution profile
The execution profile published with sha-2dfdfa7fe41f, shown as its exact bytes.
| Runner |
|
|---|---|
| Profile digest | sha256:7d2c29ebdc09e1ee5a795b3881e456108e87318caa70f29d5d19a83890b385f1 |
skill: ci-failure-triage
version: 0.1.0
catalog:
kind: graph
audience: public
visibility: public
role: canonical
tags:
- ci
- triage
- incident-response
runners:
default:
default: true
inputs:
ci_failure:
type: json
required: true
description: Object containing logs, commit, and repo_state for one CI failure.
repo_config:
type: json
required: false
description: Repository policy context such as default branch and test command.
escalation_policy:
type: json
required: false
description: Object with min_confidence threshold for emitting a routing decision.
output_dir:
type: string
required: false
description: Directory inside the skill directory where artifacts should be written.
steps:
- id: classify
label: classify CI failure and emit triage packet
tool:
command: node
args:
- run.mjs
inputs:
ci_failure: $input.ci_failure
repo_config: $input.repo_config
escalation_policy: $input.escalation_policy
output_dir: $input.output_dir
artifacts:
named_emits:
triage_packet: triage_packet
- id: human_lane
label: block ambiguous CI failure for agent review
when:
equals: needs_agent
value: $steps.classify.triage_packet.status
agent:
role: ci-triage-reviewer
task: resolve-ambiguous-ci-failure
outputs:
disposition:
required: false
reviewed_classification:
required: false
next_lane:
required: false
inputs:
reason: $steps.classify.triage_packet.escalation.reason
classification: $steps.classify.triage_packet.classification
harness:
cases:
- name: real_break_clear_logs
runner: default
inputs:
ci_failure:
logs: |
npm test
FAIL tests/parser.test.ts
TypeError: Cannot read properties of undefined (reading 'items')
Expected 3 received 2
Tests failed in parser regression suite
commit: "1111111111111111111111111111111111111111"
repo_state:
branch: main
changed_files:
- src/parser.ts
repo_config:
default_branch: main
test_command: npm test
escalation_policy:
min_confidence: 0.75
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: default
inputs:
ci_failure:
logs: "Error: job failed ... output truncated"
commit: "2222222222222222222222222222222222222222"
repo_state:
branch: main
repo_config:
default_branch: main
escalation_policy:
min_confidence: 0.75
expect:
status: needs_agent
Published package and test evidence.
The latest recorded test covers an earlier version, sha-656d3c82f1c3. It does not establish a result for this version.
Test result
| Harness result | An earlier version was tested |
|---|---|
| Tested version | sha-656d3c82f1c3Not this page’s version, sha-2dfdfa7fe41f |
| Recorded result | 2 checks passed · 0 failed |
| Result source | Reported by the publisher (runx_registry_publish) |
| Suite | runx-harness |
| Test recorded | |
| Declared cases | 2 |
Package identity
| Published revision | sha-2dfdfa7fe41f |
|---|---|
| Content digest | sha256:2dfdfa7fe41f0548ce9aa5afe027a9686a492a65f31e5a80831aac39bb84e8ce |
| SKILL.md digest | sha256:9679ef0172de2d2b9ac01d83a480193848a1f60f361bf97f6d31f4b47231fa68 |
| Execution profile digest | sha256:7d2c29ebdc09e1ee5a795b3881e456108e87318caa70f29d5d19a83890b385f1 |
| Publisher identity | Unverified publisher · jaasieldelgado131 |
| 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-656d3c82f1c3Content digest sha256:656d3c82f1c3214bff75ef65a79d1e22b4385975fc54ad3d15ec905e7e558fb6sha-c5011f44dd71Content digest sha256:c5011f44dd71b4948b81237d6f2e5815dda07053f675ac4567cddf6d79fd25a0sha-21a8dd6bafd7Content digest sha256:21a8dd6bafd7cf2247aebad7dacdcdb2578fe3783c4faa37dcb6c7fe65a1e643sha-2dfdfa7fe41fViewingContent digest sha256:2dfdfa7fe41f0548ce9aa5afe027a9686a492a65f31e5a80831aac39bb84e8ce