Repository navigation
feat: export and install offline worker runtime artifacts - #188659
Conversation
Preserve explicit npm profiles and their lock/reuse path while carrying qualified target dependencies in bundle archives. Co-authored-by: galiniliev <[email protected]>
Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 65d6807d-2851-4dba-9916-f4bc1496596b
Co-authored-by: galiniliev <[email protected]>
Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 3654bba2-696b-4a60-8fb9-a99de032625b
|
🦞👀 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: needs maintainer review before merge. What this changesThis PR exposes worker-runtime archive export and adds verified local archive installation through Crabbox’s existing installer. Example: Prepare an OpenClaw 2026.10.9 worker image on Linux x64 without destination registry access.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR adds a useful, maintainer-directed offline packaging capability. The prior allocation finding is resolved, no actionable introduced defect was found, and current-head CI remains pending. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe public packaging API composes existing node and worker artifact producers; Crabbox consumes transferred archives through its existing verification, extraction, and runtime publication path. flowchart LR
A[Built OpenClaw installation] --> B[Bundled plugin qualification]
B --> C[Canonical archive producers]
C --> D[Transferred runtime archives]
D --> E[Crabbox local archive adapter]
E --> F[Existing runtime installer]
F --> G[Prepared worker image]
Technical reviewBest possible solution: Retain the narrow public export surface and local acquisition adapter while keeping archive production, installation, and enrollment with their existing owners. Do we have a high-confidence way to reproduce the issue? This is a capability addition; source inspection confirms current main lacks the proposed public export and local installation adapter. Is this the best way to solve the issue? The missing capability is supported offline image preparation, the invariant is that canonical verified bytes install without enrollment, and the smallest complete solution is the proposed composition of existing producers and installer. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against af8ab7089f65. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +345, Tests +367, Docs +44, Config +4, Other +7. Total +767 across 21 files. Added test files: 2. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 HistoryReview history (3 earlier review cycles)
Reviewed October 30, 2026, 7:23 PM ET / 23:23 UTC (Revision 4). |
Scope Node-only setup to bundle enrollment, fix narrowed bundle fixture metadata, and reuse the validated package manifest owner instead of unsafe assertions. Prove missing npm/Corepack repair and retained npm runtime compatibility. Co-authored-by: galiniliev <[email protected]>
Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 92b05551-9794-42c5-b0ea-0dbd82702c99
Keep fixture loops explicit without changing their behavior, and account for their exact test-line delta. Co-authored-by: galiniliev <[email protected]>
Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 4b152785-ec9c-414f-90c7-2368b3a060b3
Merge offline runtime prerequisite b44eeb2 without rewriting the API branch. Preserve public declarations while updating the existing exact-root test. Co-authored-by: galiniliev <[email protected]>
Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 6d2083e0-fbd1-4410-b43b-515f5b21a52c
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Allocate exactly four new LF-counted API test lines plus the separate35-line package-cycle allocation. Preserve inherited test debt and leave the shared baseline and comparator unchanged. Co-authored-by: galiniliev <[email protected]>
Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: ed6b8a9e-b71d-42d1-ad1d-5c0400e84abd
Keep real rollout filesystem changes and exact final membership assertions, but reconcile after explicit observer delivery. Exercise cached leaves with coarse directory timestamps and use controlled healthy watchers for loss/cleanup proof. Co-authored-by: galiniliev <[email protected]>
Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 1451be59-4dd0-4d32-bbb5-907edc3c8d33
Merge current main to preserve the approved fs-safe 0.27.0 root/Codex alignment and upstream source-inspection boundary repair (#188870). Resolve manifest conflicts to upstream and regenerate the lock with pinned pnpm; dependency graph and integrity are unchanged from upstream. Co-authored-by: galiniliev <[email protected]>
Ignore target-specific node runtime dependency inputs. Distinguish bundle enrollment Node and tar prerequisites from explicit npm installs and repository npm/Corepack setup. Co-authored-by: galiniliev <[email protected]>
Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 97f753f5-6efb-4e82-bf16-b34a75076a1d
|
Reuse the canonical Workboard fixture repair from 5b08bec. Exercise terminal hooks with diagnostics explicitly enabled, restore the prior flag, and allocate only the seven added regression lines. Co-authored-by: galiniliev <[email protected]>
Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 885d6f42-0ec8-4cda-9cd3-a894a26e0861
Preserve upstream logger and targeted watcher delivery while retaining coarse-clock cache invalidation proof. Keep exact incremental test allocation. Co-authored-by: galiniliev <[email protected]>
Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: d139f994-a008-4727-a871-cfb342706b2b
|
Merged via squash.
|
…88659) * feat(workers): provision offline node runtime bundles Preserve explicit npm profiles and their lock/reuse path while carrying qualified target dependencies in bundle archives. Co-authored-by: galiniliev <[email protected]> * feat: provision cloud worker runtimes without registry access Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 65d6807d-2851-4dba-9916-f4bc1496596b * feat: expose offline worker runtime artifact preparation Co-authored-by: galiniliev <[email protected]> * feat: export and install offline worker runtime artifacts Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 3654bba2-696b-4a60-8fb9-a99de032625b * fix(workers): retain repository package-manager prerequisites Scope Node-only setup to bundle enrollment, fix narrowed bundle fixture metadata, and reuse the validated package manifest owner instead of unsafe assertions. Prove missing npm/Corepack repair and retained npm runtime compatibility. Co-authored-by: galiniliev <[email protected]> * Publish openclaw/p2c-offline-runtime-split Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 92b05551-9794-42c5-b0ea-0dbd82702c99 * fix(test): satisfy toolchain fixture lint Keep fixture loops explicit without changing their behavior, and account for their exact test-line delta. Co-authored-by: galiniliev <[email protected]> * Publish openclaw/p2c-offline-runtime-split Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 4b152785-ec9c-414f-90c7-2368b3a060b3 * Publish openclaw/p2c-runtime-api-final Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 6d2083e0-fbd1-4410-b43b-515f5b21a52c * test: keep declaration coverage at its authoritative boundary Remove the duplicate config.entry assertion and shrink the API test allocation by its exact six-line delta. The canonical dts.entry test still covers the public runtime-artifacts declaration. Co-authored-by: galiniliev <[email protected]> * Publish openclaw/p2c-runtime-api-final Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 13b4786d-9391-4ac9-a9f8-779960f09c7f * Publish openclaw/p2c-runtime-api-final Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: d7740df3-4673-4768-bdba-c59f6d7bf07e * fix: package npm dependencies named after Node builtins Resolve declared package names and ancestor placements with package-style lookups. Preserve nested versions, source links and required dependency guards. Co-authored-by: galiniliev <[email protected]> * fix(codex): align bundled fs-safe with the host runtime Use the already-admitted root fs-safe0.26.15 pin so selected Codex packages satisfy the canonical single-version contract. Regenerate only the Codex lockfile importer. Co-authored-by: galiniliev <[email protected]> * fix: retain installed dependencies for built bundled plugins Validate source metadata for built plugin selections and use that installation's dependency graph. Published packages without source metadata keep their installed built root; mismatched and malformed generations remain rejected. Co-authored-by: galiniliev <[email protected]> * Publish openclaw/p2c-runtime-api-final Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: c3c308fe-c901-4c1d-902a-3ccef24575a6 * test: account for formatted runtime artifact regressions Allocate exactly four new LF-counted API test lines plus the separate35-line package-cycle allocation. Preserve inherited test debt and leave the shared baseline and comparator unchanged. Co-authored-by: galiniliev <[email protected]> * Publish openclaw/p2c-runtime-api-final Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: ed6b8a9e-b71d-42d1-ad1d-5c0400e84abd * test: qualify rollout catalog watcher delivery Keep real rollout filesystem changes and exact final membership assertions, but reconcile after explicit observer delivery. Exercise cached leaves with coarse directory timestamps and use controlled healthy watchers for loss/cleanup proof. Co-authored-by: galiniliev <[email protected]> * Publish openclaw/p2c-runtime-api-final Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 1451be59-4dd0-4d32-bbb5-907edc3c8d33 * docs: clarify offline runtime enrollment prerequisites Ignore target-specific node runtime dependency inputs. Distinguish bundle enrollment Node and tar prerequisites from explicit npm installs and repository npm/Corepack setup. Co-authored-by: galiniliev <[email protected]> * Publish openclaw/p2c-runtime-api-final Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 97f753f5-6efb-4e82-bf16-b34a75076a1d * test(gateway): complete shared diagnostics logger Reuse the canonical Workboard fixture repair from 5b08bec. Exercise terminal hooks with diagnostics explicitly enabled, restore the prior flag, and allocate only the seven added regression lines. Co-authored-by: galiniliev <[email protected]> * Publish openclaw/p2c-runtime-api-final Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 885d6f42-0ec8-4cda-9cd3-a894a26e0861 * Publish openclaw/p2c-runtime-api-final Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: d139f994-a008-4727-a871-cfb342706b2b --------- Co-authored-by: galiniliev <[email protected]>
What Problem This Solves
Image-preparation tools need a supported way to export the installed OpenClaw worker runtime and install transferred archives without enrolling a node. Prerequisite #188651 is merged; this PR targets main.
User Impact
Tool authors can use
openclaw/runtime-artifactsto qualify bundled plugins and export canonical offline node/worker archives. Crabbox's lazy CLI API installs verified local archives without a logical lease, forwarded credentials, npm, lifecycle scripts, or plugin activation. Bundle enrollment needs matching Node and tar; explicit npm installations and repository setup retain npm/npx/Corepack where applicable. Existing remote npm installations retain their lock/reuse behavior.Why This Change Was Made
The public entrypoint composes existing artifact producers, joins both before cleanup, and returns build, archive and digest identities. Bundled qualification uses a detached inspection registry. Local transfer is an adapter in the existing installer, not a second installer. Only
./runtime-artifactsis added to package exports; declarations and documentation are included.History-preserving integration retains upstream root/Codex fs-safe 0.27.0 and the source-inspection worker-boundary fix in #188870. The lock was regenerated with pinned pnpm; dependency graph and integrity data match upstream, with canonical ordering differences only. The
/node-runtime-dependencies/artifact ignore and accurate troubleshooting prerequisites are restored. Read-only cache verification remains separate in #188671.Evidence
Current source, tests and review
ee479a542b773fead85d101d915f8b21d3521853has reviewed treed175c65ee19fcaaf087c1f49e808efac8916c38f. Authored source merge842de317b317a604492c4a5d10277e8a6d28f5fapreserves parentsef8db05fand mainece4ca85af0e0ffa7cc619522b9e8b7e40b08da9.ece4ca85, with 13 complete unchanged owners. No actionable findings; final source verification passed, and the committed tree matches the reviewed staged tree.Canonical package build and recovery
842de317b317a604492c4a5d10277e8a6d28f5fa, actual build2026.10.9-842de317b317-2026-10-31T04-58-16.446Z.17cc2b32561fd72f3a1fa817d9817c55bb23ddf7f3409ac5797b9bdd5f54fb12, 111,178,480 bytes.Actual installed-package public API boundary
openclaw/runtime-artifactsfrom that installed consumer and asserts its resolved URL is inside the installed package. Both qualification and export receive the real installed package root—not the source checkout. The installer is imported from the same installed package'sdist/extensions/crabbox/cli-runtime-api.js; no descendant verifier code participates.OpenClaw 2026.10.9 (842de31). Installed agent schema 39, fs-safe 0.27.0, manifest digest and worker archive digest matched receipts. Installation plus CLI: 9.485s / 8.851s; complete installed-package round trips: 97.83s.enabledPluginIdsbut identical exported node bytes. This proves both configuration paths; it does not claim a minimal Codex-free distribution.Installed-package export identities
b2c9a747f20d1d0f940e2836aef1d57f93ee8f812e64964fd12b9734d96f0c1b— 293,213,073 bytes.32efb5e97a141773a7fea076660c5065863bb7b4f3579ef0c0e4b0ef33110106.8d1d25c625cb31392ae493dfea1f3782084a90ba1a0e23f20b1194868024fbe1— 22,863,074 bytes.Separate source-dist and earlier evidence
a93c96e4…core,339ff4c3…Codex) are not substituted for the installed-package exports above.49968f5andd4b533build evidence retains its original identity. Source49968f5passed 78 focused tests. Upstream fix(plugins): keep source inspection inside its worker boundary #188870 repaired the generated worker import boundary without weakening its guard; the original case ran and passed, while the earlier all-skipped run was not passing proof. The cross-test-contamination claim remains withdrawn.9d193015as 2 failed / 283 passed. The coordinated owner fixture repair from5b08becemade the identical eight-file invocation pass 285/285. Main now supplies the complete logger; this PR retains diagnostics save/enable/restore and the original closure/admission/card-list assertions.Scope and separate verifier
Worked on by
Work sessions