Skip to content

test(review): add the four new-defect fanout reviewer-diversity eval cases - #12252

Merged
kyle-sexton merged 2 commits into
mainfrom
work-resolve-issue/issue-12143-41382321511-1
Nov 2, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
work-resolve-issue/issue-12143-41382321511-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #12143

Summary

Opened by the work-resolve-issue lane. The run's own summary:

Adds four new-scaffold fixtures to the fanout reviewer-diversity eval, laid out as plugins/review/evals/fanout-diversity.md describes: stock-race (an await between reserve's stock read and write lets two checkouts sell the last unit twice; axis standards), csv-handle-leak (countRows drops its try/finally and throws on a wrong header before file.close(); standards), price-cents (parsePrice switches to cents and the commit claims every caller moved, but invoiceLine still reads dollars; spec), and vacuous-slug-test (a new test calls assert.ok(slugify(title), expected), which passes for any non-empty slug; standards). Each fixture has a ground-truth file and four arm cases (l, m, mx, lx), 36 files per fixture, copied from the null-user fixture's shape with only the planted-defect text changed. Design choice: each defect is a small Node ESM repository like the reused scaffolds, and the axes split three standards to one spec, so the eight defect fixtures across both slices come out four spec and four standards.

The run went past its turn budget (turns=235 max-turns=225): the work may be too big for one run.

Not verified

  • Tidy skipped: the change is 150 files and well over 3,000 added lines, over the 10-file and 300-line tidy cutoffs
  • The scaffolds were neither executed nor checked with node or bash -n, because this lane's Bash runs only the named wrappers. Line numbers and JS behavior were checked by reading the code and by the review subagent. The PR's CI and a host eval run (claude plugin eval --scaffold) exercise them
  • The 16 new scaffold.sh files are written with mode 0644, while the existing fanout-diversity scaffolds are 100755. The lane has no chmod. The plugin-evals docs call scaffold_script a Bash script and do not say it must be executable, and no repository check here enforces the bit; a follow-up chmod +x
  • The issue's done-when 'The PR's CI is green' is left to the PR's CI
  • Running the eval itself is out of scope per the issue
  • Low review note left as is: vacuous-slug-test's fix changes the slugs of existing accented titles (café becomes cafe). That is the commit's intended effect and matches no not_defects entry, but a reviewer may still raise it

Fix

  • plugins/review/evals/fanout-diversity-stock-race.ground-truth.yaml: new; race at src/inventory.js:14, axis standards, two not_defects
  • plugins/review/evals/fanout-diversity-csv-handle-leak.ground-truth.yaml: new; leak at src/import-csv.js:10, axis standards, two not_defects
  • plugins/review/evals/fanout-diversity-price-cents.ground-truth.yaml: new; stale caller at src/invoice.js:4, axis spec, two not_defects
  • plugins/review/evals/fanout-diversity-vacuous-slug-test.ground-truth.yaml: new; test that cannot fail at test/slug.test.js:15, axis standards, two not_defects
  • plugins/review/evals/fanout-diversity-{stock-race,csv-handle-leak,price-cents,vacuous-slug-test}-{l,m,mx,lx}/: new, 16 case directories, each with case.yaml (schema_version "1.1", the arm's plugins), prompt.md (runs: 3, the arm's prompt), scaffold.sh (the fixture repository with the arm's review.yam
  • plugins/review/evals/fanout-diversity.md: four rows added to the fixture table naming the new fixtures and their planted defect
  • .changes/review/work-resolve-issue-issue-12143-41382321511-1-11dfa5d8.md: new bump: none fragment describing the cases

Verification

The runner ran each check from the base copy against 79fcd3b:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-changelog-fragments: all 13 fragments valid (run before and after the review fixes)
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-changed-skills: no changed skills under plugins/*/skills/, nothing to gate (run twice)
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-affected: 12 passed, 6 skipped, over 150 changed files (run twice); the rest are listed as CI only
  • Grep for em dashes in plugins/review/evals: none
  • Fresh-context review subagent over every new file: one high finding (csv-handle-leak's branch split on "\n" and compared the header exactly, so a correct CRLF or BOM file was rejected, a second real defect) and one low finding (EMFILE stated as certain). Both fixed: the branch's countRows now strips
  • read https: //code.claude.com/docs/en/plugin-evals: context.scaffold_script is a Bash script in the case directory that runs in the empty workspace before Claude starts, only with --scaffold, under a minimal environment and a 120-second limit
  • read https: //github.com/melodic-software/claude-code-plugins/issues /7584: the parent splits the 12 diffs into three sub-issues (reused-scaffold, four new-defect, four decoy) and does not describe the new defects beyond the count
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41382321511

Left out: the items under Not verified.

Related

#12143

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

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

Chunk 1 of 2 (40 files)

Security review, chunk 1 of 2 (PR #12252)

I found no security issues in this chunk.

What I read: every hunk of all 40 files in chunk-1.patch. I also read the pull request description, prior-findings.md, manifest.txt and identical.txt.

Prior round: the only earlier post was the unanchored summary at 79fcd3b, which reported 0 findings. The new head, 776946c3, merges main into the branch. This chunk is still all new eval fixtures. The one visible difference is that the scaffold.sh files are now mode 100755 instead of 0644, which matches the existing fanout-diversity scaffolds.

What the files are:

  • A bump: none changelog fragment.
  • New eval cases under plugins/review/evals/fanout-diversity-{csv-handle-leak,price-cents}-*.
  • fanout-diversity-csv-handle-leak.ground-truth.yaml.

None of them matches a TRUSTED PATHS glob: the paths are fanout-diversity-*, not security-review-*. No .claude-plugin/plugin.json or marketplace.json changes, so there are no manifest lines to report. No workflow, action, token, kill-switch, merge-hold or instruction-surface file changes, so no trust control is widened and the instruction register was not needed.

What I checked:

  • scaffold.sh scripts: each one only builds a throwaway local git repository in the eval workspace. It runs git init, writes files through quoted heredocs (<<'JS', <<'YAML', <<'JSON', so nothing expands) and commits.
    • The origin remote is the workspace itself (git remote add origin "$PWD"), so fetch and set-head stay local.
    • The scripts make no network calls, download nothing, and read no secrets or environment values.
    • They run only under claude plugin eval --scaffold, not in CI or on users' machines.
  • case.yaml files: the plugins: entries point inside this repository (../.. and ../../../multi-agent).
  • prompt.md files: allowed_tools: [Read, Glob, Grep, Skill, Agent, Bash, Write, Workflow] applies only inside the eval sandbox and has the same shape as the existing fanout-diversity cases.
  • Graders and samples: static regex or LLM-grader text and JSON, with no instructions aimed at a credentialed lane.

Copies in identical.txt: all of them are grader .md and sample .json files under sibling fixtures' eval directories. None is a hook, workflow, settings or manifest path, so the same content does the same thing at each copy's path.

Pull request description: it contains no instructions aimed at this review.

Spend (not a finding, no hold): only when someone runs the eval, the new cases at runs: 3, max_turns: 80 and timeout_seconds: 1800 use prepaid model credits, and the Codex arms (lx, mx) also call Codex.

critical-findings: 0

Chunk 2 of 2 (38 files)

Security review, chunk 2 of 2 (PR #12252, head 776946c3)

I found no security issues in this chunk.

What I read: every hunk of all 38 files in chunk-2.patch, plus pr-context.md, prior-findings.md, manifest.txt and identical.txt. The files are:

  • the price-cents-mx prompt and scaffold, and the price-cents ground truth;
  • every stock-race and vacuous-slug-test arm directory (l, lx, m, mx): case.yaml, prompt.md, scaffold.sh, and the graders and samples where present;
  • the stock-race and vacuous-slug-test ground-truth files;
  • the four table rows added to plugins/review/evals/fanout-diversity.md.

What I checked:

  • Trusted paths: no file in this chunk matches a TRUSTED PATHS glob. They are fanout-diversity-*, not security-review-*.
  • Trust controls: no workflow, action, token request, kill switch, merge hold or resolve-config file is changed, so no trust control is widened.
  • Plugin manifests: no .claude-plugin/plugin.json or marketplace.json changes, so there are no manifest lines to report.
  • Instruction surface: no standing instruction is deleted, narrowed or softened, so I did not need the exception register.
  • scaffold.sh scripts: each one only builds a throwaway local git repository in the eval workspace. It runs git init, writes files through quoted heredocs (<<'JS', <<'YAML', <<'JSON'), so nothing expands, and commits. The remote is the workspace itself (git remote add origin "$PWD"), and the fetch and set-head act only on that. No script makes a network call, downloads anything, or reads a secret or environment value.
  • The fetch() calls: the fetch() calls to warehouse.example.invalid in the stock-race fixture are JS file content the scaffold writes out. Nothing executes them.
  • Mode change since the last round: the scaffolds now arrive as 100755, where the last round's context said 0644. That is the eval runner's own script and widens nothing.
  • case.yaml files: their plugins: entries point inside this repository (../.. and ../../../multi-agent).
  • prompt.md files: each has the same allowed_tools set as the existing fanout-diversity cases, and they matter only inside the eval sandbox.
  • Graders and samples: these are static LLM-grader text and JSON fixtures. Nothing in them is aimed at a credentialed lane.
  • Copies in identical.txt: these are grader .md and sample .json files at sibling eval case paths. None of those is a hook, workflow, settings or manifest path, so the content does nothing different at the copy's path.
  • PR context: the pull request description holds no instructions aimed at this review.
  • Prior findings: the only entry is last round's summary comment, which had 0 findings, so there is nothing to repeat. The round cap was not reached.

Spend (not a finding, no hold): running the eval spends prepaid model credits. In this chunk that is the 12 stock-race and vacuous-slug-test cases plus price-cents-mx, each at runs: 3, max_turns: 80 and timeout_seconds: 1800. The lx/mx arms also call Codex.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

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

Chunk 1 of 2 (40 files)

Code review: chunk 1 of 2 (40 files)

No findings in this chunk.

Scope. I read every hunk of the 40 files in this chunk:

  • the changelog fragment
  • every file of the csv-handle-leak fixture: its ground truth and the l, m, mx and lx cases
  • the price-cents-l, -lx, -m files and price-cents-mx/case.yaml, which are the price-cents files this chunk holds

The copies in identical.txt all sit under plugins/review/evals/<case>/graders/ or samples/. Their location gives them no other role: none is a hook, workflow, settings or manifest path.

This head (776946c3) is a merge of main into the head this lane reviewed before (79fcd3ba). The files in this chunk read the same as they did then.

What I checked against plugins/review/evals/fanout-diversity.md:

  • arm-check.md patterns. All four (l, m, mx, lx) match the doc's grader table at fanout-diversity.md#L105-L110, with a bare | where the table escapes it.
  • Case files. Every case.yaml has schema_version: "1.1" and context.scaffold_script: scaffold.sh. The m and mx cases add ../../../multi-agent. Every prompt.md sets runs: 3 and uses its arm's Codex sentence.
  • recall.md and false-positive.md. Only the defect sentence and the not_defects list change from the template, and both match the fixture's ground-truth file.
  • csv-handle-leak scaffold.
    • On the branch, src/import-csv.js:10 is the throw, which runs before file.close() at line 12, so the ground truth's location is right.
    • The false-positive sample's rows.length at line 13 is also right.
    • For a file with the expected header, main's split("\n").filter(Boolean).length - 1 and the branch's rows.length give the same count, with LF or CRLF line endings. That supports the first not_defects entry.
    • importAll catches each file's error, which supports the second.
  • price-cents scaffold.
    • src/invoice.js:4 is const amount = parsePrice(line.price) * line.qty; and the branch does not change it.
    • With qty 2 and price 12.34, the new cents value gives $2468.00.
    • cartTotal divides by 100.
    • Math.round(0.29 * 100) is 29.
    • The defect and both not_defects entries hold.
  • Changelog fragment. It is bump: none and describes the cases.

Closing issue #12143. For the files in this chunk, these criteria are met:

  • one case per arm
  • graders that follow the templates, each with samples holding at least one pass and one fail entry
  • schema_version "1.1" and runs: 3
  • a bump: none fragment
  • no file under plugins/review/skills/ or plugins/review/agents/

I can't check "The PR's CI is green" from here.

Not a finding: scaffold file mode. The PR body says the scaffold.sh files were written with mode 0644. The diff shows the eight in this chunk as new file mode 100755, so that note is out of date for these files.

Spend (not a hold). These cases run 3 times each, with up to 80 turns and 30 minutes per run. They use API or subscription credit only when someone runs the eval on a host. Nothing here bills by itself.

The PR context had no embedded instructions aimed at the review lane. The only prior post from this lane is the summary for 79fcd3ba, which reported no findings, so nothing repeats.

Chunk 2 of 2 (38 files)

Code review, chunk 2 of 2 (38 files)

No findings in this chunk.

Scope. I read every hunk of the 38 files in this chunk:

  • price-cents-mx: prompt.md and scaffold.sh
  • the price-cents ground truth
  • all of the stock-race fixture: its ground truth and the l, lx, m and mx cases (case, prompt, scaffold, and the l graders and samples)
  • all of the vacuous-slug-test fixture, in the same layout
  • the four table rows added to plugins/review/evals/fanout-diversity.md

The copies listed in identical.txt all sit under plugins/review/evals/<case>/graders/ or samples/. Their paths give them no other role: none is a hook, workflow, settings or manifest path.

Checks I made against the code

  • stock-race ground truth. On the branch, src/inventory.js:14 is await confirmSku(sku);. It sits between the stock.get read at line 10 and the stock.set write at line 15, so two concurrent reserve calls on the last unit both read 1 and both write 0. That matches the ground truth's failure. reserve was already async on main and checkout awaits it, which supports the first not_defects entry. Only src/inventory.js is rewritten on the branch, which supports the second.
  • vacuous-slug-test ground truth. On the branch, test/slug.test.js:15 is assert.ok(slugify(title), expected);. assert.ok treats its second argument as the failure message, so the test passes for any non-empty slug, main's cr-me-br-l-e included.
    • The combining-mark class holds literal U+0300 to U+036F, which I confirmed with Grep.
    • That range covers the marks NFD splits off è, û, é, ç and í, so creme-brulee and acai-bowl are what the fix produces.
    • NFD leaves ASCII unchanged, which supports the second not_defects entry.
  • price-cents ground truth. src/invoice.js is unchanged on the branch, and line 4 reads parsePrice(...) as dollars. 12.34 × 2 becomes 1234 × 2 = 2468, so the line prints $2468.00. cartTotal divides by 100. This matches the ground truth's defect and its not_defects.
  • Graders and samples. Each recall.md and false-positive.md follows the template. Only the defect sentence and the wrong-claims list change, and both match their ground truth (summary, failure, and the not_defects entries joined with ; ). Each sample file has one pass and one fail entry, and each behaves as its why says.
  • Case files. Every case.yaml has schema_version: "1.1". Every prompt.md has runs: 3 and the arm's Codex sentence. The m and mx cases add ../../../multi-agent. Each arm's review.yaml value is right: lens for l and lx, model for m and mx.
  • Doc table. The four new rows in fanout-diversity.md name the fixtures and their defect classes, and each matches what its fixture plants.

Closing issue #12143. For this chunk's files, these criteria are met:

  • four new-defect fixtures with one case per arm
  • graders that follow the templates
  • sample files with at least one pass and one fail entry
  • schema_version and runs as required
  • no file under plugins/review/skills/ or plugins/review/agents/

"The PR's CI is green" can't be checked from here.

Not a finding: scaffold file mode. The PR body says the scaffolds were written with mode 0644. The diff shows every scaffold.sh in this chunk as new file mode 100755, so that note is out of date.

Prior findings. The earlier round at 79fcd3b had no findings, so nothing carries over. This head is a merge of main, and the chunk's files read as the earlier review described them.

Spend (not a hold). These 16 cases × 3 runs each (up to 80 turns and 30 minutes per run) use subscription or API credit only when someone runs the eval host-side. Nothing here bills by itself.

The PR context had no embedded instructions aimed at the review lane.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 79fcd3baa7f2b599a423f10acb742c2835832d99.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 2, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 2, 2026
@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 2, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 2, 2026
Lane-Activity: pr-unblock/resolve-conflicts
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit 930509c Nov 2, 2026
39 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-12143-41382321511-1 branch November 2, 2026 05:16
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.

test(review): add the four new-defect fanout reviewer-diversity eval cases

1 participant