Repository navigation
fix(release): review Codex stdio worker exec in plugin npm scan inventory - #192603
Conversation
…tory #192543 moved the managed Codex app-server spawn into the stdio.worker.ts worker thread so uv_spawn cannot block the Gateway thread. The packed dist/stdio.worker.js now carries that reviewed dangerous-exec finding; without an inventory entry the next plugin npm publish fails on @openclaw/codex.
|
🦞👀 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 permits one reviewed process-launch finding in the packed Codex stdio worker. Example: Scan an @openclaw/codex npm tarball containing one dangerous-exec finding in dist/stdio.worker.js.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenanceRegression provenance — verified: source commit Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR fixes a verified release-scan inventory omission still present on current main, with no actionable patch findings. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherPlugin publication passes exact npm tarballs through the security scanner, which checks critical findings against package, layout, rule, path, and count inventories before artifact upload. flowchart LR
A[Codex plugin source] --> B[Packed npm tarball]
B --> C[Exact artifact scanner]
D[Reviewed finding inventory] --> C
C --> E[Reject unexpected findings]
C --> F[Qualified publication artifact]
Technical reviewBest possible solution: Land the single worker allowance through the existing reviewed inventory while preserving supported-release transport allowances. Do we have a high-confidence way to reproduce the issue? The worker spawn, build registration, missing main inventory key, and scanner rejection condition establish the failure path; the linked discussion records the matching packed-artifact failure, but no target code was run during this review. Is this the best way to solve the issue? This is the smallest complete fix: record the moved, source-verified launch operation in the existing inventory without changing scanner policy or runtime behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 062d5d85481f. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceOther +1. Total +1 across 1 file. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
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 4, 2026, 1:48 AM ET / 06:48 UTC. |
…tory (openclaw#192603) openclaw#192543 moved the managed Codex app-server spawn into the stdio.worker.ts worker thread so uv_spawn cannot block the Gateway thread. The packed dist/stdio.worker.js now carries that reviewed dangerous-exec finding; without an inventory entry the next plugin npm publish fails on @openclaw/codex.
Problem
#192543 (649dbeb) moved the managed Codex app-server launch,
spawn(message.command, message.args, { ...message.options, stdio: "pipe" }), out of the stdio transport and into theextensions/codex/stdio.worker.tsworker thread, souv_spawncannot block the Gateway thread. The packed@openclaw/codexartifact now shipsdist/stdio.worker.jswith adangerous-execfinding (line 27) that has no entry inscripts/plugin-npm-security-scan.mts. Without this entry, the next plugin npm publish fails on@openclaw/codexwithunreviewed critical findings in exact npm artifact.Solution
Add the reviewed count entry
["dist:@openclaw/codex:dangerous-exec:dist/stdio.worker.js", 1]. This is the same launch path that the transport-stdio entries already cover, and it was reviewed and accepted by the lead. The scanner needs no content-hash entry: the hash map only pins the imessage and openshell findings.Impact
Release tooling only. The scan accepts the moved spawn; no other inventory key changes.
Evidence
extensions/codexpack from currentmain(15e38612b4be, cleandist/) has five critical findings:dist/stdio.worker.js: 1 (hash4478d716…), the new key.setup/dynamic-tools: 1 (limit 2).setup/installed-probe: 1 (limit 1).setup/transport-stdio: 2 (limit 3).setup/transport-stdiochanged, going from 3 to 2 because its spawn moved into the worker. I kept limit 3 because the inventory covers supported release lines that still have 3.node --import tsx scripts/plugin-npm-security-scan.mts --package-name @openclaw/codex …passes on that pack. Without it, the same finding fails the newcheck-plugin-npm-security-scanrow on fix(release): scan plugin npm packs with publisher tooling early in FRV #192591 (job).test/scripts/plugin-npm-security-scan.test.ts: 7 passed.