Skip to content

fleet: merger routes conflicting children of approved upstreams - #4930

Merged
jakildev merged 1 commit into
masterfrom
claude/fleet-stacked-child-conflict
Nov 6, 2026
Merged

jakildev merged 1 commit into
masterfrom
claude/fleet-stacked-child-conflict

Conversation

@jakildev

@jakildev jakildev commented Nov 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • A stacked child that goes CONFLICTING while it carries fleet:awaiting-upstream-review had no lane: _reviewable admits no conflicting PR, the semantic-conflict worker lane only takes a label the merger mints, and project_merger woke 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_merger now emits a stacked-child-conflict row for a conflicting unapproved child whose open upstream carries fleet:approved or human: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 a merge: 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.md documents the hand-off on the fleet:awaiting-upstream-review entry.
  • The upstream-approval lookup now has one home, _upstream_approved(head_labels, base_ref), used by the new row, by _semantic_conflict_claimable and 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 new StackedChildConflictWake class (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 is needs-resolve; a master-based child is the stack-root rule; the child is an llm merger candidate in the slice).
  • python3 scripts/fleet/tests/test_fleet_merge_class.py OK (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/master clean; python3 scripts/lint_instruction_size.py --against origin/master: fleet-labels-reference.md at 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_claimable for a non-mechanical rebase, which already lifts the hold once the upstream is approved).

🤖 Generated with Claude Code

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 jakildev added fleet:author-claude Implementation last authored by Claude; route review to Codex fleet:authored-on-windows PR was opened from a Windows (MSYS2) host labels Nov 6, 2026

@jakildev jakildev left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

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-lint passed; 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.

@jakildev jakildev added fleet:approved Fleet reviewer approved — ready for human merge and removed fleet:reviewing-mac-pool-1 labels Nov 6, 2026
@jakildev
jakildev merged commit b25ac87 into master Nov 6, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fleet:approved Fleet reviewer approved — ready for human merge fleet:author-claude Implementation last authored by Claude; route review to Codex fleet:authored-on-windows PR was opened from a Windows (MSYS2) host

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant