node <plugin-root>/tools/cdc-bootstrap.mjs . (headless
setup; --no-agent scaffolds for $0). The manual steps:uses: jameskomo/config-drift-checker/action@v1; the full two-track template is
ci/config-drift-checker.yml in the plugin) and a .cdc.yml at the plugin root
(node tools/cdc-config.mjs <plugin> init, then set budget.per_month_usd to what you are willing to spend).ANTHROPIC_API_KEY (an API key from console.anthropic.com with prepaid credit), optional
SLACK_WEBHOOK_URL. Repo settings: workflow permissions Read and write, and Allow GitHub Actions
to create and approve pull requests (for bump/pin/repair PRs).<plugin>/evals/. Start with three: one positive skill case, one
negative-trigger case, one hook case with a case.yaml scaffold. If the repo ignores .claude/
(git check-ignore -v .claude/evals/x), keep the plugin files under agent-config/ instead and
set experimental.evals in the manifest. Real-code cases: scaffold copies the real source and
CLAUDE.md into the workspace (a scaffold.sh named in case.yaml; locate the plugin with
${EVAL_PLUGIN_ROOT:-$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)}, since the official
runner passes scaffold scripts no EVAL_* variables); ask for a feature
that does not exist yet. Put the rule ids the case exercises in the case’s covers.yaml
(node tools/config-coverage.mjs <plugin> --list).claude plugin validate <plugin> then
node tools/eval-shim.mjs <plugin> --case '<one>' --runs 1 --ablation none --scaffold --budget 0.5.workflow_dispatch, track pinned) once → records the baseline on
eval-results and opens the pin PR if .cdc.yml had no pin. Merge it.<plugin>/evals/results/<timestamp>/
aggregate-result.json # the data (schemaVersion 1.1): what eval-diff, --regrade and the Action read
report.html # the same data as a self-contained page, generated from the JSON
The shim prints both paths at the end of every run, including --regrade runs. The report is
derived, never authoritative: regenerate it any time, with or without a baseline for the diff columns
(node tools/eval-report.mjs <results>/aggregate-result.json [--baseline <other>/aggregate-result.json] [--config <plugin>]).
In CI the Action generates it with the baseline diff and uploads it as the eval-report workflow
artifact (90-day retention); the results branch stores the JSON, the drift index, and every run’s
report under docs/. One file, no server, opens from disk (Google Fonts if online, system fonts if not).
Nothing. On push/PR to the setup the pinned track runs and sets the check. On the schedule the
watch job checks npm and the model list; if something shipped, the canary runs, at most once per
canary.min_interval_hours and never past budget.per_month_usd. Read the job summary; regressions also
arrive on Slack; two green canaries on a new model/version arrive as a bump PR.
eval-report.html: every run, every grader with its reason, tool calls, and the full response.
Locally the same file is written as report.html next to each aggregate-result.json..cdc.yml are not what the baseline was
measured on; fix the pins). On the canary, a move is the point./config-drift-checker:repair, or repair: true on the Action), write it up.promote-baseline: true.runs for that case; check the
scaffold creates the state the prompt assumes; check graders match code, not prose.promote-baseline; if it is a real change in behaviour, treat
it as a regression and consider fail_on: [score, turns].thresholds.score to make red go away; add runs.workflow_dispatch on the pinned track with promote-baseline: true after an intentional change, or
after the first run. Baselines are per results branch; history keeps every run regardless. The
canary track never writes baseline.json; it proposes a bump PR instead, which you merge (the
next pinned run on the new pins is then the baseline you promote).
| Lever | Effect |
|---|---|
budget.per_month_usd in .cdc.yml |
the ceiling. Past it the Action skips with a notice; force: true on a manual run overrides |
budget.per_run_usd |
the runner stops starting runs mid-suite; what ran is kept |
canary.min_interval_hours |
coalesces release bursts (25 versions/month observed) into at most about 10 canaries |
canary.runs: 1 + expand_on_deviation: 2 |
one run per case; three only when something looks wrong (about 3× cheaper canaries) |
ablation: none in CI |
halves cost; keep with-without for one-off proof |
runs per case |
3 default on pinned; 5 for flaky/critical hook cases; 1 for smoke on PRs |
model: haiku for PR smoke, the pin for baseline runs |
5–10× cheaper smoke |
--case / --tag filters on PRs |
run only what the PR touched |
Measured: $0.045–0.075 per short Sonnet run; $0.43 per 9-run suite; $1.00–1.13 per 18-run suite.
The ledger (spend.json on the results branch, meter on the drift index) shows the month so far.
node tools/eval-shim.mjs komo-stack --scaffold # full, with/without, 3 runs
node tools/eval-shim.mjs komo-stack --track canary --scaffold # alias model, sequential runs
node tools/eval-shim.mjs komo-stack --case 'guard*' --runs 1 --ablation none --scaffold --budget 0.5
node tools/eval-diff.mjs baseline.json current.json --config komo-stack --md diff.md
node tools/eval-shim.mjs <plugin> --regrade <results>/aggregate-result.json # fixed a grader? re-score without re-running
node tools/release-watch.mjs --state .release-watch.json --models --pin claude-sonnet-5 --update
node tools/cdc-gate.mjs check --config komo-stack --track canary --spend spend.json --streak canary/streak.json --event schedule
node tools/canary-promote.mjs --config komo-stack --result current.json --streak canary/streak.json --regressed 0
node tools/config-coverage.mjs komo-stack --list
node tools/eval-dashboard.mjs komo-stack/evals/results --config komo-stack --out dashboard.html
node tools/fleet.mjs --config fleet.yml --out fleet.html # many repos, one dashboard + pin policy
node tools/drift-digest.mjs docs/drift --md digest.md --post post.txt # weekly digest + the release-verdict post, pre-written
node tools/skill-lint.mjs komo-stack # static checks on every SKILL.md, no model runs
node tools/suite-doctor.mjs komo-stack --fix # eval cases vs the installed runner's format; --fix migrates known changes
node tools/drift-bisect.mjs komo-stack --case 'spring-work*' --good 2.1.258 --bad 2.1.274 # which release broke this case? log2(N) runs
node tools/drift-matrix.mjs komo-stack --models sonnet,haiku --last 5 --budget 5 # which model and release does the setup survive? --dry-run for $0
node tools/context-cost.mjs komo-stack --store evals/results/context-cost # always-on tokens per session, per release; --history for the trend
node tools/usage-check.mjs komo-stack --since 90d # skills tested but unused, used but untested (local transcripts)
node tools/case-miner.mjs komo-stack --dry-run # real prompts as suggested trigger and negative cases (anonymised); drop --dry-run to stage, then accept <id>
node tools/evals-convert.mjs import skills/<s>/evals/evals.json --dry-run # skill-creator evals.json into plugin-eval cases; export goes back
node tools/release-report.mjs --discover --out-dir docs/release-report # every public suite on the newest Claude Code, $0, no credentials
node tools/mutate.mjs komo-stack --dry-run # mutation testing; drop --dry-run and add --budget 3 for the real score
node tools/trigger-map.mjs komo-stack --model haiku --budget 0.5 # fire rates per skill with 95% ranges and collisions
node tools/case-miner.mjs komo-stack --since 90d --dry-run # real sessions into suggested cases, anonymised, review first
node tools/runs-needed.mjs komo-stack/evals/results --config komo-stack # how many runs each case needs; --write updates prompt.md
node tools/harness-diff.mjs --from 2.1.295 --to 2.1.310 --md - # what changed inside Claude Code between two releases
node tools/pr-impact.mjs --base main --head HEAD --plugin komo-stack # what a branch changes in the agent setup
node tools/eval-shim.mjs komo-stack --agent codex --ablation none --scaffold # same suite through Codex CLI
node tools/eval-shim.mjs komo-stack --agent gemini --ablation none --scaffold # through Gemini CLI (free Google tier)
claude plugin eval ./komo-stack --allow-tools Bash --scaffold --json out.json # official runner
node tools/eval-diff.mjs baseline.json out.json --config komo-stack # native JSON diffs directly
node tools/trace-keeper.mjs out.json --clean # after --keep-temp: keep transcripts inline (enables refusal labels on native runs)
cd config-drift-checker && npm test # full suite, fake claude, no API key needed
| Symptom | Cause | Fix |
|---|---|---|
claude plugin eval not found / errors |
Claude Code older than 2.1.269 | Action falls back to the bundled runner automatically; upgrade Claude Code to use the official one |
| “pages build and deployment” shows cancelled | several commits landed on main within a minute (a release bump, the drift index); GitHub cancels superseded Pages builds and deploys only the newest | nothing — check that the most recent Pages run succeeded; only a failed newest run needs action |
| every run errored with “Your organization has disabled Claude subscription access for Claude Code” (or another refused token or key) | Claude refused the credentials. The token itself may be fine: from Oct 31 to Nov 2 2026 our unchanged token was refused like this, then accepted again | the error now says it is the credentials, and the Action no longer retries on the bundled runner. Wait and re-run, re-run claude setup-token and update CLAUDE_CODE_OAUTH_TOKEN, or switch to ANTHROPIC_API_KEY; if an organization is named, its admin controls access |
shim run isError: true, stderrTail mentions auth or credit |
no key in CI / no credentials locally / no prepaid credit | set the secret (or CLAUDE_CODE_OAUTH_TOKEN); locally the shim copies ~/.claude/.credentials.json; top up at console.anthropic.com → Billing |
| job summary says skipped: budget | month’s ledger reached budget.per_month_usd |
the free checks still ran on the new release and it shows as untested on the dashboard and badge; raise the cap, wait for next month, or re-run manually with force: true |
| job summary says skipped: interval | scheduled canary sooner than canary.min_interval_hours |
nothing; push/PR/manual runs are never throttled |
| “could not open the PR” warning, branch pushed | the token cannot create PRs | Settings → Actions → General → Allow GitHub Actions to create and approve pull requests, or pass a PAT as github-token; open the PR from the branch meanwhile |
pin_retired=true / “model.pinned is no longer listed” |
Anthropic retired the pinned id | merge the next bump PR, or cdc-config set-pins --model <current id> and promote |
| canary red, pinned green | the alias moved to a model/version your setup does not survive | that is the alert working; adapt the setup before the alias reaches everyone; do not bump |
| every case 0 tool calls, 1 turn | prompt asks for something the model refuses in an empty dir | add case.yaml scaffold; choose a command the model will run |
store step fails on first run |
orphan branch creation quirk | create eval-results manually once: git checkout --orphan eval-results && git rm -rf . && git commit --allow-empty -m init && git push -u origin eval-results |
| warning “the official runner … gave no usable result … cannot confine it (no sandbox backend)” | Claude Code 2.1.310+ refuses shell tools when it cannot sandbox. On Linux the sandbox needs both bubblewrap and socat, and bubblewrap must be allowed to create user namespaces (Ubuntu 24.04 and 26.04 block that through AppArmor). Ubuntu 26.04 ships bubblewrap but not socat | the Action installs whichever of bubblewrap and socat is missing and lifts kernel.apparmor_restrict_unprivileged_userns on hosted runners; on self-hosted runners run sudo apt-get install bubblewrap socat and sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 (or add bubblewrap’s AppArmor profile). The run is still scored by the bundled runner and the report says so |
| scores differ from the official runner | LLM grader votes (1 vs 2-of-3), unsupported grader types | expected; the official runner is authoritative when available |