What problem does it solve? Finishing a coding task often leaves loose ends: stale documentation, unrecorded session troubles, unmerged branches, and leftover worktrees. Running cleanup steps in the wrong order means doc edits miss the commit, and skipping docs governance leaves guides out of sync with the code that just shipped. ## Core Features & Use Cases - Ordered closeout orchestration: Runs origin-permission-audit (when elevated access was granted), then origin-trouble-log, then origin-doc-update, then origin-git-cleanup so docs land in the same commit as the code. - Gated merge handling: Respects human-gated merge policies by stopping at a committed, pushed, open PR instead of forcing a merge to main. - Safe destructive cleanup: Commits, pushes, and merges autonomously, but requires confirmation before deleting branches, worktrees, or refs the session did not create. - Use Case: After a PR is merged, invoke it to record session troubles, update the workstream docs and ADRs, commit everything together, sync main, and remove only approved stale branches. ## Quick Start Ask the assistant to wrap up this finished task and get the repository back to a clean, synced main with docs updated.