Repository navigation
fleet: merger routes conflicting children of approved upstreams - #4930
Merged
Merged
Conversation
A stacked child that goes CONFLICTING while it carries the reviewer's fleet:awaiting-upstream-review hold had no lane: reviewers admit no conflicting PR, the conflict worker only takes a label the merger mints, and the merger projection woke for an unapproved conflict only on a native-stack root whose base is master. The editor stack sat that way for a day after its base was reworked in place, and again on each layer above as the lower layers were replayed. The merger projection now carries a stacked-child-conflict row for a conflicting unapproved child whose open upstream is approved, the point at which the upstream's diff is frozen and a rebase onto it is stable. tier-0 already routes any conflicting PR without a skip label to the LLM pass, which rebases a stacked child against its own base, and the reviewer admits the child once it is MERGEABLE again. A child under an unapproved upstream still waits, since the next amend would redo the resolution. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
jakildev
commented
Nov 6, 2026
jakildev
left a comment
Owner
Author
There was a problem hiding this comment.
Review — fleet: merger routes conflicting children of approved upstreams
Verdict: approve
The new projection row correctly makes a conflicting stacked child actionable only after its open upstream has an approval label, while preserving the existing parked behavior for an unapproved upstream. Centralizing the approval predicate also keeps reviewer and semantic-conflict admission consistent.
Validation
python3 scripts/fleet/tests/test_merger_projection.py— 76 tests passed.python3 scripts/fleet/tests/test_fleet_merge_class.py— 41 tests passed.bash scripts/fleet/tests/test_dispatcher_merger_targets.sh— 46 passed, 0 failed.- GitHub checks:
python-lintpassed; the remaining PR checks were queued at review time and are unread, not treated as green.
🤖 Reviewed by Codex (GPT-5, review-pr skill)
Opus recheck not required.
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
fleet:awaiting-upstream-reviewhad no lane:_reviewableadmits no conflicting PR, the semantic-conflict worker lane only takes a label the merger mints, andproject_mergerwoke for an unapproved conflict only on a native-stack root whose base is master. The editor stack editor: reserve camera gestures and diagnose shadow snapping #4883…editor: saved dock layouts and Option shortcut hints #4903 sat that way for a day after editor: align voxel placement and construction grids #4882 was reworked in place, and each layer above went dark in turn as the layer below it was replayed.project_mergernow emits astacked-child-conflictrow for a conflicting unapproved child whose open upstream carriesfleet:approvedorhuman:approved: that is the point at which the upstream's diff is frozen and a rebase onto it is stable. tier-0 (fleet-rebase) already routes any conflicting PR without a skip label to the LLM pass as amerge:target, role-merger step a.5 rebases a stacked child against its own base, and the reviewer admits the child once it is MERGEABLE again. Under an unapproved upstream the child still waits, since the upstream's next amend would redo the resolution; a merged upstream is the existing stack-root rule.fleet-labels-reference.mddocuments the hand-off on thefleet:awaiting-upstream-reviewentry._upstream_approved(head_labels, base_ref), used by the new row, by_semantic_conflict_claimableand by_upstream_review_gate_holds; the second, identical frozenset the reviewer gate read (_UPSTREAM_APPROVAL_LABELS) is gone.Test plan
python3 scripts/fleet/tests/test_merger_projection.py: 76 tests OK, including the newStackedChildConflictWakeclass (upstream approval flips the hash and projects the row; human approval counts; merger-set labels leave row and hash unchanged; MERGEABLE, skip labels and claim prefixes drop the row; an approved child isneeds-resolve; a master-based child is the stack-root rule; the child is anllmmerger candidate in the slice).python3 scripts/fleet/tests/test_fleet_merge_class.pyOK (the automerge blocking set still covers the merger's skip sets);bash scripts/fleet/tests/test_dispatcher_merger_targets.sh: 46 passed, 0 failed.ruff check scripts/clean;python3 scripts/lint_comment_refs.py --against origin/masterclean;python3 scripts/lint_instruction_size.py --against origin/master:fleet-labels-reference.mdat 419 lines against its 414 budget, inside the 10-line band.Notes for reviewer
The row only wakes the lane; routing and resolution are the existing paths (tier-0
llm_verdict, role-merger a.5,_semantic_conflict_claimablefor a non-mechanical rebase, which already lifts the hold once the upstream is approved).🤖 Generated with Claude Code