Bail-out protocol: always reflect FIRST, then clean up. All commands use absolute paths and . Inputs - : absolute path to current worktree (or primary if no worktree) - Optional reason string (if not provided, ask for one) Steps 1. Detect current step by examining what exists: | What exists | Estimated step | |------------|---------------| | Just an issue, no branch | Step 0 (Capture) | | .branch-context.md, no worktree | Step 1 (Orient) | | Worktree exists, no code changes | Step 2 (Isolate) | | Plan file on branch | Step 3-4 (Design/Review) | | Code changes committed | Step 5-7 (Build/Verif…