Skip to content

test(evals): restore sole-check reply cases with regex graders - #18580

Merged
kyle-sexton merged 4 commits into
mainfrom
test/restore-sole-check-cases
Nov 23, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
test/restore-sole-check-cases

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #18529

Summary

Restores ten eval cases that the 2026-11-23 pruning sweep deleted. Each one was an uncalibrated LLM-judged case and the only check of a behavior that shows up only in the model's reply text. As the owner decided in melodic-software/architecture#211 (row "Eval policy follow-ups after the case pruning"), each judge is replaced with deterministic regex graders on last_message. The graders tolerate rewording: they use alternations, the i flag and negation-aware lookbehinds. No skill text changes.

Fix

Plugin Case Graders (all regex, last_message)
review council-claude-effort-passed effort-passed (sonnet + effort max + brief-reviewer + passed at dispatch); pin-not-applied (not_contains: runs on opus/high, effort ignored)
review council-default-panel default-panel (three members correctness/design/adversarial, opus, brief-reviewer, one round, scores off); no-other-model (not_contains: runs on fable/sonnet/haiku, nothing runs)
review council-fable-frontier fable-frontier (top on fable, frontier, correctness/design on opus); defaults-not-inherited (not_contains: all three on fable, inherits the session model)
review council-fix-consumes-round-file fix-consumes (council-r1 + review-findings + council-run); run-file-not-findings (not_contains: both read as findings, needs conversion)
review council-two-rounds-scores round-two-scope (fix before/after diff, Not applied rows, run file / Marks, unbuilt or untested, /verification:confirm); not-whole-branch (not_contains: re-reviews whole branch, marks gate/rank/stop)
corrections codify-escaped-defect-names-missing-context names-missing-pricing-rules; missing-context-beside-rung (missing-context phrasing within 600 characters of "rung"); fixes-unloaded-rule-where-it-lives
discipline pfp-coupling-priced coupling-costs-named (abandonment, pricing, license, security, exit cost); research-not-recall (routes to research and withholds the verdict)
session-flow or-catch-up-over-cap-keeps-every-item opens-with-seven-needs-you, every-action-item-listed, no-item-folded-into-count (not_contains), items-carry-recommendation (7 or more), items-carry-if-unanswered (7 or more), what-happened-stays-short (first action item within 2,000 characters of "What happened"), no-video-offer (not_contains)
fleet reach-same-repo-session-picks-lane names-both-lane-routes (peer tools + R1/Windows lane + lane); no-ssh-on-this-machine (not_contains: ssh to lap-01/desk-01)
architecture deepening-dependent-candidates-one-tree pair-is-one-tree, tax-module-first, mail-sender-own-fork, not-all-three-one-tree (not_contains), first-question-on-tax

Every grader has a samples/<grader>.json file with pass and fail answers: paraphrases, near misses, an empty reply and an answer to a different question. No case was left deleted: a regex could check each of the ten behaviors. Three graders only approximate what the judge checked, and a reviewer may want to weigh them: missing-context-beside-rung uses a distance of 600 characters to stand in for "next to", what-happened-stays-short uses a character distance to stand in for the 250-word cap, and first-question-on-tax reads only the last question in the reply.

Other changes: the discipline case's description now names regex graders. The fleet scaffold.sh loses its comment line, because the pre-commit comment lint requires it. Each of the six plugins gets a bump: none changelog fragment, as #18513 did.

These cases run in one suite run on main after merge, scoped to the cases below; another session dispatches it. Case list: council-claude-effort-passed,council-default-panel,council-fable-frontier,council-fix-consumes-round-file,council-two-rounds-scores,codify-escaped-defect-names-missing-context,pfp-coupling-priced,or-catch-up-over-cap-keeps-every-item,reach-same-repo-session-picks-lane,deepening-dependent-candidates-one-tree. Agent runs: 10 cases x 1 run x 2 arms = 20 at one run per case. The five review cases declare runs: 2 in their prompt.md, so the run costs 30 agent runs (review 5 x 2 x 2 = 20, plus 5 x 1 x 2 = 10) unless the dispatch overrides it.

Verification

python3 plugins/evals/skills/validate/scripts/validate-cases.py plugins/<plugin>/evals, with node and bun on PATH so each sample is also graded under V8 and JavaScriptCore:

== review exit=0 FAIL=0
WARN council-fix-consumes-round-file/prompt.md: allowed_tools lists Bash, which a case cannot grant itself; pass --allow-tools or the tool is removed from the session
== corrections exit=0 FAIL=0
WARN codify-escaped-defect-names-missing-context/prompt.md: allowed_tools lists Bash, ...
WARN codify-escaped-defect-names-missing-context/prompt.md: allowed_tools lists Write, ...
== discipline exit=0 FAIL=0
== session-flow exit=0 FAIL=0
== fleet exit=0 FAIL=0
== architecture exit=0 FAIL=0

The remaining WARNs come from the restored prompt.md allowed_tools and are not new. No eval was run.

Related

🤖 Generated with Claude Code

https://claude.ai/code/session_01UJUn7LPUb4rRDJ2JhJRGZf

Restore ten eval cases the 2026-11-23 pruning sweep deleted, each the
only check of a behavior visible in the reply text. Their uncalibrated
judge graders are replaced with deterministic regex graders on the last
message, each with pass and fail samples.

Plugins: review (5 council cases), corrections, discipline,
session-flow, fleet, architecture. Changelog fragments are bump: none.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJUn7LPUb4rRDJ2JhJRGZf
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 23, 2026 21:22
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 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-23T21:24:55.254140Z f9c297a 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f9c297a2da

ℹ️ 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".

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: incremental, cd482ac7 → 80eebb09 (blocking only)

I found no security issues. This lane already reviewed an earlier head of this PR, so this review was blocking only: I would have reported CRITICAL and IMPORTANT findings, and nothing else.

I read every hunk of both files in the incremental diff:

  • plugins/architecture/evals/deepening-dependent-candidates-one-tree/case.yaml: the change swaps the lookbehinds on the not-all-three-one-tree grader regex. It drops (?<!fold ) and (?<!folding ) and adds (?<!than folding ), (?<!instead of folding ), (?<!not fold ) and (?<!n.t fold ).
  • .../samples/not-all-three-one-tree.json: the change adds two fail samples, "fold all three into one tree" and "Folding all three into one decision tree".

What I checked:

  • Trusted paths: neither file matches a TRUSTED PATHS: glob.
  • Controls: the change touches no plugin manifest, workflow, hook, trust control, merge hold, token scope or kill switch.
  • Instruction surfaces: no skill, agent, CLAUDE.md or rules text is deleted or softened.
  • Grader regex: it runs only on the eval model's last_message. Its quantifier is still bounded ({0,60}), so this change creates no security impact.
  • PR context: it holds no text telling this lane to pass the PR, skip a check or drop a finding.

Prior findings: the only earlier entry is this lane's summary comment with 0 findings, so nothing carries forward.

Spend (not a finding, not a hold): the PR describes a scoped suite run after merge, about 30 agent runs of prepaid model usage.

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: 6 inline finding(s) on f9c297a2da13ffda56d52fbaca3abcaa7e665d1a; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review (incremental, blocking only)

I reviewed the 2 files this push changed since cd482ac. This lane already reviewed an earlier head, so this pass reports blocking findings only.

The push applies the fix from the last review's one blocking finding (not-all-three-one-tree let the fold itself pass):

  • In deepening-dependent-candidates-one-tree/case.yaml:29, the lookbehinds (?<!fold )(?<!folding ) are gone. In their place are (?<!than folding )(?<!instead of folding )(?<!not fold )(?<!n.t fold ). Each one is fixed-width, so the regex engine accepts them.
  • samples/not-all-three-one-tree.json gains the two replies from that finding as fail samples: "I'll fold all three into one tree…" and "Folding all three into one decision tree…".

I checked the new pattern by hand against every sample in the file. I ran nothing.

  • Pass samples (all 5 pass):
    • "Candidates 1 and 2 are one tree…" has no all three.
    • "I'll interview all three, with the first two…" is stopped by first in the lookahead before the pattern reaches single tree.
    • The empty reply has nothing to match.
    • "Not all three…" is blocked by (?<!not ), which ignores case under flags: i.
    • "Rather than folding all three…" is blocked by (?<!than folding ).
  • Fail samples (all 4 fail):
    • "All three candidates form one tree" and "treat all three as a single design" match, as before.
    • "I'll fold all three into one tree": the 9 characters before all are 'll fold , so neither not fold nor n.t fold blocks it, and it matches.
    • "Folding all three into one decision tree": the reply starts with Folding , so no lookbehind blocks it, and it matches.

So the earlier regression is fixed, and the correct replies that reject the fold still pass. Nothing blocking is left in this push.

Spend (prepaid, not a hold): this push adds no runs and leaves the case's turn and time limits unchanged.

Loosened checks: this grader is still a new check against base, so nothing is loosened. Loosened checks would be marked: fail. That is the default, because the prompt had no verdict or patterns lines; patterns: 0. The prompt had no decision-record line, so I did not check the citation requirement.

No closing issue: the PR context has no closing-issue sections. The pushed files contain no embedded directives. This push changes no plugin manifests.

Verifier dropped 0 of 0 candidates.

fix-consumes now needs the round file named as what fix reads in the
same clause, so "fix skips council-r1" no longer passes on token
presence. first-question-on-tax reads only the question sentence, so a
tax mention in the plan above a mail-sender question fails. Each has new
fail samples. The spell-check failures in a grader pattern and a sample
are reworded.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJUn7LPUb4rRDJ2JhJRGZf
…l replies

Add negation and counterfactual guards to the not_contains graders
(not-all-three-one-tree, defaults-not-inherited, pin-not-applied,
run-file-not-findings, not-whole-branch) so correct replies that name
and reject a wrong behavior pass. round-two-scope now requires where
the marks land (run file, -council.md or a Marks section) instead of
the bare word the prompt already holds. Each review example is added
as a sample.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJUn7LPUb4rRDJ2JhJRGZf

@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 cd482ac78a92fdac8e3a692aa5e76b47a5f40ca2; the summary is in this lane's pull request comment.

claude-lane: claude-review

The fold and folding lookbehinds let the exact wrong reply this grader
targets pass ("I'll fold all three into one tree"). Only the negated forms
are guarded now, and both wrong replies are fail samples.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJUn7LPUb4rRDJ2JhJRGZf
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 624e3e9 Nov 23, 2026
50 checks passed
@kyle-sexton
kyle-sexton deleted the test/restore-sole-check-cases branch November 23, 2026 22:42
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 23, 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