fix: guard repair cleanup and capture ownership

Closed
TH
2mo ago
+95-31

Summary

Repair tombstone reads and removal now verify the stored address, including when two names sanitize to the same artifact directory. Malformed evidence stays intact; expired owned markers can be removed. Test publication also respects an explicit scoped address.

Capture controls distinguish a different handle under the same token and generation. Record-only capture publishes a new draft record through its declared owner. Legacy cutover tests wait for a complete, parseable verdict rather than file existence.

10 files; 126 gross lines. Addresses review findings on #3132, #3138 and #3140. Part of #3116, stacked on #3141.

Validation

Head 958983efee: 97 focused tests passed; quick checks and parent-scoped Fallow passed. Seven fault-injection runs failed at the intended assertions, including actual child-process partial publication. Restored focused tests pass. The ownership gate failed before declaring the real draft construction owner and passed afterward.

Independent read-only audit found no actionable findings. pnpm check:affected --base refactor/session-snapshot-lifetimes --run passed on this head, including 2,797 related tests and all selected local gates. CI and live device validation remain pending.