Skip to content

test(naming): add outcome eval cases and frozen trigger probes for name-it-better - #12002

Merged
kyle-sexton merged 13 commits into
mainfrom
test/6611-naming-evals
Nov 1, 2026
Merged

kyle-sexton merged 13 commits into
mainfrom
test/6611-naming-evals

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

Refs: #6611
Refs: #6476

Summary

Adds outcome eval cases and a frozen trigger-probe file for the naming plugin's name-it-better skill, 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 (no llm grader), 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 rejects LedgerSync, bans the word Helper and 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 no Helper compound.
    • nib-blast-radius-basis: calcTotal undersells what it does. The shortlist states the rename's blast radius and the pick carries a Basis: 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: the tournament argument 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).
  • Fixes from the smoke pass (see Verification):
    • nib-blast-radius-basis/searched-call-sites (f8b4fc3342), removed.
    • nib-tournament-public-package: max_turns 40 to 80 (f8b4fc3342).
    • honest-framing and names-runners-up (9a57eda6ea), widened.
  • Review fixes (0b0d085626):
    • names-runners-up now passes three or more table rows or numbered items that each carry a backticked name, whatever the name, in place of the spec- prefix alternative. New samples: a ranked @acme/oas-* table and a numbered unscoped ranking pass; a one-row table with inline mentions fails.
    • The positive Skill routing graders in nib-blast-radius-basis, nib-rejected-name-natural-phrasing and nib-misleading-name-no-apply drop arm: 'both', so they report as indicators and stay out of both arms' scores. The scores below predate this and count routing.
  • Review fixes (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 bare pick, choose and prefer, 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, from 6d2a24db9e, an imperative "Pick" or "Choose" at the start of a sentence or line. From 8edf3e5fc4, dfc4579b0d and c339f34953 (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.
    • These tighten graders past the smoke pass, so the with-plugin replies it observed were not rescored against them.
  • The changelog fragment stays at 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.py returned 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".

Case With plugin Without plugin
nib-blast-radius-basis 0.75 (1.00 rescored) 0.50 (0.33 rescored)
nib-decided-rename-not-routed 1.00 1.00
nib-misleading-name-no-apply 1.00 0.80
nib-rejected-name-natural-phrasing 1.00 0.50
nib-tournament-public-package, run 1 (40 turns) 0.50 (1.00 rescored) 0.50 (0.50)
nib-tournament-public-package, rerun (80 turns) 0.75 (1.00 rescored) 0.50 (0.50)

"Rescored" applies the fixed graders offline to the same replies.

  • The full pass cost 3.80 USD at list price and took 302 seconds; the tournament rerun cost 1.53 USD and took 167 seconds.
  • nib-decided-rename-not-routed measures nothing in this pass: the baseline also scored 1.00.
  • Failure classification: every failed grader was read against its trace.
    • nib-blast-radius-basis / searched-call-sites, with plugin: grader defect, removed. The run counted the references with grep -rn calcTotal through Bash, not the Grep tool. A tool_used grader names one tool, so states-blast-radius now grades the counted result alone.
    • nib-tournament-public-package, run 1: the run used 39 of its 40 turns. About 25 of them were echo waiting Bash 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 backticked spec- candidates.
    • Every widening passes the observed replies and every old pass sample, and fails every old and new fail sample, under both the Python and the node regex engines.
    • Real, by content (baseline): routes-name-it-better (no plugin), fans-out-three, brief-carries-blocklist-word and widens-to-five (no generators ran), basis-label, and honest-framing (the baselines presented the bracket without calling it an adaptation).
  • Checks:
    • 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 in nib-misleading-name-no-apply.
    • Probe validator: PASS, 0 warnings.
  • Frozen suite digest: git rev-parse c339f34953:plugins/naming/evals gives 1afdcd492c46a804ed37993c19419991c9b543e6. Use it to confirm the cases have not changed before the rewrite's measured runs.
  • Known grader limits: Agent graders see only the main thread's Agent inputs, not calls made inside subagents or files a generator reads. names-runners-up also passes any three table rows or numbered items that hold backticked text, such as numbered steps that each quote a command.
  • Unmeasured: the rubric being settled before the pool returns; merge filters before elimination; collision vocabulary; the multi-round rejection loop; a missing criterion routed upstream; flagged agent-inferred blocklist words; the sentence-form and temporal-neutrality tests; researched terms of art; the hand-off of domain concepts to domain modeling.
  • Observation, no change: the tournament run's echo waiting turns 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

🤖 Generated with Claude Code

kyle-sexton and others added 5 commits November 1, 2026 00:14
…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]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 1, 2026 17:01
@chatgpt-codex-connector

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

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-01T17:03:52.261065Z bf3087f 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review (incremental, dfc4579..c339f34)

I found no security issues in this change.

What I read: every hunk of .claude-lane/incremental.diff, covering both files in scope.

  • plugins/naming/evals/nib-misleading-name-no-apply/case.yaml: the change touches only the hands-back-choice regex grader's pattern. It adds two alternations: which ... (do|would|should|will|could) you with a gap of up to 30 characters and no comma, and which ... to you? with a gap of up to 40 characters and no comma. flags, target, tool grants and limits are unchanged.
  • plugins/naming/evals/nib-misleading-name-no-apply/samples/hands-back-choice.json: adds two offline pass samples.

Why nothing qualifies:

  • The regex grades the model's last_message inside an eval run. Every new quantifier is a bounded negated character class ({0,30}, {0,40}), so there is no backtracking risk worth a finding.
  • The change touches no trust control, token scope, secret, workflow, hook or plugin manifest. No changed file matches a TRUSTED PATHS: glob.
  • No standing instruction is deleted, narrowed or softened. Skill text is unchanged, as the PR context states.
  • The PR context file contains no embedded instructions aimed at the lane.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

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

Incremental review of dfc4579b0d..c339f34953 (2 files): no findings.

This change fixes the advisory from the last round: the sentence-start anchor dropped which questions that follow a leading clause and a comma. That thread is settled with no lines changed since its resolution, so I didn't raise it again. I checked the fix itself against the sample set.

case.yaml (hands-back-choice). The change puts two unanchored alternatives back beside the anchored ones:

  • \bwhich\b[^\n.?,;]{0,30}\b(?:do|would|should|will|could) you\b
  • \bwhich\b[^\n.,;]{0,40}\bto you\?

Neither gap can cross , or ;, so the relative-clause holes closed in earlier rounds stay closed. I traced every sample by hand against the full pattern. I did not run the Python or node regex engines, so the author's claim that both engines agree remains unverified.

samples/hands-back-choice.json. The two new pass samples are the exact inputs from the earlier finding. The JSON is well formed (a trailing comma was added to the previous last entry).

PR context. The PR body's frozen-suite digest now refers to c339f34953:plugins/naming/evals, which is this head. Its fix list names c339f34953 and describes the anchored-or-comma-free rule. That matches the pattern as changed.

Spend: none. This change touches only offline eval graders and samples.

kyle-sexton and others added 2 commits November 1, 2026 12:08
… 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]>

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

claude-lane: claude-review

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]>

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

claude-lane: claude-review

…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]>

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

claude-lane: claude-review

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]>

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

claude-lane: claude-review

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]>

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

claude-lane: claude-review

…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]>

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

claude-lane: claude-review

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]>
@kyle-sexton
kyle-sexton enabled auto-merge November 1, 2026 18:33
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 1, 2026
Merged via the queue into main with commit e3da95f Nov 1, 2026
69 checks passed
@kyle-sexton
kyle-sexton deleted the test/6611-naming-evals branch November 1, 2026 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant