fix(daemon): retain cleanup locks and preserve healed snapshots
Merged
TH
1mo ago+798+798+012345678901234567890123456789-128-128-012345678901234567890123456789
Summary
- Keep session/device execution locks through binding and claim cleanup on every outcome (ADR 0019).
- Retain authored snapshots and explicit repair-time
--recordcorrections in healed scripts (ADR 0012). Exclude diagnostic and foreground composite captures. - CLI/MCP ingress now distinguishes per-call intent from project
record: truedefaults; SDK per-call recording stays explicit. - Both fixes close the same ADR-conformance audit (#3744). Twenty-three files; scope includes foreground composition and recording ingress. Binding disposal remains unbounded; existing disposers acquire no execution locks.
Validation
- Tested SHA:
a46bcdce611309463f5cc91749f9cc8efaac6402, rebased onto0563666b09a09b2de039507307d38239dabee272. - Locked install/build; full-repository
pnpm format; 180 focused tests passed. Publication tests use default CLI/MCP ensured clients and SDK HTTP transport against the public daemon runtime; HOME/USERPROFILE remain isolated. - Exact-head affected gate: passed,
run-0VMDJP,exactCommit=true,checkoutChanged=false; nine checks and 3,601 tests passed, seven parked/GitHub-owned skips. Self-reviewed; no independent review or live device run for this rebase. - Quiesce counts dispatch through binding cleanup, so a held cleanup refuses quiesce as
daemon-busywithout acquiring its execution lock. - CI at prior head
d7bdb0d70e: guards, integration, coverage, lint/package, docs, preview, size, native fingerprint, CodeQL and two smoke jobs passed; two smoke jobs queued, cache matrix skipped, cubic neutral. Current-head CI, including native smoke, remains required.