Repository navigation
fix: managed nodes fail to start when a sandbox restricts IPC - #198760
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis 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.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +21, Tests +42, Docs +7, Config +1, Other +100. Total +171 across 5 files. Added test files: 0. View PR surface stats
Preflight sourceSource 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
LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 14, 2026, 3:42 AM ET / 08:42 UTC. |
|
Merged via squash.
|
…aw#198760) * fix: start managed nodes when sandboxed IPC cannot receive messages * docs(node-host): explain the launcher channel type invariant
* 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)
* 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]>
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
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.