Repository navigation
test(plugins): refresh Codex exec scan baseline - #126215
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
7a5e5de to
a0826b7
Compare
|
Codex review: needs maintainer review before merge. Reviewed August 19, 2026, 2:18 AM ET / 06:18 UTC. ClawSweeper reviewWhat this changesThe PR replaces two former Codex sandbox-exec caller paths in the publishable-plugin security-scan baseline with the shared child-process owner path. Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readinessNo blocking finding: the baseline now names the sole direct Node subprocess owner. This maintainer-authored PR should remain open for exact-head CI and normal merge handling. Priority: P3 Review scores
Verification
Live VerificationCommand: Result: FAIL (partial) — step 2 Assertions:
How this fits togetherThe publishable-plugin release scan stages npm package files, scans them for critical execution patterns, and compares results with a reviewed baseline. Codex HTTP and process RPC handlers delegate subprocess lifecycle to a shared child owner, which is the scan’s actual finding. flowchart LR
A[Publishable Codex package] --> B[Staged package files]
B --> C[Security scanner]
C --> D[Reviewed critical findings]
E[HTTP and process RPC handlers] --> F[Shared child-process owner]
F --> C
D --> G[Release qualification result]
Before merge
Agent review detailsSecurityNone. PR surfaceTests -1. Total -1 across 1 file. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep the exact reviewed finding at the shared subprocess owner and merge after the remaining exact-head checks pass. Do we have a high-confidence way to reproduce the issue? Yes: source inspection establishes the mismatch because only sandbox-child.ts directly calls Node spawn while the base baseline names its delegating callers. Is this the best way to solve the issue? Yes: updating the reviewed baseline to the shared lifecycle owner preserves the exact-count security-scan contract without changing runtime or scanner behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against df9b55315051. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
c724440 to
d3526a7
Compare
|
@clawsweeper re-review Exact head: |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Punchcard-Session: frost-orchard-lantern-ze
d3526a7 to
de2ab5d
Compare
Punchcard-Session: frost-orchard-lantern-ze
What Problem This Solves
Resolves a release qualification failure where the publishable plugin security scan still expected two Codex subprocess findings at their former caller files after subprocess creation moved to shared lifecycle owners, then missed a new reviewed process-inspection site.
Why This Change Was Made
Replaces the stale
http.tsandprocesses.tsentries with the canonicalsandbox-child.tssubprocess owner and records the reviewedtransport-process-containment.tsprocess-inspection site. Scanner semantics, Codex runtime behavior, config, scripts, workflows, and release behavior are unchanged.User Impact
No runtime user impact. Maintainers can run the publishable plugin release scan against the current Codex package layout without false baseline failures.
Evidence
b24430fd04232a3ce6fe0adc6add39647dcf0114reported the unreviewed findingssandbox-child.ts:44andtransport-process-containment.ts:219.de2ab5d16f4c43d67abf88a35dc40966d4a5eb7f, based onmainc5b7739ed56343761cc3db2c103df949a3e1b17e:node scripts/run-vitest.mjs src/plugins/npm-install-security-scan.release.test.tspassed 94/94.checks-node-agentic-pluginsequivalent on Blacksmith Testboxtbx_01m0dg25v8smm3vpamz3c9gnq6passed 244 files / 3,727 tests with 1 skipped and exit 0: https://github.com/openclaw/openclaw/actions/runs/32280127398pnpm format:check src/plugins/npm-install-security-scan.release.test.tsandgit diff --checkpassed.0; tests+2/-2(net0).node scripts/check-changed.mjs -- src/plugins/npm-install-security-scan.release.test.tspassed conflict, ratchet, dependency, format, plugin-boundary, wrapper, and patch lanes before the sparse checkout's dead-export scan rejected missingui/configinputs. Re-running withOPENCLAW_CHECK_CHANGED_SKIP_DEADCODE=1completed the remaining targeted wrapper lanes; exact-head CI remains the authoritative full-check proof.openai/codex@414782450952a196bbb64b1605a458c2531c47b6:codex-rs/cli/src/main.rs:1002-1016dispatchesexec;codex-rs/core/src/exec.rs:297-316routes execution through the sandbox owner,codex-rs/core/src/exec.rs:930-954prepares the child request, andcodex-rs/core/src/spawn.rs:52-125performs the process spawn.extensions/codex/src/app-server/sandbox-exec-server/sandbox-child.ts:30-48owns sandbox child creation;http.ts:110-137andprocesses.ts:92-134delegate to it.extensions/codex/src/app-server/transport.ts:44-76delegates descendant cleanup totransport-process-containment.ts:201-238, whoseexecFile("ps", ...)is a separate reviewed execution site.AI-assisted: yes.
Punchcard-Session: frost-orchard-lantern-ze