Goal
The durable run folder is removed on terminal completion and ONLY on terminal completion (it survives a non-terminal exit so resume works).
Implementation Sketch
Add a terminal-completion cleanup that removes .impl-hygiene-run/<run_id>/ when the run reaches its terminal phase (Phase 5 present / Phase 6 done). A non-terminal exit (mid-walk interruption) leaves the folder so §01 resume can pick it up.
Spec References
scripts/impl_hygiene_review_runtime/state.py (cleanup); CLAUDE.md §ZERO DEFERRAL (no temp accumulation).
Work Items
- Remove the durable run folder on terminal completion; leave it intact on a non-terminal exit.
- pytest: folder removed on terminal completion; folder survives a simulated non-terminal exit.
Fresh intel (regenerated)
{ “schema_version”: 1, “target”: { “kind”: “plan-section”, “ref”: “impl-hygiene-review-run-lifecycle/s-af201457” }, “generated_at”: “2026-06-21T16:50:29.854071+00:00”, “graph_state”: { “head_sha”: “45796766”, “last_code_import_at”: “2026-06-21T16:17:17.476Z”, “embedding_stale”: false, “insights_stale”: false, “cpg_stale”: false }, “surfaces”: {}, “summary”: “intel-package[plan-section:impl-hygiene-review-run-lifecycle/s-af201457] agent-authored dossier”, “degraded”: false, “dossier”: { “objective_symbols”: [], “tiers”: {}, “agent_authored”: true, “difficulty”: { “class”: “routine”, “research_online”: false, “research_mode”: “auto”, “signals”: [], “plan_dir”: “/home/eric/projects/ori_lang/plans/impl-hygiene-review-run-lifecycle” } } }
(full dossier: run-cleanup—s-af201457.intel.json)