Repository navigation
test(planning): add the design codify hand-off eval case - #17629
Conversation
Adds design-principle-hands-to-codify for issue 17200's host step under issue 17174. The case loads a corrections stand-in and checks that /planning:design hands a project-wide principle surfaced in discussion to /corrections:codify, naming the call, and writes no rules-file line for it, without running codify or calling it unavailable. The skill text is unchanged. Refs: #17200 Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBVgf4hSWe3ViMaDA9Fp9
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: aabd27e340
ℹ️ 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".
Lane run report
Failed GitHub API calls
|
|
claude-security-review reviewed Security review: PR #17629, incremental since aabd27e (now 5dc6901)This was an incremental, blocking-only review: this lane already reviewed an earlier head, so it reports only CRITICAL and IMPORTANT findings. I read every hunk of the 3 files in scope. None matches a trusted-path glob. No new security issues. The push changes only eval test data under
Carried findings. The two manifest flags from the last review are restated below as already posted. Their file is outside this push's scope and its lines are unchanged. The replies on those threads give evidence and end "Left open for the owner; not resolved by this session". That states no decision on either flag, so neither thread is settled. Spend: nothing new. The case still runs only when someone runs critical-findings: 0 Manifest lines (2)
|
|
claude-review reviewed Code review: PR #17629, incremental since
|
…file mention
The grader failed any ROUTE line naming a rules file, including one that
names it only to reject it ("rather than adding it to CLAUDE.md"), a reply
the case wants. A rules-file term now counts only when the word before it,
or before the short write phrase leading to it (add/write/put ... it/a/the
... to/into/in), is not a negation (not, never, without, no, nor, cannot,
a n't form, rather than, instead of). Routing the principle into a rules
file still fails, including the before-change route and replies whose only
negation is the principle's own "never".
Samples: +6 must-pass negated mentions, +8 must-fail (bold before-change
route, quoted-principle and hyphenated "no" shapes, colon and dash breaks).
The description drops the leading "Medium." so it agrees with the hard tag
and its "Hard because" reason.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KeBVgf4hSWe3ViMaDA9Fp9
typos reads the stem updat as a misspelling; list update, updates and updating instead. The pattern matches the same words. Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBVgf4hSWe3ViMaDA9Fp9
|
Session hold (GitHub Work): this pull request waits on the owner. Its two open security-lane threads flag the corrections stand-in's manifest inside the eval case; each has an evidence reply, and resolving a security-lane thread is the owner's call. Nothing else is outstanding: CI Status was green and both review lanes read the head. |
|
Hold lifted. The owner decided this on 2026-11-20 (question Q107, option A): the two security-lane manifest-flag threads on the eval-only corrections stand-in are resolved with no code change, and this pull request merges. The earlier session-hold comment no longer applies. |
|
Eval of case
|
Refs: #17200
Summary
Adds the planning eval case that #17200 asks for under #17174:
design-principle-hands-to-codify. It loads a corrections stand-in plugin, in the shape of the harness-config cases from PR 17459, and grades that/planning:design, as changed in PR 17544, hands a project-wide principle surfaced in design discussion to/corrections:codifyand does not write it as a rules-file line.The prompt is read-only: it loads the skill with the Skill tool, gives one principle a design round agreed on (domain code never imports the infrastructure package), and asks for one filled
ROUTE:line. The prompt does not name codify or corrections. The skill text is unchanged; this PR adds the case, its stand-in plugin and abump: nonechangelog fragment.Fix
Graders, all deterministic:
route-hands-to-codify(both arms): theROUTE:line namescorrections:codify.route-writes-no-rules-file(both arms): theROUTE:line routes the principle into no rules file,CLAUDE.md,AGENTS.mdor.claude/rules. A rules-file term the line rejects does not count: one whose preceding word, or the word before a short write phrase leading to it (add, write, put ... it, a, the ... to, into, in), is a negation (not, never, without, no, nor, cannot, a n't form, rather than, instead of).no-codify-run(with-only): no Skill call runs codify.no-unavailable-claim(both arms): theROUTE:line does not call codify unavailable.No llm grader: the one in PR 17459 was uncalibrated and read 4 of 9 on correct replies.
route-writes-no-rules-filechanged after review (6f05918, 5dc6901). Review showed it failed a reply the case wants, one that names a rules file only to reject it ("hand it to /corrections:codify rather than adding it to CLAUDE.md"). The change corrects that false fail; it is not a loosening to get a pass. A line that routes the principle into a rules file still fails, including the before-change route and a line whose only negation is the principle's own "never" ("write that domain/ never imports infrastructure/ into AGENTS.md"). Samples: 6 new must-pass negated mentions (8 must-pass in all) and 10 new must-fail lines (13 in all): the bold before-change route, negations in an earlier clause or sentence, the quoted-principle and hyphenated "no-" shapes, and colon and dash breaks after a negation. Every earlier sample keeps its verdict. The commit message of 6f05918 says +8 must-fail; the count is 10.The case description drops its leading "Medium." so it agrees with its
hardtag and its "Hard because" reason, the difficulty record the evals design skill asks for (ahardorroutinetag, and why a hard case is hard).Before-text check, judged from the text and the samples (no before arm was run): before PR 17544, both sites said to suggest codifying the principle "in the project's own rules files", so a faithful reply's
ROUTE:line failsroute-writes-no-rules-file; that exact line, plain and bold, is in its must-fail samples.route-hands-to-codifyshould fail there too, but with the stand-in's codify in the skill listing an old-text reply could still name it, soroute-writes-no-rules-fileis the discriminator to read.Verification
validate-cases.pyoverplugins/planning/evals: no FAIL and no WARN for the case. Its deterministic graders were checked offline against the case'ssamples/under both V8 and JavaScriptCore.scripts/check-affected.sh: 18 passed, 2 skipped (no changed shell or Python).claude plugin evalon Claude Code 2.1.329, modelsonnet(served asclaude-sonnet-5-5), 3 runs a side, this case only. The validity gate read VALID: no denied tool call, and every with-arm run loaded the plugin and the stand-in. Its two warnings: no grader checks that the skill fired, and no judge was recorded (the case has no judge grader). The noise report reads "n too small to call" (one case).route-hands-to-codify3/3,route-writes-no-rules-file3/3,no-codify-run3/3,no-unavailable-claim3/3.route-hands-to-codify0/3,route-writes-no-rules-file3/3,no-unavailable-claim3/3. Each without-arm reply reports thatplanning:designcould not be loaded and endsROUTE: Unknown.ROUTE:lines, read: each hands the principle to/corrections:codify "<principle>"to pick and prove the strongest enforcement mechanism, with the skill's own ladder proposal as the fallback if codify stops; one adds "such as an import-boundary check". None names a rules file.route-writes-no-rules-filepasses 3/3 in both arms here: no reply on main's text names a rules file, so this run does not exercise it. Its discrimination rests on the before-text reading and the samples above.guardrail-hands-to-codifyalso fails a line that picks its own mechanism before naming codify.route-hands-to-codifyhere does not: the same lookahead would fail "instead of a CLAUDE.md line, hand it to /corrections:codify", the negated shape this PR's fix accepts. A mechanism other than a rules file named before codify (for example an architecture test) still passes it.opusalias.Related
Remaining
#17200 stays open. This PR delivers the eval-case item of the #17174 entry. Not part of this PR: that entry's PR-body quote item (PR 17544's body paraphrases the old sentence), and the entry's run budget beyond this smoke run (before and after, both aliases). The other entries' host steps remain as the issue lists them.
🤖 Generated with Claude Code