Skip to content

feat(nodes): opt-in container isolation for node-hosted worker sessions - #128447

Merged
steipete merged 5 commits into
mainfrom
steipete/node-worker-isolation
Aug 24, 2026
Merged

steipete merged 5 commits into
mainfrom
steipete/node-worker-isolation

Conversation

@steipete

@steipete steipete commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Node-hosted worker sessions run as bare child processes on the host — the only hardening is a frozen env allowlist. docs/plan/runners.md explicitly parked "worker-in-docker/podman" as remaining milestone-6 work. Operators running session farms on their own machines have no per-session containment.

Why This Change Was Made

Adds opt-in container isolation, node-local like every other workerRuns setting:

{ nodeHost: { workerRuns: { enabled: true, isolation: "container", containerImage: "node:22-slim" } } }
  • Engine resolution once at startup (docker/OrbStack/podman), with the daemon identity fingerprinted and pinned. Missing engine, dead daemon, or changed daemon target disables worker hosting with an explicit diagnostic — never a silent fallback to bare processes (the operator explicitly chose isolation).
  • Launch transport: isolated workers use the plain stdio worker mode (descriptor on stdin, one-line JSON result) instead of Node IPC, which cannot cross a container boundary. Exactly two mounts: admitted bundle directory read-only, session workspace read-write, both at their host paths so descriptor paths stay valid. Env is the explicit allowlist; workdir is the workspace.
  • The container is the durable launch identity (engine + full container id + daemon-target fingerprint): created stopped, journaled atomically, and only then does the descriptor flow. Cancel/fence/shutdown/recovery kill and remove the actual container before releasing capacity; removal failure keeps the launch nonterminal. Startup sweeps owned orphan containers before finalizing stale claims, preserving a live sibling supervisor's startup.
  • Loopback fail-fast: a containerized worker cannot reach a loopback gateway URL; the transport rejects with an actionable message instead of hanging (documented).
  • Persistence: one additive nullable worker_container_json column on node_worker_launches via the sanctioned lazy additive-column mechanism — schema version unchanged (9), older readers safe (bare nullable TEXT, zero constraints).
  • Rejected alternatives (recorded in code review): transporting Node IPC across containers, trusting the docker-client PID as identity, docker run without durable ownership, mounting the broader bundle root, reusing the gateway-local sandbox lifecycle (different ownership/reconciliation boundaries).

User Impact

nodeHost.workerRuns.isolation: "container" gives each worker session a real container boundary on any node with a Docker-compatible engine; default behavior ("none") is byte-identical. Docs: isolation section in docs/nodes/index.md; docs/plan/runners.md milestone updated.

Evidence

Live proof on a dev rig (gateway from this branch, paired node with isolation: "container", containerImage: node:22.22.3-bookworm):

  • Node advertised session hosting only after the engine gate passed; dispatch went active.
  • During a real turn, the worker container was observed running: openclaw-node-worker-… on node:22.22.3-bookworm (docker ps mid-turn).
  • The file the turn created inside the container (iso.txt) reconciled back into the gateway-side managed worktree.
  • After completion: zero openclaw-node-worker containers remained (docker ps -a).

Suites: OPENCLAW_VITEST_MAX_WORKERS=4 pnpm test src/node-host src/config — 3,873 passed / 2 skipped (290 files); fake-engine supervisor tests cover args/mounts/labels/env, result round-trip, kill-on-cancel, orphan sweep, dead-container identity; startup fail-closed test for missing engines; config schema accept/reject. pnpm check:changed green post-rebase (incl. database-first checks, SQLite schema version unchanged, Kysely types verified). Codex autoreview (branch vs origin/main): clean, no accepted/actionable findings (0.96).

Review round 2/3 (head 79a5e258fbc)

All four ClawSweeper findings addressed: per-launch daemon-target revalidation before container creation (fake-engine regression proves a replacement daemon receives zero create/start requests); pending-cancel keeps the worker slot until the journaled container is removed; Windows fails closed at startup for container isolation; and container identity restructured from an additive column into the same-version companion table node_worker_launch_containers (the launch table is contract-optional, whose shipped readers reject additive columns — the review finding exposed a real design error). The exact v9 predecessor-reader proof now passes under the real contract code.

Fresh live proof on this exact head: dispatch → worker container observed running mid-turn (node:22.22.3-bookworm) → file created in-container reconciled to the gateway worktree → zero leftover containers → completed launch journal with exactly one companion-table row.

@clawsweeper

clawsweeper Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation plugin: file-transfer labels Aug 24, 2026
@steipete
steipete marked this pull request as ready for review August 24, 2026 01:21
@openclaw-barnacle openclaw-barnacle Bot added size: XL maintainer Maintainer-authored PR labels Aug 24, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 24, 2026
@clawsweeper

clawsweeper Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed August 23, 2026, 10:25 PM ET / August 24, 2026, 02:25 UTC.

ClawSweeper review

What this changes

Adds opt-in Docker/Podman isolation for node-hosted worker sessions, including configuration, durable launch tracking, tests, and documentation.

Merge readiness

⛔ Blocked until stronger real behavior proof is added - 11 items remain

Keep open: the opt-in isolation feature has three unresolved lifecycle/security defects and lacks the required old-reader upgrade proof.

Priority: P2
Reviewed head: af86a63c0c7b9b9d1b13ed44b2c2180b3ee46d3a

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The feature has substantial implementation and test coverage, but blocking authority, lifecycle, platform, and upgrade gaps remain.
Proof confidence 🦪 silver shellfish (2/6) Needs stronger real behavior proof before merge: Authority-chain proof required: the PR describes an allowed live run, but no after-fix artifact proves a replacement daemon is rejected before container creation or start. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: Authority-chain proof required: the PR describes an allowed live run, but no after-fix artifact proves a replacement daemon is rejected before container creation or start. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 6 items Current main does not contain this feature: Current main has only the existing worker-host enablement path and schema; it has neither the isolation settings nor a container-engine launch path.
Daemon identity is startup-only: The Docker daemon fingerprint is computed at startup, while the later create/start path uses the cached engine without revalidating it at the final side-effect boundary.
Pending cancellation releases capacity too early: Cancellation terminalizes a pending startup before awaiting it, while the transport can already have started the container but has not yet journaled its identity.
Findings 4 actionable findings [P1] Revalidate the selected engine before container side effects
[P2] Fence a pending container before releasing worker capacity
[P1] Reject unsupported Windows container isolation before advertising capacity
Security Needs attention Daemon replacement can bypass the pinned launch identity: The startup fingerprint is not checked again before container creation or start, permitting a replacement daemon at the pinned endpoint to receive the isolated workload.

How this fits together

Node hosts receive Gateway-dispatched worker launches and run verified bundles against session workspaces. This change inserts a local container-engine boundary before the worker reports its result and capacity back to the Gateway.

flowchart LR
  A[Gateway worker request] --> B[Node host admission]
  B --> C[Container engine validation]
  C --> D[Durable launch journal]
  D --> E[Isolated worker session]
  E --> F[Cleanup and result]
  F --> G[Gateway capacity update]
Loading

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: Authority-chain proof required: the PR describes an allowed live run, but no after-fix artifact proves a replacement daemon is rejected before container creation or start. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Revalidate the selected engine before container side effects (P1) - The daemon fingerprint is computed at startup, but this path creates a container using the cached engine without proving that the daemon at the pinned endpoint is unchanged. A replacement daemon can receive create/start requests while the stale fingerprint is persisted. Revalidate immediately before the first side effect and prove that a replacement receives no request.
  • Fence a pending container before releasing worker capacity (P2) - docker start can already be running when cancellation sees only the pending receipt. This branch marks it cancelled and publishes capacity before awaiting startup cleanup, so another launch can consume the slot while the first container is still alive. Persist the container identity before start and remove it before terminalizing the claim.
  • Reject unsupported Windows container isolation before advertising capacity (P1) - Windows headless nodes are documented as supported, but the Linux node:22-slim launch receives native bundle/workspace paths unchanged as mount targets, workdir, and entrypoint paths. The node can advertise capacity and only then fail dispatch. Fail closed during startup with an actionable diagnostic, or add safe path mapping with Windows Docker proof.
  • Prove an older v9 reader can use the upgraded launch journal (P2) - The new same-version journal column is compatible only if a v9 reader can open and use a database after this branch has added and populated it. Current tests cover the candidate reader against an old database and candidate reopen, not that upgrade direction. Add an exact predecessor-reader fixture followed by candidate reopen proof.
  • Resolve security concern: Daemon replacement can bypass the pinned launch identity - The startup fingerprint is not checked again before container creation or start, permitting a replacement daemon at the pinned endpoint to receive the isolated workload.
  • Resolve merge risk (P1) - A daemon replacement at the pinned endpoint can receive create/start requests before its identity is revalidated.
  • Resolve merge risk (P1) - A cancellation race can publish a free worker slot while an unjournaled container is still starting or awaiting cleanup.
  • Resolve merge risk (P1) - Windows node hosts can advertise isolation capacity even though the Linux container path contract cannot consume their native paths.
  • Resolve merge risk (P1) - The additive journal column lacks an exact older-v9-reader open/use proof.
  • Complete next step (P2) - The maintainer-labeled PR needs its concrete authority, capacity, Windows-support, and upgrade blockers resolved before merge.

