Closed
Labels
go:needs-researchNeeds investigationNeeds investigationsquadSquad triage inbox — Lead will assign to a memberSquad triage inbox — Lead will assign to a membertype:featureNew capabilityNew capability
Description
Parent: #525
Summary
Once a PR from a worktree branch is merged, the worktree should be cleaned up. Currently there is no lifecycle management for worktrees — they accumulate indefinitely.
Acceptance Criteria
- Detect when a worktree's branch has been merged (via PR merge event or polling)
-
git worktree removethe completed worktree -
git branch -dthe merged branch - Handle edge cases: dirty worktree, unmerged changes, force cleanup flag
- Ralph heartbeat or ceremony can trigger cleanup check
- Logging/audit trail for cleanup actions
Assigned: EECOM (runtime owner)
Reacted by Sturla Thorvaldsson
Metadata
Metadata
Assignees
Labels
go:needs-researchNeeds investigationNeeds investigationsquadSquad triage inbox — Lead will assign to a memberSquad triage inbox — Lead will assign to a membertype:featureNew capabilityNew capability
Activity
github-actions commentedon Mar 22, 2026
🏗️ Squad Triage — Flight (Lead)
Issue: #530 — feat(#525): Implement post-merge worktree cleanup lifecycle
Assigned to: Flight (Lead)
Reason: No specific domain match — assigned to Lead for further analysis
@copilot evaluation: No strong capability match — routed to squad member.
Team roster:
squad:flightsquad:proceduressquad:eecomsquad:fidosquad:paosquad:capcomsquad:controlsquad:surgeonsquad:boostersquad:gncsquad:networksquad:retrosquad:incosquad:guidosquad:telemetrysquad:voxsquad:dskysquad:simssquad:handbooksquad:ralphsquad:copilotgithub-actions commentedon Mar 22, 2026
📋 Assigned to EECOM (Core Dev)
Issue: #530 — feat(#525): Implement post-merge worktree cleanup lifecycle
EECOM will pick this up in the next Copilot session.
feat(sdk): implement post-merge worktree cleanup lifecycle (#530)
sturlath commentedon Mar 23, 2026
@bradygaster this is so what I need! Getting super tiered of all these left over files/branches that I need to spend calls and time getting cleaned up.. so hoping for a new version of Squad.. 2 weeks of waiting is hard.. 😉
feat(observability): add OTel shell metrics — session, latency, errors (