Skip to content

feat(review): label or require reproduced findings under a shared rule for running reviewed code - #16378

Merged
kyle-sexton merged 8 commits into
mainfrom
work-resolve-issue/issue-15833-43729478332-1
Nov 15, 2026
Merged

kyle-sexton merged 8 commits into
mainfrom
work-resolve-issue/issue-15833-43729478332-1

Conversation

@melodic-automation-lanes

@melodic-automation-lanes melodic-automation-lanes Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Closes #15833

Summary

Adds one shared rule for running reviewed code, and an optional proof stage for review findings.

  • New contract docs/contracts/run-reviewed-code/, copied into the bugs and review plugins. It holds the two consent forms (a person's yes to one exact command, and fix's red test under its own gate), the rule that nothing else runs reviewed code, the test for an unattended run (--unattended, CLAUDE_CODE_REMOTE, claude -p, an autonomous loop), the downstream-probe exclusion, the four evidence labels, and the refute-gate prompt that used to live in /bugs:scan's verification-gate.md.
  • The review plugin gains a proof stage, Stage 5 in reference/findings-normalization.md, run by /review:fanout (both review modes) and /review:council. It is set by reproduce_findings (off by default, label, require) and reproduce_findings_floor (IMPORTANT by default). A floor naming no tier is reported and every row is attempted.
  • The stage sends each row at or above the floor to a new finding-prover agent that holds only Read, Grep and Glob. An attended run asks the person before each proposed check; an unattended run runs none. Labels go into a new ## Evidence section.
  • A refuted row drops to low confidence with one ## Dismissed line under both label and require. Under require, unreproduced rows are demoted the same way, and an unattended report opens with a nothing-could-be-checked line. Under off the report is unchanged.
  • The Dismissed reason: not reproduced (refuted): <argument> for a refuted row in every run; otherwise not reproduced: unattended run, nothing ran in an unattended run and not reproduced (<label>): <basis> in an attended one. A row demoted twice gets one line carrying both reasons.
  • The fix action surfaces any dismissed or low row and never applies it or hands it to a producer skill, whatever its class; a row dismissed in one consumed file stays dismissed when merged with the byte-identical row from another.
  • The code-reviewer, security-reviewer and architecture-guardian agents run none of the reviewed code. They audit dependencies by reading manifests and lockfiles and run no audit command in the reviewed tree, because a package manager reads the tree's own configuration, which can name the registry it queries and the credentials it sends. A command that would settle a doubt is named in the finding text.
  • Fanout and council accept --unattended; /bugs:scan now also counts the environment as unattended.
  • This repository sets reproduce_findings: label in docs/conventions/review.yaml, and its pipeline example passes --unattended to the fan-out activity.

Design choices: labels sit in a separate ## Evidence table because the fix action parses the ## Findings table; council resolves the two keys the way fanout does (setup-apply --check at the merge base, the repository layer skipped when the change edits review.yaml); fix's own gate is untouched.

Remaining work

Later work

  • Running /bugs:scan's refute gates without a shell (the Brief's deferred question on this) is not part of this change.

Not verified

  • No model eval ran. The new case fanout-require-unattended-keeps-findings passes the evals validator and its graders' samples only.
  • The eval's no-execution grader sees the orchestrator's Bash calls only; the eval docs do not say that a tool_used grader counts a subagent's calls. It also misses wrappers such as nice, sudo and find -exec.
  • doc-drift-detector and lane-verifier hold Bash and carry no run-none line; nothing in them tells them to run anything.
  • "Stays dismissed" across findings files holds for byte-identical rows; the same defect restated in other words in an older unconsumed file is a separate row.
  • The bugs plugin's copy of the contract lives at plugins/bugs/reference/run-reviewed-code.md, not under the scan skill's folder.

