Repository navigation
test(naming): add outcome eval cases and frozen trigger probes for name-it-better - #12002
Conversation
…me-it-better Five deterministic outcome cases under plugins/naming/evals with offline pass and fail samples for every grader, plus a 20-query frozen trigger probe set for name-it-better. The cases cover routing from natural phrasing on a rejected name, the blind brief (rejected name kept out of every generator prompt, user-stated blocklist word carried in, no fork generator), the blast radius and Basis label on an existing name, a decided rename that must not route here, the tournament argument's widened fan-out and honest framing, and zero-call graders on Edit, Write and Bash renames when edit tools are in reach. No skill text changes; bump: none fragment. Refs: #6611 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ament turn limit The smoke pass failed searched-call-sites on a run that counted calcTotal with grep -rn through Bash; a tool_used grader names one tool, so states-blast-radius now grades the counted result alone. The tournament case ended at 39 of 40 turns, with the final reply cut short while the run waited on its generators and judges, so max_turns goes to 80. Refs: #6611 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Two smoke runs of nib-tournament-public-package gave correct replies the graders failed. Both said the bracket "isn't an established naming technique", which honest-framing missed because it needed a bare "not". One presented the runners-up in a ranked table without the word, which names-runners-up missed; it now also passes a reply that names three or more backticked spec- candidates. Every old sample keeps its verdict, and the observed replies and a new must-fail pass and fail under the Python and node regex engines. Refs: #6611 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis 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: bf3087f737
ℹ️ 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".
|
claude-security-review reviewed Security review (incremental, dfc4579..c339f34)I found no security issues in this change. What I read: every hunk of
Why nothing qualifies:
critical-findings: 0 |
|
claude-review reviewed Incremental review of This change fixes the advisory from the last round: the sentence-start anchor dropped
Neither gap can cross
PR context. The PR body's frozen-suite digest now refers to Spend: none. This change touches only offline eval graders and samples. |
… of the score names-runners-up passed a ranked table only when its names held "spec-". It now passes three or more table rows or numbered items that each carry a backticked name, whatever the names are, with new pass and fail samples. The positive Skill routing graders drop arm both: in the no-plugin arm they cannot pass, so scoring them there inflates the delta. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…aders states-blast-radius no longer lets function words (of, the, its, go, across and the like) fill the gap between a number and its noun, so "one of the files" counts nothing. hands-back-choice drops bare pick, choose and prefer, which the skill's own "RECOMMENDED pick" format matched, and keeps asks addressed to the user. names-runners-up gains the prompt's sibling packages as a must-fail sample. The old graders fail every new sample. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The tightened grader failed correct replies such as "Pick one and I'll hand it to the rename sweep" and "Tell me which you want". It now accepts pick or choose at the start of a sentence or line, and which ... you, while "RECOMMENDED pick:" still fails. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…back-choice "which you flagged" in a reply that went ahead and renamed passed the grader. The which-alternative now needs want, like, prefer, pick, choose or go with after "you", and the relative-clause reply is a must-fail sample. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The previous tightening required want/like/prefer/pick/choose/go with right after "which ... you", so correct hand-backs failed: "Which do you think fits best?", "Which sounds better to you?", "Which of the three would you rather use?" and a typographic "you’d". The grader now also accepts "which ... do/ would/should/will/could you", "rather", "which ... to you?" and either apostrophe. "which you flagged" and "which you said" still fail. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The gaps after "which" could cross a comma or semicolon. That let a
relative-clause "which" in an applied-rename sentence join a later,
unrelated question ("..., which reads better; do you want the tests
updated too?"). The three which-alternatives now exclude , and ; from the
gap. Both replies from the review are fail samples. Every sample keeps its
verdict under Python re and node RegExp.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…tion
Excluding the comma from the which-gaps dropped real hand-backs such as
"Which of `A`, `B` do you want?" and "Which, if any, would you like me to
apply?". The question forms ("which ... do/would you", "which ... to you?")
now count only when "which" opens a sentence, so a relative-clause "which"
in an applied-rename sentence never qualifies, whatever joins the clauses.
The "which you'd like" form keeps a short gap with no comma. A comma-splice
fail sample and both comma hand-backs are added. All 21 samples keep their
verdict under Python re and node RegExp.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The sentence-start anchor dropped hand-backs such as "Before I rename anything, which of the two names would you like?". Add the comma-free, unanchored "which ... do/would you" and "which ... to you?" forms beside the anchored ones. A relative-clause "which" still fails, because every fail sample puts a comma or semicolon between it and the question. Both review inputs are now pass samples. All 23 samples keep their verdict under Python re and node RegExp. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Refs: #6611
Refs: #6476
Summary
Adds outcome eval cases and a frozen trigger-probe file for the
namingplugin'sname-it-betterskill, and fixes four graders and one case limit that the smoke pass showed misjudged correct runs. No skill text changes and no concise rewrite ships. The rewrite comes next as its own measured pass.These cases and probes are the frozen suite the rewrite's measured before/after pass runs against. #6611 stays open for that pass.
Fix
plugins/naming/evals/: five outcome cases, all deterministic (nollmgrader), with offline pass and fail samples for every grader. Four stage a small repository through a scaffold script and need--scaffold.nib-rejected-name-natural-phrasing: the user rejectsLedgerSync, bans the wordHelperand asks for better names in plain words. The run routes to the skill and fans out to at least three generators, none a fork. The briefs omit the rejected name and carry the banned word, and the shortlist has noHelpercompound.nib-blast-radius-basis:calcTotalundersells what it does. The shortlist states the rename's blast radius and the pick carries aBasis:label.nib-decided-rename-not-routed: a rename that is already decided and half applied. The skill does not fire, no candidate generators run, and the reply lists the three stale files.nib-tournament-public-package: thetournamentargument on a public npm package name. At least five agents run, none a fork, and the reply frames the bracket as an adaptation and names the runners-up.nib-misleading-name-no-apply: options for a misleading name, with edit tools in reach. Nothing is edited, written or renamed, and the choice goes back to the user.plugins/naming/probes/name-it-better.json: 20 frozen trigger queries (10 should trigger, 10 should not, 5 and 5 per split).nib-blast-radius-basis/searched-call-sites(f8b4fc3342), removed.nib-tournament-public-package:max_turns40 to 80 (f8b4fc3342).honest-framingandnames-runners-up(9a57eda6ea), widened.0b0d085626):names-runners-upnow passes three or more table rows or numbered items that each carry a backticked name, whatever the name, in place of thespec-prefix alternative. New samples: a ranked@acme/oas-*table and a numbered unscoped ranking pass; a one-row table with inline mentions fails.Skillrouting graders innib-blast-radius-basis,nib-rejected-name-natural-phrasingandnib-misleading-name-no-applydroparm: 'both', so they report as indicators and stay out of both arms' scores. The scores below predate this and count routing.cfafe2f88a), each with new samples the old grader got wrong under both engines:states-blast-radius: function words (of, the, its, go, across and the like) can no longer fill the gap between a number and its noun, so "one of the files" counts nothing.hands-back-choice: drops barepick,chooseandprefer, which the skill's own "RECOMMENDED pick" format matched; it keeps asks addressed to the user ("which one", "which ... you want/like/prefer" (492a312999, so "which you flagged" fails), "your call", "let me know ... go with") and, from6d2a24db9e, an imperative "Pick" or "Choose" at the start of a sentence or line. From8edf3e5fc4,dfc4579b0dandc339f34953(review threads r4436686780, r4436786251, r4436799358, r4436819737): a "which ... do/would/should/will/could you" or "which ... to you?" question counts when "which" opens a sentence (commas allowed inside) or when no comma or semicolon sits between "which" and the ask, so a relative-clause "which" in an applied-rename sentence never qualifies; "which you('d) want/like/..." keeps a short comma-free gap; either apostrophe is accepted.names-runners-up: the prompt's sibling packages beside a finalist are a must-fail sample.bump: none: no skill text changed.Verification
Smoke pass:
claude plugin eval(Claude Code 2.1.316), Opus under test, Opus judge (no judge grader ran),--runs 1 -j 2 --scaffold --allow-tools Bash Edit Write --max-cost-usd 8, then the tournament case alone after the turn-limit fix.run-validity.pyreturned VALID for both, with warnings only (no skill-fired grader in some cases, one case at the ceiling). No run errored, no tool call was denied, and 0 traces contain "Failed to create bridge sockets"."Rescored" applies the fixed graders offline to the same replies.
nib-decided-rename-not-routedmeasures nothing in this pass: the baseline also scored 1.00.nib-blast-radius-basis/searched-call-sites, with plugin: grader defect, removed. The run counted the references withgrep -rn calcTotalthrough Bash, not the Grep tool. Atool_usedgrader names one tool, sostates-blast-radiusnow grades the counted result alone.nib-tournament-public-package, run 1: the run used 39 of its 40 turns. About 25 of them wereecho waitingBash calls made while its generators and judges ran in the background, so the limit sat too close to a complete run. It is now 80. The rerun finished well inside it, with 16 tool calls.honest-framing, with plugin, both runs: grader defect, widened. Both replies said the bracket "isn't an established naming technique", and the pattern needed a bare "not". It now accepts "isn't". Both baseline replies still fail it.names-runners-up, with plugin, run 1: grader defect, widened. The reply ranked the seven runners-up in a table without using the word. The grader now also passes a reply that names three or more backtickedspec-candidates.routes-name-it-better(no plugin),fans-out-three,brief-carries-blocklist-wordandwidens-to-five(no generators ran),basis-label, andhonest-framing(the baselines presented the bracket without calling it an adaptation).scripts/check-affected.sh --tests: 14 passed and 2 skipped.validate-cases.py: exit 0, no FAIL. Its WARNs are the grant notices for Bash, Edit and Write innib-misleading-name-no-apply.git rev-parse c339f34953:plugins/naming/evalsgives1afdcd492c46a804ed37993c19419991c9b543e6. Use it to confirm the cases have not changed before the rewrite's measured runs.names-runners-upalso passes any three table rows or numbered items that hold backticked text, such as numbered steps that each quote a command.echo waitingturns are spent turns with no work in them. Whether the skill should tell the model to wait on the agents' own completion notices instead is a question for the rewrite.Related
TMPDIRthe run used so the sandbox bridge sockets start.🤖 Generated with Claude Code