refactor(daemon): move lease-end coordination to the server
Merged
TH
4d ago+166+166+012345678901234567890123456789-164-164-012345678901234567890123456789
Summary
Move the daemon-lifetime lease-end coordinator out of per-request scope construction. The server still owns retry scheduling, retained-host cleanup, and shutdown drain. The coordinator keeps its second session scan because a session can reopen while host cleanup waits for the device lock.
Value
- 157 lines leave the request-scope module.
- The coordinator body is byte-identical.
- One coordinator test moves with its owner.
Validation
At a6b3973036, inspected all changed call sites and confirmed the coordinator body matches the base byte for byte. Formatting and diff checks passed. Hosted validation is pending.
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.