Fixed
- Wave-cadence worktree cleanup — Worktrees now cleaned up after wave PR merges (was deferred to pm-finalizer)
- Eventual-consistency reaper — Added
cleanup_orphaned_worktrees()that runs on PM startup - False hook documentation — Removed claims about native Claude Code hooks handling cleanup
Added
/karimo:doctor --fix— New flag to clean orphaned worktrees- Cleanup library — Extracted cleanup functions into
.karimo/scripts/lib/cleanup.sh - Bats test suite — Added
.karimo/tests/cleanup.batswith 20 tests
Changed
merge_wave_to_feature()now actually cleans up task worktrees (was NO-OP)- State reconciliation now runs
cleanup_orphaned_worktrees()after reconciliation - Documentation updates in ARCHITECTURE.md, SAFEGUARDS.md, pm-finalizer.md
For users on 9.10.x or earlier
Run /karimo:doctor --fix after upgrading to reclaim leaked worktrees from prior runs.
See CHANGELOG.md for full details.