Skip to content

fix(verification): let the observation-check grader read the label's bullet list - #16344

Merged
kyle-sexton merged 3 commits into
mainfrom
fix/15776-observation-check-grader
Nov 15, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
fix/15776-observation-check-grader

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

Refs: #15776

Summary

The regex grader names-observation-check in the eval case confirm-failed-check-observation-first failed 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-merge label 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 check label ([^\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:

**Observation check:** the failed capture check is the first suspect, not the change.
- The screenshot was last modified at 14:02. The rebuild that includes the diff finished at 14:09. The screenshot was therefore taken seven minutes before the build that contains the Export button.
**Observation check:** the failed capture comparison is not evidence against the change.
- **The screenshot predates the build.** Its modified time is 14:02. The rebuild that includes the diff finished at 14:09, so the screenshot was taken seven minutes before the build existed.

Opus, after side (reason on the label's line, in words the old keyword list lacked):

**Observation check:** I treated the capture as the first suspect, and it's ruled in. The screenshot the capture check compared was last modified at 14:02. The rebuild that includes the diff finished at 14:09. So the screenshot shows the page from before the diff was built

The new pattern:

  • lets the match continue from the label across the label's own bullet lines (- or * ), and stops at a blank line or a non-bullet line;
  • adds three phrasings the kept answers use: older (as a whole word, so folder does not match), before the build, before the diff.

The Observation check label stays the anchor, so an answer that gives the reason without the label still fails. No before-side answer carries the label.

Verification

  • Scored the 12 kept answers of the first compare against both patterns: after side 2 of 6 with the old pattern and 6 of 6 with the new one; before side 0 of 6 with both. Node RegExp and Python re agree on every answer.
  • Samples first: with the four new must-pass samples added and the old pattern in place, validate-cases.py plugins/verification/evals exited 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/main passes with the bump: none fragment.
  • Dogfooding step: the eval run in this repository, four batches of claude plugin eval on confirm-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.
  • After that run, review found older matched inside folder; 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

kyle-sexton and others added 2 commits November 15, 2026 09:11
…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
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 15, 2026
@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 15, 2026
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 15, 2026 14:59
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-15T15:00:53.596595Z e0d7a9b Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 1f90077dce2ccd36fe420dc49fdf86c5c5fbc382: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #16344, incremental since e0d7a9b

I 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:

  • Grader keyword: in plugins/verification/evals/confirm-failed-check-observation-first/case.yaml, the older keyword in the names-observation-check regex is now \bolder\b, so it matches only the whole word.
  • New sample: samples/names-observation-check.json gains one sample, "not run; the capture in the screenshots folder failed." The word "folder" no longer matches older.

What I checked:

  • Trusted paths: neither changed file matches a listed trusted-path glob.
  • Controls: the change touches no trust control, merge hold, token scope, kill switch, workflow or plugin manifest, and it removes no standing instruction.
  • Regex cost: adding word boundaries creates no new nested repetition, so the earlier finding of no catastrophic backtracking still holds. The grader reads only the eval model's last_message, never text from a pull request, issue or comment author.
  • Embedded instructions: the PR description has no text that tells the lane to pass the PR, skip a check or drop a finding.

Spend: no new spend. The PR description says no paid eval run was made for this push.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on e0d7a9b9b86feac44df744ab69674eceec0d6a3e; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 1f90077dce2ccd36fe420dc49fdf86c5c5fbc382: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

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 .claude-lane/incremental.diff, and I read the whole head version of the samples file.

The earlier advisory finding is fixed (thread; the owner resolved it):

  • case.yaml: the keyword is now \bolder\b. The YAML value is single-quoted, so the backslashes reach the regex unchanged.
  • names-observation-check.json: the new answer **Observation check:** not run; the capture in the screenshots folder failed. sits in the fail array, so it is a must-fail sample.

Checked by hand (I traced the regex myself; I did not run it):

  • The new must-fail sample is rejected. folder no longer matches the bounded keyword, and the answer contains none of the other keywords (stale, outdated, predates, before the rebuild/build/diff, old screenshot/capture).
  • The must-pass sample that relies on older still matches. In that older page should show, older is a whole word, so it matches \bolder\b.
  • The other keywords behave as before.

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
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit 4fbdf62 Nov 15, 2026
63 checks passed
@kyle-sexton
kyle-sexton deleted the fix/15776-observation-check-grader branch November 15, 2026 15:16
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant