Mission Run Overview

Mission Run: Session-scoped test reaper + /tmp prompt namespacing + workspace-context tombstone

Fix the still-live test-suite state leaks (#1842, subsumes #1634): a controller-gated session reaper that self-heals test-created missions/branches/worktrees + /tmp prompt residue, /tmp prompt-writer namespacing (LC-3/4), the 144MB spec-kitty-test-homes leak (N1), and the workspace-context tombstone on merge/cancel (LC-6).

A fresh re-audit of d63ec2152 (Stijn's 2026-06-11 audit is 4 weeks stale) shows 5 of 8 leak classes already fixed. Still live: LC-3/LC-4 flat-/tmp prompt writers (prompt_builder.py, workflow.py — unbounded spec-kitty-next-* accumulation), N1 (/tmp/spec-kitty-test-homes/<run_uid>/ never cleaned, 166 dirs/144MB), and LC-6 (.kittify/workspaces/*.json never tombstoned on merge/cancel — 14 orphans for merged missions 059/060). No session reaper exists; LC-1's fix is masked by .gitignore:143-144 (hides regressions). Build on #2181's frozen /tmp ratchet; defer the 99-file ratchet burn-down.

Total Tasks
3
0 planned
In Progress
0
Review
0
Approved
0
Completed
3
100% done

Available Artifacts