Skip to content

test(plugins): refresh Codex exec scan baseline - #126215

Merged
vincentkoc merged 1 commit into
mainfrom
test/refresh-codex-exec-scan-baseline
Aug 19, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
test/refresh-codex-exec-scan-baseline

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 19, 2026 •

Copy link
Copy Markdown
Member

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.ts and processes.ts entries with the canonical sandbox-child.ts subprocess owner and records the reviewed transport-process-containment.ts process-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

  • Frozen main qualification at b24430fd04232a3ce6fe0adc6add39647dcf0114 reported the unreviewed findings sandbox-child.ts:44 and transport-process-containment.ts:219.
  • On exact head de2ab5d16f4c43d67abf88a35dc40966d4a5eb7f, based on main c5b7739ed56343761cc3db2c103df949a3e1b17e: node scripts/run-vitest.mjs src/plugins/npm-install-security-scan.release.test.ts passed 94/94.
  • Exact checks-node-agentic-plugins equivalent on Blacksmith Testbox tbx_01m0dg25v8smm3vpamz3c9gnq6 passed 244 files / 3,727 tests with 1 skipped and exit 0: https://github.com/openclaw/openclaw/actions/runs/32280127398
  • pnpm format:check src/plugins/npm-install-security-scan.release.test.ts and git diff --check passed.
  • Diff: production LOC 0; tests +2/-2 (net 0).
  • node scripts/check-changed.mjs -- src/plugins/npm-install-security-scan.release.test.ts passed conflict, ratchet, dependency, format, plugin-boundary, wrapper, and patch lanes before the sparse checkout's dead-export scan rejected missing ui/config inputs. Re-running with OPENCLAW_CHECK_CHANGED_SKIP_DEADCODE=1 completed the remaining targeted wrapper lanes; exact-head CI remains the authoritative full-check proof.
  • Direct upstream Codex inspection at openai/codex@414782450952a196bbb64b1605a458c2531c47b6: codex-rs/cli/src/main.rs:1002-1016 dispatches exec; codex-rs/core/src/exec.rs:297-316 routes execution through the sandbox owner, codex-rs/core/src/exec.rs:930-954 prepares the child request, and codex-rs/core/src/spawn.rs:52-125 performs the process spawn.
  • OpenClaw ownership inspection: extensions/codex/src/app-server/sandbox-exec-server/sandbox-child.ts:30-48 owns sandbox child creation; http.ts:110-137 and processes.ts:92-134 delegate to it. extensions/codex/src/app-server/transport.ts:44-76 delegates descendant cleanup to transport-process-containment.ts:201-238, whose execFile("ps", ...) is a separate reviewed execution site.

AI-assisted: yes.

Punchcard-Session: frost-orchard-lantern-ze

@clawsweeper

clawsweeper Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@vincentkoc vincentkoc self-assigned this Aug 19, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Aug 19, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 19, 2026 06:09
@vincentkoc
vincentkoc force-pushed the test/refresh-codex-exec-scan-baseline branch from 7a5e5de to a0826b7 Compare August 19, 2026 06:13
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. labels Aug 19, 2026
@clawsweeper

clawsweeper Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 19, 2026, 2:18 AM ET / 06:18 UTC.

ClawSweeper review

What this changes

The PR replaces two former Codex sandbox-exec caller paths in the publishable-plugin security-scan baseline with the shared child-process owner path.

Regression provenance

Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

No 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
Reviewed head: a0826b7e67b088eb74f367306458df9ee741dab0

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused test-only repair whose expected finding matches the current subprocess owner; exact-head CI remains the normal merge gate.
Proof confidence 🌊 off-meta tidepool Not applicable: This repository-member test-only PR has source-backed release-test evidence; the external contributor proof gate does not apply.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This repository-member test-only PR has source-backed release-test evidence; the external contributor proof gate does not apply.
Evidence reviewed 6 items Branch diff: The PR removes the two obsolete caller paths and adds the shared owner path; it changes only the release-scan test baseline.
Baseline contract: The test scans staged publishable packages and fails on unexpected critical findings or exact-count mismatches.
Actual execution owner: sandbox-child imports node:child_process and directly calls spawn at line 44; HTTP and process handlers call its shared owner instead of spawning themselves.
Findings None None.
Security None None.

Live Verification

Command: node scripts/run-vitest.mjs src/plugins/npm-install-security-scan.release.test.ts

Result: FAIL (partial) — step 2 expect_output publishable plugin npm package install security scan: expected terminal output was not visible within 30 seconds: "publishable plugin npm package install security scan"

node scripts/run-vitest.mjs src/plugins/npm-install-security-scan.release.test.ts
runner@runnervm76f27:/tmp/clawsweeper-live-proof-126215-t9x4aS/target$ node scripts/run-vitest.mjs src/plugins/npm-install-security-scan.release.test.ts
node scripts/run-vitest.mjs src/plugins/npm-install-security-scan.release.test.ts
[test] starting test/vitest/vitest.plugins.config.ts

 RUN  v4.1.10 /tmp/clawsweeper-live-proof-126215-t9x4aS/target

[vitest] still running with no output for 30000ms (test/vitest/vitest.plugins.config.ts).











































Assertions:

  • FAIL expect_output: publishable plugin npm package install security scan

How this fits together

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

Before merge

  • Complete next step (P2) - No repair lane is needed: the remaining action is normal exact-head CI and maintainer merge handling.
Agent review details

Security

None.

PR surface

Tests -1. Total -1 across 1 file.

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

Review metrics

Metric Value Why it matters
Production versus test LOC production +0/-0; tests +1/-2 The change updates only a release-scan expectation and does not alter runtime subprocess or scanner behavior.

Root-cause cluster

Relationship: canonical
Canonical: #126215
Summary: This PR is the focused follow-up for the baseline drift documented by the related merged scanner-maintenance PR.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

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

Labels

Label changes:

  • add P3: This is a small test-baseline maintenance change with no runtime user-path impact.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This repository-member test-only PR has source-backed release-test evidence; the external contributor proof gate does not apply.

Label justifications:

  • P3: This is a small test-baseline maintenance change with no runtime user-path impact.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This repository-member test-only PR has source-backed release-test evidence; the external contributor proof gate does not apply.

Evidence

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Base-revision blame attributes the former Codex reviewed-finding entries to this commit. (role: reviewed-baseline author; confidence: high; commits: 2a469c1cb2e1; files: src/plugins/npm-install-security-scan.release.test.ts)
  • steipete: The merged related PR chore(skills): remove scanner cache reset seam #126199 maintained the same scanner surface and documented this distinct baseline drift. (role: adjacent scanner-maintenance contributor; confidence: medium; commits: 95ac5b27fa14; files: src/skills/security/scanner.ts, src/plugins/npm-install-security-scan.release.test.ts)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@vincentkoc
vincentkoc force-pushed the test/refresh-codex-exec-scan-baseline branch 2 times, most recently from c724440 to d3526a7 Compare August 19, 2026 17:02
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Exact head: d3526a7f2a2eb9252019ce060137184e8eb208ef. The amended test-only baseline now removes stale http.ts and processes.ts, retains sandbox-child.ts count 1, and adds transport-process-containment.ts count 1. Focused release scan passes 94/94; durable evidence is updated in the PR body.

@clawsweeper

clawsweeper Bot commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

Punchcard-Session: frost-orchard-lantern-ze
@vincentkoc
vincentkoc force-pushed the test/refresh-codex-exec-scan-baseline branch from d3526a7 to de2ab5d Compare August 19, 2026 17:10
@vincentkoc
vincentkoc merged commit 957f013 into main Aug 19, 2026
113 checks passed
@vincentkoc
vincentkoc deleted the test/refresh-codex-exec-scan-baseline branch August 19, 2026 17:23
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 20, 2026
Punchcard-Session: frost-orchard-lantern-ze
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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