Skip to content

fix(release): review Codex stdio worker exec in plugin npm scan inventory - #192603

Merged
RomneyDa merged 1 commit into
mainfrom
fix/codex-stdio-worker-scan-inventory
Nov 4, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/codex-stdio-worker-scan-inventory

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Nov 4, 2026

Copy link
Copy Markdown
Member

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 the extensions/codex/stdio.worker.ts worker thread, so uv_spawn cannot block the Gateway thread. The packed @openclaw/codex artifact now ships dist/stdio.worker.js with a dangerous-exec finding (line 27) that has no entry in scripts/plugin-npm-security-scan.mts. Without this entry, the next plugin npm publish fails on @openclaw/codex with unreviewed 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

  • A fresh extensions/codex pack from current main (15e38612b4be, clean dist/) has five critical findings:
    • dist/stdio.worker.js: 1 (hash 4478d716…), the new key.
    • setup/dynamic-tools: 1 (limit 2).
    • setup/installed-probe: 1 (limit 1).
    • setup/transport-stdio: 2 (limit 3).
  • Compared with fix(codex): avoid Gateway freezes during app-server launch #192543's parent, only setup/transport-stdio changed, 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.
  • With this entry, node --import tsx scripts/plugin-npm-security-scan.mts --package-name @openclaw/codex … passes on that pack. Without it, the same finding fails the new check-plugin-npm-security-scan row 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.

…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.
@RomneyDa RomneyDa added the release-fast-lane Release tooling PR: narrow ci-gate, ClawSweeper advisory (RELEASING.md) label Nov 4, 2026
@clawsweeper

clawsweeper Bot commented Nov 4, 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 scripts Repository scripts size: XS labels Nov 4, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment 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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 4, 2026
@clawsweeper

clawsweeper Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The exact-artifact security scan rejects the package as containing an unreviewed critical finding.
  • After: The worker finding is accepted; additional findings beyond the limit remain rejected.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-verified repair with reported exact-pack CLI validation and no actionable findings; raw after-fix terminal output was not supplied.
Proof confidence 🐚 platinum hermit (4/6) This maintainer-authored PR is outside the ordinary contributor proof gate; its body reports a fresh Codex npm pack passing the real scanner CLI after the entry was added, supported by the linked pre-fix failure record.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Release operators cannot qualify the newly packed Codex worker because its reviewed launch operation appears at an unlisted artifact path.
Reason: The maintainer-authored change repairs a concrete inventory mismatch using the established owner and preserves unrelated rejection behavior.

Regression provenance

Regression provenance — verified: source commit 649dbeb9f5aa by Peter Steinberger; canonical PR #192543 (blame-to-merge-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
Reviewed head: 71f26a4cba92f28a5568a76816a17903520af3a4

Before merge

None.

Findings

None.

Agent review details

How this fits together

Plugin 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]
Loading

Technical review

Best 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

  • Layout-bound reviewed critical-finding inventory keeps the original intent (8841578: Scan exact publication bytes while retaining reviewed runtime allowances across supported release layouts.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Dallin Romney: Raw commit 8841578 adds scripts/plugin-npm-security-scan.mts:18 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 88415783fb41; files: scripts/plugin-npm-security-scan.mts)
  • Peter Steinberger: Raw commit 649dbeb adds extensions/codex/stdio.worker.ts:24 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 649dbeb9f5aa; files: extensions/codex/stdio.worker.ts)

PR surface

Other +1. Total +1 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 0 +1
Total 1 1 0 +1

Labels

Label changes:

  • add P2: The omission blocks qualification of the Codex npm artifact, with a narrow release-tooling blast radius and no demonstrated installed-user outage.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: The omission blocks qualification of the Codex npm artifact, with a narrow release-tooling blast radius and no demonstrated installed-user outage.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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 4, 2026, 1:48 AM ET / 06:48 UTC.

@RomneyDa
RomneyDa merged commit 2270c7c into main Nov 4, 2026
114 checks passed
@RomneyDa
RomneyDa deleted the fix/codex-stdio-worker-scan-inventory branch November 4, 2026 14:22
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 5, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. release-fast-lane Release tooling PR: narrow ci-gate, ClawSweeper advisory (RELEASING.md) scripts Repository scripts size: XS 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