fix(daemon): show a leased session in session_list only to its lease holder
Summary
session_list filtered sessions only by the tenant label the caller sends. Every holder of a shared proxy token can send any tenant label, so one client could list another client's session names. A session that holds a lease is now visible to a request only when that request sends the same lease id. sessionVisibleToRequest in session-routing.ts owns the rule. Both callers use it: the session_list filter, and the shutdown DEVICE_IN_USE refusal, which names the owning session only for the lease holder. Sessions with no lease keep today's visibility. Labels never grant visibility. Complements #4911. Closes #4908.
Before / after
session_list (proxy token, tenant label only, no lease id)
base: { sessions: [ "default" ] } head: { sessions: [] }
with the session's lease id: both show "default"
with another lease id: base "default", head []
Validation
Tested at ddc8c01. check:affected --base origin/0.22 --run passed with exactCommit: true (format, lint, typecheck, layering, fallow, build, vitest-related, unit, command-docs, docs-links, docs-prose). Device lanes are GitHub-authoritative.
New tests: six cases. Four fail at base for the intended reason (three tenant session_list cases, and the shutdown refusal that names the owner without the lease id). Two are guards that pass at base (the lease-id-without-tenant-isolation case, and the shutdown "sending that lease id" case). A provider-scenario probe over the real HTTP path shows base ["default"] for all three calls, head ["default"], [], []. Two integration sessions.list() callers now pass their own lease id. Unleased sessions are unchanged.
Review round two: the session list docs, action help, and both recovery hints now qualify the list by request visibility and point callers to the owning connection or an explicit lease id; client-api.md notes client.sessions.list() without a leaseId omits leased sessions. Follow-up: #4923.