Repository navigation
test(docs-hygiene): add the write-for-agents codify hand-off eval case - #17635
Conversation
Adds wfa-every-time-rule-hands-to-codify for issue 17200's host step under issue 17159. The case loads a corrections stand-in and checks that /docs-hygiene:write-for-agents writes an every-time rule in plain words and hands the choice of mechanism to /corrections:codify, picking no hook, deny rule or CI check itself, 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. |
Lane run report
Failed GitHub API calls
|
|
claude-review reviewed Code review: no findingsI read all 10 changed files in full. The PR adds one eval case, What I checked
Closing issue: the PR only says "Refs: #17200" and closes no issue, so there were no acceptance criteria to check. Paved paths: Loosened checks: none. The change only adds a new eval case and loosens no existing check. The prompt had no Spend: running this case uses prepaid model credits (3 runs a side, up to 10 turns each; the author reports about 0.23 USD list price per smoke run). That is not a hold. Verifier dropped 0 of 0 candidates. |
|
claude-security-review reviewed Security review: PR #17635This PR adds one eval case and nothing else: What I checked
Findings
Spend: the case uses prepaid API or subscription credit only: 3 runs per arm, up to 10 turns each, with a 600 s timeout. This is not a hold and is not counted as a finding. Manifest lines (3)
critical-findings: 0 |
|
Eval of case
|
Refs: #17200
Summary
Adds the docs-hygiene eval case that #17200 asks for under #17159:
wfa-every-time-rule-hands-to-codify. It loads a corrections stand-in plugin, in the shape of the harness-config cases from PR 17459, and grades that/docs-hygiene:write-for-agents, as changed in PR 17417, writes an every-time rule in plain words and hands it to/corrections:codify, with no mechanism picked by the skill.The scenario is a team rule drafted in all caps ("IMPORTANT: handlers MUST ALWAYS return errors through
respondError()...") that has to hold every time and that nothing checks today. The prompt is read-only: it loads the skill with the Skill tool and asks for three filled lines,LINE:,ENFORCE:andMECHANISM:. It 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:
line-plain-words(both arms): theLINE:line states therespondErrorrule with no all-caps marker word (IMPORTANT,MUST,NEVER,ALWAYS,CRITICAL) and no!!. This is the no-loss check: the plain-words rule is unchanged by PR 17417.enforce-hands-to-codify(both arms): theENFORCE:line namescorrections:codify. This is the discriminator.mechanism-none(both arms): theMECHANISM:line says none. This checks that the skill picks no mechanism itself.no-codify-run(with-only): no Skill call runs codify.no-unavailable-claim(both arms): theENFORCE:line does not call codify unavailable.No llm grader.
Before-text check, judged by reading the text (no before arm was run). Before PR 17417,
SKILL.mdsaid "A rule that must hold every time belongs in a hook, deny rule or CI check", andreference/agent-doc-surfaces.mdsaid such a rule "belongs in a hook or permission policy, not prose". Neither named codify. A faithful reply'sENFORCE:line names one of those mechanisms, so it failsenforce-hands-to-codify, and itsMECHANISM:line names it, so it failsmechanism-none. Samples of both shapes are among the graders' must-fail samples.line-plain-wordspasses on both texts.Verification
validate-cases.pyoverplugins/docs-hygiene/evals: no FAIL, and no finding for the new case. Its deterministic graders were checked offline against the 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, 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).line-plain-words3/3,enforce-hands-to-codify3/3,mechanism-none3/3,no-codify-run3/3,no-unavailable-claim3/3.line-plain-words3/3,enforce-hands-to-codify0/3,mechanism-none3/3,no-unavailable-claim3/3. The without-arm replies could not load the skill, recommended a lint rule or hook of their own on theENFORCE:line, and wrote "none (skill unavailable, so it picked nothing)" on theMECHANISM:line. So against no plugin, onlyenforce-hands-to-codifyseparates the arms;mechanism-noneseparates main's text from the before text, which names a mechanism inside the skill.docs-hygiene:write-for-agents, rewrites the line without marker words, and endsENFORCE: Run /corrections:codify "handlers in src/handlers/ return errors through respondError() and never call res.status() directly" ...andMECHANISM: none.opusalias.Related
Remaining
#17200 stays open. This PR delivers the eval-case item of the #17159 entry. 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