Skip to content

test(docs-naming): add the gate codify hand-off eval case - #17638

Merged
kyle-sexton merged 2 commits into
mainfrom
test/17200-docs-naming-codify-handoff-case
Nov 20, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
test/17200-docs-naming-codify-handoff-case

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

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-gate emits 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: and RULE-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 a bump: none changelog fragment.

Fix

New case, all deterministic graders:

  • ran-emitter (with-only): a Bash call runs emit-gate.sh.
  • checker-created (both arms): scripts/check-file-names.sh exists. This is the no-loss check: the gate is still the deliverable.
  • rule-file-hands-to-codify (both arms): the RULE-FILE: line names corrections:codify. This is the discriminator.
  • no-rule-flag and no-rule-write (both arms): no emit-gate.sh --rule call and no Write under .claude/rules.
  • no-codify-run (with-only): no Skill call runs codify.
  • no-unavailable-claim (both arms): the RULE-FILE: line does not call codify unavailable.

No llm grader. A known limit: rule-file-hands-to-codify passes a RULE-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 --rule would fail correct lines. One smoke reply's line began "Don't add it now; run /corrections:codify ...". The action side is graded by no-rule-flag and no-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:

A path-scoped rule file is not a substitute. A rule is guidance Claude reads during its own session: it blocks nothing, binds no human editor or other tool, and never runs in CI. The gate runs over the whole tracked set wherever it is invoked. That is why the gate is the deliverable and the rule is the option.

and the --rule gotcha said "offer it and let the operator decide". Neither named codify. A faithful reply's RULE-FILE: line says the rule file is not a substitute or is optional through --rule, so it fails rule-file-hands-to-codify. A sample of that shape is among the grader's must-fail samples. checker-created, no-rule-flag and no-rule-write pass on both texts.

