@@ -175,16 +175,17 @@ token like host holds; tenant `lease_allocate` refuses the backend. The host pic
175175repeated PUT renews it, and a PUT naming another scope for an existing id is refused rather than
176176rewritten. Heartbeat, expiry, and the loss on daemon restart are those of any lease, except that a
177177tenant heartbeat or request cannot renew it for longer than the window of the host's last PUT, and
178- only the host ends it: ` DELETE /admin/leases ` , expiry, or ` close ` when ` retainOnClose ` is false. A
179- tenant ` lease_release ` is refused with ` MACOS_APP_LEASE_HOST_OWNED ` .
178+ a tenant cannot release it: ` lease_release ` is refused with ` MACOS_APP_LEASE_HOST_OWNED ` . The lease
179+ ends by the host's ` DELETE /admin/leases/<lease-id> ` , by expiry, by the loss on daemon restart, or
180+ when a session it holds closes and the host set ` retainOnClose ` to false.
180181
181182Request admission confines every request admitted under the lease, so ` batch ` steps and ` replay `
182183actions are confined when they re-enter it: an allow list of commands, the ones whose command
183184registry descriptor declares ` appLease: 'allowed' ` (later commands are refused, and of the commands
184185lease admission otherwise exempts only ` lease_heartbeat ` and ` lease_release ` declare it),
185186` open ` and ` close ` of the leased bundle only, the ` app ` surface only, window-only screenshots, no
186187input that names a host path or launches beside the app, and an existing session that is the leased
187- app for every request but ` open ` , the ` batch ` envelope, and the lease's heartbeat , so a
188+ app for every request but ` open ` and the ` batch ` envelope, so a
188189request naming no session cannot fall back to the host Mac. ` open ` requires the native app backend (ADR 0031), because XCTest
189190posts screen events that can land outside the app's window. A pid-pinned lease is checked against the
190191running process before each admitted request. A session opened under the lease holds its app, not
0 commit comments