story-kit: create 200_story_auto_prune_worktrees_for_archived_stories_in_watcher_sweep
This commit is contained in:
@@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
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
|
||||||
Reference in New Issue
Block a user