Findings

  • [P1] Revalidate the selected engine before container side effects — src/node-host/node-worker-launch-transport.ts:107-115
  • [P2] Fence a pending container before releasing worker capacity — src/node-host/node-worker-supervisor.ts:304-312
  • [P1] Reject unsupported Windows container isolation before advertising capacity — src/node-host/node-worker-container-engine.ts:251-256
  • [high] Daemon replacement can bypass the pinned launch identity — src/node-host/node-worker-launch-transport.ts:107
Agent review details

Security

Needs attention: A changed daemon can receive the worker-launch side effect before the requested isolation identity is revalidated.

PR surface

Source +1125, Tests +1007, Docs +78, Generated +1. Total +2211 across 31 files.

View PR surface stats
Area Files Added Removed Net
Source 18 1363 238 +1125
Tests 8 1016 9 +1007
Docs 2 84 6 +78
Config 0 0 0 0
Generated 3 4 3 +1
Other 0 0 0 0
Total 31 2467 256 +2211

Review metrics

Metric Value Why it matters
Configuration surface 2 added options The isolation mode and container-image override alter node-host startup and operator behavior.
Implementation delta production +1361/-238, tests +1019/-9, docs/generated +87/-9 This is a substantial new execution boundary, so the missing lifecycle and upgrade proofs are material before merge.

Stored data model

Persistent data-model change detected: database schema: src/node-host/node-worker-launch-store.test.ts, serialized state: src/node-host/invoke-agent-cli-claude.test.ts, serialized state: src/node-host/node-worker-launch-store.ts, serialized state: src/node-host/node-worker-supervisor.container.test.ts, serialized state: src/state/openclaw-state-db.generated.d.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Repair the launch boundary before merge (recommended)
    Persist and fence the pre-start container, revalidate the daemon at each side effect, reject unsupported Windows hosts, and add the missing upgrade and fault-injection proof.
  2. Pause container isolation
    Defer the feature if its daemon, platform, and upgrade contracts cannot be proved without weakening the requested containment guarantee.

Technical review

Best possible solution:

Make container identity durable before start, revalidate the selected daemon before every container side effect, fail closed on unsupported Windows hosts unless safe path mapping is implemented, and prove candidate-to-v9-to-candidate database use.

Do we have a high-confidence way to reproduce the issue?

Yes. Source establishes both a daemon-swap path that reaches container creation without revalidation and a cancellation interleaving that frees capacity before startup cleanup completes.

Is this the best way to solve the issue?

No. The current design needs final-effect daemon validation, a durable pre-start container record, and an explicit supported-platform boundary before it can safely provide the claimed containment.

