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 bb1ce58
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/gateway/cloud-workers.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -239,7 +239,7 @@ The bundled Crabbox provider does not support Cloud Worker Desktop after node tr
239
239
240
240
## Security model
241
241
242
-
-**Closed worker ingress.** In worker-turn mode, workers speak a dedicated protocol over their authenticated node connection with a closed method allowlist — a worker cannot call operator RPCs.
242
+
-**Closed worker ingress.** In worker-turn mode, the enrolled node launches the worker child, which dials the Gateway's authenticated public worker route and speaks a dedicated protocol with a closed method allowlist — a worker cannot call operator RPCs.
243
243
-**Gateway-owned tool authority.** In worker-turn mode, the Gateway projects current profile, provider, agent, group, sender, sandbox, delegation, inherited, and runtime-cap policy over the worker's fixed coding-tool catalog before every turn. The launch envelope carries only that final closed-vocabulary subset. Explicitly capped scheduled turns reuse their trusted owner-group context without sending that identity to the box or reapplying a fresh sender overlay. Tools outside the worker catalog remain unavailable; an empty result runs with no tools.
244
244
-**Minted credentials, hashed at rest.** Each dispatch mints a worker credential; the Gateway stores only its hash. Credential rotation and owner-epoch fencing guarantee at most one live owner per session — a stale worker that reconnects is fenced, never merged.
245
245
-**Environment-bound enrollment.** One short-lived node-only setup credential is bound to the durable environment before allocation. Its first authenticated Ed25519 device identity is recorded atomically with setup completion; replay cannot substitute an unrelated node.
Copy file name to clipboardExpand all lines: docs/plan/cloud-workers.md
+11-8Lines changed: 11 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,16 @@
1
1
---
2
-
summary: Run agent sessions on ephemeral SSH-reachable machines with gateway-proxied inference and live sidebar streaming.
3
-
title: Cloud workers plan
2
+
summary: Historical design record for cloud workers before convergence onto node-backed worker turns.
3
+
title: Cloud workers historical plan
4
4
read_when:
5
-
- Designing or implementing cloud worker provisioning, worker mode, or session handoff
6
-
- Changing environments.*, the worker protocol, transcript ingestion, or inference proxy RPCs
7
-
- Reviewing security posture of remote agent execution
5
+
- Reviewing the design history behind cloud worker provisioning and session placement
6
+
- Comparing the superseded SSH reverse-tunnel proposal with the current node-backed architecture
8
7
---
9
8
10
9
## Status
11
10
12
-
Proposal, revision 3. Not implemented. Direction agreed 2026-07; revision 2 incorporated adversarial review findings (dedicated worker protocol, placement/environment state machines, git-aware inbound sync, one-way v1 handoff, controlled-egress security wording). Revision 3 settles the sync ownership model (worker authors commits, gateway adopts and publishes), adds a no-git plain sync mode, fixes worker exec at full-within-box, moves internet policy to provision time, and restores agent dispatch to milestone 3.
11
+
Superseded historical proposal. The implemented architecture is documented in [Runners and execution environments](/plan/runners) and [Cloud workers](/gateway/cloud-workers): Crabbox provisions a node-backed `worker-turn` lease, the worker child dials the Gateway's authenticated public worker route, and workspace transfer uses the node channel. The former dedicated loopback listener, SSH reverse-forward carrier, and SSH-launched worker-turn path have been removed. SSH remains a separate `remote-exec` workspace transport and desktop carrier.
12
+
13
+
The sections below preserve the pre-convergence design record and are not the current runtime contract.
13
14
14
15
## Problem
15
16
@@ -94,9 +95,11 @@ No bespoke worker artifact, and no dependence on npm availability:
94
95
95
96
Worker mode (`openclaw worker`) is an entry point, not a fork: connection handling plus the embedded agent runner, with session persistence and model calls backed by gateway RPCs. It must not start gateway surfaces: no channels, no plugin auto-start beyond the session toolset, throwaway state dir, no local auth profiles.
96
97
97
-
### 3. Transport: everything over SSH
98
+
### 3. Historical transport proposal: everything over SSH
99
+
100
+
This section describes the superseded carrier. Current `worker-turn` environments use authenticated node connectivity; only `remote-exec` workspace operations retain pinned SSH.
98
101
99
-
The gateway owns connectivity; the worker requires nothing but sshd:
102
+
The original proposal had the gateway own connectivity while the worker required nothing but sshd:
100
103
101
104
- Gateway opens SSH to the worker (credentials from the provider lease, host key pinned from provisioning output — no `StrictHostKeyChecking=no`) and establishes a reverse tunnel forwarding a worker-local socket to the gateway's WS endpoint.
102
105
- Control/model traffic and workspace transfer use separate SSH connections with the same pinned trust material so rsync cannot head-of-line-block token streams.
Copy file name to clipboardExpand all lines: docs/plan/runners.md
+1-6Lines changed: 1 addition & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -132,12 +132,7 @@ channel.
132
132
133
133
### Worker ingress on the public endpoint (milestone 5)
134
134
135
-
Today the worker ingress is a dedicated loopback-only listener reached via
136
-
`ssh -R`; the main ingress rejects worker frames. For node runners the same
137
-
admission is exposed on a path-tagged upgrade route on the public TLS
138
-
endpoint (`connectionKind = "worker"` forced by route instead of listener).
139
-
The loopback listener stays for SSH-provisioned cloud workers until
140
-
milestone 10.
135
+
Worker admission is exposed only on a path-tagged upgrade route on the public TLS endpoint (`connectionKind = "worker"` is forced by the route). Node-hosted worker children dial that endpoint directly. The former loopback listener and SSH reverse-forward carrier were removed after Crabbox converged onto node-backed worker turns; SSH remains only for `remote-exec` workspace transport and separately owned desktop tunnels.
141
136
142
137
Hardening that ships with the exposure, not after it:
0 commit comments