Repository navigation
fix: restore standalone helper launches - #182982
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. |
|
|
Codex review: blocked before merge. What this changesThis PR moves remaining helper programs and launch paths into the shared runtime-process manifest. Example: A standalone installation lists a paired node's directory.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 5 items remain Keep open: this maintainer-directed repair addresses missing standalone helper entries, but introduces native-tooling import failures and a Bun Doctor capability-check regression. Priority: P2 Before merge
Findings
Provenance
Tests
Agent review detailsHow this fits togetherRuntime-process declarations connect helper callers to source modules, installed package outputs, and embedded standalone entries; lifecycle and admission owners still control execution. flowchart LR
A[Helper callers] --> B[Runtime process manifest]
B --> C[Entry resolution]
C --> D[Source or installed runtime]
C --> E[Standalone dispatcher]
D --> F[Helper program]
E --> F
F --> G[Result and lifecycle cleanup]
Technical reviewBest possible solution: Keep the manifest cutover, preserve native Node importability throughout shared tooling closures, and pass the Doctor worker target separately from runtime flags. Do we have a high-confidence way to reproduce the issue? Current-main source retains the unsupported inline helpers, and exact-head CI independently demonstrates the introduced native-import and Bun capability-check failures; no target code was executed during this review. Is this the best way to solve the issue? Extending the existing manifest is appropriate, but its consumers must retain their native source-import and explicit worker-target contracts. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ab7631a25601. 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, 6:55 PM ET / 22:55 UTC. |
Use native-resolvable source imports for manifest consumers loaded directly by Node. Carry the Doctor worker URL separately from argv so runtime flags cannot select legacy capability handling. Keep update fixtures aligned with declared helper entries and runtime flags while preserving their lifecycle assertions.
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* fix: restore standalone helper launches * fix: preserve helper launch contracts Use native-resolvable source imports for manifest consumers loaded directly by Node. Carry the Doctor worker URL separately from argv so runtime flags cannot select legacy capability handling. Keep update fixtures aligned with declared helper entries and runtime flags while preserving their lifecycle assertions.
What Problem This Solves
Standalone update, MCP, and file-transfer helpers could launch JavaScript paths or inline programs that were unavailable after packaging.
User Impact
Packaged helpers use declared entries and the existing worker/child dispatcher. Source Node/Bun launches keep their package roots, runtime flags, and lifecycle behavior. No configuration change or new dependency is required.
Why This Change Was Made
The runtime-process manifest now owns the remaining helper entries and copied programs. Explicit modules replace inline native-gate, cleanup, and file-transfer programs. Dependency entries resolve relative to their calling package; path resolution does not impose an execution policy.
The update canary distinguishes CLI launches from worker dispatch. Retained generations preserve embedded executable identity, and native-gate bytes are staged even when complete rollback retention is unavailable. Existing admission, cancellation, environment, and cleanup protections remain at their owners.
This completes the runtime cutover following #182405. It removes inline helper programs and repeated caller-owned paths; added code consists of explicit entry modules, manifest projections, and regressions for their distinct launch/lifecycle boundaries. Build-time source enforcement follows separately.
Evidence
Targeted source, script, and tooling typechecks; production, script, and test lint; formatting; and line-count checks pass. Native declaration preparation for the five touched package-boundary plugins passes (697.54s). Full package/platform checks remain with PR CI.
Small probes compiled with Bun revision
5d8fe974freproduce missing-entry and wrong-dispatch failures, then pass with declared entries and source directories hidden. They cover file-transfer, native-gate/cleanup, retained embedded generation identity, MCP selection, and copied secret-provider programs with synthetic inputs. Loose Node/Bun comparisons pass too. These are entry-routing proofs; no whole-application or database qualification is claimed, and no interpreter tripwire is used.CI Repairs and Local Limits
CI exposed native Node source imports that referenced emitted
.jspaths, and a Doctor capability check that treated argv[1] as a worker path after Bun added--no-install. Source tooling now imports the actual TypeScript modules; Doctor receives an explicit worker URL separately from argv. Update fixtures recognize declared worker and retained-script entries while preserving lifecycle assertions.@openclaw/fs-safe; both reproduce on maindd155be2, with unchanged relevant inputs through6c33f5ff.6c33f5ff(251.04s for the first case; 140.92s for the other three). No complete Node CLI-admission-suite pass is claimed.6c33f5ff(144.71s). An observation-only replay shows its provisioning spy stops before the native-gate call because no admission context was observed. Original CI reached a later point (admissionwas recorded); that distinction remains explicit. The temporary observer was removed byte-for-byte, and fresh-head CI must qualify the normal CI path.Current-Head CI
CI run 40142694288 completed at the current head. Its only failing root job contains the two Docker-selected memory packaging cases above; the aggregate gate fails because of that job. Both cases reproduce on main, and their determining sources, package manifest, lockfile, and test block are unchanged through the actual CI base and tested merge. The same-named scheduled main job ran different test partitions, explaining the informational new classification. Landing uses the native inherited-failure route and preserves these failures; no CI rerun was requested.