Verification

  • validate-cases.py over plugins/docs-naming/evals: no FAIL. The only WARNs are the Bash, Write and Edit --allow-tools notes every gate case in the suite carries. The deterministic graders were checked offline against the case's samples/.
  • scripts/check-affected.sh: 19 passed, 1 skipped.
  • Smoke runs on main's skill text, claude plugin eval on Claude Code 2.1.329, model sonnet, 3 runs a side, both cases, with --scaffold and --allow-tools Bash Write Edit.
    • First launch: the validity gate read INVALID, a harness failure. In 4 runs jq resolved 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.
    • Second launch, with the real jq install directory first on PATH: the validity gate read VALID. Its warnings: one without-arm run of gate-not-replaced-by-rule had a denied find / (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-codify with the plugin, score 1.00: every grader 3/3. Without the plugin, score 0.60: checker-created 0/3, rule-file-hands-to-codify 0/3, no-rule-flag, no-rule-write and no-unavailable-claim 3/3.
    • One with-arm reply of the new case, read in full: it loads the skill, runs emit-gate.sh without --rule, runs the emitted checker and its suite (both exit 0), and ends GATE: scripts/check-file-names.sh and RULE-FILE: Don't add it now; run /corrections:codify "docs file names must be lower-kebab" to decide, ....
    • Cost reported by the tool for the counted launch: 0.84 USD (list-price estimate). The discarded first launch reported 0.94 USD.
    • The runs used a copy of the plugin outside any git repository, the route the evals plugin documents for the CLI's linked-worktree refusal.
  • After the smoke run, the change to gate-not-replaced-by-rule was taken out of this PR: its case.yaml and samples/explains-rule-limit.json are back to main's content, and the changelog fragment no longer mentions them. The new case's files are unchanged. Afterwards, validate-cases.py reports no FAIL and check-affected.sh reports 19 passed, 1 skipped.
  • Not run: a before arm on the pre-PR-17487 text, and the opus alias.

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-limit grader in gate-not-replaced-by-rule stays; its removal waits on an owner decision.

🤖 Generated with Claude Code

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
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 20, 2026 15:08
@chatgpt-codex-connector

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

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-20T15:10:14.402746Z 33158a5 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

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44760393834

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@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-security-review: 2 inline finding(s) on 33158a57abc2e6f02a8fa02b92f72e4bef712951; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review (incremental since 33158a57): PR 17638

I found no new security issues. This review only reported CRITICAL and IMPORTANT findings, because this lane already reviewed an earlier head.

Scope. Since 33158a57, the only listed file is .changes/docs-naming/test-17200-gate-codify-handoff-case-5e19b0d4.md, and I read its whole change. It is a changelog fragment. The edit removes the sentence saying gate-not-replaced-by-rule drops its explains-rule-limit grader, which matches the head commit restoring that grader. The file matches none of the TRUSTED PATHS globs. It is prose only: it contains no code, no manifest, no standing instruction and no trust control, so no lens has anything to act on. The restored grader adds a check back, so nothing is loosened.

PR context and threads. The settled thread on gate-not-replaced-by-rule/case.yaml (the grader deletion) is resolved by the restore in this head. I am not raising it again. I found no text aimed at the lane in the PR context or in the thread text.

Carried-over findings. The two manifest flags on the eval-only stand-in corrections-stub/.claude-plugin/plugin.json are unchanged since posted. Each is counted once below and not posted again. Both are IMPORTANT. That manifest declares no hooks, servers, monitors or dependencies, and no marketplace entry installs it.

Spend (not a finding). Running the eval case uses prepaid API credits only. This push does not change that.

critical-findings: 0

Manifest lines (2)

@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 33158a57abc2e6f02a8fa02b92f72e4bef712951; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 87cd6b31b94480619bfc35e57881d76f98565ce6: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #17638, incremental from 33158a57 to 87cd6b31 (blocking findings only)

No blocking findings. This lane already reviewed an earlier head, so this review reports blocking findings only.

What changed since the last review. The only file in scope is the changelog fragment .changes/docs-naming/test-17200-gate-codify-handoff-case-5e19b0d4.md. Its sentence about dropping the explains-rule-limit grader is gone.

The earlier loosened-check finding is cleared. That was the deleted explains-rule-limit grader in plugins/docs-naming/evals/gate-not-replaced-by-rule/case.yaml (thread). The change is undone:

  • .claude-lane/files.txt no longer lists gate-not-replaced-by-rule/case.yaml or samples/explains-rule-limit.json.
  • Searching the full PR diff for gate-not-replaced-by-rule and explains-rule-limit finds nothing.

So the case and its sample now match the base branch, which is what the owner's reply says. Undoing the change is one of the two ways the criterion lets a loosened-check finding clear.

The fragment now matches the diff. It describes only the new gate-emitted-rule-file-hands-to-codify case, and bump: none still fits an eval-only change. One small wording point that does not block: the fragment still opens with "Eval cases only" (plural), though only one case is now involved.

Closing issue: the PR still closes no issue (Refs: #17200 only), so I checked no acceptance criteria.

Prompt settings: the prompt had no loosened_check_verdict:, loosened_check_patterns: or loosened_check_decision_record: line. I used fail with no consumer entries and did not check the citation requirement.

Loosened checks would be marked: fail (default; no verdict line in the prompt); patterns: 0

Not verified by me: I ran nothing in this review. Any eval runs or scores in the PR body are the author's claims.

Spend: the new eval case uses prepaid model credit on eval runs. It creates no billed resource.

Verifier dropped 0 of 0 candidates.

…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]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit b83636c Nov 20, 2026
71 checks passed
@kyle-sexton
kyle-sexton deleted the test/17200-docs-naming-codify-handoff-case branch November 20, 2026 16:33
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 20, 2026
@kyle-sexton

Copy link
Copy Markdown
Member Author

Eval of case gate-emitted-rule-file-hands-to-codify (#17162, skill change PR 17487), sonnet (served as claude-sonnet-5-5), 3 runs a side, Claude Code 2.1.329, --scaffold, --allow-tools Bash Write Edit. Verdict: no loss, with a detection signal.

  • BEFORE text: plugins/docs-naming at bb9b12c (parent of the PR 17487 squash 8c79f2e), plus the case folder from main 74c69d3. Run here, --ablation none, 2026-11-20. Validity gate: VALID with --scaffolded, no denied call, no run error, not partial, Bash ran in 3 of 3 (warnings: no skill-fired grader, no judge model recorded; the case has no judge grader).
  • AFTER text: the with-plugin arm recorded in PR 17638, run on 33158a5. That commit differs from the squash b83636c only in the other case gate-not-replaced-by-rule; this case folder and the skill are byte-identical, and main has changed only evals since (test(docs-naming): remove the stale explains-rule-limit grader from gate-not-replaced-by-rule #17676, the other case). The body reports "every grader 3/3" for this case on its VALID second launch. Not re-run.
  • Between the two texts, main changed docs-naming skills only in PR 17487.
Grader BEFORE AFTER
ran-emitter 3/3 3/3
checker-created 3/3 3/3
rule-file-hands-to-codify 0/3 3/3
no-rule-flag 3/3 3/3
no-rule-write 3/3 3/3
no-codify-run 3/3 3/3
no-unavailable-claim 3/3 3/3
Case mean 0.86 1.00
  • Loss rule (mean drop of 0.15 or more, or a grader passing 2 or more fewer runs AFTER): no loss. Detection signal: rule-file-hands-to-codify 3/3 AFTER against 0/3 BEFORE. Each BEFORE reply emitted the gate without --rule, said a rule file "can't replace the gate", and ended with a RULE-FILE: line such as "Skip it in this change; ... add it in a follow-up ... by re-running the emitter with --rule --force", the pre-change text's answer, with no codify.
  • Cost (list-price estimate from the result JSON): BEFORE 0.209 USD. The recorded PR 17638 launch reported 0.84 USD for both arms of two cases.
  • Limits: the arms were not interleaved; AFTER is the with-arm of an earlier default-ablation launch on the same Claude Code version. PR 17638 notes rule-file-hands-to-codify also passes a line that settles the question and mentions codify; no BEFORE RULE-FILE: line mentions codify, so the limit did not apply here.
  • Not run: the opus alias (the budget runs opus only to confirm a sonnet loss).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant