feat(daemon): opt-in inactivity expiry for idle local device claims (#2833)
Summary
Closes #2833
On a host shared by several agents, a session that never runs close keeps its host-global device claim until its daemon stops, so other agents read DEVICE_IN_USE and cannot tell active from abandoned.
AGENT_DEVICE_SESSION_IDLE_TIMEOUT_MS=900000 agent-device open --platform ios
Off by default. When set, the owning daemon expires a claim-holding session that has taken no attached commands for that long: it settles under that session's own execution lock pair, releases the claim, and leaves a bounded marker so the next command answers SESSION_NOT_FOUND with details.reason: SESSION_IDLE_EXPIRED, naming the window and device. A session holding a remote lease (ADR 0007) or an active capture is excluded.
A settle that cannot confirm its claim gone holds the record back and retries a full window after it ends: forgetting it would strand a claim owned by a process that no longer knows it holds one. The lock pair belongs to the release, not to the sweep's wait for it.
Validation
tsc, format, lint, build, check:layering, check:affected --run, gate fallow, gate production-exports and the size ratchet green at 6eeab911b5. 33 files, ~1210 production lines.
Live run at ca9f8ff74e, disposable simulator, 8000ms window: a snapshot re-stamped and the claim survived 5s of an 8s window; expiry fired at idleForMs: 8004 with claim: "deleted", freeing the claim file and writing idle-expiry.json; close answered SESSION_IDLE_EXPIRED; a reopen reclaimed the device with no stale marker. Review rounds since touched shutdown reporting and test timing only.