Skip to content

feat(dispatcher): note a skipped critic on a small member PR - #264

Merged
Ardnived merged 2 commits into
mainfrom
claude/member-critic-skipped
Nov 17, 2026
Merged

Ardnived merged 2 commits into
mainfrom
claude/member-critic-skipped

Conversation

@Ardnived

@Ardnived Ardnived commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

What

A member's ready PR under review.skipWhen now gets the same Adversarial review skipped: … Say @sydevs-bot review to force one. comment that a small bot draft gets. Follow-up to #261.

Failure it prevents

Since #261 a small member PR goes straight to the reviewer request. With no note, the reviewer cannot tell "the critic found nothing" from "the critic never ran", and does not know how to force one.

How

  • dispatcher/decide.mjs: one criticSkipped() helper builds the message for both paths.
  • Member path: keyed critic-skipped (once per PR, not per head), because this path runs on every pass of a ready PR the member keeps pushing to.
  • Planned whenever the critic was skipped, the member's own reviewer request included: that is the case the note exists for, and apply.mjs skips the duplicate request on the same field. commentOnce keeps it to one.
  • Not planned when the critic was forced on a small PR (ownReview).
  • docs/why.md#the-critic-skips-small-prs says so.

Dispatcher-only change: no skill edit, so no plugin version bump.

Tests

node --test dispatcher/test/*.test.mjs workflow/lib/*.test.mjs: 480 pass, 0 fail. The member lifecycle test now checks the note's key and text, the note with a reviewer already requested, and no note after a forced critic.

🤖 Generated with Claude Code

A bot draft under review.skipWhen gets a comment saying the critic was
skipped and how to force one. Since #261 a member's ready PR follows the
same gates, but a small one went straight to the reviewer request with no
note, so the reviewer could not tell "the critic found nothing" from "the
critic never ran".

The member path runs on every pass of a ready PR, and a member keeps
pushing to it, so the note is keyed once per PR rather than per head, and
planned only while no reviewer is requested: commentOnce lists the PR's
comments each time it is planned, and a quiet pass should not pay that.

The message is shared with the bot-draft path through one helper.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 16, 2026
@sydevs-bot

sydevs-bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

🤖 no session running

recent dispatches
  • 23:08Z address-review · attempt 1 · session · done
  • 23:08Z address-review · attempt 1 · session
  • 23:02Z review-pr · attempt 1 · session · done
  • 23:02Z review-pr · attempt 1 · session

Written by the sydevs dispatcher. Sessions never edit this comment.

@sydevs-bot sydevs-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.

🧐 Adversarial review

The diff is the size of its problem: one helper with two callers, one condition, one paragraph. Nothing is smuggled in, and criticSkipped() pays rent at both sites. One finding, on the new guard rather than the note.

requestedReviewers is not this plan's own state. A member fills it by asking for a reviewer when they open the PR, and GitHub empties it at the first submitted review. Guarding on it suppresses the note in a real case and buys a saving that expires. commentOnce already carries the once-per-PR promise the key encodes.

Findings

  • should-fix — the requestedReviewers guard hides the note when the member asked for the reviewer themselves. dispatcher/decide.mjs:579, thread below. Dropping it also drops its three-line comment and the why.md sentence.

What was checked

  • Ticketless repo, so judged against the PR body. 3 files, +23/-6.
  • dispatcher/decide.mjs read whole on the branch: evaluateGreenPr, criticSkipped, underThreshold, ownReview, commentOnce (:24), and its apply side (apply.mjs:28), requestReviewer and reviewerFor (apply.mjs:238, :413), and gather.mjs:307, which fills requestedReviewers.
  • Ladder on the one new piece, criticSkipped(): two callers, replaces a duplicated literal, no sibling in the file does it. Holds.
  • Reachability: at :579 underThreshold is necessarily true, from the early return at :574, so the note's wording is always accurate. Key critic-skipped cannot collide with the draft path's critic-skipped <sha>, because a member draft returns at :484.
  • node --test dispatcher/test/*.test.mjs workflow/lib/*.test.mjs from a worktree: 480 pass, 0 fail, as the body says.
  • evaluatePr run directly on a small member PR, with and without requestedReviewers, for the finding.
  • No CI, no preview, no contract surface touched.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

Comment thread dispatcher/decide.mjs Resolved
@sydevs-bot sydevs-bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Nov 16, 2026
The guard hid the note in the one case it exists for. A member who requests a
reviewer when they open a small PR arrives with `requestedReviewers` already
filled, so the note was never planned — and apply's `requestReviewer` breaks
early on the same field, so nothing at all told the reviewer the critic had
been skipped or how to force one.

The saving it bought also expires: GitHub clears `requested_reviewers` when
that reviewer submits, so from the first review the note is planned on every
pass regardless. `commentOnce` already carries the once-per-PR promise the
`critic-skipped` key encodes, so the guard was paying for nothing.

Raised by the adversarial review on #264.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjWmZP6U3jkGnrX7qaQ
@sydevs-bot

Copy link
Copy Markdown
Contributor

One finding, adopted.

Adopted — the requestedReviewers guard hid the note in the case it exists for. Dropped in 7d7d351, with its comment and the why.md sentence about it.

A member who asks for the reviewer when they open a small PR arrives with the field filled, so the note was never planned — and apply.mjs:246 skips the request on the same field, so nothing told the reviewer the critic had not run. The saving expired too: GitHub clears requested_reviewers at the first submitted review, after which the note was planned on every pass regardless. commentOnce already keys it once per PR.

Nothing rebutted, nothing asked. Base is current, so no merge. Lean gate green, 480 tests pass. Body refreshed: the ## How bullet about the guard was false.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 16, 2026
@sydevs-bot sydevs-bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 16, 2026
@Ardnived
Ardnived merged commit fb2e53b into main Nov 17, 2026
23 of 24 checks passed
@Ardnived
Ardnived deleted the claude/member-critic-skipped branch November 17, 2026 00:33
@sydevs-bot sydevs-bot moved this from Awaiting to Done in SYDevelopers Technical Roadmap Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants