You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b2e2c8f
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/adr/0007-remote-device-leases.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,10 +14,12 @@ Hosted devices can continue to incur charges after their daemon stops.
14
14
15
15
A remote device lease gives one client logical ownership of a selected device for a connection provider.
16
16
The daemon is authoritative for admission, ownership, and session lifetime.
17
-
`connect` establishes client identity and a connection profile. Allocation is lazy, when the device, backend, and provider are known.
17
+
`connect` establishes client identity and a connection profile for direct providers. Allocation is lazy, when the device, backend, and provider are known.
18
18
`open` is the natural acquisition point.
19
19
Runner and process locks remain separate backend guards.
20
20
21
+
For `connect cloud`, the hosted session API owns the device rental. The CLI asks it to allocate during connect so it can enforce the session deadline and return a scoped attachment. The CLI records the allocation identity before attaching. It can recover an interrupted allocation or end the rental without a live daemon. The daemon retains authority over the requests it receives.
22
+
21
23
The proxy token authenticates the host, not the client: every client of one proxy can hold the same token.
22
24
The lease id is the credential that proves ownership of a leased session.
23
25
A request on a session that holds a lease must send that lease's id. The daemon refuses a request that omits it with `LEASE_SESSION_MISMATCH` and never fills it from the session.
'List cloud vendors or configure remote access without allocating a device. Direct providers validate credentials/resources before saving state and print the exact device/app preparation needed before open. AGENT_DEVICE_CLOUD_BASE_URL is the bridge/control-plane API origin; use AGENT_DEVICE_DAEMON_AUTH_TOKEN=adc_live_... for CI/service-token automation.',
134
+
'List cloud vendors, start a cloud session, or configure remote access. Direct providers validate credentials/resources before saving state and print the exact device/app preparation needed before open. AGENT_DEVICE_CLOUD_BASE_URL is the cloud session API origin; use AGENT_DEVICE_DAEMON_AUTH_TOKEN=adc_live_... for CI/service-token automation.',
0 commit comments