@@ -173,16 +173,18 @@ A `macos-app` lease's device key is a bundle id, optionally pinned to one proces
173173only a host administrator allocates one, over the loopback ` /admin/leases ` route that uses the daemon
174174token like host holds; tenant ` lease_allocate ` refuses the backend. The host picks the lease id, a
175175repeated PUT renews it, and a PUT naming another scope for an existing id is refused rather than
176- rewritten. Heartbeat, expiry, release, and the loss on daemon restart are those of any lease, except
177- that a tenant heartbeat or request cannot renew it for longer than the window of the host's last PUT.
176+ rewritten. Heartbeat, expiry, and the loss on daemon restart are those of any lease, except that a
177+ tenant 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 ` .
178180
179181Request admission confines every request admitted under the lease, so ` batch ` steps and ` replay `
180182actions are confined when they re-enter it: an allow list of commands, the ones whose command
181183registry descriptor declares ` appLease: 'allowed' ` (later commands are refused, and of the commands
182184lease admission otherwise exempts only ` lease_heartbeat ` and ` lease_release ` declare it),
183185` open ` and ` close ` of the leased bundle only, the ` app ` surface only, window-only screenshots, no
184186input that names a host path or launches beside the app, and an existing session that is the leased
185- app for every request but ` open ` , the ` batch ` envelope, and the lease's heartbeat and release , so a
187+ app for every request but ` open ` , the ` batch ` envelope, and the lease's heartbeat, so a
186188request naming no session cannot fall back to the host Mac. ` open ` requires the native app backend (ADR 0031), because XCTest
187189posts screen events that can land outside the app's window. A pid-pinned lease is checked against the
188190running process before each admitted request. A session opened under the lease holds its app, not
0 commit comments