ml-canary
Skill0 starsChanged 6 months agoMITView on GitHub
This skill should be used after a model deployment — when the user says "canary", "watch the rollout", "monitor the new model", "is the deploy healthy", "post-deploy check", or a release produced a CANARY_PLAN.md that now needs executing. Audits production behavior against the model card's stated expectations.
In this repository18 other files it gives its agents.
- experiment-designSkill
- llm-engineeringSkill
- ml-autoplanSkill
- ml-carefulSkill
- ml-code-reviewSkill
- ml-experiment-journalSkill
- ml-iterateSkill
- ml-learnSkill
- ml-office-hoursSkill
- ml-principlesSkill
- ml-production-debugSkill
- ml-red-teamSkill
- ml-retroSkill
- ml-setupSkill
- ml-shipSkill
- ml-system-designSkill
- model-evaluationSkill
- tech-leadershipSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Online metric at the pre-registered horizon: only at the horizon and maturation window the experiment plan committed to.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ML canary
Post-deploy watch. The model card made promises; the canary checks them. This is the boomerang — plan vs reality, made explicit and written down.
Inputs
ml/releases/<version>/MODEL_CARD.md ("Expected production behavior" section) and CANARY_PLAN.md. No model card → run against best-known expectations, and note that the release skipped ml-ship (a process leak for the next retro).
The checks, per ramp stage
- Prediction distribution vs card: mean/p10/p90 of live scores against the card's stated expectations. Shifted distribution with stable inputs = serving-path suspect →
ml-production-debugstep 3 (don't wait for the online metric to confirm what the score histogram already shows). - Feature health: per-feature null/default/out-of-range rates vs the card's assumptions. A feature silently going 100% default flattens output with zero errors thrown.
- System: latency p50/p99 vs budget, error rate, throughput at current traffic share.
- Flip spot-check: sample entities scored by both old and new models; flip rate in line with the offline flip analysis? Offline said 8%, live shows 20% → stop the ramp.
- Online metric at the pre-registered horizon: only at the horizon and maturation window the experiment plan committed to. No peeking-driven decisions; sequential bounds if the plan prescribed them.
Stage gates
Each ramp stage (shadow → N% → 100%) advances only on its CANARY_PLAN numeric gates. A failed gate triggers the rollback plan — which the card already wrote, with numeric triggers and an owner. Execute it; don't renegotiate it mid-incident.
Output — boomerang report
Append to ml/releases/<version>/CANARY_REPORT.md per checkpoint:
## Checkpoint [stage, date]
| Check | Card said | Production says | Verdict |
[score dist | nulls | latency | flips | online metric]
**Decision**: advance / hold / rollback — [numeric reason]On completion (100% + horizon passed): final verdict in the report, canary_passed (or rolled_back) gate appended to ml/gates.json, outcome logged in experiments/journal.md, and any card-vs-reality miss handed to ml-retro's boomerang audit — systematically wrong cards are a calibration problem, not bad luck.
Rules
- Checks are computed from real logs/metrics when available — ask for the data, run the comparison in code.
- Drift alerts inform; only guardrail breaches page. Don't convert the canary into alarm fatigue.
- The watch has an end date. A canary that never concludes is monitoring, and belongs to the standing monitors recommended by ml-production-debug.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

