What problem does it solve? When returning to an interrupted swarm project, stale worktrees, orphaned git branches, and mismatched swarm identities can corrupt the resumed run. This protocol safely continues an existing approved plan from its current state by cleaning up leftover session artifacts before execution. ## Core Features & Use Cases - Plan State Detection: Reads .swarm/plan.md to determine whether to resume an existing project or start a new one via MODE: SPECIFY. - Swarm Identity Reconciliation: Detects when the plan's Swarm field differs from the active swarm id, updates plan.md and context.md, and purges stale memory blocks and SME cache entries. - Stale Worktree Cleanup: Prunes or adopts orphaned .swarm-worktrees/ lane directories and swarm-lane/* git branches via the /swarm reset-session recovery command. - New Project Bootstrap: For new projects, runs complexity_hotspots, todo_extract, and sbom_generate to build a risk map and dependency baseline. - Use Case: You return to a project after a session crash and find leftover lane branches; the protocol cleans them up and resumes at the current task without manual intervention. ## Quick Start Resume my existing swarm project from where the plan left off, cleaning up any stale worktree state first.