Skip to content

ship-bot: control-plane PRs that ever had a Medium or High merge only on a clean review (row 1.305) - #378

Merged
gorfednet-ship-bot[bot] merged 4 commits into
mainfrom
row-1-305-low-strict
Dec 6, 2026
Merged

gorfednet-ship-bot[bot] merged 4 commits into
mainfrom
row-1-305-low-strict

Conversation

@gorfednet

@gorfednet gorfednet commented Dec 5, 2026 •

Copy link
Copy Markdown
Owner

Row 1.305. shipping.md's Low-strict rule says a control-plane PR that ever had a Medium or High merges only on a clean review, with every Low fixed by a push. Ship-bot dropped a resolved earlier-commit Medium and merged a replied Low at round 3.

evaluateReview now counts every reviewer thread, resolved or not. A clean verdict still passes, except when the reviewer's threads were raised on that same commit (a forced re-review), which holds on a strict PR. REVIEW.md states the rule. A control-plane PR that never had a Medium or High still merges on a replied Low.

Test: controlPlaneThreads.test.mjs updated with reasons (resolved High now holds; ops 94 case now holds), plus new near-miss (never had Medium: merges) and clean-new-head (merges). Watched failing once: with the old filter 2 blocks go red (controlPlaneThreads.test.mjs:40-43 and :76-77); restored, all pass. The same-commit clean check (forced re-review of the same head) was watched failing once with its guard removed, The reviewed-commit read (threads compared to the commit review-status says it read, so a merge of main after a forced clean keeps the head's threads) was watched failing once with the fix removed; 874 tests pass. The read parses the sha from review-status's Claude reviewed <sha> line, printed by both its direct and merge-of-main outputs; unreadable falls back to the PR head.

Self-review (fresh context): README, INCIDENTS and a comment fixed, tests added. Known limit: a PR that ever had a Medium or High and keeps getting new Lows past round 4 can't merge; that follows the "no round 4, hand back" rule.

Next

  • Merge once review is clean.
  • Live only after the owner reinstalls ship-bot.

AI-Use: L3 made undo unread (Claude Sonnet 5.5) (draft)

🤖 Generated with Claude Code

gorfednet and others added 2 commits December 5, 2026 18:30
…ly on a clean review (row 1.305)

A resolved Medium or High from an earlier commit no longer drops out of the strict check, so a replied Low
on such a PR holds until a clean review of a new head. A PR that never had one still merges on a replied Low.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
AI-Use: L3 made undo unread (Claude Sonnet 5.5)
AI-Use-Standing: https://github.com/gorfednet/ai-use-levels/blob/main/docs/delegation.md 2026-11-18
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
AI-Use: L3 made undo unread (Claude Sonnet 5.5)
AI-Use-Standing: https://github.com/gorfednet/ai-use-levels/blob/main/docs/delegation.md 2026-11-18
@gorfednet

Copy link
Copy Markdown
Owner Author

claude review

@github-actions

github-actions Bot commented Dec 6, 2026

Copy link
Copy Markdown

Reviewed the full diff (gates.mjs control-plane strictness now counting resolved earlier Medium/High threads, its block message, the updated controlPlaneThreads tests, README and INCIDENTS copy); the code, tests and docs agree, and a clean review of a new head still returns before the strict check, so there is no deadlock. No defects found.

…mmit (row 1.305)

A forced re-review of the same head can read clean while its first review's threads stand.
Also REVIEW.md states the Low-strict rule for control-plane PRs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
AI-Use: L3 made undo unread (Claude Sonnet 5.5)
AI-Use-Standing: https://github.com/gorfednet/ai-use-levels/blob/main/docs/delegation.md 2026-11-18
@gorfednet

Copy link
Copy Markdown
Owner Author

claude review

Comment thread ship-bot/lib/gates.mjs Outdated
// (plan row 1.305). A merge of main reads clean with every thread on an earlier commit, and passes.
if (requireClean || controlPlane) {
const threads = (await ctx.github.listReviewThreads(repo.slug, pr.number)).filter((t) => isReviewerUser(t.author))
const onHead = threads.filter((t) => t.comments?.[0]?.commit === sha)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Medium: this check compares threads to the PR head sha, not to the commit the clean review actually read, so a merge of main gets around it. Here's how. Head H1 is reviewed with a Medium (thread on H1). claude review force then reads H1 clean, and this branch blocks it as intended. Next, someone merges main into the branch to get head H2. review-status.mjs (lines 62-86) takes the newest review, which is the forced clean one of H1, accepts H2 as clean merges of main, and prints clean. Now onHead compares the threads' originalCommit (H1) with H2, finds nothing, and the PR merges. The Medium was never fixed and no new head was ever reviewed. That's exactly what row 1.305 and the REVIEW.md rule ("holds until a clean review of a new head") say can't happen, on control-plane and bot-readied PRs alike. The comment on the line above even calls this path the one that "passes". Fix: compare against the head the clean verdict reviewed (review-status prints it as Claude reviewed <base> (clean); … clean merges of main, or expose it in a parseable way), or block whenever any reviewer thread was raised on that reviewed head. Then add a test case: same-commit threads, then a merge-of-main head that reads clean.

@github-actions

github-actions Bot commented Dec 6, 2026

Copy link
Copy Markdown

Reviewed the full diff (ship-bot evaluateReview's row 1.305 changes, the test updates, and the REVIEW.md, README and INCIDENTS text). Found one Medium: the new same-commit check compares threads to the PR head, so after a forced clean re-review, merging main gets a PR with an unfixed Medium past it.

…he PR head (row 1.305)

A merge of main on top of a forced-clean head no longer sheds that head's threads.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
AI-Use: L3 made undo unread (Claude Sonnet 5.5)
AI-Use-Standing: https://github.com/gorfednet/ai-use-levels/blob/main/docs/delegation.md 2026-11-18
@gorfednet

Copy link
Copy Markdown
Owner Author

claude review

@github-actions

github-actions Bot commented Dec 6, 2026

Copy link
Copy Markdown

Reviewed the full diff (ship-bot's evaluateReview clean-verdict and Low-strict thread changes, their tests, and the REVIEW.md / README / INCIDENTS text) against review-status's output and the GitHub thread reader (originalCommit); found no defects.

@gorfednet
gorfednet marked this pull request as ready for review December 6, 2026 03:37
@gorfednet gorfednet added the ready-to-merge Gates read; ship-bot merges label Dec 6, 2026
@gorfednet-ship-bot
gorfednet-ship-bot Bot merged commit 1430bc8 into main Dec 6, 2026
8 checks passed
@gorfednet-ship-bot

Copy link
Copy Markdown
Contributor

Merged as 1430bc8; deploying is a session's job for this repo (merging is the fleet rollout: every repository's CI uses these workflows at @main).

@gorfednet-ship-bot
gorfednet-ship-bot Bot deleted the row-1-305-low-strict branch December 6, 2026 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge Gates read; ship-bot merges

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant