Repository navigation
ship-bot: control-plane PRs that ever had a Medium or High merge only on a clean review (row 1.305) - #378
Conversation
…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
|
claude review |
|
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
|
claude review |
| // (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) |
There was a problem hiding this comment.
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.
|
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
|
claude review |
|
Reviewed the full diff (ship-bot's |
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.
evaluateReviewnow 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.mjsupdated 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'sClaude 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
AI-Use: L3 made undo unread (Claude Sonnet 5.5) (draft)
🤖 Generated with Claude Code