Skip to content

test(planning): let the keyword and xhigh graders read an answer split across lines - #12576

Merged
kyle-sexton merged 4 commits into
mainfrom
test/12467-graders-across-lines
Nov 3, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
test/12467-graders-across-lines

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

Closes #12467

Summary

Two /planning:draft-goal-condition eval graders now score a correct reply that splits its claim across a heading and the next lines, and reject the hedges that passed before. No plugin behavior changes.

Fix

  • keyword-dead-in-print-mode (dg-workflow-keyword-unattended): reads a three-line window from a line naming ultracode, with the print-mode marker anywhere in that window. Only a negation about the keyword working counts ("won't work", "can't start", "cannot start", "never works", "not honored", "ignored", "does nothing", "no effect"), or a bare No answering a question about it working. whether, if, unless, may, might, subagent, /effort or /goal before the negation disqualify it.
  • xhigh-gates-standing-setting (dg-standing-setting-xhigh): gains a heading-then-requirement clause and allows a blank line before a list. A list item that denies the condition, and "needs no xhigh", no longer count.
  • The keyword sample The ultracode keyword runs one task as a workflow. / In a -p prompt it is not honored. moved from must-fail to must-pass, because what it says is correct. The new must-fail for that shape puts the verdict outside the window, as the refinement comment recommends.
  • Pass and fail samples added for the shapes below, all written fresh. none changelog fragment.

Verification

All offline; no paid run.

Grader Replies Mismatches on main Mismatches on this branch
keyword-dead-in-print-mode 42 6 0
xhigh-gates-standing-setting 33 0 0
  • Samples: validate-cases.py plugins/planning/evals exits 0 with no FAIL. Main's patterns missort 15 of the 34 keyword samples and 5 of the 50 xhigh samples on this branch.

Verdict changes against main, on the kept replies:

Related

🤖 Generated with Claude Code

https://claude.ai/code/session_01VQb9Q1Asjw331T5WUQHJyF

kyle-sexton and others added 3 commits November 2, 2026 16:57
…nd its next lines

The keyword grader needed ultracode, a print-mode marker and a negation on
one line, so it failed correct replies that split them (runs 8gQbzT, hU376c).
Any negation counted, so it also passed four negative-control hedges such as
"Not verified" and "subagents can't start one". It now reads a three-line
window, takes only negations about the keyword working, and accepts a bare
No answering a question that names it. Whether, if, subagent, /effort and
/goal before the negation do not count.

The xhigh grader gains the same heading split and a blank line before a list,
and a list item that denies the condition no longer counts.

Offline, both patterns sort all 75 kept replies from the #12357 passes as
hand-labeled, and validate-cases.py sorts every sample under both engines.

Refs: #12467

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…igh graders

Keyword: may, might and unless before the negation no longer count, and the
No clause no longer reads "workflow" as "work". Xhigh: "needs no xhigh" no
longer counts as a requirement. Each shape is now a must-fail sample. The 75
kept replies from the #12357 passes still sort as hand-labeled.

Refs: #12467

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

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

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T01:17:51.036807Z 548d65f 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 3, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #12576, incremental (548d65f → 7ee6c74)

I found no security issues in the changes since 548d65f.

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

  • plugins/planning/evals/dg-workflow-keyword-unattended/case.yaml: the keyword-dead-in-print-mode regex grader now also accepts can't, cannot and third-person verb forms (works, starts, counts, does anything). It also rejects not only through a (?!only\b) lookahead.
  • plugins/planning/evals/dg-workflow-keyword-unattended/samples/keyword-dead-in-print-mode.json: four new must-pass samples and one new must-fail sample.

What I checked

  • Trust controls and paths: neither file matches a TRUSTED PATHS: glob. Nothing here touches the trusted-actor list, the lane token scope, the kill switch, merge holds or the token broker.
  • Plugin manifests: neither .claude-plugin/plugin.json nor marketplace.json changed, so there are no manifest lines to report.
  • Instruction surface: no CLAUDE.md, AGENTS.md, skill or agent body, rules file or hook changed. No guardrail is removed or softened.
  • Data flow: these are offline eval grader regexes and sample answers that validate-cases.py scores. They don't reach a credentialed lane, a secret or a token. Nothing installed users run changes.
  • Regex backtracking: the new alternation adds only fixed-width choices and one optional \w+\s+ group inside the existing bounded window, so the backtracking profile I reviewed at 548d65f still holds. In the worst case an eval runs slowly, with no leak, compromise or charge.
  • PR context, settled threads and prior findings: nothing in them is aimed at the review lane. My only earlier post on this PR is the clean summary for 548d65f, so nothing is repeated.

Spend: none. The PR says all verification ran offline with no paid run.

critical-findings: 0

@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: 548d65f0d0

ℹ️ 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 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 548d65f0d05925f3f100a04f9743aa394210b0b5; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #12576, incremental pass (548d65f → 7ee6c74)

No new findings in this push.

Scope. This is an incremental review. I read every hunk of both files on the incremental list:

  • plugins/planning/evals/dg-workflow-keyword-unattended/case.yaml
  • plugins/planning/evals/dg-workflow-keyword-unattended/samples/keyword-dead-in-print-mode.json

The other 3 files in the PR haven't changed since 548d65f, which was reviewed then.

Prior finding is fixed. Last round I flagged that the negation clause dropped can't/cannot and paired never only with base-form verbs. The owner resolved that thread with a stated fix, and the job marks its lines unchanged since resolution, so it counts as settled. I also checked the fix in the diff. The clause now reads (?:\b(?:won|doesn|isn|can)['’]t|\bcannot|\bnot|\bnever)\*{0,2}\s+(?:(?!only\b)\w+\s+)?(?:works?|starts?|honou?red|counts?|do(?:es)? anything)\b (case.yaml:19).

I traced the new samples against the head pattern by hand. I had no shell, so this isn't a run of validate-cases.py:

  • Pass can't start … -p: matches. The \b(?:…|can)['’]t branch fires, -p is preceded by a space so the (?<![\w-])-p\b marker holds, and no guard word comes before it. prefix doesn't trip \bif\b.
  • Pass cannot start … -p: matches through \bcannot.
  • Pass never works … -p: matches through \bnever and works?.
  • Pass never starts … under cron: matches through \bnever, starts? and the \bcron\b marker.
  • Fail not only works in -p: no match. (?!only\b) blocks the optional filler word, and only isn't an accepted verb. Neither the ignored/does nothing/no effect branches nor the bare-No alternative apply.
  • Fail samples from last round (Subagents can't, but… and ordinary subagents can't start…): still blocked by \s+ at the comma and by the subagents? guard.

Not verified by me: the author says validate-cases.py reports no FAIL on the samples or the 75 kept replies, and that the same six verdicts flip against main.

Closing issue #12467. The done-when status from last round still holds. The PR description now lists can't start, cannot start and never works among the accepted negations, which matches the head pattern.

Other checks:

  • Path-scoped rules: .claude/rules/eval-case-transcripts.md applies. The new samples are freshly written, with no paths or identifying details. Pass.
  • Manifests: none changed in this push.
  • Spend: none. This push only changes eval data, and no paid eval run was involved.

…ord grader

The narrowed negation clause dropped can't and cannot and paired never
only with base-form verbs, so correct replies main's pattern passes
scored 0. "not only works" stays a fail.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VQb9Q1Asjw331T5WUQHJyF
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 3, 2026
Merged via the queue into main with commit 3207c6a Nov 3, 2026
75 checks passed
@kyle-sexton
kyle-sexton deleted the test/12467-graders-across-lines branch November 3, 2026 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(planning): let dg-workflow-keyword-unattended's keyword grader match an answer split across lines

1 participant