story-kit: queue 200_story_auto_prune_worktrees_for_archived_stories_in_watcher_sweep for merge

This commit is contained in:
Dave
2026-02-26 11:59:16 +00:00
parent 8836bff7cb
commit badb4edf96

View File

@@ -1,20 +0,0 @@
---
name: "Auto-prune worktrees for archived stories in watcher sweep"
---
# Story 200: Auto-prune worktrees for archived stories in watcher sweep
## User Story
As a developer, I want stale worktrees to be automatically cleaned up when their story is promoted to archived, so that disk space doesn't silently fill up over time.
## Acceptance Criteria
- [ ] When sweep_done_to_archived moves a story to 6_archived, its worktree (if any) is removed via remove_worktree_sync
- [ ] Worktrees for stories already in 6_archived at sweep time are also cleaned up (catches previously missed items)
- [ ] Worktree removal failures are logged but do not block the story file move or other cleanup
- [ ] Existing tests pass and new unit tests cover the worktree pruning logic
## Out of Scope
- TBD