Skip to content

test(review): add the four decoy fanout reviewer-diversity eval cases - #12246

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

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #12144

Summary

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

Adds four decoy fixtures to the fanout reviewer-diversity eval in the layout #12139 set up: typed-user (a null check the parameter type and the only caller rule out), sort-column (an ORDER BY column interpolated only from a fixed Map, with the term still bound), page-links (a <= loop over 1-based pages that gives the same output as main) and return-promise (a dropped return await in an async function with no try block). Each fixture has a ground truth whose defect and axis read none and whose not_defects name the findings a reviewer would wrongly raise, plus one case directory per arm (l, m, mx, lx). Each case has the three graders from the fanout-diversity.md templates and their samples. The Q160 design text is not in the repository, so I chose the four decoys from the issue's example and the existing fixtures' domains; each targets a different shape of false positive (removed guard, SQL interpolation, off-by-one, missing await).

Not verified

  • The 16 new scaffold.sh files are mode 100644: the lane's Write tool cannot set the executable bit, while all 680 existing eval scaffolds are 100755. The plugin-evals docs describe scaffold_script as a Bash script and do not say it must be executable; a person may want to run chmod +x on them for c
  • The PR's CI (done-when 'The PR's CI is green') and the CI-only checks check-affected lists (evals-quality, orphaned-fixtures, editorconfig and the rest) are left to the PR's CI
  • Tidy skipped: the change has 150 files, over the 10-file tidy cutoff
  • No scaffold was executed and the eval was not run (running it is out of scope per the issue); the scaffolds were checked by reading only
  • The review flagged a low template issue that this change does not touch: the shared recall.md template's FAIL clause 'no finding names the defect' always holds for a decoy, and the judge has to let the template's decoy PASS rule win. The graders follow the fanout-diversity.md template as the issue r
  • Build and lint for the touched file classes ran only through check-affected's markdown and static lanes; there is no build for eval fixtures

