Skip to content

test(review): add fanout reviewer-diversity eval wiring and four reused-scaffold cases - #12169

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-12139-41358586844-1
Nov 2, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-12139-41358586844-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Refs: #12139

Summary

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

Adds 16 claude plugin eval cases, fanout-diversity-<fixture>-<arm>. Four fixtures (null-user, empty-ratings, short-title, search-sqli) each run under four arms (l, m, mx, lx), and each fixture reuses the scaffold of guard-removal-null-user, guard-removal-empty-ratings, guard-removal-short-title or qg-security-search-sqli. Each scaffold commits docs/conventions/review.yaml with the arm's fanout_diversity on main. The M arms list ../../../multi-agent in plugins, and the X arms name /codex:review in the prompt. Each case has three graders: an arm-check regex on the final reply, byte-identical across the fixtures of one arm, plus recall and false-positive LLM judges on the persisted report. plugins/review/evals/fanout-diversity.md states the layout, the ground-truth file (one per fixture: fixture, source_case, defect, axis, not_defects) and the grader templates for the later slices. Choices made, with their basis: a grader file target takes one fixed path (plugin-evals page, 'What a grader can look at'), but the findings file name carries a timestamp (findings-file-shape.md), so the prompt asks the run to copy the report to .work/eval/findings.md. The prompt also asks the reply to end with the fanout_diversity line and the ## Surfaces section, which gives the regex its input. The judges read only the report's Tier column (CRITICAL/IMPORTANT/SUGGESTION), because high/medium/low is the confidence scale in this plugin (context/severity.md). The axes: the three refactor commits claim behaviour-preserving cleanup and break behaviour, so their axis is spec. The search commit does what it says and breaks a security standard, so its axis is standards. Known gap: as committed, the X arms cannot pass under claude plugin eval. A run loads only the plugins in its list and has no Codex login, so a correct run reports Codex skipped and the arm check marks it invalid. fanout-diversity.md states what the host run has to add.

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

Remaining work

  • Make the X arms (mx, lx) runnable under claude plugin eval: add the Codex plugin directory to those cases' plugins and give the run a Codex login, or record that the host run uses another harness for them.

Not verified

  • The 16 scaffold.sh files are mode 100644, while their source scaffolds are 100755. No allowed tool here can set the executable bit. If the eval harness runs the script directly rather than through bash, run chmod +x plugins/review/evals/fanout-diversity-*/scaffold.sh before the host run.
  • The X arms (mx, lx) cannot pass under claude plugin eval as committed. Runs load only the plugins in their plugins list and withhold the user's home and environment, so the codex plugin and its login are absent. The host run must add the Codex plugin directory to those cases' plugins and make its
  • The M arms need a session model whose multi-agent role map resolves two or more distinct fan-out tiers. Otherwise the sweep runs lens and every M run is invalid. The cases pin no model; fanout-diversity.md tells the host run to use the same --model for every arm. I did not check which models resolve
  • Running the eval (claude plugin eval) and the static case validator (plugins/evals/skills/validate/scripts/validate-cases.py). This lane can run neither, so the arm-check regexes were checked by hand against their samples, not by a JavaScript engine. Left to the host-run slice and the PR's CI.
  • The issue's 'The PR's CI is green' is left to the PR's CI.
  • Tidy was skipped because the change is 150 files and over 300 lines, beyond the tidy cutoffs of 10 files and 300 lines.
  • Reviewer suggestions not taken: a tool_used process grader for the X arms (the issue fixes three graders per case), and a src/routes/search.js:11-13 range for the SQLi location (the ground-truth location field is path:line, and line 11 opens the concatenated statement).
  • No commit was made. The runner's instructions say to leave every change uncommitted in the working tree.