Fix

  • docs/contracts/run-reviewed-code/README.md and its two generated plugin copies; scripts/shared-copies.txt, scripts/cross-plugin-source-registry.txt, docs/plugin-philosophy.md.
  • plugins/bugs/skills/scan/ (SKILL.md, context/verification-gate.md, context/findings-report.md) and plugins/bugs/README.md: the unattended test and the pointer to the shared rule.
  • plugins/review/reference/ (findings-normalization.md, findings-file-shape.md, config.md), plugins/review/schemas/review.schema.json, plugins/review/.claude-plugin/plugin.json, plugins/review/README.md: the stage, the two settings and the report shape.
  • plugins/review/agents/finding-prover.md: the new gate agent. code-reviewer.md, security-reviewer.md, architecture-guardian.md: the run-none rule.
  • plugins/review/skills/fanout/ (SKILL.md, context/run-everything-mode.md, context/fix-pass-mode.md), plugins/review/skills/council/SKILL.md, plugins/review/skills/quality-gate/ (SKILL.md, context/downstream.md, context/phase-boundary.md, context/security.md), plugins/review/skills/setup/SKILL.md.
  • plugins/review/evals/fanout-require-unattended-keeps-findings/: the eval case.
  • docs/conventions/review.yaml and docs/conventions/pr-pipeline/examples/claude-code-plugins.yaml.
  • Changelog fragments.

Verification

  • scripts/sync-shared-copies.sh --check: all 906 registered copies match.
  • scripts/check-changed-skills.sh --merge-base: 5 skills checked, 0 failed.
  • scripts/check-convention-yaml.sh --check and setup-apply.mjs --check: passed.
  • plugins/review/skills/setup/scripts/setup-apply.test.sh, plugins/review/tests/turn-budget.test.sh, plugins/review/tests/fanout-sweep.test.mjs: passed.
  • The evals validator over plugins/review/evals: 0 FAIL; check-matchers.py: ok.
  • CI Status on the head.
  • Four independent reviews of the change against the Brief and of each fix round.
  • The lane run that opened this pull request: https://github.com/melodic-software/claude-code-plugins/actions/runs/43729478332

Related

#15833

🤖 Generated with Claude Code

Lane-Activity: work-resolve-issue/resolve-issue
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head b34e76704d6e60edbcf64975e14d0f303de7ea5c. No person needs to act: a lane clears this reason, and the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 15, 2026
kyle-sexton and others added 2 commits November 15, 2026 11:43
…sue-15833-43729478332-1

# Conflicts:
#	plugins/bugs/skills/scan/SKILL.md
#	plugins/bugs/skills/scan/context/verification-gate.md
- A refuted finding now drops to low confidence with one Dismissed line
  under both label and require, as the Brief's AC5 states; fanout,
  council, findings-file-shape, config docs, schema and userConfig agree.
- A row the CRITICAL check already demoted gets one Dismissed line
  carrying both reasons.
- A reproduce_findings_floor naming no tier is reported where the
  setting is resolved, and every row then goes to the gate.
- quality-gate points its downstream-probe exception at the shared rule.
- The unattended require eval fails when a Bash call runs the tree's
  tests or source (npm test, node --test, node -e), with pass and fail
  samples, and an llm grader replaces the narrow email regex.
- Regenerate the skill cheat sheet for the new --unattended hints, spell
  labeled the US way, and keep the userConfig description under budget.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review, incremental (blocking only): no security issues found

This was an incremental review from f2569ac7 to 5a92fbbc. This lane already reviewed an earlier head, so it reports only CRITICAL and IMPORTANT findings. I read every hunk of all 4 files in .claude-lane/incremental.diff. None of them matches a TRUSTED PATHS: glob.

What was checked

  • plugins/review/agents/architecture-guardian.md. The words "such as a dependency audit" are removed from the rule that every command must target the worktree. The rule still covers every command, so it is no narrower. A new rule says "Run none of the reviewed code" (no test, script, REPL, build, install, audit or one-line invocation from the tree). It points to reference/run-reviewed-code.md. This narrows what an untrusted tree can make the reviewer run.
  • plugins/review/skills/quality-gate/context/phase-boundary.md. The same "such as a dependency audit" example is removed. The rule that every command runs against the worktree, never the invoking checkout, is unchanged.
  • plugins/review/skills/quality-gate/context/security.md. For dependency CVEs, the guidance used to say "run the ecosystem's audit command". It now says to name that command for the implementer to run in their own checkout, never in the reviewed tree. This also narrows what the reviewer runs. Under the instruction-surface lens, no protected rule is removed or weakened: the change only takes away a step where the reviewer ran a command.
  • plugins/review/evals/fanout-require-unattended-keeps-findings/samples/dismissed-not-reproduced.json. Only the wording of a dismissed line in an eval sample changes. It touches no credentials, control or run path.

No plugin manifest changed in this push. The prior summary finding listed 0 findings, so there is nothing to restate.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review (incremental, blocking only): no findings

Scope: the changes since f2569ac7. I read every hunk of all 4 files in .claude-lane/incremental.diff. This lane already reviewed an earlier head (blocking only: yes), so this review reports only blocking findings and manifest flags. It found neither.

What I checked

  • plugins/review/agents/architecture-guardian.md
    • The worktree sentence no longer mentions a "dependency audit".
    • The new "Run none of the reviewed code" paragraph links to ${CLAUDE_PLUGIN_ROOT}/reference/run-reviewed-code.md, a file this PR adds.
    • The paragraph is indented to stay inside step 2's list item, so the numbering of step 3 holds.
  • plugins/review/skills/quality-gate/context/phase-boundary.md
    • The same "dependency audit" wording is removed from the worktree-targeting brief.
    • The sentence still says every other command runs with the worktree as its directory or path argument.
  • plugins/review/skills/quality-gate/context/security.md
    • "Dependency CVEs" now tells the reviewer to name the audit command for the implementer to run in their own checkout, not to run it in the reviewed tree.
    • That matches the run-reviewed-code rule this PR adds.
  • Eval sample dismissed-not-reproduced.json
    • The ## Dismissed line now reads not reproduced: unattended run, nothing ran. That is the exact wording the stricter matcher in case.yaml line 17 looks for, and it matches the dismissed-says-nothing-ran.json positive sample.
    • It still meets the looser not reproduced matcher on line 13, so the sample stays valid for that matcher.

Manifest: no manifest change in this increment.

Closing issue: none to check. The PR refs #15833 and does not close it, so the context file has no closing-issue section.

Not verified: this lane has no shell, so I ran no eval or test.

Verifier dropped 0 of 0 candidates.

kyle-sexton and others added 5 commits November 15, 2026 12:05
…rader

The fix action now parses ## Dismissed and routes every dismissed or
low-confidence row to surface-only, whatever its class, ahead of the
cleanup and producer-owned routes; a row dismissed in any consumed file
stays dismissed after the merge.

Stage 5 writes "not reproduced: unattended run, nothing ran" in an
unattended run and keeps the labeled reason for an attended one.

The code and security reviewers run none of the reviewed code and audit
dependencies by reading manifests and lockfiles, pointing at
reference/run-reviewed-code.md.

The eval's runs-no-reviewed-code grader skips double-quoted text, catches
env -C, --prefix/-C/--cwd, npx, npm exec, corepack, bun, stdin and
heredoc input, relative script runs and scripts outside the plugin root,
and states that it sees the main session's calls only. The findings
judge reads a copied findings file and has samples; a new grader checks
the exact unattended Dismissed reason.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A package manager reads the tree's own configuration, which can name the
registry it queries and the credentials it sends, so an audit command is
not safe to run on an untrusted tree even when it builds nothing. The
reviewer agents read manifests and lockfiles and name the command that
would settle a doubt in the finding text, never in Action. A refuted
row keeps its refuted reason in an unattended run.

Refs: #15833

Co-Authored-By: Claude Fable 5.2 <[email protected]>
…r briefs

The architecture-guardian agent and the phase-boundary brief still told
reviewers that a dependency audit runs in the reviewed tree. The guardian
now carries the run-none rule, and the security mode's remediation line
names the audit command for the implementer's own checkout.

Refs: #15833

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@kyle-sexton kyle-sexton added do-not-merge Hard merge gate: do not merge while applied. and removed do-not-merge Hard merge gate: do not merge while applied. labels Nov 15, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit 6cc8b34 Nov 15, 2026
150 of 154 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-15833-43729478332-1 branch November 15, 2026 18:23
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Let the review fan-out label or require findings a run reproduced, under one shared rule for running reviewed code

1 participant