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 18412b3
Browse filesBrowse the repository at this point in the historyBrowse files
fix(gateway): restrict failed-placement recovery to pre-worker failures
Address review (#114850): reclaiming every failed placement to local also
covered failures reached from reconciling, where a worker may have produced
unreconciled workspace changes. Guard the recovery on activeOwnerEpoch so only
pre-worker (dispatch/bootstrap) failures auto-reclaim to local; post-worker
failures keep worker ownership and recover via drain/reconcile instead of a
local reset that could discard remote work. Encode the invariant in
reclaimFailedToLocal and add regression coverage for post-worker failures.
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
@@ -133,7 +133,7 @@ Placement moves through a durable state machine (`local → requested → provis
133
133
-**"Worker bootstrap requires Node.js on the leased host"** — add a Node install to `settings.setup` (see above).
134
134
-**AWS instance-role attestation fails** — clear `aws.instanceProfile` (and `CRABBOX_AWS_INSTANCE_PROFILE`, if set). Install Crabbox 0.38.1 or newer; older binaries do not expose the authoritative `providerMetadata.instanceProfileAttached` contract required for AWS admission.
135
135
-**Dispatch fails with a provider error** — the placement record and `environments.list` keep the last error, including the setup/bootstrap stderr tail. Boxes are destroyed on failure, so that tail is the primary forensic.
136
-
-**Placement is `failed` after a dispatch or bootstrap failure** — `failed`keeps the last error but is not a dead end: the next turn reclaims the placement to `local` and runs locally so the session keeps working, and `sessions.dispatch` accepts `local` again once the underlying cause is fixed.
136
+
-**Placement is `failed` after a dispatch or bootstrap failure** — a `failed`placement reached before the worker took ownership (no active worker yet) is not a dead end: the next turn reclaims it to `local` and runs locally so the session keeps working, and `sessions.dispatch` accepts `local` again once the underlying cause is fixed. A failure reached after the worker ran (during reconciliation) still holds worker ownership and recovers through drain/reconcile so remote workspace changes are not discarded.
137
137
-**Client timeout while dispatching** — `openclaw gateway call` defaults to a 10s timeout; pass `--timeout` generously (dispatch keeps running server-side either way, and a retry while provisioning is rejected with `session cannot dispatch from placement provisioning`).
138
138
-**Worker reclaimed after upgrading from a 2026.7.2 beta** — those betas used the older worker launch contract. On restart, OpenClaw destroys an idle incompatible worker, keeps the session and workspace, marks the placement reclaimed, and provisions a current worker on the next dispatch or turn. A beta worker interrupted while still starting is marked failed after cleanup; retry the dispatch to provision it with the current contract.
139
139
-**Cloud workspace conflict notice** — the turn completed and kept the local version of each listed path. Use the staged-ref commands in the notice to inspect or take the cloud version; no retry is required for the non-conflicting changes, which are already applied.
0 commit comments