Fix

  • plugins/review/evals/fanout-diversity.md: new. The arm table, case layout, prompt wording, ground-truth fields, severity mapping, the arm-check pattern for each arm, and the recall and false-positive templates for the later slices.
  • plugins/review/evals/fanout-diversity-{null-user,empty-ratings,short-title,search-sqli}.ground-truth.yaml: new, one per fixture. Each holds the planted defect (location, summary, failure), its axis (spec, spec, spec, standards) and not_defects.
  • plugins/review/evals/fanout-diversity-<fixture>-<arm>/ (16 directories, arm l|m|mx|lx): new. Each has case.yaml (schema_version 1.1, name, plugins, scaffold_script), prompt.md (runs: 3, the /review:fanout run-everything prompt), scaffold.sh (the source scaffold plus the arm's committed r
  • .changes/review/test-fanout-diversity-eval-wiring-4e7b2c19.md: new changelog fragment, bump: none.

Verification

The runner ran each check from the base copy against bd221cf:

  • 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 3 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 (no file under plugins/review/skills/ or plugins/review/agents/ is touched).
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-affected: the first run failed markdownlint MD038 at fanout-diversity.md:104 (a code span holding '; '). After the fix: 12 passed, 6 skipped over 150 changed files, and again after the review fixes.
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/verify/bin/check-evals-quality: not applicable. It lints skill evals/evals.json files and exited 2 on the plugin eval directory.
  • Fresh-context review subagent over the whole change. It checked each arm-check regex by hand against every sample, confirmed the per-arm and per-fixture files are byte-identical, diffed the scaffolds against their sources, checked the ground-truth line numbers and confirmed the JSON and YAML are val
  • read https: //code.claude.com/docs/en/plugin-evals: case.yaml and prompt.md fields (plugins relative to the case directory, runs 1-50). Grader targets: { source: file, path } reads one file's contents, and the default target is last_message. A llm grader takes criteria and focus. 'How runs are isola
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41358586844

Left out: the items under Not verified.

Related

#12139

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

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

claude-security-review reviewed bd221cf078f64bea6c9652cea9fe399b482e78ab: 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 (40 files)

No security issues found in this chunk.

I read every hunk of all 40 files in .claude-lane/chunks/chunk-1.patch. None of them is new code that installed users run, and none touches a trust control.

What the chunk adds:

  • A changelog fragment: .changes/review/test-fanout-diversity-eval-wiring-4e7b2c19.md, bump: none.
  • Eval case files under plugins/review/evals/fanout-diversity-{empty-ratings,null-user}-{l,lx,m,mx}/ and fanout-diversity-search-sqli-l/case.yaml: case.yaml, prompt.md, graders, samples and scaffold.sh.
  • Two ground-truth YAML files.

Checks against the security bar:

  • Trusted paths. No file in this chunk matches a TRUSTED PATHS: glob. plugins/review/evals/fanout-diversity-* does not match plugins/review/evals/security-review-*/**.
  • Plugin manifests. No .claude-plugin/plugin.json or marketplace.json changes in this chunk, so no manifest lines apply.
  • Trust controls. No change to the trusted-trigger check, the lane token or broker, the kill switch, merge holds or other .github/actions/. Nothing widens.
  • Instruction surfaces. No standing instruction is deleted, narrowed or softened. No skill, agent, CLAUDE.md, rules file or hook changes. The PR's own check output also reports that no file under plugins/review/skills/ or agents/ changed.
  • scaffold.sh files. These run only inside an eval sandbox when an operator runs claude plugin eval by hand. They git init a throwaway repo, write fixed heredocs (all quoted, e.g. <<'PY', so no expansion), and set origin to the local $PWD. They take no outside input, do no network fetch and handle no secrets or credentials.
  • case.yaml plugin lists. They name only in-repo relative paths (../.. and ../../../multi-agent). Nothing is pulled from outside the repository.
  • Prompts. The /codex:review instruction in the X arms runs only under an operator-run eval, not in a credentialed CI lane.
  • Planted defects. The bugs in the fixtures (null deref, divide by zero, SQLi in the chunk 2 fixture) are test ground truth inside scaffolded throwaway repos. They do not ship in this repository's code.
  • Identical-file copies. Every copy in .claude-lane/identical.txt sits under the same plugins/review/evals/fanout-diversity-* eval layout as its first path. No copy's path gives its content a different effect (no hook, workflow, settings or manifest path).

PR context. I found no embedded text in the PR description or issue that tries to direct this lane.

Prior findings. No prior findings from this lane (0 rounds with findings, cap 3, not past the cap).

Spend. The 16 cases use runs: 3, max_turns: 80 and timeout_seconds: 1800. When an operator runs them, that uses prepaid model credit or subscription usage. It is not a billing change.

critical-findings: 0

Chunk 2 of 2 (30 files)

Security review: chunk 2 of 2 (30 files)

I found no security issues in this chunk.

What's in the chunk. All 30 files are new eval fixtures under plugins/review/evals/:

  • The fanout-diversity-search-sqli-* and fanout-diversity-short-title-* case directories (case.yaml, prompt.md, graders, samples, scaffold.sh).
  • Their two *.ground-truth.yaml files.
  • plugins/review/evals/fanout-diversity.md.

None of these paths matches a trusted-path glob. The plugins/review/evals/security-review-*/** glob doesn't cover fanout-diversity-*. Each copy listed in identical.txt sits at a sibling eval-case path of the same kind, so its content acts the same there. None is a hook, workflow, settings or manifest path.

What I checked:

  • The scaffold.sh scripts. They only build a throwaway git repository in the eval's working directory: git init, heredoc files, local commits. The origin remote points at $PWD. Nothing is fetched from the network, no secret or environment value is read, and nothing is written outside the eval sandbox.
  • The planted SQL injection. The string-concatenated LIKE query in the search-sqli scaffold is deliberate. It's the defect the eval wants the reviewer to find. It only exists inside the generated test repository and never ships in plugin code. Not a finding.
  • case.yaml plugins lists. ["../.."] and ["../..", "../../../multi-agent"] are relative paths inside this repository. They decide which plugins load during an eval run, not what installed users get, and no outside source is pulled in.
  • prompt.md frontmatter. allowed_tools includes Bash, Write, Agent and Workflow. That grant only applies inside the claude plugin eval sandbox run on the scaffolded repository. It isn't a skill or agent allowlist that ships to users.
  • The rest. No plugin manifest, userConfig key, hook, workflow, trust control or standing instruction is added, changed or removed in this chunk.

Spend (prepaid usage only, not a hold): each case runs 3 times with max_turns: 80 and timeout_seconds: 1800, but only when someone runs the eval by hand.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

claude-review reviewed bd221cf078f64bea6c9652cea9fe399b482e78ab: 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.

I read every hunk of the 40 files in chunk 1: the changelog fragment, the empty-ratings and null-user cases for all four arms, their ground-truth files, and search-sqli-l/case.yaml. To check the cases against the code they test, I also read plugins/review/skills/fanout/SKILL.md, skills/fanout/context/run-everything-mode.md, workflows/fanout-sweep.js, schemas/review.schema.json, the source scaffolds guard-removal-empty-ratings and guard-removal-null-user, and plugins/review/evals/fanout-diversity.md (chunk 2, context only).

What I checked

  • Scaffolds match their sources. fanout-diversity-{empty-ratings,null-user}-{l,m}/scaffold.sh are the source scaffolds, line for line, plus a commit on main of docs/conventions/review.yaml, with fanout_diversity: lens for the L arms and model for the M arms. That value is in the schema's enum. The branch never edits the file, so the repository layer is not skipped (SKILL.md "fanout_diversity"). In the diff, the scaffolds are mode 100755. The PR body's "Not verified" note says 100644, so that note is out of date.
  • Arm-check regexes match the real report format. The sweep labels its lens leaves code-reviewer and so on, and its model leaves 'model:' + t (fanout-sweep.js L126-L170). Run-everything prints Ran: [<label>@<level>, ...]. Returned no result: [...] (run-everything-mode.md L33-L35). I traced each regex by hand against its pass and fail samples, including model:codex being left out of the two-tier count. I did not run them through a JavaScript engine.
  • Ground-truth line numbers are right on the branch. ratings.py:2 and src/display-name.js:2 are the changed return lines, and src/header.js:5 in the null-user sample is the renderHeader return.
  • Plugin paths resolve. plugins: ["../.."] resolves to plugins/review, and "../../../multi-agent" resolves to plugins/multi-agent, which exists.
  • Rules. .claude/rules/eval-case-transcripts.md matches these paths. The fixtures are synthetic and hold no transcript content.
  • Copies. Every copy listed in identical.txt sits at a matching eval-case path, so none lands on a hook, workflow, settings or manifest path where its content would act differently.

Not counted as findings

  • The X arms (mx, lx) cannot pass under claude plugin eval as committed. Their plugins list leaves out the Codex plugin, and the eval gives no Codex login. The PR and fanout-diversity.md already state this and leave it to the host-run slice.
  • The arm check only confirms which arm ran. A leaf that returned null still appears in Ran:, because ran is the full expected roster. So the arm check does not prove that code-reviewer produced output.

Other inputs

  • Closing issue: none. The PR context has no closing-issue section (the body says Refs: #12139), so I report no acceptance criteria.
  • Prior findings: none, round 0 of 3.
  • Embedded instructions: none found in the PR context.
  • Spend: 16 cases, each at runs: 3 of /review:fanout run-everything with up to max_turns: 80 and timeout_seconds: 1800, spend prepaid model usage when the host runs them. No billing change.

Chunk 2 of 2 (30 files)

Code review: chunk 2 of 2 (30 files): no findings

Scope: I read every hunk of the 30 files in chunk-2.patch: the search-sqli and short-title fixtures across arms l/lx/m/mx, their two ground-truth files, and plugins/review/evals/fanout-diversity.md. The job dropped the identical copies listed in identical.txt from this chunk. All of them are eval data under plugins/review/evals/, where moving the content to another path doesn't change what it does.

What I checked (read by me; nothing executed):

  • Scaffold fidelity. Each search-sqli-* scaffold matches plugins/review/evals/qg-security-search-sqli/scaffold.sh line for line, and each short-title-* scaffold matches guard-removal-short-title/scaffold.sh. The only additions are the docs/conventions directory and the arm's committed review.yaml (lens for l/lx, model for m/mx). That fits the identical-file pairs: l = lx and m = mx.
  • Ground-truth locations.
    • src/routes/search.js:11 is const sql =, the line that starts the concatenated statement.
    • titles.py:2 is the unconditional return on the branch.
    • The short-title failure text is correct: title[:39] + "…" adds an ellipsis to every title of 40 characters or fewer, and a 40-character title loses its last character.
    • The not_defects entries are refuted by the code: the SORTABLE allowlist covers sort, products.js binds its parameter, and Python slicing past the end of a string is safe.
  • Arm-check regexes in fanout-diversity.md. They match the grader files byte for byte, apart from the \| escape the doc explains. They also match how the producers write their output:
    • fanout-sweep.js labels tier leaves model:<tier>. Tiers can only be opus, sonnet or haiku (fable and best are excluded), so the (?![Cc]odex) guard only matters for the Codex-as-tier listing in run-everything-mode.md.
    • The lens roster contains code-reviewer.
    • ## Surfaces renders as Ran: [<label>@<level>, ...].
    • fanout/SKILL.md reports fanout_diversity: <value> (<layer>).
    • When there are fewer than two tiers, the sweep runs lens with no model: labels, so the M check correctly fails.
  • Grader format. focus: { source: file, path: ... } follows existing graders, for example plugins/planning/evals/prd-ears-convention-tags-criteria/graders/every-criterion-tagged.md. The findings table's Tier and Confidence columns match plugins/review/reference/findings-file-shape.md.
  • Plugin paths. ../../../multi-agent resolves to plugins/multi-agent, which exists.
  • Path-scoped rule. .claude/rules/eval-case-transcripts.md covers plugins/*/evals/**. It passes: every prompt, sample and fixture is synthetic, with no transcript or machine-specific path.

Not counted as findings (the author already documents them):

  • The X arms (*-mx, *-lx) don't list a Codex plugin in case.yaml, so under claude plugin eval as committed, every X run fails the arm check. fanout-diversity.md and the PR's "Remaining work" both say so.
  • The PR's "Not verified" section says the scaffolds are mode 100644. In this diff they are new file mode 100755, so that note is out of date and no chmod is needed.

Spend (not a hold): when someone runs it, the eval spends prepaid or subscription model usage: 16 cases × 3 runs, each run up to 80 turns and 1800 s, each fanning out several reviewer agents. Nothing in this chunk starts a billed resource.

Closing issue: the PR says only "Refs: #12139" and closes no issue, so pr-context.md has no acceptance criteria to check against. The author's verification claims (checks passed, regexes checked by hand) are unverified by me. I could not run the eval, the case validator or a JavaScript regex engine.

Embedded text: none in the PR context or the prior-findings file tried to steer this review. No prior findings exist (round 0 of 3).

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head bd221cf078f64bea6c9652cea9fe399b482e78ab.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit c3bf4c1 Nov 2, 2026
68 of 70 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-12139-41358586844-1 branch November 2, 2026 01:06
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit c3bf4c1bb95a8b1c95c2fea72bf66ceb5c15f337; later checks count it verified from this comment.

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.

0 participants