Skip to content

fix(runtime): support Bun across tooling suite - #146807

Merged
steipete merged 3 commits into
mainfrom
codex/bun-tooling-compat-v2
Sep 13, 2026
Merged

steipete merged 3 commits into
mainfrom
codex/bun-tooling-compat-v2

Conversation

@steipete

@steipete steipete commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Running OpenClaw's full tooling suite directly under Bun exposed several runtime mismatches: Node-owned fixture children inherited Bun through process.execPath, Bun's ws compatibility module obscured the real npm implementation needed by Gateway and worker builds, cross-runtime node:v8 payloads were not portable, and a handful of Bun subprocess, fs.watch, PATH, and exit-code differences made otherwise valid tooling fail or hang.

Solution

Route explicitly Node-owned children through the repository's stable Node resolver while keeping the parent test runner on Bun. Use the existing npm ws implementation through a focused Gateway adapter, including relocated worker bundles. Make the release-plan child transport runtime-neutral with bounded JSON and canonical base64, harden prompt and process cleanup boundaries, and retain narrowly documented Bun workarounds with removal TODOs.

This adds no dependency and does not change how Node installations resolve or run OpenClaw. The adapter uses the existing package graph and only selects the real npm ws implementation when Bun shadows the package entrypoint.

Validation

  • Direct Bun full tooling aggregate: 654 files, 20,329 passed, 131 skipped, 0 failed (10,276.26s).
  • Direct Bun core aggregates: unit-src 8,998 passed; unit-fast 20,212 passed; security 402 passed; support 4,606 passed; support-boundary 124 passed.
  • Current-main TLS renewal proof passes on custom Bun 1.4.3-canary.1+4d792548b, including partial-pair rejection, live rotation, retained connections, sibling listeners, discovery refresh, and reload-off behavior.
  • Current-main Control UI i18n suite: 42/42 passed under Node and 42/42 under custom Bun.
  • Node and Bun focused private probe: 16/16 passed on each runtime.
  • pnpm check:changed passed, including formatting, type-aware lint, all TypeScript lanes, macOS CI suites, database guards, and import-cycle checks.
  • Fresh P0-P2 autoreview found no accepted or actionable findings.

Upstream Bun status

The direct proof uses a patched Bun build because shipping Bun 1.4.2 still lacks the required SQLite fix tracked in oven-sh/bun#40005.

Two additional Bun fixes found by this campaign are open and marked AI-assisted:

@clawsweeper

clawsweeper Bot commented Sep 13, 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 gateway Gateway runtime scripts Repository scripts docker Docker and sandbox tooling size: XL maintainer Maintainer-authored PR labels Sep 13, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 13, 2026, 5:59 AM ET / 09:59 UTC (Revision 4).

ClawSweeper review

What this changes

The branch adapts tooling subprocesses, Gateway WebSockets, release-plan serialization, and test fixtures to run under Bun while retaining Node for Node-specific operations.

Merge readiness

⛔ Blocked before merge - 6 items remain

This remains useful work not covered by current main. The two prior release-bootstrap findings are resolved, but the previously reported Bun timeout-control bug remains.

Priority: P2
Reviewed head: a3d7b1ed2dc80fe50576700b71e5a4a6bf7eabc0

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful compatibility work with substantial reported validation, but one concrete timeout-handling defect still blocks merge.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied repository state identifies a member-authored PR, exempt from ordinary contributor setup proof. The revised bootstrap removes the unverified resolver import that triggered the previous authority-proof request; no remaining material authority uncertainty warrants carrying that request forward. Reported custom-Bun validation remains supplemental.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied repository state identifies a member-authored PR, exempt from ordinary contributor setup proof. The revised bootstrap removes the unverified resolver import that triggered the previous authority-proof request; no remaining material authority uncertainty warrants carrying that request forward. Reported custom-Bun validation remains supplemental.
Evidence reviewed 11 items Remaining timeout-control defect: The Bun wrapper writes control records onto stderr without a leading delimiter, but the reader recognizes its nonce only at the beginning of a line. Unterminated child stderr therefore hides the timeout record; checked execution reaches die() instead of throwing the intended ETIMEDOUT error.
Prior findings checked against the revised bootstrap: The current bootstrap imports only Node builtins and defines its resolver locally. runOperation verifies the bootstrap bytes before invoking that resolver, removing the earlier unverified resolver-module import and plain-Node loading failure.
Earlier reviewed patch identity: GitHub’s commit response confirms that the earlier reviewed head introduced the same stderr framing and imported the external resolver. This corroborates the retained finding and the subsequent bootstrap correction without relying on unavailable local historical blobs.
Findings 1 actionable finding [P2] [P2] Parse control records after unterminated child stderr
Security None None.

