Repository navigation
fix: retain local helper programs in standalone builds - #183120
Conversation
|
🦞👀 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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 47c5431b8f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Codex review: needs changes before merge. What this changesThis PR replaces inline local helper programs with manifest-declared entries and generated assets for standalone builds. Example: A standalone executable captures a shell snapshot.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 3 items remain Keep this useful, maintainer-directed repair open, but fix the direct-entry startup regression and two incomplete install-hook closures before merging. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe runtime-process manifest connects helper callers to source, packaged, and embedded programs; helpers receive arguments or stdin and return capability results, manifests, or repository-operation outcomes. flowchart LR
A[CLI and Gateway callers] --> B[Runtime process manifest]
B --> C[Build asset generator]
C --> D[Packaged helper modules]
C --> E[Materialized probe files]
D --> F[Selected runtime]
E --> F
F --> G[Results and repository effects]
Technical reviewBest possible solution: Retain the existing manifest and generator owners, preserve a package-root anchor for SQLite admission, and complete every affected lifecycle import closure. Do we have a high-confidence way to reproduce the issue? Source inspection establishes the misplaced worker URL and missing lifecycle dependencies; no target code was executed during this read-only review. Is this the best way to solve the issue? Manifest-declared programs and generated assets fit the existing architecture, but the cutover must preserve direct built-entry startup and all staged installation consumers. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 37835f474273. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfacePR surface statistics unavailable: the file list is incomplete. 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 October 24, 2026, 10:27 PM ET / October 25, 2026, 02:27 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…rity tests Update the stale inline-probe fixture for the generated daemon-runtime-probe.mjs boundary introduced by #183120. Preserve all 21 cases, authority assertions, and rejection of unexpected subprocesses. Proof: on macOS, Node and Bun each reproduce 5 base failures with Unexpected fixture runtime process and pass all 21 cases with the fix (CI reported 14 failures). Focused type-aware oxlint, format check, git diff --check, and one isolated Codex review pass.
* fix: retain local helper programs in standalone builds * fix: retain runtime probe assets across packaged layouts * fix: keep bundled runtime probes self-contained
…rity tests Update the stale inline-probe fixture for the generated daemon-runtime-probe.mjs boundary introduced by openclaw#183120. Preserve all 21 cases, authority assertions, and rejection of unexpected subprocesses. Proof: on macOS, Node and Bun each reproduce 5 base failures with Unexpected fixture runtime process and pass all 21 cases with the fix (CI reported 14 failures). Focused type-aware oxlint, format check, git diff --check, and one isolated Codex review pass.
What Problem This Solves
Fixes local helper programs that depend on inline JavaScript or loose application files after packaging. Compiled CLI fixtures and portable workers could also reject a supported runtime because SQLite startup admission expected a neighboring worker file.
User Impact
Repository publication and restoration, workspace manifests and Git history, shell environment capture, and runtime discovery use declared programs in ordinary Node/Bun installations and standalone builds. Sealed package recovery remains self-contained after the original package is removed. Temporary program files are removed with their private directories after execution.
No new configuration or dependencies are required. A small external disk-script control currently crashes the experimental AOT runtime, so its qualification depends on a compiler/runtime fix. This change adds no routing workaround; external probes retain the selected runtime and the existing SDK contract.
Why This Change Was Made
The existing process manifest owns local entrypoints and built script assets. Generation replaces runtime function compilation and inline local child programs while preserving remote command contracts and npm/npx installation topology.
SQLite boot admission now runs its fixed in-memory probe once behind the original shared asynchronous Promise. Removing its worker eliminates layout-dependent startup and the recovery-specific execution mode without changing runtime support policy or touching operator databases. The temporary-script owner creates and disposes one private directory per invocation. Package, Docker, and isolated tooling fixtures include the declared asset closure and model the file-based probe protocol.
This runtime stage follows #182405 and #182982. The manifest remains the owner of declared internal programs. The remaining build check is limited to declared entries and their embedded outputs; it will not infer arbitrary process arguments or restrict the existing external SDK execution contract. Runtime execution diagnostics remain with the shared profile owner from #182346 and #182818.
Evidence
Targeted production, script, and test types; type-aware core/script/fixture lint; canonical regeneration; formatting; whitespace; the unchanged
457/457environment budget; and duplicate coverage passed. Independent Codex review of the full earlier candidate and the final repair delta is clean through P2.Small extracted AOT probes: undeclared Doctor/discovery/backup workers fail; declared entries pass all seven operations, including with sources hidden, with matching loose Node/Bun results. Serialized hashing fails before the cutover; its static worker returns the same hash afterward. Repository restore, shell capture, and manifest-dispatched inventory controls also pass.
Tiny SQLite AOT control: the prior bundle reports unavailable SQLite because its worker is missing; the final bundle reports SQLite 3.54.0, successful TEXT/BLOB/JSON round trips, and shared Promise identity. It compiles in 2.57s and runs in 0.51s. These single launches establish behavior, not a performance result. The compiler warns on the existing global-symbol cache assignment; execution succeeds. The three probe source modules are byte-identical to the final candidate.
Real Node/Bun temporary-script controls preserve 0700 directories and 0600 files, execute successfully, and leave the parent empty after disposal. Before the repair, an extra shared helper directory remains inside the parent.
No full OpenClaw AOT build or interpreter-tripwire claim. Exact-head PR CI supplies broad proof.
The full local portable-worker replay installed and prewarmed the worker successfully, then workspace materialization refused a group-writable shared scratch-volume ancestor. The security guard is unchanged. Full-flow qualification remains with exact-head PR CI; local failure and filesystem evidence are retained.
Focused test results and wall times
Commands use
pnpm test <files> --maxWorkers=1with named-case selection where appropriate. Wall times include cold normal-runtime/worker compilation, artifact-lock waiting, and cleanup; they are not operation benchmarks.CI Attribution
Exact-head CI run 40162942859 tests
8048bbb8b4d675efe6999f08b3dff92735cd6638through merge314088562bf93c0668017629eea260f49bef79a7, whose main parent is33d229b35cf28bf71dad4148f3bb16f8e7710f34. The following failures are inherited from that main baseline. Their determining source files match the tested merge; the native landing evidence retains the failed checks and their attribution.checks-ui (2/3)checks-node-compact-small-16checks-node-changed-16checks-node-changed-18checks-node-changed-14checks-node-changed-23checks-node-changed-17The older main checkout passes the Git backup and Telegram tests; those passing replays are not presented as reproductions of the newer failures. The exact-baseline controls identify the intervening main changes.