Repository navigation
Stop eval graders from failing correct runs - #76
Conversation
`green-at-end` rejected any test summary after the last green one, so a run that ended green and then quoted "7 runs, 7 assertions, 0 failures" in its reply scored as red. That cost 1 of 3 runs in the Opus 5.5 baseline. Now only a later summary with a non-zero failure or error count counts against it, matching `went-red`'s definition of red. Checked against the 3 baseline traces: all 3 pass, including the one that failed before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The `mechanics` judge failed 1 of 3 Opus 5.5 baseline runs for "for two reasons" in the reply's opening, which isn't part of the PR. The rubric also said to ignore code blocks, but the body and notes come back in fenced blocks, so it pointed the judge away from what it should read. The rubric now says the body and notes sit in fenced blocks, that only their text counts, and names the opening as something to ignore. A local Haiku judge passed all 3 baseline replies 6 of 6 times and failed a body with "three notes" planted in it 3 of 3 times. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The `no-invented-values` judge split 2-1 against an Opus 5.5 baseline reply where every value checked out. A local Haiku judge reading that reply singled out the cut-off quote "Payment received." as the weak spot; other likely trips are "Mar 22" and "day 22", which the rubric only covered as "a date computed from 2026-03-01". The rubric now lists what follows from the repo (dates in any format, cut-off subject quotes, joined names like `DunningMailer.deliver`, plain words like "gateway") and asks the judge to name the invented value before failing. Locally, Haiku passed all 3 baseline replies 6 of 6 times and failed a reply with a wrong invoice number and retry day 3 of 3 times. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`/rubber-duck` says its first reply plays the problem back in one line
and stops. 1 of 3 Opus 5.5 baseline runs did exactly that ("every
renewal goes through `renew!` ... But they are.") and failed
`names-the-assumption`, which wanted the belief singled out in a case
that only has 1 turn.
We now pass a reflection that states the belief as one of the user's
links without vouching for it. We picked this over a second turn from a
`context.history_file`: a recorded turn 1 would drift as the skill
changes, it means changing the case's prompt, and the case would lose
its no-plugin arm by default. A reply that leaves out the belief, or
settles it, still fails. Locally, Haiku failed the baseline reply 2 of 2
times on the old rubric and passed it 2 of 2 on the new one, and failed
both planted bad replies every time.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The destructive-migration and docs-only cases start with `/risk-score`, which loads the skill without a Skill tool call. Nothing in the trace records the load either: it goes from the session's start straight to Claude's first reply. So `skill-fired` read 0 of 3 in both cases even though every run used the skill. The script's absolute path only reaches Claude through the loaded skill, so we check for a Bash call that runs `skills/risk-score/scripts/score.py` instead, marked `arm: with-only` so it stays an indicator. Across the Opus 5.5 baseline's risk-score traces it matched all 12 with-plugin runs that ran the script and none of the 15 without-plugin runs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| type: regex | ||
| target: trace | ||
| pattern: '\d+ runs, \d+ assertions, 0 failures, 0 errors(?![\s\S]*\d+ runs, \d+ assertions, \d+ failures)' | ||
| pattern: '\d+ runs, \d+ assertions, 0 failures, 0 errors(?![\s\S]*\d+ runs, \d+ assertions, (?:[1-9]\d* failures|\d+ failures, [1-9]\d* errors))' |
There was a problem hiding this comment.
Risk: We still fail a green run when the final reply quotes the red
step, like "went red at 1 runs, 1 assertions, 1 failures", since the
lookahead can't tell a quote from a test run. We might want Claude to
write the last test result to a file and grade that file instead.
The check that asks "did the work end with every test passing?" can
still mark a finished, passing job as failed if Claude's wrap-up
mentions the failing test it started from. It's a referee who hears you
say "we were losing at half time" after the final whistle and records a
loss.
tests run --> 1 failures
tests run --> 0 failures (done, all green)
wrap-up quotes --> "1 failures"
check reads it as a new failure
Claude Opus 5.5 (claude-opus-5-5)
| The skill's first reply may be only a reflection: it plays the user's reasoning back in their terms and stops, so they hear the gap themselves. That counts as naming it, as long as the belief is one of the links it plays back. | ||
|
|
||
| FAIL if no message singles it out, or a message settles it by telling them whether it's true. | ||
| PASS if a message from Claude to the user either points at that belief as the part they haven't confirmed, or plays their chain back with that belief stated as one of its links (like "every renewal goes through `renew!`") without vouching for it. |
There was a problem hiding this comment.
Tradeoff: We now pass a reply that only plays the user's chain back
with "renewals go through renew!" as a link, which likely lets a
reply that copies the prompt back pass too, though we haven't tried
it. We picked this over a recorded second turn from a
context.history_file, since that turn would drift as the skill
changes and the case would lose its no-plugin arm.
The rubber duck skill helps a developer talk through a bug, and its
first reply is told to repeat their reasoning back to them. The test
now gives credit for that, but a reply that just copies their message
back would probably get the same credit. It's a teacher who gives marks
for restating the question.
Claude Opus 5.5 (claude-opus-5-5)
| tool: Skill | ||
| input_match: '"skill"\s*:\s*"(?:[\w-]+:)?risk-score"' | ||
| tool: Bash | ||
| input_match: 'skills/risk-score/scripts/score\.py' |
There was a problem hiding this comment.
Risk: We tell the skill ran from the full path of its script, since
a /risk-score prompt loads the skill without leaving anything in the
trace. If Claude runs scripts/score.py by a relative path, or we
rename or move it, this check says the skill never ran.
We can't see the moment the risk scoring skill switches on, so we look
for its fingerprint: the small scoring program it runs, called by its
full address. If that program is renamed, or called a different way,
the check reports the skill never ran, even when it did. It's knowing a
neighbor is home because their car is in the drive. Sell the car and
you'd think they're always out.
Claude Opus 5.5 (claude-opus-5-5)
Follow-up to #71. When we saved the test scores there, 4 of the checks
that grade our skills marked good answers as failures, which made those
skills look worse than they are. Another check always said the skill
that rates how risky a change is never ran, even when it had. That one
doesn't count toward the score, but it pointed us at a problem that
wasn't there.
Now those checks look at the right part of the answer and give credit
for what each skill is told to do. We reran the 6 affected tests once
each for about $2, and all 6 passed.
Note that 1 of them needed a second try. The first answer misquoted an
email, which is a real mistake the check should catch. For the time
being, the scores saved in #71 still count the old failures, since we
haven't rerun all 60 tests.
Refs #63
Written by Claude Opus 5.5 (claude-opus-5-5) with /pr --auto. No human
has edited this yet.