config-drift-checker: run
node ${CLAUDE_PLUGIN_ROOT}/tools/eval-shim.mjs <plugin> [--track pinned|canary] [--case <glob>] [--runs n] [--ablation none|with-without] [--scaffold] [--model m] [--budget <usd>]
node ${CLAUDE_PLUGIN_ROOT}/tools/eval-diff.mjs <baseline.json> <current.json> --config <plugin>
node ${CLAUDE_PLUGIN_ROOT}/tools/config-coverage.mjs <plugin> # which rules have no case
node ${CLAUDE_PLUGIN_ROOT}/tools/release-watch.mjs --state .release-watch.json --models --pin <model.pinned>- Default to
--ablation none --scaffoldfor regression checks (with-without only to prove a plugin's worth). Use--runs 1for a quick look, 3+ before trusting a score. Always pass a--budgetwhen the user has said what they are willing to spend; the.cdc.ymlbudget.per_run_usdapplies otherwise. --track pinned= the baseline (exact model id + Claude Code version from.cdc.yml);--track canary= the alias on whatever Claude Code is installed, 1 run per case, more only on a deviation. "Did the update break my setup?" is a canary question; "did my edit break it?" is pinned.- Baseline lives at
<plugin>/evals/results/<timestamp>/aggregate-result.jsonlocally, orbaseline.jsonon theeval-resultsbranch (git show origin/eval-results:baseline.json). - The diff header says whether the model or Claude Code moved since the baseline, and flags slower / pricier / longer cases (efficiency drift) even when every case still passes.
- If the official runner is enabled (
claude plugin evalin an empty dir prints "No eval cases found"), preferclaude plugin eval <plugin> --allow-tools Bash --scaffold --json out.json.
Explaining red: read the run, not the score
For each failing case open the run entries in the JSON: numTurns, toolUses, response,
per-grader verdict. Classify and say which:
- Model refused before acting (1 turn, 0 tool calls) → the case doesn't exercise the hook; change the command/scaffold.
- Hook/skill didn't fire (tool attempted, no block / no Skill call) → real regression or config change; the report's stamp says whether the model or Claude Code moved. Offer
/config-drift-checker:repair. - Grader wrong (prose matched, negative grader with min=1) → fix the grader, not the setup.
- Flaky (mixed verdicts across runs) → raise
runs; never loosen the threshold.