---
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
