Repository navigation
Record an eval baseline for every skill - #71
Conversation
Every other skill's cases sit in `evals/<skill>/`. These 3 sat at the root, so anything grouping results by folder had no skill to file them under. Case names don't change. They still lack the `ask-claude-` prefix the other cases carry, so `--case 'ask-claude-*'` matches none of them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`claude plugin eval` writes its results to `evals/results/`, which is gitignored, so there's no earlier run to compare a new one against. `bin/eval-summary` shrinks a results file to the per-case name, skill, score, Δ, and cost, small enough to commit under `evals/baselines/`. `bin/eval-compare` lists every case whose score dropped between two of those, as groundwork for the CI job in #63. - A partial result, cut short by the cost cap or an interrupt, is refused. Its missing cases would read as drops later. - The skill comes from the case's folder, not its name. The `/ask-claude` cases have no skill prefix in their names. - The compare fails only on a drop over 0.34. Losing exactly one run of three is a 0.33 drop, so it prints but passes. - A case missing from the new file is printed but doesn't fail. Tested against the stage 2 `/commit` results and hand-edited copies of them: equal, one run lost, two cases dropped, one case missing, and a partial file. Not yet run against a full suite. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The first full run of all 60 cases, with and without the plugin, so
later runs have something to compare against with `bin/eval-compare`.
CLAUDE_CODE_EFFORT_LEVEL=high claude plugin eval . --scaffold \
--ablation with-without --model claude-opus-5-5 \
--judge-model claude-haiku-5-5 --runs 3 -j 4 --keep-temp \
--allow-tools Bash Write Edit Agent Workflow \
"WebFetch(domain:code.claude.com)" \
"WebFetch(domain:platform.claude.com)"
Claude Code 2.1.319 on macOS, about $108 at list price. 47 cases scored
1.0, mean score 0.96, mean Δ +0.35.
The results file records neither the model nor the effort, so the
file name is the only record of them. Effort was set through the
environment. A probe run showed the variable reaches each run, but
nothing in the transcript confirms the level used.
Every case got the same tool grant. Cases that list only read-only
tools could use Bash here, unlike a per-skill run following the
README.
Inside each run's sandbox, `git` resolves to Apple's `/usr/bin/git`
stub, which fails. Claude falls back to `/opt/homebrew/bin/git`, at
the cost of extra turns in both arms. A Linux CI runner won't have
this, so its costs and turn counts may differ.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tells us whether a cheaper model holds up with the plugin loaded. It ran the plugin arm only (`--ablation none`), so it has no Δ. Same flags as the Opus baseline otherwise, about $30 at list price. 32 of 60 cases scored 1.0 against Opus's 47, mean score 0.89 against 0.96, and 24 cases score lower. Scores aren't directly comparable. With one arm, the checks that a skill fired count toward the score; with 2 arms they don't. Rescored without those checks, most of the 24 drop further, so the gap is real. `risk-score-docs-only` and `understand-refunds-not-built` are the exceptions: they only look worse because of the scoring change. Part of the gap comes from this Mac's eval sandbox. It blocks the mise Ruby and Apple's git stub. Opus worked around both, while Sonnet stopped in all 3 `implement-with-tdd-invoice-due-dates` runs without writing a test. A Linux runner may show a smaller gap. `/understand` never fired on Sonnet, in 6 of 6 runs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A cheap check after a skill change: `--tag regression` runs only the 47 cases that scored 1.0 on the Opus 5.5 high-effort baseline. A drop there is a regression, not noise these cases already had. The other 13 failed at least one run in the baseline. 6 of those failures were the grader's fault or unclear, not the skill's, so fixing those graders could move cases into this set. Checked that `--tag regression` selects exactly these 47, using a model name that doesn't exist so every run failed before costing anything. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| exit 1 | ||
| fi | ||
|
|
||
| max_drop=0.34 |
There was a problem hiding this comment.
Tradeoff: We fail only on a drop over 0.34, so losing exactly 1
run of 3 (a 0.33 drop) prints but passes. A skill that really got
worse in 1 run of 3 slips through, so we might want to rerun any case
that prints before trusting it.
Each test gets 3 tries. If it goes from passing all 3 to passing 2,
the check still says OK. It's a smoke alarm set to go off only when
there's a lot of smoke: fewer false alarms, but a small fire can
smolder.
Claude Opus 5.5 (claude-opus-5-5)
| rows=$(jq -r --slurpfile new "$2" ' | ||
| ($new[0].cases | map({(.name): .score}) | add // {}) as $scores | ||
| | .cases[] | ||
| | select($scores[.name] == null or $scores[.name] < .score) |
There was a problem hiding this comment.
Risk: A case missing from the new run prints as missing but
doesn't fail, so a --tag regression run lists 13 expected missing
lines every time. A case that dropped out by mistake looks the same,
so we might want to compare only the cases both runs share.
When we rerun just the 47 tests Opus passed every time, the report also
reads out the other 13 as missing. A test that vanished by accident
shows up the same way, buried among them. It's a roll call where the
kids who were never on today's list get read out with the one who
skipped.
Claude Opus 5.5 (claude-opus-5-5)
|
|
||
| max_drop=0.34 | ||
|
|
||
| rows=$(jq -r --slurpfile new "$2" ' |
There was a problem hiding this comment.
Risk: We'll compare any 2 baselines, but a plugin-only run counts
the "did the skill run?" checks and a with-and-without run skips them.
That's how the Opus-vs-Sonnet comparison here mixes the two, so we
might want to refuse when one file has a Δ and the other doesn't.
The Sonnet scores were graded on a slightly different checklist from
the Opus ones. Graded the Opus way, most of Sonnet's low scores get
lower still, and 2 tests turn out fine. It's comparing 2 students'
grades when 1 teacher counted attendance and the other didn't.
Claude Opus 5.5 (claude-opus-5-5)
|
|
||
| results="$1" | ||
| label=$(basename "$results" .json) | ||
| out="evals/baselines/$label.json" |
There was a problem hiding this comment.
Risk: We name the baseline after the results file and overwrite
an existing one without asking, so rerunning Opus as opus-5-5-high
replaces the baseline we compare against. We might want to refuse
when the file already exists.
If we save a new run under an old run's name, the old scores are gone.
The check then compares the new run with itself, so it always passes.
It's writing this week's grades over last week's in the gradebook,
then asking whether anyone got worse.
Claude Opus 5.5 (claude-opus-5-5)
The baselines from #71 still named the `/plain-english` cases by the skill's old name, so `bin/eval-compare` couldn't match them against new runs. Renames the names only; the scores are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The baselines from #71 still named the `/plain-english` cases by the skill's old name, so `bin/eval-compare` couldn't match them against new runs. Renames the names only; the scores are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Prior to this, we had tests for every skill but no record of how they
scored, so we couldn't tell whether a change to a skill made it worse.
Now we've run all 60 tests on Opus 5.5, our usual model, both with our
skills turned on and with them off, and saved the scores. We also
saved a run on Sonnet 5.5, a cheaper model. It scored lower on 24 of
the 60. There's a new check that compares a fresh run against the
saved scores and fails when a test drops by more than about 1 try
in 3.
The 47 tests Opus passed every time are marked, so after a skill
change we can rerun just those instead of all 60.
For the time being, these scores come from runs on a Mac, where a few
of the tools the skills lean on were blocked. Part of Sonnet's lower
scores comes from that. Once the tests run automatically on a
different kind of machine, the scores may shift. The Opus run cost
about $108 and the Sonnet run about $30.
Refs #63
Written by Claude Opus 5.5 (claude-opus-5-5) with /pr --auto. No human
has edited this yet.