Skip to content

fix: managed nodes fail to start when a sandbox restricts IPC - #198760

Merged
Kimiyu-186 merged 4 commits into
mainfrom
codex/strands-node-ipc-20261114
Nov 18, 2026
Merged

Kimiyu-186 merged 4 commits into
mainfrom
codex/strands-node-ipc-20261114

Conversation

@Kimiyu-186

Copy link
Copy Markdown
Contributor

What Problem This Solves

An agent can start its OpenClaw workspace node under Strands Box and still get stuck before the node connects to its Gateway. The node launcher and its child exchange JSON over Node's native IPC channel. In a Linux ARM64 Box running Node 24.22.1, the parent never received the child's first bootstrap message. The same programs completed the handshake when run directly.

User Impact

A compatible OpenClaw package can now start and restart a managed workspace node in a sandbox that restricts descriptor reception. The parent retains ownership of executable selection and the child's lifetime. Standard input, output and error stay available to the workload.

Why This Change Was Made

The launcher protocol only needs JSON. This change carries those messages over a bounded, length-prefixed byte stream on an inherited socket. The launcher checks the selected package's manifest before choosing this transport. Older packages, Bun and Windows continue to use native Node IPC. This ports the earlier draft to current node enrollment and resume handling.

Evidence

  • Ran the focused launcher suite on macOS ARM64 with Node 24.22.1. All 17 tests passed. The default Bun lane passed 16 and skipped the Node-specific test.
  • On Linux ARM64, exercised the OCE-pinned launcher and its node-renewal changes against stock Strands Box at d5278f29972f7bf2f688e3fa76511d3a29705f33. The original launcher passed directly and failed in Box before the first acknowledgment. With the port applied, both runs rejected an invalid restart request, accepted valid restart arguments, and started a fresh child with the approved arguments and stale access settings removed. The fixture exercised the real launcher and client using synthetic inputs.
  • Checked both mixed-version directions with the native package selector. The old/new and new/old pairs completed the handshake over Node IPC. The new/new pair completed it over the byte stream.
  • Formatting, focused lint and the launcher client's strict TypeScript check passed. Complete OCE deployment and Gateway enrollment are being qualified separately.

@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: M labels Nov 14, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR adds a manifest-selected JSON byte stream for managed node control messages when native IPC cannot receive descriptors.

Example: A managed node runs under Strands Box on Linux ARM64 with Node.js 24.22.1.

  • Before: The launcher never receives the child's bootstrap message over native IPC.
  • After: Compatible packages exchange bootstrap and restart messages through an inherited socket without descriptor reception.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The focused implementation has no identified correctness defect, but the supplied narrative does not establish inspectable real-behavior proof for this port.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A managed workspace node can stall before connecting to its Gateway when its sandbox restricts descriptor reception.
Reason: The repair removes an unnecessary transport requirement while preserving sandbox restrictions and lifecycle ownership; the supplied maintainer-authored designation establishes direction.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it addresses a specific launcher startup failure that remains on main, preserves existing lifecycle ownership, and has no concrete introduced defect identified.

Priority: P2
Reviewed head: f2dd49167e14854fbf31d42029cbf05b751c34e1

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Provide redacted terminal output or logs for this head's installed sandbox bootstrap, Gateway readiness, restart, and supervisor-loss behavior, plus a v2026.11.3 upgrade preserving pairing and settings; demonstrate the regression failing on the base and passing with the fix.
Agent review details

How this fits together

The package launcher selects and supervises node runtimes; its private channel carries bootstrap settings, authenticated readiness, and update restart requests between the supervisor and node client.

flowchart TD
  A[CLI or installed node service] --> B[Node launcher]
  B --> C[Selected package manifest]
  C --> D[Byte stream or native IPC]
  D --> E[Launcher client]
  E --> F[Node runtime]
  F --> G[Gateway]
Loading

Technical review

Best possible solution:

Keep the bounded transport adapter inside the existing supervisor and client, preserving manifest-based compatibility and all existing activation decisions.

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

Current main requires native IPC for supervised children, and the report identifies a specific sandbox, runtime, and failed bootstrap acknowledgment; the sandbox failure was not independently executed during this read-only review.

Is this the best way to solve the issue?

The required invariant is reliable JSON control messaging without descriptor reception, and the smallest complete repair is an adapter in the existing transport owner rather than another supervisor or a global process patch.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against a6750f2a014a.

