feat(dev): lab — unified teardown + worktree/branch cleanup [worktrees 2/3] #135
Labels
No labels
bug
enhancement
in-progress
needs-info
needs-triage
p0
ready-for-agent
ready-for-human
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Cloonar/nixos#135
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
Cloonar/nixos#133 (full settled design).
What to build
Collapse all teardown onto one guarded rule and add the cleanup sweeps, so parked worktrees/branches don't leak.
afkRunsMu/afkStarts).<project>-<label>worktree with no live<project>~<label>session) gets guarded teardown; every mergedlab//afk/branch + its worktree is deleted.git branch --merged origin/<default>→ auto-delete mergedlab/andafk/branches + their clean worktrees. Never touch dirty/unmerged.This also finally GCs merged
afk/<N>branches, which lab currently keeps forever.Acceptance criteria
lab/andafk/branches + their clean worktrees are deleted at runtime; dirty/unmerged are never auto-removed.go test ./...passes.Blocked by
Cloonar/nixos#134