Skip to content

test(evals): fix two confirm-run graders - #18808

Merged
kyle-sexton merged 2 commits into
mainfrom
test/evals-realign-drop-present-first
Nov 24, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
test/evals-realign-drop-present-first

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

Closes #18812
Refs: #18655

Summary

The runs-3 confirm run 45423924655 after #18776 failed realign-applies-one-id's present-first judge in 3 of 3 runs, all judges FAIL. The traces show the agent read context/apply-recipe.md and then call apply-rename.sh with no assistant text in between, so the failure is real model behavior two fix attempts did not move. The owner chose to drop the grader and keep the case (2026-11-24, "Go with recommendations" on the keep-or-delete question in #18655).

Fix

  • session-flow fh-confirms-before-resume: no-shell-change-before-confirm gets (?<![-.\w]) in place of its leading \b, so a command word inside a hyphenated path no longer matches.

  • Remove the present-first llm grader from plugins/docs-naming/evals/realign-applies-one-id/case.yaml.

  • Drop the description and expected-outcome text that described it.

  • bump: none changelog fragment.

No skill text changes.

Loosened checks

Removes the present-first llm grader from plugins/docs-naming/evals/realign-applies-one-id/case.yaml. Authorized by spec #18812, which cites owner-decisions.md#L409, option (1)(b); owner, verbatim: "Go with recommendations."

Also narrows no-shell-change-before-confirm in plugins/session-flow/evals/fh-confirms-before-resume/case.yaml: a command word no longer counts after a hyphen, dot or word character. Authorized by the same spec #18812 (owner-decisions.md#L409, option (3)(a)). The debug-commands run 45428828388 shows the failing with-arm runs only cd into /home/runner/.ev/claude-eval-XXXX, and the old pattern's eval\b matched inside it.

Verification

  • Every other grader passed in all 3 with-arm runs of 45423924655 (applied-the-id, no-other-id, new-path-created, rows-reported, orphan-sweep, no-sibling-move).

  • A case-only change with no skill text cut merges before its run (docs/review/evals.md, owner-decisions L371). After merge: one scoped suite run on main, cases=realign-applies-one-id, runs 3, credential subscription = 6 agent runs.

  • Node check of the new pattern: clean on the three real sandbox cd commands; matches rm -rf, cd a; rm x, eval, /bin/rm, > f.txt, sed -i, git -C /x commit, touch, cp. The old pattern matched eval in cd /home/runner/.ev/claude-eval-I7FJ8U/....

  • After merge: also cases=fh-confirms-before-resume at runs 3 (6 agent runs).

Related

🤖 Generated with Claude Code

