Repository navigation
test(instruction-placement): add the audit and realign codify hand-off eval cases - #17640
Conversation
…f eval cases Adds au-checkable-rule-hands-to-codify and ra-mechanism-finding-hands-to-codify for issue 17200's host step under issue 17163. Each loads a corrections stand-in and checks that a rung-2 rule (import ordering) is routed to a /corrections:codify call, with no mechanism picked by the skill and the prose kept, without running codify or calling it unavailable; realign also records the accepted finding blocked. 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. |
Lane run report
Failed GitHub API calls
|
|
claude-security-review reviewed Security review: PR #17640 (incremental, c8f10e8 → 48d0ef3)This review covers only what changed since c8f10e8. It posts blocking findings only, because this lane already reviewed an earlier head. The push changes two files. Each change edits the front-matter
The This push adds no new security issues. The four earlier manifest flags are on the stand-in Manifest lines (4)
critical-findings: 0 |
|
claude-review reviewed Code review (incremental, blocking only): no findingsThis lane already reviewed an earlier head, so this review reports blocking findings only. It covers what changed since
Only the description text changed. The tags (which still include The PR context has no closing-issue section (it says Spend. This change adds no new spend. The eval runs reported at the earlier head draw on prepaid API credit, which is not a hold. Loosened checks would be marked: fail. That is the default, because the prompt had no Verifier dropped 0 of 0 candidates. |
…se descriptions check-vocabulary read "rung" beside "Medium" as the retired view-medium sense. The label also contradicted the cases' hard tag and their "Hard because" sentence. Description text only; no grader or prompt body changes. Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
Eval of case
|
|
Eval of case
|
Refs: #17200
Summary
Adds the two instruction-placement eval cases that #17200 asks for under #17163, one per changed skill:
au-checkable-rule-hands-to-codify(audit) andra-mechanism-finding-hands-to-codify(realign). Each loads a corrections stand-in plugin, in the shape of the harness-config cases from PR 17459, and grades that rung 2 of the routing rubric, as changed in PR 17212, hands the checkable rule to/corrections:codify, picks no mechanism itself, and keeps the prose.Both scenarios use one CLAUDE.md section a machine could check: import ordering, with nothing checking it today and no safety rail involved.
instruction-placement:audit, has it read the routing rubric, and asks for the finding.Each case ends with four filled lines:
RUNG:(audit) orSTATUS:(realign), thenROUTE:,MECHANISM:andPROSE:. Neither prompt names codify or corrections.Both skills have a pre-computed context line, so the cases grant Bash, as the suite's other audit and realign cases do. The evals plugin's validity gate fails a run whose skill did not load because its case granted no Bash. No run called Bash itself. The skill text is unchanged; this PR adds the cases, their stand-in plugins and a
bump: nonechangelog fragment.Fix
Graders, all deterministic, the same in both cases except the first:
rung-2(audit) orstatus-blocked(realign), both arms: the section lands on rung 2, or realign records the accepted findingblocked. This is the no-loss check: both hold on the text before and after PR 17212.route-hands-to-codify(both arms): theROUTE:line namescorrections:codify. This is the discriminator.mechanism-none(both arms): theMECHANISM:line says none. This checks that the skill picks no mechanism itself.prose-kept(both arms): thePROSE:line says kept.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.
Before-text check, judged by reading the text (no before arm was run). Before PR 17212:
apply-recipes.mdsaid "The remedy is a linter, formatter, analyzer, or hook. Report the routing and leave the prose in place."A faithful reply's
ROUTE:line names a linter or formatter, so it failsroute-hands-to-codify, and itsMECHANISM:line names it, so it failsmechanism-none. Samples of both shapes are among the graders' must-fail samples.rung-2,status-blockedandprose-keptpass on both texts. The old realign gotcha already said a report-only rung isblocked, notapplied.Verification
validate-cases.pyoverplugins/instruction-placement/evals: no FAIL. The new cases' one WARN, that Bash needs an--allow-toolsgrant, is the one every Bash-granting case in the suite carries. The deterministic graders were checked offline against each case'ssamples/.scripts/check-affected.sh: 18 passed, 2 skipped (no changed shell or Python).claude plugin evalon Claude Code 2.1.329, modelsonnet, 3 runs a side, both cases in one launch, with--allow-tools Bash.au-checkable-rule-hands-to-codifywith the plugin, score 1.00: every grader 3/3. Without the plugin, score 0.20:rung-2,route-hands-to-codify,mechanism-noneandprose-kept0/3,no-unavailable-claim3/3.ra-mechanism-finding-hands-to-codifywith the plugin, score 1.00: every grader 3/3. Without the plugin, score 0.53:status-blocked2/3,route-hands-to-codify0/3,mechanism-none1/3,prose-kept2/3,no-unavailable-claim3/3.RUNG: 2,ROUTE: Hand to /corrections:codify "<the imports rule>" to choose and prove a mechanism ...,MECHANISM: none,PROSE: kept. The realign reply records IP-002blocked, makes no edit, and endsROUTE: Rung 2 (mechanically checkable): hand off to /corrections:codify "Imports: ...",MECHANISM: none,PROSE: kept.description:line of bothprompt.mdfiles changed: the leading "Medium." label was dropped, becausecheck-vocabularyread "rung" beside "Medium" as the retired view-medium sense, and the label also contradicted the cases'hardtag. The prompt bodies, graders and samples are unchanged. No eval was re-run on this text. Afterwards,check-vocabulary.pypasses,validate-cases.pyreports no FAIL, andcheck-affected.shreports 18 passed, 2 skipped.opusalias.Related
Remaining
#17200 stays open. This PR delivers the eval-case item of the #17163 entry (one case per changed skill). Not part of this PR: 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