Repository navigation
test(docs-naming): add the gate codify hand-off eval case - #17638
Conversation
Adds gate-emitted-rule-file-hands-to-codify for issue 17200's host step under issue 17162. The case loads a corrections stand-in and checks that /docs-naming:generate-file-name-gate still emits the checker and hands the rule-file question to /corrections:codify, naming the call, without running codify, opting into --rule or writing under .claude/rules. gate-not-replaced-by-rule drops its explains-rule-limit grader: it graded the argument that a rule file blocks nothing and never runs in CI, which the skill's Purpose no longer makes. 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 (incremental since
|
|
claude-review reviewed Code review: PR #17638, incremental from
|
…placed-by-rule Restore gate-not-replaced-by-rule's case.yaml and its explains-rule-limit samples to main's content, and drop the grader removal from the changelog fragment. Deleting a grader loosens a check, and that removal waits on an owner decision; this pull request now adds only the new codify hand-off case. Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
Eval of case
|
Refs: #17200
Summary
Adds the docs-naming eval case that #17200 asks for under #17162,
gate-emitted-rule-file-hands-to-codify.The new case loads a corrections stand-in plugin, in the shape of the harness-config cases from PR 17459, and grades that
/docs-naming:generate-file-name-gateemits the gate and hands the rule-file question to/corrections:codify. A teammate asks for a path-scoped rule file as well. The run emits the checker into a scaffolded repository and ends with two filled lines,GATE:andRULE-FILE:. The prompt does not name codify or corrections. The case grants Bash, Write and Edit, as the existing gate cases do, because emitting the gate is part of what it grades.The skill text is unchanged. This PR adds the case, its stand-in plugin and scaffold (copied from
gate-not-replaced-by-rule), and abump: nonechangelog fragment.Fix
New case, all deterministic graders:
ran-emitter(with-only): a Bash call runsemit-gate.sh.checker-created(both arms):scripts/check-file-names.shexists. This is the no-loss check: the gate is still the deliverable.rule-file-hands-to-codify(both arms): theRULE-FILE:line namescorrections:codify. This is the discriminator.no-rule-flagandno-rule-write(both arms): noemit-gate.sh --rulecall and no Write under.claude/rules.no-codify-run(with-only): no Skill call runs codify.no-unavailable-claim(both arms): theRULE-FILE:line does not call codify unavailable.No llm grader. A known limit:
rule-file-hands-to-codifypasses aRULE-FILE:line that settles the question itself and also mentions codify. The performance case's equivalent grader was tightened with a lookahead in PR 17628. This one is not, because a lookahead on "add" or--rulewould fail correct lines. One smoke reply's line began "Don't add it now; run/corrections:codify ...". The action side is graded byno-rule-flagandno-rule-write.Before-text check for the new case, judged by reading the text (no before arm was run). Before PR 17487, the Purpose settled the rule-file question itself:
and the
--rulegotcha said "offer it and let the operator decide". Neither named codify. A faithful reply'sRULE-FILE:line says the rule file is not a substitute or is optional through--rule, so it failsrule-file-hands-to-codify. A sample of that shape is among the grader's must-fail samples.checker-created,no-rule-flagandno-rule-writepass on both texts.Verification
validate-cases.pyoverplugins/docs-naming/evals: no FAIL. The only WARNs are the Bash, Write and Edit--allow-toolsnotes every gate case in the suite carries. The deterministic graders were checked offline against the case'ssamples/.scripts/check-affected.sh: 19 passed, 1 skipped.claude plugin evalon Claude Code 2.1.329, modelsonnet, 3 runs a side, both cases, with--scaffoldand--allow-tools Bash Write Edit.jqresolved to a version-manager shim that does not start inside the eval sandbox, so the skill's config resolver failed and no checker was emitted. Nothing from that launch is counted.jqinstall directory first onPATH: the validity gate read VALID. Its warnings: one without-arm run ofgate-not-replaced-by-rulehad a deniedfind /(outside the plugin), no grader checks that the skill fired in the new case, and no judge was recorded.gate-emitted-rule-file-hands-to-codifywith the plugin, score 1.00: every grader 3/3. Without the plugin, score 0.60:checker-created0/3,rule-file-hands-to-codify0/3,no-rule-flag,no-rule-writeandno-unavailable-claim3/3.emit-gate.shwithout--rule, runs the emitted checker and its suite (both exit 0), and endsGATE: scripts/check-file-names.shandRULE-FILE: Don't add it now; run /corrections:codify "docs file names must be lower-kebab" to decide, ....gate-not-replaced-by-rulewas taken out of this PR: itscase.yamlandsamples/explains-rule-limit.jsonare back to main's content, and the changelog fragment no longer mentions them. The new case's files are unchanged. Afterwards,validate-cases.pyreports no FAIL andcheck-affected.shreports 19 passed, 1 skipped.opusalias.Related
Remaining
#17200 stays open. This PR delivers the eval-case item of the #17162 entry. Not part of this PR: that entry's PR-body quote item (the quote above is from the skill text), 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.
The stale
explains-rule-limitgrader ingate-not-replaced-by-rulestays; its removal waits on an owner decision.🤖 Generated with Claude Code