Fix

  • plugins/review/evals/fanout-diversity-{typed-user,sort-column,page-links,return-promise}.ground-truth.yaml: new decoy ground truths, source_case/defect/axis none, not_defects listing the wrong findings
  • plugins/review/evals/fanout-diversity-<fixture>-{l,m,mx,lx}/ (16 directories, 144 files): case.yaml (schema_version 1.1, per-arm plugins), prompt.md (runs: 3, per-arm Codex sentence, decoy tag), scaffold.sh (fixture repo, review.yaml lens or model per arm), graders/{arm-check,recall,false-posi
  • plugins/review/evals/fanout-diversity.md: fixture table lists the four decoys, plus one paragraph defining a decoy's ground truth
  • .changes/review/work-resolve-issue-issue-12144-41382387863-1-c83b2251.md: bump: none fragment describing the cases

Verification

The runner ran each check from the base copy against 0b191e6:

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

The run reports:

  • check-changelog-fragments: all 13 fragments valid
  • check-changed-skills: no changed skills under plugins/*/skills/
  • check-affected: the first run failed markdownlint MD050 because __proto__ in the sort-column false-positive graders was read as bold; after rewording to toString, 12 passed and 6 skipped over 150 changed files
  • read https: //code.claude.com/docs/en/plugin-evals: context.scaffold_script is a Bash script in the case directory that runs before Claude starts, only with --scaffold, with a 120-second limit (the page does not say whether it must be executable)
  • fresh-context review subagent over the whole diff: no high findings. Fixed two medium ones: sort-column's newest used created_at with no schema (added schema.sql to main in all four scaffolds), and a bump: none fragment body should be one reason line (rewrote it)
  • spot-read fork-written files (sort-column-mx prompt, sort-column-l false-positive grader, return-promise-lx false-positive sample, page-links-m arm-check) against the spec and the null-user cases
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41382387863

Left out: the items under Not verified.

Related

#12144

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 0b191e627d7169139fec5ea9beae701fd2c69c6a: 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 #12246)

No security issues found in this chunk.

What this chunk contains

All 40 files are new. One is a bump: none changelog fragment. The other 39 are eval fixtures for two of the four decoy fixtures in the fanout reviewer-diversity eval:

  • page-links: all four arms (l, lx, m, mx) and its ground truth.
  • return-promise: arms l, lx and m, plus the case.yaml of arm mx.

Each arm has a case.yaml, a prompt.md, a scaffold.sh, and graders with their samples.

What I checked

  • scaffold.sh files. These are the only code that runs. They only run in the plugin-evals sandbox, and only with --scaffold. Each one starts a local git repo, writes fixed heredoc content (every delimiter is quoted, so nothing expands), commits, and sets origin to $PWD. Nothing is fetched from the network, nothing is installed, no secrets or environment values are read, and no outside input reaches a command. The package.json dependencies in return-promise are written into the fixture repo but never installed.
  • case.yaml files. These load only ../.. (the review plugin) and ../../../multi-agent, both in this repository. Nothing comes from outside it.
  • prompt.md files. These run in eval sessions, not in a CI lane that holds credentials. The allowed_tools sets match the existing fanout-diversity cases, and no prompt text reaches a credentialed lane.
  • Graders and samples. These are inert regex and LLM-judge text. The regex graders only gate whether an eval passes, and that controls no merge.
  • Trusted paths. No file in this chunk matches a TRUSTED PATHS: glob. In particular, plugins/review/evals/fanout-diversity-* does not match plugins/review/evals/security-review-*/**.
  • Plugin manifests. The chunk changes no plugin.json or marketplace.json.
  • Instruction surfaces. No standing instruction is deleted or softened, so the instruction-surface lens does not apply.
  • Identical copies. Every copy in identical.txt is a grader or sample file under plugins/review/evals/fanout-diversity-*/. None sits at a hook, workflow, settings or manifest path, so the copies behave exactly like their first paths.
  • PR context. I found no embedded text telling the review to pass the PR, skip a check, drop a finding, or post elsewhere.
  • Prior findings. There are none. This is round 0 of a cap of 3, so the cap did not apply.

Spend (not a finding)

The 16 new cases run runs: 3 each, with max_turns: 80 and a 1800-second timeout. This only spends prepaid API or subscription usage when someone runs the eval. It is not a billing change.

critical-findings: 0

Chunk 2 of 2 (38 files)

Security review: chunk 2 of 2 (PR #12246)

No security issues found in this chunk.

Scope

I read every hunk of all 38 files in .claude-lane/chunks/chunk-2.patch:

  • Eval fixtures: the case files for the decoy fixtures return-promise-mx, sort-column-{l,lx,m,mx} and typed-user-{l,lx,m,mx}. That covers each case.yaml, prompt.md and scaffold.sh, the graders/ and samples/ files that are not copies, and the three *.ground-truth.yaml files.
  • Docs: the table and paragraph added to plugins/review/evals/fanout-diversity.md.

What I checked

  • Scaffold scripts. Each scaffold.sh only does local work inside the eval's temporary directory:
    • It runs git init, sets a local git identity ([email protected]) and writes fixture files with quoted heredocs (<<'JS' and similar), so the shell expands nothing in them.
    • It adds git remote add origin "$PWD", which points at the script's own directory.
    • It makes commits.
    • It makes no network calls, installs no packages and reads no secrets or environment values. It also writes nothing outside the working directory.
    • The package.json dependency ranges in the scaffolds are fixture text; nothing installs them.
    • The intentional SQL interpolation in the sort-column fixture is fixture code under review, not code this repository runs. It is also safe as written: a fixed Map lookup with a fallback.
  • Case manifests. Each case.yaml loads only in-repo plugin paths (../.. and ../../../multi-agent), and every scaffold path is relative to its case directory. No source outside the repository is involved.
  • Prompts and graders. prompt.md and the grader files are eval inputs for a sandboxed eval run, and they grant tools only inside that run. No CI lane runs them with credentials. They contain nothing aimed at this review lane.
  • Trusted paths. No file in this chunk matches a TRUSTED PATHS glob: plugins/review/evals/security-review-*/** does not match fanout-diversity-*.
  • Plugin manifests. No plugin.json or marketplace.json changes in this chunk, so there are no manifest lines.
  • Instruction surfaces. No standing instruction is deleted or weakened.
  • Identical files. Every copy in .claude-lane/identical.txt sits in a plugins/review/evals/fanout-diversity-*/{graders,samples}/ directory, next to the copy it duplicates. No copy is at a hook, workflow, settings or manifest path, so none behaves differently where it sits.
  • PR context. The description contains no embedded text that tells this review to pass the change, skip a check or drop a finding.

Spend (not a finding)

These 16 cases run only when someone runs the eval: each has runs: 3, max_turns: 80 and timeout_seconds: 1800, and the X arms also call Codex. That spends prepaid API or subscription usage only, so it is not a hold.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

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

What I checked

  • page-links decoy (all four arms, plus the ground truth). On main the loop is for (let i = 0; i < pageCount; i++) pages.push(i + 1). On the branch it is for (let page = 1; page <= pageCount; page++) pages.push(page). Both give the same output for every pageCount. I worked the scaffold's tests through by hand (pageNumbers(0) → [], 41 → [1,2,3], 40 → [1,2]), and they hold on both commits; I did not run them. The three not_defects are claims this code really does refute, and the recall and false-positive fail samples make those wrong claims.
  • return-promise decoy (-l, -lx, -m, -mx case/prompt/scaffold, -l graders and samples). loadProfile has no try block, so dropping return await findUser(id) for return findUser(id) doesn't change how the promise settles. The route still awaits it inside its own try/catch. The not_defects in fanout-diversity-return-promise.ground-truth.yaml (chunk 2, read for context) match the false-positive grader text word for word, joined with ; as the template says.
  • Graders against the templates in plugins/review/evals/fanout-diversity.md:
  • Case shape. Every case.yaml uses schema_version: "1.1", and the m/mx arms also load ../../../multi-agent. Every prompt.md has runs: 3, the right Codex sentence for its arm, and the decoy tag. The scaffolds follow the null-user scaffold's git setup, including remote set-head.
  • Changelog fragment. It has bump: none and a single reason line, which matches the change: no shipped skill, agent or hook is touched.
  • Identical copies. Every copy listed in identical.txt sits in a sibling arm directory under plugins/review/evals/. None is at a hook, workflow, settings or manifest path, so no copy acts differently because of where it lives.

Closing issue #12144: the criteria this chunk can show

  • Four fanout-diversity-* decoy fixtures, each a correct change that looks wrong: met for page-links and return-promise here. The other two fixtures are in chunk 2.
  • The ground truth reads none and names the wrong findings: met (page-links here, return-promise read for context).
  • Each grader follows its template and has a samples file with at least one pass and one fail entry: met for the files in this chunk.
  • schema_version: "1.1" and runs: 3: met.
  • No edits under plugins/review/skills/ or plugins/review/agents/: met. The manifest shows none in the whole PR.
  • A bump: none fragment: met.
  • "The PR's CI is green": left to CI; this lane can't see it.

Note on the PR description: the "Not verified" section says the 16 new scaffold.sh files are mode 100644. In .claude-lane/pr.diff, all 16 are new file mode 100755, the same as the existing eval scaffolds, so the chmod +x follow-up it suggests is no longer needed.

Usage: running these 16 new cases (3 runs each, up to 80 turns, 1800 s timeout) spends prepaid API or subscription usage. Nothing here starts a billed charge.

No prior findings, settled threads or round cap applied. Nothing in the PR context file asked the lane to approve, skip a check, drop a finding or post elsewhere.

Chunk 2 of 2 (38 files)

Code review, chunk 2 of 2 (38 files)

No findings in this chunk.

Files reviewed: the return-promise-mx case and its ground truth, all four arm directories of sort-column and typed-user with their ground truths, and the fanout-diversity.md table and decoy paragraph.

Decoy correctness (checked by reading the scaffold code):

  • sort-column: SORT_COLUMNS is a Map. Map.prototype.get returns undefined for constructor, toString, arrays and qs objects, so ?? "name" catches every value not in the map. Only the three fixed clauses can reach ORDER BY, and term stays bound as ?. schema.sql declares created_at, so newest refers to a real column.
  • typed-user: headerLabel returns early when session.user is null. Session.user is SignedInUser | null and tsconfig.json sets strict: true, so narrowing the type to SignedInUser removes a branch that could never run. The profile field is required on both main and the branch.
  • return-promise: loadProfile has no try block, so return findUser(id) and return await findUser(id) settle the same way. The route awaits the call inside its own try/catch.

Graders vs. template: The recall.md and false-positive.md files for sort-column and typed-user match the fanout-diversity.md templates word for word, apart from the decoy text. In each, the wrong-claims list equals the ground truth's not_defects joined with ; . I also checked return-promise's false-positive.md in chunk 1 (pr.diff line 963) against fanout-diversity-return-promise.ground-truth.yaml in this chunk, and they match. Each samples/*.json has one pass and one fail entry, and each verdict is right for its grader.

Per-arm wiring:

  • In every case, case.yaml uses schema_version: "1.1" and the arm's plugins: ["../.."] for l and lx, plus multi-agent for m and mx.
  • Every prompt.md sets runs: 3, uses the arm's Codex sentence and carries the decoy tag.
  • Each scaffold commits the arm's review.yaml value on main: lens for l and lx, model for m and mx. The identical-file sets (lx = l, mx = m) match that.
  • I checked each copy path in identical.txt. All are eval grader and sample files under plugins/review/evals/, and no path changes what its content does. The arm-check files are shared across fixtures within one arm, as the template requires ("byte-identical across the fixtures of one arm").

Closing issue #12144:

  • Met for this chunk's files: decoy fixtures that are correct but look wrong, ground truths reading none with not_defects, four arms with three graders and samples each, schema_version: "1.1" with runs: 3, and no edits under plugins/review/skills/ or plugins/review/agents/.
  • Not verified: "The PR's CI is green". I have no CI access, so I'm leaving it to the PR's checks.
  • The four decoys are data fixtures, so nothing in the repository tests them. The recall and false-positive graders are what read them when the eval runs.

Notes:

  • The PR's "Not verified" note says the 16 scaffolds are mode 100644. The diff shows mode 100755 on every scaffold.sh in this chunk, so that note looks out of date. I did not run any scaffold; I read them only.
  • The PR body mentions that the shared recall.md template says "FAIL if … no finding names the defect", which always holds for a decoy. This is a pre-existing template issue on lines this PR doesn't change, so I'm not reporting it.
  • Spend: none until someone runs the eval. Then the 16 new cases × 3 runs, each capped at 80 turns and 1800 s, use prepaid API credit or subscription usage only.
  • No paved-path, plugin-manifest or settled-thread items apply to this chunk. Prior findings: none (0 rounds, cap not reached).

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 0b191e627d7169139fec5ea9beae701fd2c69c6a.

@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
@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 063ed4a Nov 2, 2026
44 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-12144-41382387863-1 branch November 2, 2026 04:31
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 063ed4a3444a4eba12fbd44587486fdb871703c7; 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.

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

0 participants