Repository navigation
fix(verification): let the observation-check grader read the label's bullet list - #16344
Conversation
…bullet list The names-observation-check regex required the stale-capture reason on the same line as the "Observation check" label, and knew only a few words for it. Correct answers that put the label on a bold heading line with the reason in the bullets under it, or that said "before the build", "before the diff was built" or "older page", failed. The pattern now continues across newlines only into bullet lines, so a blank line or any non-bullet line still ends the match, and accepts "older", "before the build" and "before the diff". The label stays the anchor: no answer without it can pass. New samples cover the bullet layout, each added phrase, the keywords with no label, a keyword in a later paragraph after a blank line, a keyword on a following non-bullet line, and bullets with no keyword. Refs: #15776 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015te8Csz4bqxpok4iu8Mcrd
The grader change needs no release, so the fragment is a none bump. Refs: #15776 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015te8Csz4bqxpok4iu8Mcrd
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. |
|
claude-security-review reviewed Security review: PR #16344, incremental since e0d7a9bI found no security issues. This review covered only what changed since this lane's last review, and I read both files in that change in full. This lane already reviewed an earlier head of this pull request, so this review was blocking only: it reports only CRITICAL and IMPORTANT findings. What changed since the last review:
What I checked:
Spend: no new spend. The PR description says no paid eval run was made for this push. critical-findings: 0 |
|
claude-review reviewed Code review: PR #16344 (incremental, e0d7a9b → 1f90077)Blocking only: this lane reviewed an earlier head of this PR, so this pass reports only blocking findings. It found none. Scope: the two files changed since the last review. I read every hunk of both in The earlier advisory finding is fixed (thread; the owner resolved it):
Checked by hand (I traced the regex myself; I did not run it):
Not verified by me: the author says the static validator failed on the new sample under the old pattern and exits 0 under the new one, in both JavaScript and Python. They also say the 24 kept answers score the same under the bounded pattern. I could not run either check. Spend: no new spend in this push. The PR description notes that no paid eval rerun was made with the bounded keyword. Verifier dropped 0 of 0 candidates. |
Without word boundaries `older` matched inside `folder`, so an answer that skipped the observation check could pass the regex grader. A must-fail sample holds the review's example. Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_015te8Csz4bqxpok4iu8Mcrd
Refs: #15776
Summary
The regex grader
names-observation-checkin the eval caseconfirm-failed-check-observation-firstfailed answers that state the observation check correctly. This PR fixes the grader only. The skill text, the case prompt and the llm grader are unchanged.The first registered compare stands as recorded on the issue: opus met, sonnet not met. This PR does not change that result. A new registration reran the same four batches with the fixed case on both sides, from this PR's head: the case is met on both models (regex grader sonnet 3 of 3 after against 0 of 3 before, opus 2 of 3 against 0 of 3). The record is on the issue: #15776 (comment). The
do-not-mergelabel this PR opened with was removed once that record was posted.Fix
The old pattern required the stale-capture reason on the same line as the
Observation checklabel ([^\n]*). Answers that put the label on its own line and the reason in the bullets under it could not match. Text the old pattern failed, from the kept runs of the first compare:Sonnet, after side:
Opus, after side (reason on the label's line, in words the old keyword list lacked):
The new pattern:
-or*), and stops at a blank line or a non-bullet line;older(as a whole word, sofolderdoes not match),before the build,before the diff.The
Observation checklabel stays the anchor, so an answer that gives the reason without the label still fails. No before-side answer carries the label.Verification
RegExpand Pythonreagree on every answer.validate-cases.py plugins/verification/evalsexited 1 on those four; after the pattern change it exits 0. Four new must-fail samples (keywords with no label, label then a blank line then a later paragraph, label with keyword-free bullets, label then a non-bullet line) are rejected by both patterns.scripts/check-changelog-fragments.sh --check-required origin/mainpasses with thebump: nonefragment.claude plugin evalonconfirm-failed-check-observation-first(opus and sonnet, both sides, three runs each) under a new registration, run from this head: all 12 runs counted and valid, case met on both models, 1.78 USD list price.oldermatched insidefolder; the keyword gained word boundaries and a must-fail sample. The paid run used the unbounded keyword. Rescored offline, all 24 kept answers of both registered compares score the same under the bounded pattern, so the record holds.Left out: a paid run with the bounded keyword; the 42 existing cases' non-inferiority compare.
Related
Remaining
🤖 Generated with Claude Code
https://claude.ai/code/session_015te8Csz4bqxpok4iu8Mcrd