Repository navigation
fix(session-flow): stop three recall eval graders failing correct answers - #15985
Conversation
…wers
In recall-reports-tried-kept-reverted, three regex graders failed correct
answers on wording:
- tried-kept-reverted: the "token bucket is current" lookahead now fires
only when no sliding window is named between the token bucket and "is
current", so "with a token bucket, ... A sliding-window limiter ... is
current" no longer reads as the token bucket being current.
- unavailable-prs-named and unavailable-tracker-named: a new alternative
accepts a contracted or plain negation of availability or search after
the subject ("aren't available", "isn't an available skill", "weren't
searched", "did not search"), with the hyphenated pull-request skill
name. The stretch between subject and negation may not hold "but" or a
positive search verb, so "PRs were searched, but I didn't search the
tracker" still fails. The existing alternatives are unchanged.
The real answers that were failed are added as passing samples, with new
failing samples for the wrong readings.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RMa43yD6ENjKAwDyeHp3bc
…ll grader fix Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RMa43yD6ENjKAwDyeHp3bc
… through
An independent review found that the first version of this fix accepted
wrong answers that main rejects. Each one is now rejected again and kept
as a failing sample:
- tried-kept-reverted: the "token bucket is current" lookahead also
fires, as on main, when the token bucket and "is current" sit in one
sentence. So "the token bucket replaced the sliding window and is
current" fails, and so do the appositive and rather-than forms.
- unavailable-prs-named and unavailable-tracker-named:
- The negation form stops at the other source, at "returned", and at
a comma, period or semicolon, and spans at most four words.
- An are/were form accepts only a coordinated noun phrase before the
verb ("gh and the tracker aren't available").
- "checked into" is not read as a search word.
- unavailable-prs-named: "did not search closed pull requests" is
accepted directly, which keeps the after-run 1 answer passing.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RMa43yD6ENjKAwDyeHp3bc
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 37dd0e6af1
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
claude-security-review reviewed Security review (incremental, 853bebf → 267b09f): no security issues foundI read every hunk of all 3 files in scope:
This lane already reviewed an earlier head, so this review reports blocking findings only (CRITICAL and IMPORTANT). The change has no security-relevant surface, so the review stops early under skip gate 2. What changed:
Why nothing here is a security concern:
Spend (not a finding): every run of this case now makes one more model judge call, on both arms ( Text in the PR description: it contains no instructions aimed at this review. critical-findings: 0 |
|
claude-review reviewed Code review: PR #15985, changes since
|
… model A second independent review found that the reworked regex graders unavailable-prs-named and unavailable-tracker-named still accepted 15 wrong answers that main rejects. A pattern cannot tell which noun a negation belongs to, or that another clause reports a search that returned results, so each regex round closed the tested strings and let the next phrasing through. Both are now llm graders (focus last_message, arm with-only, same names). Each passes only if the reply says its source could not be or was not searched and reports no result from that source. Calibration samples: every earlier sample carries over, plus the reviews' wrong answers and the correct phrasings the regex rejected (prs 12 pass / 29 fail, tracker 11 pass / 12 fail). With an opus judge and 3 runs per sample, agreement was 123/123 and 69/69. tried-kept-reverted stays regex as at the previous commit. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RMa43yD6ENjKAwDyeHp3bc
…aders The two model-graded unavailable-source graders failed a reply that ran the pull-request or tracker read and reported that it failed, which is the answer the recall skill asks for when the read exits non-zero. The criteria now say an attempted read that failed counts as could not be searched, and that a search that ran is one that returned results or a count, zero included. Samples added: the failed-read replies as must-pass, the earlier review's seven cross-source wrong answers and a zero-count search as must-fail, an empty answer for each grader and an answer to a different question for the tracker grader. Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_01RMa43yD6ENjKAwDyeHp3bc
…a model The relaxed tried-kept-reverted regex passed a wrong answer that main fails: "The token bucket was reverted in a1b2c3d because it dropped requests during bursts, but it later replaced the sliding window; it is current." A pattern cannot tell which approach "current" or "reverted" belongs to. The grader is split: - cites-commit-and-burst (regex, arm both): a hex commit id with a digit is present and bursts are mentioned. - token-bucket-reverted-sliding-window-kept (llm, focus last_message, arm both): the token bucket was reverted because of bursts, the sliding window is kept, and nothing says the token bucket is current, kept, in use or re-applied after its revert. Every earlier sample carries over to the grader that owns its judgment. The judge adds the wrong answer above, restore, re-adopt and remains-in- use variants, a reversal, both named with no outcome, a wrong revert reason, a different-question answer and an empty answer as must-fail, and three correct phrasings the regex rejected as must-pass (8 pass, 25 fail). With an opus judge, a haiku reproduction agent and 3 runs per sample, agreement was 93/93 with no false positives, for 0.89 USD. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RMa43yD6ENjKAwDyeHp3bc
No related issue: grader false negatives found by the eval runs on #15920
session: GitHub Support
Summary
Three regex graders in the eval case
plugins/session-flow/evals/recall-reports-tried-kept-reverted/fail correct answers on wording. The eval passes on #15920 hit this on both sides of a compare (before and after), so it is a property of main and was found before any change was under test.This changes graders of an existing case, and that is not moving a goalpost:
The real answers that failed:
tried-kept-reverted,unavailable-prs-namedandunavailable-tracker-named:unavailable-prs-namedandunavailable-tracker-named:Fix
Only
case.yamlandsamples/under this one case directory change, plus a changelog fragment. No skill text, prompt or other case changes.unavailable-prs-named,unavailable-tracker-named: both are now model-graded (type: llm,focus: last_message), with the same names andarm: with-only.tried-kept-revertedis split in two:cites-commit-and-burst(regex,arm: both): a 7 to 40 character hex commit id holding a digit is present, and "burst" is mentioned. A pattern decides both without knowing which approach a statement is about.names-both-attemptsalready checks that both approaches are named.token-bucket-reverted-sliding-window-kept(type: llm,focus: last_message,arm: both): passes only if the reply says the token bucket was reverted because of bursts and the sliding window is the one kept, and nothing in it (a closing summary included) says the token bucket is current, kept, in use, or re-applied after its revert.git-searched,names-both-attempts,cites-commit-and-burst), so it is not judge-only.Samples:
cites-commit-and-burst: 5 must-pass and 5 must-fail, checked offline by the validator.token-bucket-reverted-sliding-window-kept: 8 must-pass and 25 must-fail calibration samples. Every earliertried-kept-revertedsample carries over to the grader that owns its judgment. New must-pass: three correct phrasings the regex rejected (the token bucket and "is current" in one sentence, where "is current" belongs to the sliding window). New must-fail: the wrong answer above, the token bucket restored, re-adopted or remaining in use after the revert, the two approaches reversed, both named with no outcome, a revert reason other than bursts, an answer to a different question, and an empty answer.unavailable-prs-named: 14 must-pass and 35 must-fail calibration samples.unavailable-tracker-named: 12 must-pass and 17 must-fail calibration samples.A
bump: nonechangelog fragment is included, becausescripts/check-changelog-fragments.sh --check-required origin/mainrequires one for any change underplugins/session-flow/.Added cost per eval run: two opus judge calls per with-arm run of this case for the
with-onlygraders, plus one per run in either arm fortoken-bucket-reverted-sliding-window-kept(arm: both). In calibration that was about 0.02 USD per run at list price, including the reproduction call.Verification
Static:
plugins/evals/skills/validate/scripts/validate-cases.py plugins/session-flow/evalsreports no FAIL. For this case it prints the existing WARN thatallowed_toolslists Bash, and one WARN per llm samples file that its answers need judge calibration (33, 49 and 29).Judge calibration:
plugins/evals/skills/plugin-eval/scripts/calibrate-judge.pywith an opus judge, 3 runs per sample and a haiku agent reproducing each sample:unavailable-tracker-namedunavailable-prs-namedclaude-opus-5-5, reproduction agent on the CLI default modeltoken-bucket-reverted-sliding-window-kept, judgeclaude-opus-5-5, reproduction agent--model haikuIn that last run three replies did not reproduce their sample and were left out by the score script (two runs of the real eval answer must-pass sample, one run of a must-fail sample); every sample kept at least one reproduced run.
An earlier calibration at 64 samples with a haiku reproduction agent cost 3.64 USD and also agreed on every run. The samples added since are replies that ran the read and reported it failed (must-pass), seven cross-source wrong answers, a zero-count search, an empty answer per grader and an answer to a different question.
In the two
unavailable-*calibrations every run reproduced its sample, checked against the kept traces.Real answers: the calibration script grades only labeled samples, so the six kept traces were not re-run through the new judges. The three real answer lines the regex failed are must-pass calibration samples, and the judges passed each in every reproduced run.
typoson the case directory: clean.Known limits:
Related
🤖 Generated with Claude Code
https://claude.ai/code/session_01RMa43yD6ENjKAwDyeHp3bc