Sweep live-app orphan resources
The reset-tables fix closes the orphan factory but is not retroactive — the synthesized plan scopes pre-existing populations out deliberately ("existing orphan populations belong to the sweep items"). This item is the one-time sweep of the live fleet, as inventoried 2026-11-22: k3s SceneBook production 1,097; the dev REPL's backlog 1,750 (the largest population); demos todos 11, books 21, chores 9, modelbank 10. prod-2's backlog was hand-swept 2026-11-22 — a re-report there is cheap insurance, nothing more.
Execution is the orphan-sweep skill, not new machinery: report each target, present the numbers, sweep each on Donnie's explicit per-target go-ahead (never batched), with zz_ backups + TSVs, zero-orphan verification, and an API smoke per app; note counts and TSV paths on this item's journal. Sweep only on a SAFE TO SWEEP verdict — NOT SAFE (roleless by-id or rows without resources) stops for Donnie's judgment, as prod-2's perf tag did.
After the databases are clean, re-take the demo golden snapshots: the nightly golden reset restores them as-is, so each demo's orphans re-import every night — inert, but forever. Sequencing: run this last, after both corrupt engine fixes have landed (reset-tables + insert-normal), so this sweep is the final time the cleanup is ever needed. Restore-side regrowth belongs to "Post-restore orphan resource sweep"; this item owns only the live fleet.
- Slot
- 7180
- Status
- 60 Done
- Tags
- mvp, ops, corrupt
- Contributors
- Donnie, Rosie, Rose, Grok
- Plans
- Plan: Sweep live-app orphan resources