The runs-3 confirm run 45423924655 after #18776 failed present-first in
3 of 3 runs: the traces show apply-rename.sh called right after reading
apply-recipe.md, with no presentation. Owner chose to drop the grader and
keep the case (#18655). The deterministic graders still cover the id,
rows, sweep and siblings.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 24, 2026 15:34
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 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-24T15:35:41.186027Z b94f294 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 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 b94f294c7a8ceb59ac4e2a4259daf5339e4d6e46; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #18808 (incremental since b94f294)

No blocking findings. This review covered only what changed since b94f294, in two files:

  • plugins/session-flow/evals/fh-confirms-before-resume/case.yaml: in no-shell-change-before-confirm, the leading \b becomes (?<![-.\w]).
  • A new bump: none changelog fragment for session-flow.

I already reviewed this PR at an earlier head, so this review is blocking only: advisory findings were dropped.

Regex check. I traced the new pattern by hand; I did not run it.

  • On the sandbox path cd /home/runner/.ev/claude-eval-XXXX/, the - before eval now fails the lookbehind, so that path no longer matches.
  • Real commands still match after a space, ;, &, (, ", / (for example /bin/rm) or the start of the input. Each of these is outside [-.\w].
  • The (?<=\\n) alternative is still needed for a command after a JSON-escaped newline. The n there is a word character, so the new lookbehind alone would reject it.
  • The |-to-shell, redirect and git alternatives are unchanged.

The author's Node check and the after-merge runs 3 result are claims I could not verify.

Loosened checks.

Closing issue #18812, "Done when".

  • The grader "no longer matches a word inside a hyphenated path" and still matches real write commands: met by the diff, by my hand trace.
  • The two after-merge suite runs can only be checked after merge.

No plugin manifest changed. No settled-threads file was provided.

Usage, not a finding: the after-merge runs plan 6 + 6 agent runs on subscription credit.

Verifier dropped 0 of 0 candidates.

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review (incremental, blocking only): no security issues found

This review covers only the change since b94f294c7a8ceb59ac4e2a4259daf5339e4d6e46. This lane already reviewed an earlier head, so it reports only CRITICAL and IMPORTANT findings. I read every hunk of both files in scope:

  • .changes/session-flow/test-evals-realign-drop-present-first-3c8e1a52.md: a new changelog fragment marked bump: none.
  • plugins/session-flow/evals/fh-confirms-before-resume/case.yaml: the no-shell-change-before-confirm grader's leading \b becomes (?<![-.\w]). A command word such as eval that follows a hyphen, dot or word character (as in claude-eval-XXXX) no longer matches.

Why this change has no security surface:

  • It touches no workflow, action, token request, trusted-actor list, kill switch, merge hold or plugin manifest, so there are no manifest lines.
  • Neither file is on a trusted path.
  • No skill, agent, CLAUDE.md or hook text changes.

Instruction-surface lens: the grader is narrowed, but this is not a removed guardrail.

  • An eval grader scores model behavior after a run. It enforces nothing at runtime, and the skill text it exercises is unchanged.
  • / is not in the new lookbehind class, so /bin/rm and a command after a space, ; or the start of the line still match.

PR context: the PR text has no directives aimed at this lane.

Spend: after merge the PR plans one scoped eval run (cases=fh-confirms-before-resume, runs 3, about 6 agent runs). It draws on subscription credit only, so it is not a hold and not a finding.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

The pr-verify verifier failed head b94f294c7a8ceb59ac4e2a4259daf5339e4d6e46. What it wrote, as data:

What it wrote (23 lines)
Summary: Refs #18655. The PR names the part it delivers: drop the `present-first` llm grader from
  docs-naming `realign-applies-one-id`, keep the case, and add a `bump: none` changelog fragment.
  The diff does that consistently. The description and expected_outcome no longer mention the
  grader, no skill text changes, and the CI jobs that ran on the judged head (Check Plugins, Check
  Skills, Lint Repo, Test Bash (0), and others in run 45427056384) passed. But removing the grader
  loosens a check, and the issue does not authorize it. The issue body authorizes removing only five
  named graders, each a duplicate of a grader that stays. `present-first` is not on that list and is
  not a duplicate: it is the only grader on the "present an accepted finding first" step that #18776
  added to the skill. The issue's last trusted comment says the failing case "goes to the owner as
  keep or delete". The only owner decision to drop the grader and keep the case is a claim in the PR
  body ("Go with recommendations" on the keep-or-delete question). No trusted issue text records it
  with a line link to the owner-decisions record and the owner's verbatim words, so the loosening is
  unauthorized. No binary files. No steering text found.
- plugins/docs-naming/evals/realign-applies-one-id/case.yaml:46: removing the `present-first` llm
  grader loosens the only check on the realign skill's 'present an accepted finding first' step
  (#18776), and #18655 does not authorize it. The issue body authorizes only its five listed
  duplicate graders, and its last comment leaves this case to the owner as keep or delete. Either
  restore the grader (and the matching description and expected_outcome text), or have the owner's
  keep-case/drop-grader decision recorded on #18655 with a line link to docs/owner-decisions.md and
  the owner's words after `verbatim:` in double quotes.
- PR body: the owner decision it cites ("Go with recommendations" on the keep-or-delete question in
  #18655) is in no trusted #18655 text, so the PR body alone cannot authorize the loosened check.
  Cite the recorded decision once it is on the issue.

This pull request leaves the merge queue, and ci-status holds it out while it carries pr-verify-failed. A pr-verify pass removes the label, at a new commit or at this same head: once a trusted person edits the body, and only trusted people have edited it since the fail, this head is judged again, so a fail on the body or the issues it links needs only the body fixed, no new commit.

@github-actions github-actions Bot added the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 24, 2026
The debug-commands run 45428828388 printed every Bash command: the
with-arm runs that failed no-shell-change-before-confirm only cd into the
eval sandbox, /home/runner/.ev/claude-eval-XXXX, and the pattern's
eval\b alternative matched the "eval" after the hyphen. A command word
now needs no hyphen, dot or word character before it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton kyle-sexton changed the title test(evals): drop the realign present-first judge test(evals): fix two confirm-run graders Nov 24, 2026
@kyle-sexton kyle-sexton removed the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 24, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit 0f6d6e7 Nov 24, 2026
84 checks passed
@kyle-sexton
kyle-sexton deleted the test/evals-realign-drop-present-first branch November 24, 2026 16:10
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 24, 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.

Fix two confirm-run eval graders: realign present-first and find-handoff shell change

1 participant