fix(ship): recheck pull requests before transition dispatch - #2234
Merged
Merged
Conversation
Co-Authored-By: coreplane-switchboard[bot] <318072483+coreplane-switchboard[bot]@users.noreply.github.com>
coreplane-switchboard
Bot
requested a review
from justinhelmer
as a code owner
September 22, 2026 20:38
Contributor
Author
There was a problem hiding this comment.
LGTM: The fresh PR-facts guards close the transition races without weakening existing review or coordinator behavior.
Note
Approved · head 6be601e · no findings
Full review
No findings. The transition guards consistently fail closed on stale, deleted, or unreadable pull request heads.
Contributor
Author
There was a problem hiding this comment.
LGTM: The fresh pull-request reads correctly fail closed and preserve the coordinator's transition invariants.
Note
Approved · head 6be601e · no findings
Full review
No findings; the fresh transition reads and fail-closed handling are consistent with the coordinator’s state invariants.
This was referenced Sep 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ship transitions now re-read pull request state, head, and branch existence before posting or dispatching follow-up work. Deleted, moved, closed, merged, or unreadable heads therefore fail closed instead of advancing stale work.
Why: Closes the remaining three findings on #2208. After #2221 landed, these stale-read paths were the remaining contradictions of agent-ship items 9 and 10.
Where to look
Feedback wanted: Please focus on whether every dispatching rebase outcome is held behind the fresh pr-check and whether recovery preserves durable retry semantics.
Risk: The blast radius is ship review posting and coordinator follow-up dispatch. A mistake can suppress a valid transition or act on stale GitHub state; rollback is the single commit.
Verified: Passed 454 targeted tests, root TypeScript, changed-file Prettier/ESLint, hygiene, specs, and specs coverage; CI remains the merge gate.
Decisions (2)
Validation (5 criteria)
For agents
Rebased onto origin/main at 3dd0af6 immediately before the final gate run and push. The implementation commit is 6be601e. The three regressions are bound to agent-ship items 9 and 10 in docs/reference/specs/agent-ship.md.
Requested by @justinhelmer in slack:C0BRRHKFLCB
🤖 Generated with Claude Code