How this fits together

OpenClaw’s tooling launches build, validation, and release subprocesses, while the Gateway uses WebSockets for client and desktop connections. These adapters preserve their transport and process-lifecycle contracts across Node and Bun.

flowchart TD
  A[Build and validation requests] --> B[Runtime selection]
  B --> C[Node-owned subprocesses]
  C --> D[Output and timeout handling]
  E[Gateway connections] --> F[Installed WebSocket transport]
  F --> G[Client and desktop streams]
Loading

Before merge

  • [P2] Parse control records after unterminated child stderr (P2) - This prior finding remains unresolved. Under Bun, control records share stderr, and writeControl appends its nonce without first delimiting preceding child output. If a timed child writes partial without a newline and then stalls, the timeout record becomes partial<nonce>... and fails this startsWith check. wrapperTimedOut stays false, so checked execution calls die() instead of throwing ETIMEDOUT, bypassing caller recovery; unchecked stderr also contains the internal record. Frame or extract records independently of child newline boundaries while preserving child output.
  • Resolve merge risk (P2) - Bun timeout handling can terminate the enclosing automation process instead of preserving its catchable error contract.
  • Resolve merge risk (P1) - Reported runtime validation uses a custom Bun build; it does not establish equivalent behavior on stock Bun 1.4.2.
  • Complete next step (P2) - Fix Bun stderr control-record parsing and verify that an unterminated stderr line cannot turn a catchable timeout into process exit.
  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.

Findings

  • [P2] [P2] Parse control records after unterminated child stderr — scripts/e2e/parallels/host-command.ts:452-456
Agent review details

Security

None.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Production versus test growth Production/tooling net +221 lines; tests/support net +306 lines The stated justification is cross-runtime adaptation, including a self-contained verified release bootstrap.

Stored data model

Persistent data-model change detected: serialized state: scripts/e2e/parallels/host-command.ts, serialized state: scripts/lib/ci-test-timings.mts, unknown-data-model-change: scripts/e2e/parallels/host-command.ts, unknown-data-model-change: scripts/private-codex-latest-probe.ts, unknown-truncated-pull-files. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Repair control framing (recommended)
    Recognize nonce-prefixed records after unterminated stderr and verify that checked timeouts remain catchable while child stderr bytes are preserved.

Technical review

Best possible solution:

Keep the shared runtime adapters and make control-record framing independent of child stderr formatting, preserving identical timeout and output contracts under Node and Bun.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: under Bun, run a checked timed child that writes stderr without a newline and then stalls. The timeout marker joins that text and is missed; this review did not execute the scenario.

Is this the best way to solve the issue?

The overall approach fits the existing runtime owners, but the stderr framing must be corrected before the patch preserves the established timeout contract.

Full review comments:

  • [P2] [P2] Parse control records after unterminated child stderr — scripts/e2e/parallels/host-command.ts:452-456
    This prior finding remains unresolved. Under Bun, control records share stderr, and writeControl appends its nonce without first delimiting preceding child output. If a timed child writes partial without a newline and then stalls, the timeout record becomes partial<nonce>... and fails this startsWith check. wrapperTimedOut stays false, so checked execution calls die() instead of throwing ETIMEDOUT, bypassing caller recovery; unchecked stderr also contains the internal record. Frame or extract records independently of child newline boundaries while preserving child output.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.94

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 0d1cf24318b8.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The supplied repository state identifies a member-authored PR, exempt from ordinary contributor setup proof. The revised bootstrap removes the unverified resolver import that triggered the previous authority-proof request; no remaining material authority uncertainty warrants carrying that request forward. Reported custom-Bun validation remains supplemental.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove merge-risk: 🚨 security-boundary: Current PR review merge-risk labels are merge-risk: 🚨 automation.
  • remove status: 📣 needs proof: Current PR status label is status: ⏳ waiting on author.

