Skill: Triage Canary

SkillDev tools

Lets your agent diagnose a failed canary test run and file a GitHub issue with a root-cause report.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Skill: Triage Canary skill

About this capability

Triage a failed canary ferry run only when invoked by CI with the required CANARY context.

What this skill tells your AI

The instructions your AI receives, as published by marin-community/marin in .agents/skills/triage-canary/SKILL.md and read by ahel’s review.

Triage a failed canary ferry run. Diagnose root cause, file a GitHub issue, write a Slack summary. Diagnosis and reporting only — no code changes, no PRs.

CI invocation context

The composite action includes these non-secret values in the prompt. Use the prompt values directly instead of inspecting the process environment. Matching environment variables remain available to commands invoked during triage.

VariableDescription
CANARY_LANEgpu (CoreWeave) or tpu (GCP)
CANARY_JOB_IDIris job ID
CANARY_RUN_IDW&B run ID
IRIS_CONFIGPath to Iris cluster config
IRIS_NAMESPACEKubernetes namespace (CW only)
WANDB_ENTITYW&B entity
WANDB_PROJECTW&B project
GHA_RUN_URLFull URL to the GitHub Actions run

Steps

1. Gather diagnostics

The cluster is still live. Collect signal now — it will be torn down after you.

  • Iris job state via .venv/bin/iris --config=$IRIS_CONFIG job list
  • GPU lane: you have kubectl at ~/.kube/coreweave-iris, namespace $IRIS_NAMESPACE (defaults to iris-ci — the canary shares this namespace with PR CI). Get pod status, controller logs, task pod logs, warning events, pod describe. Filter by iris.job_id=<CANARY_JOB_ID with '/' replaced by '.'> so you only see this canary's pods, not co-tenant CI pods. Example: kubectl -n iris-ci get pods -l iris.job_id=runner.iris-run-job-abc123.
  • TPU lane: use iris process logs and iris job list.
  • Re-run scripts/ci/validate_canary_metrics.py if you need the validation output.

2. Identify root cause

Classify into one of: infra/scheduling, training crash, metric regression, controller bug, data/storage.

Use hypothesis-driven diagnosis: state hypothesis, gather evidence, narrow. Attempt to reproduce the issue locally and minimally. Triple check that you're narrowing down on the same issue as the one that actually broke the canary.

3. File a GitHub issue

Follow the file-issue skill. Use the bug-report template.

  • Title: [canary-{lane}] {short failure description}
  • Labels: bug, agent-generated, canary
  • Body must include a "Canary run context" section with: lane, job ID, GHA run URL, W&B run URL, date.
  • Support your claims using supporting data (e.g. runtime logs)
  • Keep the issue concise and maximally readable for humans.
  • Use GFM to make the details (e.g. log traces, code to reproduce issue) optional and declutter the issue.
  • Use --body-file with a temp file (see file-issue skill for the pattern).

4. Write slack_message.md

Write to the repo root. The workflow reads this file and sends it to Slack. Always write this file, even if issue creation failed.

Format — keep to 4 lines max:

:red_circle: *{GPU|TPU} Canary failed* — {one-line summary}
*Root cause:* {category} — {1 sentence}
*Issue:* {github issue URL}
*GHA run:* {GHA_RUN_URL}

If root cause is unclear, say so: root cause unclear with your best-guess signals.

Signals

GitHub stars
4k
Forks
303
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
triage-canary
Source
github.com/marin-community/marin