Fix native normalization when another worktree owns main #796

Closed
opened 2026-07-30 08:51:37 +00:00 by coilyco-ops · 0 comments
Owner

The native fleet sweep attempts to switch a clean canonical checkout back to main before cleaning an inactive recoverable linked worktree that already owns main. Git rejects the switch, so normalization is skipped. Reclaim eligible unleased worktrees after proving the canonical branch is remotely recoverable and before switching, while continuing to preserve dirty, unpushed, leased, and human workdirs. Add a regression test for the main-ownership collision.

The native fleet sweep attempts to switch a clean canonical checkout back to main before cleaning an inactive recoverable linked worktree that already owns main. Git rejects the switch, so normalization is skipped. Reclaim eligible unleased worktrees after proving the canonical branch is remotely recoverable and before switching, while continuing to preserve dirty, unpushed, leased, and human workdirs. Add a regression test for the main-ownership collision.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
coilyco-flight-deck/agentic-os#796
No description provided.