fix(daemon): end the session and clear its claim when its lease ends
Summary
When a lease was released or expired, the session opened under it stayed alive and kept its device claim. Its owner could not close it, and the next tenant's open failed with DEVICE_IN_USE. Expiry was only acted on by a later request, which often found nothing.
Now, when a lease ends, the daemon tears down the session bound to it under that session's execution locks and clears its claim, even if teardown fails. This covers tenant lease_release, host DELETE /admin/leases/<id>, and expiry (onLeaseExpired, plus a 1 s sweep so no request is needed). In-flight work and human-control holds still keep a lease alive. close and retainOnClose are unchanged. Help text and ADR 0007 updated. 13 files.
Validation
Tested commit 77f8e43. pnpm check:affected --run: all runnable checks passed (incl. layering, fallow, 2211 related tests).
New tests fail without the fix and pass with it: release ends the session; host DELETE ends it; expiry ends it with no request (runtime timer); an unreachable device still loses its claim; release waits for a running command.
Live run on a private-set iOS simulator, two proxy tenants, local daemon:
A open → claims: 1; B open → DEVICE_IN_USE
lease.release(A) → released:true, claims: 0, leased_session_ended LEASE_RELEASED
B open → Opened, claims: 1; B close → claims: 0
A open 09:58:00Z; no requests; 10:03:00.9Z leased_session_ended LEASE_EXPIRED, claims: 0
B open → Opened; B close → claims: 0
Existing daemon and server suites pass (2010 tests). CI pending.