Provenance checked

  • Supervisor control channel and activation lifecycle keeps the original intent (3c4c111: A stable supervisor activates private runtimes after authenticated readiness while preserving identity, launch options, schema compatibility, cooldown, and rollback.)
  • Executable invocation keeps the original intent (3bfccdb: The shared invocation owner distinguishes loose runtime/script arguments from standalone executable arguments.)
  • Foreground enrollment supervision keeps the original intent (d88a384: Foreground enrollment runs under the packaged supervisor and restarts with node run rather than reusing a one-time invitation.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Pinned introduced change: Reviewed the merge-base-to-head diff; transport adaptation is confined to the existing launcher and client, with a capability marker, documentation, and real-child tests. (node-host-launcher.mjs:570, f2dd49167e14)
  • Current main still uses native IPC: Current main unconditionally spawns supervised node children with native IPC; the launcher and client have no intervening changes relative to this PR's merge base. (node-host-launcher.mjs:493, a6750f2a014a)
  • Lifecycle and compatibility retained: Transport selection checks the selected package manifest and retains native IPC for Windows, Bun, and older packages; executable selection, restart validation, readiness activation, cooldown, and rollback remain with the supervisor. (node-host-launcher.mjs:566, f2dd49167e14)
  • Original feature intent: feat: automatically update idle headless nodes #151545 introduced the supervisor to preserve identity and launch options while activating private runtimes only after authenticated readiness; fix: preserve standalone CLI profiles and settle Doctor shutdown #173154 centralized executable invocation, which this PR continues to use. (node-host-launcher.mjs:583, 3c4c111b0f71)
  • Supplied proof and discussion: Read the complete live body and both comments, matching captured source identity d34a6e02d81c21435bcf38e4661f1591cab49370cc84133019d0e05f48421275. The body reports focused tests, synthetic launcher/client qualification in Box, and mixed-version handshakes, but supplies no inspectable terminal trace or artifact and explicitly leaves deployment and Gateway enrollment under qualification. (f2dd49167e14)
  • Earlier draft: fix(node): start managed nodes when descriptor reception is blocked #186282 contains the earlier transport proposal and explicitly distinguishes its pinned-backport integration results from proof of the main-branch port; it was closed without merging. (b0435dc33d6e)

Likely related people:

  • Peter Steinberger: Raw commit 3c4c111 adds node-host-launcher.mjs:255 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 3c4c111b0f71; files: node-host-launcher.mjs)

PR surface

Source +21, Tests +42, Docs +7, Config +1, Other +100. Total +171 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 29 8 +21
Tests 1 43 1 +42
Docs 1 7 0 +7
Config 1 1 0 +1
Generated 0 0 0 0
Other 1 113 13 +100
Total 5 193 22 +171

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Transport negotiation 1 manifest capability and 2 private child arguments The new byte-pipe-v1 capability selects the transport without adding user configuration or changing existing package behavior.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: The reported startup failure affects managed nodes in descriptor-restricted sandboxes, with a limited deployment scope.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

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

  • Attach the current-head sandbox and stable-upgrade evidence described in the proof assessment.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 14, 2026, 3:42 AM ET / 08:42 UTC.

@Kimiyu-186
Kimiyu-186 marked this pull request as ready for review November 17, 2026 18:28
@Kimiyu-186
Kimiyu-186 merged commit 2602d6a into main Nov 18, 2026
412 of 415 checks passed
@Kimiyu-186
Kimiyu-186 deleted the codex/strands-node-ipc-20261114 branch November 18, 2026 22:29
@Kimiyu-186

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 19, 2026
…aw#198760)

* fix: start managed nodes when sandboxed IPC cannot receive messages

* docs(node-host): explain the launcher channel type invariant
RomneyDa added a commit that referenced this pull request Nov 19, 2026
* improve(ci): avoid duplicate release source guard scans

* fix(ci): classify recovery browser test server ownership (#200402)

(cherry picked from commit a62e4e1)

* fix(ci): restore package harness startup

Copy the runtime process dependency manifest into the dependency-free packaging fixture so the CLI reaches argument validation. The existing startup assertion continues to reject missing modules.

(cherry picked from commit 84262af)

* test(facetime): preserve child process exports in audio fixture (#200419)

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 36549cb)

* test(browser): align fixtures with navigation and CLI contracts (#200428)

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit d0daf88)

* fix: restore Codex qualification fixture contracts (#200450)

* fix: restore Codex run-attempt qualification coverage

Use the complete typed transcript recorder fixtures and assert post-acceptance submission after prompt persistence, matching #199695. No production behavior or timeout changes.

Co-authored-by: RomneyDa <[email protected]>

* test: align Codex refresh callback fixtures

Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 8f0d03f)

* fix(crabbox): join heartbeat command cleanup before retirement (#200466)

(cherry picked from commit 6247dc4)

* fix(agents): retain ambiguous completed-answer receipts

* fix(qa): ignore workspace context when detecting continuation

---------

Co-authored-by: Vincent Koc <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 60e0e21)
Release adaptation: Preserve baseline authored-request continuation classifier and extractToolOutput import; newer #201244 behavior already exists. Apply runtime-context split and regression without downgrading it.:
Backport review: #201130 selected by sibling; #201331 and #198760 are independent package script changes. #201244 classifier already present-equivalent on baseline.:
(cherry picked from commit ad2ae0e0e2bf242ab0df9f9ca29f4f848caf478c)
RomneyDa added a commit that referenced this pull request Nov 19, 2026
* fix: start managed nodes when sandboxed IPC cannot receive messages

* docs(node-host): explain the launcher channel type invariant

(cherry picked from commit 2602d6a)

Co-authored-by: RomneyDa <[email protected]>
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 P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant