Repository navigation
Take in Foreign commits that land during a Repair before pushing - #182
Merged
Merged
Conversation
take_in_foreign_commits merged one batch of Foreign commits, then ran a conflict Repair and a review Repair. Commits pushed to the Issue branch during either Repair were never fetched, so thirdshift's push was rejected and the Run failed. It now goes round again until origin has nothing new, each round counted against the upstream-move and Repair budgets. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Sep 30, 2026
Merged
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.
Summary
In a Merge run, Foreign commits pushed to the Issue branch while a conflict Repair or review Repair was running were never fetched. thirdshift's next push was rejected (
! [rejected] issue-7 -> issue-7 (fetch first)) and the Run failed.take_in_foreign_commitsnow goes round again until origin has nothing new:take_in_foreign_commits + loop foreign = new_commits_on_origin() if empty: return own_head = head count_upstream_move # budget: bounds the loop merge; on conflict → conflict Repair, ensure_merged review Repair from own_head # each round reviews only its own commitsEvidence
foreign_commits_pushed_during_the_conflict_repair_are_merged_in_and_reviewed_too, someone pushesLate committo issue-7 while the conflict Repair is resolving an earlier Foreign commit. The Run fails:cargo testsuite passes, includingforeign_commits_that_keep_coming_spend_the_upstream_move_budget.Merge Danger
Door: two-way
The change is a loop around existing code, so a plain revert undoes it.
Blast Radius: narrow
🤖 Generated with Claude Code