Skip to content

fix(review): gate the code-review plugin only in its --comment form - #13045

Merged
kyle-sexton merged 2 commits into
mainfrom
work-resolve-issue/issue-13010-41758335948-1
Nov 4, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
work-resolve-issue/issue-13010-41758335948-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #13010

Summary

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

The upstream code-review command now prints findings to the terminal by default and posts to GitHub only with --comment. quality-gate's PR mode now gates only that form and lists the default run as an optional read-only pass beside the bundled /code-review. It notes that the read-only default rests on the command's instructions, not its allowed-tools, and names the step-1 early stops. The pointer record is re-dated 2026-11-04 with the recorded recheck trigger. Following the recorded decision (comment 6620520446), fanout's SKILL.md, findings-normalization.md and the post-to-PR eval's expected output now describe posting as the --comment form only. Fanout still dispatches the plugin only on opt-in, passing --comment, and the no-dispatch-without-opt-in assertion stays. The same change also corrects the stale 0-100 confidence-scorer description to the command's validation subagents.

Not verified

  • Review finding left for follow-up (it predates this change and is out of this issue's scope): the fanout fetch-back in findings-normalization.md (jq filter at lines 25-31, rationale at line 36) expects one issue comment starting '### Code review' with a 'Generated with [Claude Code]' trailer.…
  • fanout eval case 11 (evals.json:134) still asserts that a high (>=80) confidence-filtered score maps to 'high'. Its scenario is a generic confidence-filtered surface, and no current surface emits a 0-100 score. I left it unchanged; a follow-up could restate it in terms of validated issues.
  • ai-slop:audit's deterministic detector (detect.sh) did not run: this lane's Bash allows only the named wrappers. The tidy pass used the rubric read only, which found no tells in the changed lines.
  • CI-only checks (evals-schema, lychee-offline, purged-em-dashes, cant-fail-scan, line-citations and the other CI-only rows check-affected lists) are left to the PR's CI.
  • No build or test suite applies to these markdown and eval-JSON edits. A JSON parse of evals.json was not run; the check-evals-quality pass read the file successfully.

Fix

  • plugins/review/skills/quality-gate/context/pr.md: the plugin bullet describes the terminal default, notes that it rests on the instructions rather than allowed-tools, and names the early stops (closed or draft PR, no review needed, Claude already commented). The pointer adds…
  • plugins/review/skills/fanout/SKILL.md: the code-review bullet no longer says the plugin has no session mode. It says the default terminal output has no parse contract, so fanout does not dispatch it, and an opted-in dispatch passes --comment. 'confidence scorer' becomes 'validation subagents'.
  • plugins/review/skills/fanout/context/findings-normalization.md: the parse-contract row's confidence column becomes none (validation subagents drop unconfirmed issues). The fetch-back paragraph names the --comment form. The Stage 2 mapping maps the plugin's validated issues to high, which keeps the…
  • plugins/review/skills/fanout/evals/evals.json: case 6's expected_output names the plugin's --comment form instead of saying it always comments. The assertions are unchanged.
  • .changes/review/work-resolve-issue-issue-13010-41758335948-1-82dbebce.md: new patch changelog fragment for the review plugin.

Verification

The runner ran each check from the base copy against 2f109ca:

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

The run reports:

  • read https: //raw.githubusercontent.com/anthropics/claude-plugins-official/main/plugins/code-review/commands/code-review.md: step 7 says 'If --comment argument was NOT provided, stop here. Do not post any GitHub comments.' With --comment and no issues it posts a summary via gh pr comment; step 9…
  • read https: //raw.githubusercontent.com/anthropics/claude-plugins-official/main/plugins/code-review/README.md: the Commands section says the command 'Outputs review (to terminal by default, or as PR comment with --comment flag)' and that --comment defaults to terminal-only output.
  • check-changelog-fragments: all 64 fragments valid (run before and after tidy and after the review fixes).
  • check-changed-skills: fanout and quality-gate PASS with 0 errors. The warnings are about description length, body size and fresh-eyes wording that this change did not touch.
  • check-affected: 11 passed, 7 skipped, the rest CI-only, over 5 changed files.
  • check-evals-quality on plugins/review/skills/fanout/evals/evals.json: PASS. Its 2 warnings are on cases 39 and 40, which this change did not touch.
  • Fresh-context review subagent: all five acceptance items met and the upstream claims match. I fixed three of its findings: a long line in pr.md, the missing 'no review needed' stop, and the stale 'plugin-filtered high scores' mapping.
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41758335948

Left out: the items under Not verified.

Related

#13010

Lane-Activity: work-resolve-issue/resolve-issue

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

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review (incremental): PR #13045, changes since 2f109cab

Scope: I read every hunk of both files in the incremental change: plugins/review/skills/fanout/context/findings-normalization.md and plugins/review/skills/fanout/evals/evals.json. I used the PR context and this lane's prior findings for reference. Read 2 of 2 files.

The earlier inline finding is fixed (discussion_r4462823138):

  • Fanout eval case 11 now describes the code-review plugin surface returning validated issues with no native severity. Its confidence expectation now says "A code-review plugin validated issue maps to the confidence enum 'high', NOT to a high severity tier". That matches the Stage 2 rule at findings-normalization.md:62, so the eval no longer checks a numeric-score rule the skill dropped.
  • The parse-contract row at findings-normalization.md:16 now says "→ high in Stage 2". That removes the clash with the rule "surfaces emitting none → unscored".
  • I found no new problems in these hunks.

Restated summary finding (1, advisory, no line anchor): this is the earlier finding at plugins/review/skills/quality-gate/context/pr.md:52 that could not be posted inline. Restated from issuecomment-6620757178; this push does not change it.

  • Issue fix(review): quality-gate pr mode assumes code-review always posts; it now outputs to the terminal by default #13010 requires: "The Mutation gate in pr.md covers /code-review:code-review only with --comment, and the plugin's default run is listed as an optional read-only pass beside the bundled command."
  • The text at pr.md meets that requirement. But no eval in plugins/review/skills/quality-gate/evals/evals.json tests how PR mode handles the marketplace plugin, so two regressions would pass every check:
    • gating the plugin unconditionally again;
    • removing --comment from the gate.
  • Fix: add a PR-mode eval that asserts both points. A default run is offered as read-only without opt-in, and a --comment run is held back unless the user opts in.

Manifest: this push changes no plugin.json or marketplace.json.

Verification: I ran no checks; this lane has no shell. The author reports that check-evals-quality and the other checks passed. That is the author's claim, and I did not confirm it.

I found no embedded instructions in the PR context or the prior-findings data.

@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-security-review: 1 inline finding(s) on 2f109cabf22ddd2ca056e55fac4bca5ab2d19608; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #13045 (incremental since 2f109cab)

No new security issues. This review covers only the push since 2f109cabf22ddd2ca056e55fac4bca5ab2d19608. I read every hunk of both files in its scope.

  • plugins/review/skills/fanout/context/findings-normalization.md: one row of the parse-contract table changes. It now says the code-review plugin's validated issues map to confidence high in Stage 2. This is documentation only: no gate, permission, tool grant or dispatch rule changes.
  • plugins/review/skills/fanout/evals/evals.json: eval case 11 changes its scenario prompt, its expected output and one expectation, so they name the code-review plugin's validated issues instead of a 0-100 confidence score. The case still asserts that passing a confidence filter is never treated as a severity tier, and that unclear findings are tagged pending: human-tier. No assertion that blocks dispatch or posting is removed or weakened.

What I checked:

  • Trusted paths: neither file matches a listed glob.
  • Trust controls: neither file is one; nothing is widened.
  • Plugin manifests: none changed.
  • Instruction surfaces: no standing instruction is deleted, narrowed or softened. Fanout still dispatches the code-review plugin only when the user opts in.

Prior finding still open: the pr.md finding from the last round is unchanged, since that file is not part of this push and its lines have not changed. Its thread stays open and the finding is counted here.

Embedded text: the PR context contains no instructions aimed at this lane.

Spend: none. This push adds no lane runs, models or schedules.

critical-findings: 0

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 2f109cabf22ddd2ca056e55fac4bca5ab2d19608.

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM6zawEB
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on ad1fe81.

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 4, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped address-feedback on this pull request: the lane left a review finding open and no adjudicator verdict settled it: none was recorded, it found the finding does not hold where the lane had not disputed it (an UNCERTAIN or VALID-defer reply), which only an INCORRECT reply lets a verdict resolve, it found the finding asks only for tests whose covering check runs had not all passed when the round began, or it raised a security question on a finding the security-review lane rated below CRITICAL; so a session builder takes it. The lane labels it needs-session for a session builder, who makes the change this lane cannot, and the run ends in a failing pr-unblock/address-feedback status on the head the lane gated.

When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean.

To run it again on this head now, dispatch the pr-unblock workflow:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=13045 -f activity=address-feedback

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head ad1fe810c3e018847e465cdd156ff9c8750b4168. The lanes clear this reason on their own; the next scheduled run judges it again.

a pr-unblock lane stopped its head (pr-unblock/address-feedback is failure), which clears when the
  lane runs again

@kyle-sexton kyle-sexton removed the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 4, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 4, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 2 of max 4 on ad1fe81.

Merged via the queue into main with commit 337dfc1 Nov 4, 2026
89 of 90 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-13010-41758335948-1 branch November 4, 2026 03:14
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.

fix(review): quality-gate pr mode assumes code-review always posts; it now outputs to the terminal by default

1 participant