Label justifications:

  • P2: This is a bounded runtime compatibility improvement with a remaining tooling timeout defect.
  • merge-risk: 🚨 automation: The introduced stderr control channel can bypass normal timeout recovery and exit the enclosing automation process.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The supplied repository state identifies a member-authored PR, exempt from ordinary contributor setup proof. The revised bootstrap removes the unverified resolver import that triggered the previous authority-proof request; no remaining material authority uncertainty warrants carrying that request forward. Reported custom-Bun validation remains supplemental.

Evidence

What I checked:

  • Remaining timeout-control defect: The Bun wrapper writes control records onto stderr without a leading delimiter, but the reader recognizes its nonce only at the beginning of a line. Unterminated child stderr therefore hides the timeout record; checked execution reaches die() instead of throwing the intended ETIMEDOUT error. (scripts/e2e/parallels/host-command.ts:452, a3d7b1ed2dc8)
  • Prior findings checked against the revised bootstrap: The current bootstrap imports only Node builtins and defines its resolver locally. runOperation verifies the bootstrap bytes before invoking that resolver, removing the earlier unverified resolver-module import and plain-Node loading failure. (scripts/release-plan-producer.mts:527, a3d7b1ed2dc8)
  • Earlier reviewed patch identity: GitHub’s commit response confirms that the earlier reviewed head introduced the same stderr framing and imported the external resolver. This corroborates the retained finding and the subsequent bootstrap correction without relying on unavailable local historical blobs. (scripts/e2e/parallels/host-command.ts, 8b695a487a50)
  • Current-main necessity: Current main still launches the release-plan child through process.execPath and uses node:v8 serialization, so the branch’s cross-runtime transport change remains distinct. (scripts/release-plan-producer.mts:473, 0d1cf24318b8)
  • Main and release transport comparison: Both fetched main and v2026.9.4 still load ws/index.js; neither contains the branch’s direct implementation-module adapter. (packages/gateway-client/src/websocket.ts:6, 0d1cf24318b8)
  • Guarded HTTP request review: The revised Anthropic proxy uses the existing SSRF owner with HTTPS required, redirects disabled, capture disabled, and explicit release. The guard enforces hostname/address policy and pinned transport; no introduced security bypass was established. (scripts/anthropic-prompt-probe.ts:420, a3d7b1ed2dc8)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Repair stderr control framing and cover unterminated stderr, catchable checked timeouts, and unchanged unchecked output under Node and Bun.

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.

History

Review history (3 earlier review cycles)
  • reviewed 2026-09-13T06:49:36.919Z sha 3c4d569026d7294d7288415cf3080155707c9bd0 :: needs real behavior proof before merge. :: [P1] [P1] Preserve plain-Node loading of the release bootstrap | [P1] [P1] Verify resolver bytes before executing them | [P2] [P2] Parse control records after unterminated child stderr
  • reviewed 2026-09-13T07:29:13.099Z sha 3c4d569026d7294d7288415cf3080155707c9bd0 :: needs real behavior proof before merge. :: [P1] [P1] Preserve plain-Node loading of the release bootstrap | [P1] [P1] Verify resolver bytes before executing them | [P2] [P2] Parse control records after unterminated child stderr
  • reviewed 2026-09-13T08:43:58.317Z sha 8b695a4 :: needs real behavior proof before merge. :: [P1] [P1] Preserve plain-Node loading of the release bootstrap | [P1] [P1] Verify resolver bytes before executing them | [P2] [P2] Parse control records after unterminated child stderr

@steipete
steipete force-pushed the codex/bun-tooling-compat-v2 branch from 3c4d569 to 8b695a4 Compare September 13, 2026 08:35
Comment thread scripts/anthropic-prompt-probe.ts Fixed
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 13, 2026
@steipete
steipete merged commit e572c0c into main Sep 13, 2026
344 of 347 checks passed
@steipete
steipete deleted the codex/bun-tooling-compat-v2 branch September 13, 2026 10:33
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 13, 2026
* refs/heads/temp/pr-146883: (159 commits)
  fix: retain route ownership while discovering conversations (#146927)
  refactor: reuse plugin fixture shell runner (#146920)
  fix(worker): stop preparing disabled live previews (#146896)
  fix(runtime): support Bun across tooling suite (#146807)
  chore(i18n): refresh native locales (#146924)
  perf(secrets): limit expiry metadata to transient credentials (#146882)
  fix(ui): preserve queued refreshes during session discovery (#146535)
  test(ui): wait for quiet scrolling and close named file tabs (#146836)
  fix(ui): prevent Usage hour filters from freezing during DST (#146919)
  test(ui): share browser page cleanup across layout fixtures (#146805)
  ci: balance complete PR runtime test groups (#146916)
  improve(infra): reduce scheduling work for session notice bursts (#146818)
  improve: prepare Gateway skill commands asynchronously (#146812)
  improve(agents): skip unused assistant delivery parsing (#146858)
  improve(ui): reuse date formatters across timestamp lists (#146789)
  fix(tests): isolate installer and Docker shell snippets (#146897)
  test(heartbeat): share explicit channel configuration fixtures (#146853)
  fix: retain conversation reply claims through write admission (#146866)
  perf(sessions): bound history reads and stabilize cursor paging (#146770)
  fix(ui): let slow dashboard downloads finish before recovery (#146881)
  ...
vincentkoc added a commit that referenced this pull request Sep 13, 2026
* refs/heads/temp/pr-146833: (43 commits)
  fix(memory): preserve newer indexes and disclose automatic rebuild costs (#146908)
  fix: retain route ownership while discovering conversations (#146927)
  refactor: reuse plugin fixture shell runner (#146920)
  fix(worker): stop preparing disabled live previews (#146896)
  fix(runtime): support Bun across tooling suite (#146807)
  chore(i18n): refresh native locales (#146924)
  perf(secrets): limit expiry metadata to transient credentials (#146882)
  fix(ui): preserve queued refreshes during session discovery (#146535)
  test(ui): wait for quiet scrolling and close named file tabs (#146836)
  fix(ui): prevent Usage hour filters from freezing during DST (#146919)
  test(ui): share browser page cleanup across layout fixtures (#146805)
  ci: balance complete PR runtime test groups (#146916)
  improve(infra): reduce scheduling work for session notice bursts (#146818)
  improve: prepare Gateway skill commands asynchronously (#146812)
  improve(agents): skip unused assistant delivery parsing (#146858)
  improve(ui): reuse date formatters across timestamp lists (#146789)
  fix(tests): isolate installer and Docker shell snippets (#146897)
  test(heartbeat): share explicit channel configuration fixtures (#146853)
  fix: retain conversation reply claims through write admission (#146866)
  perf(sessions): bound history reads and stabilize cursor paging (#146770)
  ...
vincentkoc added a commit that referenced this pull request Sep 13, 2026
* temp/pr-146802: (51 commits)
  improve: reduce worktree filesystem stalls and archive syncs (#146906)
  fix(ui): avoid extra chat rail work while replies stream (#146883)
  improve(ui): speed up populated Usage timelines (#146947)
  test(gateway): retain auth recovery failure diagnostics (#146925)
  fix(tests): create private temporary home directories (#146931)
  fix(backup): preserve discovery under concurrent state writes (#146912)
  fix: keep queued deliveries in their original state directory (#146917)
  fix(discord): settle voice waveform work before releasing input (#146885)
  fix(memory): preserve newer indexes and disclose automatic rebuild costs (#146908)
  fix: retain route ownership while discovering conversations (#146927)
  refactor: reuse plugin fixture shell runner (#146920)
  fix(worker): stop preparing disabled live previews (#146896)
  fix(runtime): support Bun across tooling suite (#146807)
  chore(i18n): refresh native locales (#146924)
  perf(secrets): limit expiry metadata to transient credentials (#146882)
  fix(ui): preserve queued refreshes during session discovery (#146535)
  test(ui): wait for quiet scrolling and close named file tabs (#146836)
  fix(ui): prevent Usage hour filters from freezing during DST (#146919)
  test(ui): share browser page cleanup across layout fixtures (#146805)
  ci: balance complete PR runtime test groups (#146916)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 14, 2026
* fix(runtime): support Bun across tooling suite

* fix(security): guard Anthropic probe upstream requests

* fix(runtime): preserve native TypeScript script loading
amittell added a commit to amittell/openclaw that referenced this pull request Sep 21, 2026
mantis-telegram-failure binds its ingress socket at
os.tmpdir()/oc-vt-XXXXXX/tg-diagnostic-ingress-XXXXXX/api.sock. On macOS that
path is 107 bytes under vitest, past the 104-byte sockaddr_un.sun_path, so
listen() fails with EINVAL. Root the socket dir under realpath("/tmp") on POSIX,
the openclaw#132965 idiom, and keep os.tmpdir() on win32 where the socket is a named
pipe. mantis-telegram-proof gets the same change: its path is 8 bytes under the
limit today.

Rebased onto main 5733bb1. The other half of the original change, spawning
python3 instead of bare python, landed on main in e572c0c (openclaw#146807), so the
conflict resolution takes main's line and this commit is the socket fix only.

Measured on an M4 (macOS, os.tmpdir() under /var/folders), node
scripts/run-vitest.mjs run on both files:

  main 5733bb1          5 failed, 22 passed. All five are
                            mantis-telegram-failure's ingress cases, each
                            "listen EINVAL" on a 107-byte socket path
  main + this commit        27 passed

oxfmt --check and oxlint on both files: clean.

Claude assisted with the rebase and the measurements. The submitter owns the conclusions and final review.
steipete added a commit that referenced this pull request Oct 12, 2026
## What Problem This Solves

The script tree retains dormant one-off tools and CI inventory rows that its current selector already discards.

## User Impact

No user-facing OpenClaw feature or active test selection changes. The maintained `.mts` entrypoints, runtime security checks, and existing CI filter remain in place.

## Why This Change Was Made

Delete the 642-line private acceptance probe and 214-line dormant connect installer with their dedicated tests and obsolete test inventory/timing entries. The full reference graph separates package/workflow/docs/skill/config callers from test-only references. The probe has only its dedicated test/timing reference and was last changed September 13 in #146807. The connect wrapper describes itself as dormant and unactivated, has only its dedicated test/Bash inventory references, and was last changed September 27 in #159199. Neither was active this week.

Delete 265 literal rows from `ci-proof-test-inventory.mts` that the existing `isOwnerSelectedUiE2eTest` filter already excludes. This is not a change to selection policy: the filter is unchanged and its ordered effective inventory remains 4,098 entries, byte-for-byte identical. The relevant selection policy was established in `cfa5dbf12434053460c60a25ee88fc771c666921` on October 1.

Two obsolete five-line `.mjs` aliases are also removed: `check-memory-fd-repro` and `resolve-openclaw-package-candidate`. All current package, workflow, and test callers already use the maintained `.mts` entrypoints; these aliases had no inbound references and no changes since August 9 (#121005).

The same reference audit deliberately retained active orphan-looking tools and the iOS sidebar fixture consumed through `OPENCLAW_IOS_ATTENTION_FIXTURE_URL`. No protected PR-tooling closure file changed.

Net production reduction: **1,131 lines**, excluding tests and timing data.

## Best-effort tradeoffs accepted

None in live behavior. This removes entire uncalled, dormant tools, not their security checks from a maintained path; the CI change removes only rows already filtered out.

## Evidence

- Fresh-main reference graph covered 54,316 tracked files, 1,783 scripts and 25,095 edges, including package scripts, workflows/actions, docs, skills, test/runner configs and dynamic resource roots. Independent audit found no live caller or current-week activity for the four deleted tools; all five script targets are outside the 261-file executable PR-tooling closure.
- Before/after evaluation of the actual applied commit: all 265 removed rows match the unchanged filter. Ordered effective array SHA-256 stays `048bb0503adb374dbe431844df8c0acc65e0cb42cd44b24c2badea55c3b89ba9`; all three predicates match on 10,279 inputs. Ordered exports and live exempt enumeration also match.
- Focused proof: 253 tests passed, including both inventory cases, 140 macOS script cases, 33 maintained memory-FD cases, 61 maintained package-candidate/security cases, lint suppressions and the protected wrapper inventory. Three additional wrapper-extraction cases failed because the existing local install has `mdast-util-from-markdown` 2.0.3 while current main requires 2.1.0. The dependency manifest, lockfile, materializer and failing test are unchanged by this PR. Total wrapper wall time: 443.45 seconds; Vitest reported 397.90 seconds. No timeout, assertion, retry or skip was changed.
- Runtime and static cycle checks passed with zero cycles. Independent P0/P1 autoreview was scoped-clean; the applied commit has the identical stable patch ID to that reviewed cut.
- Changed-file verification passed all preceding guards, formatting, script types and all four root-test type shards. Script Knip passed with zero entries. The production/full-tree Knip scans both hit their unchanged 600-second deadlines, so the overall command is incomplete at that stage, not green. Its default remote backend did not authenticate or run checks; these are local-fallback results. Full script lint and changed-test lint passed separately. Exact-head hosted CI remains the landing gate.
- Hosted CI [run 38204018042](https://github.com/openclaw/openclaw/actions/runs/38204018042) passed at `392e950df000e7dbd095fe9447392d11af7a041c`. Final exact-head census: 177 terminal checks, 79 successful, 97 intentionally skipped, one neutral, no failures or cancellations; dependency/security review and combined CI statuses are successful. No CI reruns or green-only pushes.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 13, 2026
…#169606)

## What Problem This Solves

The script tree retains dormant one-off tools and CI inventory rows that its current selector already discards.

## User Impact

No user-facing OpenClaw feature or active test selection changes. The maintained `.mts` entrypoints, runtime security checks, and existing CI filter remain in place.

## Why This Change Was Made

Delete the 642-line private acceptance probe and 214-line dormant connect installer with their dedicated tests and obsolete test inventory/timing entries. The full reference graph separates package/workflow/docs/skill/config callers from test-only references. The probe has only its dedicated test/timing reference and was last changed September 13 in openclaw#146807. The connect wrapper describes itself as dormant and unactivated, has only its dedicated test/Bash inventory references, and was last changed September 27 in openclaw#159199. Neither was active this week.

Delete 265 literal rows from `ci-proof-test-inventory.mts` that the existing `isOwnerSelectedUiE2eTest` filter already excludes. This is not a change to selection policy: the filter is unchanged and its ordered effective inventory remains 4,098 entries, byte-for-byte identical. The relevant selection policy was established in `4544bdc0121b1d8fdc917d456015078338775fac` on October 1.

Two obsolete five-line `.mjs` aliases are also removed: `check-memory-fd-repro` and `resolve-openclaw-package-candidate`. All current package, workflow, and test callers already use the maintained `.mts` entrypoints; these aliases had no inbound references and no changes since August 9 (openclaw#121005).

The same reference audit deliberately retained active orphan-looking tools and the iOS sidebar fixture consumed through `OPENCLAW_IOS_ATTENTION_FIXTURE_URL`. No protected PR-tooling closure file changed.

Net production reduction: **1,131 lines**, excluding tests and timing data.

## Best-effort tradeoffs accepted

None in live behavior. This removes entire uncalled, dormant tools, not their security checks from a maintained path; the CI change removes only rows already filtered out.

## Evidence

- Fresh-main reference graph covered 54,316 tracked files, 1,783 scripts and 25,095 edges, including package scripts, workflows/actions, docs, skills, test/runner configs and dynamic resource roots. Independent audit found no live caller or current-week activity for the four deleted tools; all five script targets are outside the 261-file executable PR-tooling closure.
- Before/after evaluation of the actual applied commit: all 265 removed rows match the unchanged filter. Ordered effective array SHA-256 stays `048bb0503adb374dbe431844df8c0acc65e0cb42cd44b24c2badea55c3b89ba9`; all three predicates match on 10,279 inputs. Ordered exports and live exempt enumeration also match.
- Focused proof: 253 tests passed, including both inventory cases, 140 macOS script cases, 33 maintained memory-FD cases, 61 maintained package-candidate/security cases, lint suppressions and the protected wrapper inventory. Three additional wrapper-extraction cases failed because the existing local install has `mdast-util-from-markdown` 2.0.3 while current main requires 2.1.0. The dependency manifest, lockfile, materializer and failing test are unchanged by this PR. Total wrapper wall time: 443.45 seconds; Vitest reported 397.90 seconds. No timeout, assertion, retry or skip was changed.
- Runtime and static cycle checks passed with zero cycles. Independent P0/P1 autoreview was scoped-clean; the applied commit has the identical stable patch ID to that reviewed cut.
- Changed-file verification passed all preceding guards, formatting, script types and all four root-test type shards. Script Knip passed with zero entries. The production/full-tree Knip scans both hit their unchanged 600-second deadlines, so the overall command is incomplete at that stage, not green. Its default remote backend did not authenticate or run checks; these are local-fallback results. Full script lint and changed-test lint passed separately. Exact-head hosted CI remains the landing gate.
- Hosted CI [run 38204018042](https://github.com/openclaw/openclaw/actions/runs/38204018042) passed at `392e950df000e7dbd095fe9447392d11af7a041c`. Final exact-head census: 177 terminal checks, 79 successful, 97 intentionally skipped, one neutral, no failures or cancellations; dependency/security review and combined CI statuses are successful. No CI reruns or green-only pushes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants