Repository navigation
fix(node): start managed nodes when descriptor reception is blocked - #186282
Kimiyu-186 wants to merge 1 commit into
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 bounded JSON byte stream so managed Node.js nodes can start without descriptor reception. Example: A managed node runs with Node.js 24.22.1 on Linux under a sandbox denying descriptor reception.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it addresses an owned launcher startup failure, 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 the node runtime; its private control channel carries bootstrap settings, authenticated-readiness notifications, and update restart requests. flowchart TD
A[Installed CLI or node service] --> B[Node host launcher]
B --> C[Selected package manifest]
C --> D[Byte stream or native IPC]
D --> E[Node launcher client]
E --> F[Node runtime and Gateway connection]
F --> E
Technical reviewBest possible solution: Keep transport adaptation inside the existing launcher while preserving manifest-selected compatibility with installed runtimes. Do we have a high-confidence way to reproduce the issue? Current main unconditionally creates native IPC for managed children, establishing the reported dependency on descriptor reception; sandbox failure was not independently executed in this read-only review. Is this the best way to solve the issue? The smallest complete repair is transport adaptation in the existing supervisor and client: bootstrap, readiness, restart authorization, executable selection, and persisted-state ownership remain with their current owners. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a189175a709b. 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
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 October 27, 2026, 4:48 PM ET / 20:48 UTC. |
What Problem This Solves
Fixes managed node startup under process sandboxes that deny descriptor reception, including Strands Box. Node IPC uses
recvmsgeven though the launcher exchanges only JSON control messages.User Impact
Node.js on macOS and Linux can bootstrap, report readiness, and restart managed nodes without granting descriptor import. Bun, Windows, and installed packages without the new capability retain their existing native IPC path. The Box qualification uses Node.js; this does not claim Bun support under Box's descriptor-reception denial.
Why This Change Was Made
The launcher owns executable selection and this parent/child channel. It selects
byte-pipe-v1from the selected package manifest and uses length-prefixed JSON on a private inherited stream. Frames are limited to 1 MiB; queued writes to 256 messages and 4 MiB. Invalid frames close the channel, and a child stops if its supervisor disconnects.Keeping transport selection in the launcher preserves mixed-version updates without an OCE preload duplicating launcher lifecycle or monkey-patching
process.send. Executable selection, restart authorization, pairing, and sandbox policy remain unchanged. The necessary growth is the bounded transport, narrow client wiring, two real-child regressions, and one existing legacy-runtime case.Bun retains native IPC because the repository's pinned Bun 1.4.4 does not consume inherited socket data through
net.Socket({ fd })in a minimal ping/pong reproduction. Selecting the byte transport there regressed existing startup tests; retaining native IPC restores them. The same socket reproduction works with Node 24.22.1.Evidence
Current branch, macOS ARM64:
d884222b50d0c48ed44846da920b99ebb5807c47: the new bootstrap case fails because it observes native IPC; the fixed Node case observes no native IPC. Payload delivery itself succeeds in both, so this is not a setup failure.git diff --checkpass. No dependency-version or lockfile changes. CI time and broad/platform CI remain pending.Separate installed integration evidence: the backport on pinned OpenClaw
f8386bc7df0a6c9eda7a28ae81943c5c06a414ffpassed 33/33 native OCE cases and actual VM stop/start recovery on Linux ARM64, including remote Harness, files, skills, local semantic memory, and code mode. Runtime digest:sha256:8829c6bf6230d4c0ab4aa3a55b5c9822ce245149fc749607239609d954c63d08. The image build passed 32 pinned-source launcher cases; descriptor reception stayed denied. These results qualify that pinned backport, not a full installed E2E of this main-branch port. Windows has not been runtime-tested locally.Draft for review. Independent autoreview is unavailable with the installed CLI/account model combination. The author approved a draft-only waiver; independent review still blocks merge. No merge or readiness promotion is requested.