Full review comments:

  • [P1] Revalidate the selected engine before container side effects — src/node-host/node-worker-launch-transport.ts:107-115
    The daemon fingerprint is computed at startup, but this path creates a container using the cached engine without proving that the daemon at the pinned endpoint is unchanged. A replacement daemon can receive create/start requests while the stale fingerprint is persisted. Revalidate immediately before the first side effect and prove that a replacement receives no request.
    Confidence: 0.98
  • [P2] Fence a pending container before releasing worker capacity — src/node-host/node-worker-supervisor.ts:304-312
    docker start can already be running when cancellation sees only the pending receipt. This branch marks it cancelled and publishes capacity before awaiting startup cleanup, so another launch can consume the slot while the first container is still alive. Persist the container identity before start and remove it before terminalizing the claim.
    Confidence: 0.97
  • [P1] Reject unsupported Windows container isolation before advertising capacity — src/node-host/node-worker-container-engine.ts:251-256
    Windows headless nodes are documented as supported, but the Linux node:22-slim launch receives native bundle/workspace paths unchanged as mount targets, workdir, and entrypoint paths. The node can advertise capacity and only then fail dispatch. Fail closed during startup with an actionable diagnostic, or add safe path mapping with Windows Docker proof.
    Confidence: 0.92
  • [P2] Prove an older v9 reader can use the upgraded launch journal — src/state/openclaw-state-db-additive-columns.ts:24
    The new same-version journal column is compatible only if a v9 reader can open and use a database after this branch has added and populated it. Current tests cover the candidate reader against an old database and candidate reopen, not that upgrade direction. Add an exact predecessor-reader fixture followed by candidate reopen proof.
    Confidence: 0.91

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 1ac7f0161c9e.

Labels

Label changes:

  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🦪 silver shellfish, so this older rating label is no longer current.

Label justifications:

  • P2: This is an opt-in node-host feature, but its current lifecycle defects can disrupt hosted worker sessions.
  • merge-risk: 🚨 compatibility: New configuration and a same-version persisted journal column require proven upgrade behavior.
  • merge-risk: 🚨 security-boundary: The requested isolation boundary can be redirected to a replacement daemon before launch-time validation.
  • merge-risk: 🚨 availability: Cancellation and unsupported Windows paths can leave workers unavailable or fail dispatched sessions.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: Authority-chain proof required: the PR describes an allowed live run, but no after-fix artifact proves a replacement daemon is rejected before container creation or start. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

Security concerns:

  • [high] Daemon replacement can bypass the pinned launch identity — src/node-host/node-worker-launch-transport.ts:107
    The startup fingerprint is not checked again before container creation or start, permitting a replacement daemon at the pinned endpoint to receive the isolated workload.
    Confidence: 0.98

What I checked:

Likely related people:

  • steipete: Authored the current PR head and the dominant history of node-worker supervision, bundle, capacity, and recovery work. (role: feature-history owner and recent area contributor; confidence: high; commits: 6b9bea84f0e2, 78502eda6dec, efaa867d934c; files: src/node-host/node-worker-supervisor.ts, src/node-host/runtime.ts, src/node-host/node-worker-container-engine.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Add final-effect daemon-swap proof showing the replacement receives no create/start request.
  • Add cancellation interleaving and older-v9-reader upgrade regressions.
  • Post redacted real-engine evidence after the repaired path; update the PR body to trigger re-review.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-08-24T01:28:23.709Z sha 6637f77 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-24T01:48:59.012Z sha d8976c7 :: needs real behavior proof before merge. :: [P1] Revalidate the selected engine before container side effects | [P2] Journal pre-start containers before releasing their capacity | [P2] Prove that an older v9 reader can use the upgraded launch journal

@clawsweeper clawsweeper Bot added merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 24, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

All review findings are addressed on head 79a5e258fbc:

  • Daemon revalidation (P1): the pinned daemon target is re-resolved immediately before container creation on every launch; a mismatch fails the launch with a diagnostic naming both identities, and the fake-engine regression proves a replacement daemon receives zero create/start requests after the identity changes.
  • Pending-container capacity fence (P2): cancellation of a pending launch with a journaled container no longer terminalizes the claim (and thus never frees the slot) until the container is killed/removed; a regression drives cancel during the pending window and asserts the slot stays occupied until the engine confirms removal.
  • Windows fail-closed (P1): isolation: "container" on win32 disables worker hosting at startup with an actionable diagnostic (documented) — no capacity is ever advertised.
  • v9 predecessor proof (P2): your finding was better than a missing test — the launch table is contract-optional and the unchanged predecessor rejects additive columns on optional tables, so the column design itself was wrong. Container identity now lives in the same-version companion table node_worker_launch_containers (bare STRICT, lazily ensured on first container write, pruned with the launch journal). The requested proof now passes under the real contract code: an exact v9 predecessor opens and uses the journal after the candidate populated container rows, then the candidate reopens with identities intact.

Fresh real-behavior proof on this head: live rig (gateway + paired node from 79a5e258fbc, containerImage: node:22.22.3-bookworm) — dispatch active, worker container observed running mid-turn (docker ps), the file created inside the container reconciled into the gateway worktree, zero openclaw-node-worker containers after completion, and the node-side journal shows the completed launch with exactly one companion-table row. The daemon-replacement rejection is proven at the fake-engine boundary (zero requests recorded), which is the strongest deterministic form of that authority-chain check.

nodeHost.workerRuns.isolation=container runs each worker session inside a
Docker-compatible container (docker/OrbStack/podman): stdio launch transport,
exactly two bind mounts (bundle read-only, workspace read-write), allowlisted
env, and the container itself as the durable launch identity — created stopped
and journaled before the descriptor is delivered, killed/removed on cancel,
fence, shutdown, and recovery, with an owned-orphan sweep at startup. Missing
or changed engines disable hosting with an explicit diagnostic instead of
falling back to bare processes. Additive nullable worker_container_json column
on node_worker_launches (schema version unchanged).
node_worker_launches is excluded from claw-scoped state schemas, so the
read-only compat fixture cannot drop its additive column there; drop only
columns whose owning table exists.
- Revalidate the engine daemon target immediately before container creation;
  a replaced daemon receives zero create/start requests (regression proves it).
- A pending launch keeps its worker slot until the journaled container is
  killed/removed; cancellation cannot free capacity over a live container.
- Windows node hosts fail closed at startup for isolation=container with an
  actionable diagnostic (native paths cannot be container mount targets).
- Container identity moves from an additive column to the same-version
  companion table node_worker_launch_containers (bare STRICT, lazily ensured
  on first container write, pruned with the launch journal): the launch table
  is contract-optional and shipped readers reject additive columns there. An
  exact v9 predecessor now provably opens and uses the journal after the
  candidate populated container rows.
@steipete
steipete force-pushed the steipete/node-worker-isolation branch from 79a5e25 to d74aabf Compare August 24, 2026 07:04
@steipete
steipete merged commit 3fa3276 into main Aug 24, 2026
227 checks passed
@steipete
steipete deleted the steipete/node-worker-isolation branch August 24, 2026 07:19
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 25, 2026
…ns (openclaw#128447)

* feat(nodes): opt-in container isolation for node-hosted worker sessions

nodeHost.workerRuns.isolation=container runs each worker session inside a
Docker-compatible container (docker/OrbStack/podman): stdio launch transport,
exactly two bind mounts (bundle read-only, workspace read-write), allowlisted
env, and the container itself as the durable launch identity — created stopped
and journaled before the descriptor is delivered, killed/removed on cancel,
fence, shutdown, and recovery, with an owned-orphan sweep at startup. Missing
or changed engines disable hosting with an explicit diagnostic instead of
falling back to bare processes. Additive nullable worker_container_json column
on node_worker_launches (schema version unchanged).

* fix(test): base-shape fixture skips additive columns of stripped tables

node_worker_launches is excluded from claw-scoped state schemas, so the
read-only compat fixture cannot drop its additive column there; drop only
columns whose owning table exists.

* fix(test): guard split destructuring in base-shape fixture

* test(state): record worker_container_json in the canonical additive-column list

* fix(nodes): harden container isolation per review findings

- Revalidate the engine daemon target immediately before container creation;
  a replaced daemon receives zero create/start requests (regression proves it).
- A pending launch keeps its worker slot until the journaled container is
  killed/removed; cancellation cannot free capacity over a live container.
- Windows node hosts fail closed at startup for isolation=container with an
  actionable diagnostic (native paths cannot be container mount targets).
- Container identity moves from an additive column to the same-version
  companion table node_worker_launch_containers (bare STRICT, lazily ensured
  on first container write, pruned with the launch journal): the launch table
  is contract-optional and shipped readers reject additive columns there. An
  exact v9 predecessor now provably opens and uses the journal after the
  candidate populated container rows.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. plugin: file-transfer rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant