Repository navigation
feat: verify warm worker runtime caches without modifying them - #188671
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
Co-authored-by: galiniliev <[email protected]>
Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: f0f27cb0-c075-4153-a025-9a9f1c0620ce
|
🦞👀 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. |
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
|
Codex review: needs maintainer review before merge. What this changesThis PR adds worker-runtime cache verification and bounded installation receipts through Crabbox’s existing installer. Example: Verify a retained OpenClaw 2026.8.1 runtime whose worker archive is missing.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-directed feature provides useful read-only cache verification, the previous receipt-marker finding is fixed, and no introduced correctness defect was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherImage-preparation tooling supplies expected runtime and worker artifact identities to Crabbox, which generates a local verification command and parses its installation receipt. flowchart LR
A[Image preparation tooling] --> B[Crabbox CLI runtime API]
B --> C[Existing setup command generator]
C --> D[Shared runtime verifier]
D --> E[Retained runtime and worker archive]
D --> F[Bounded stdout receipt]
F --> G[Artifact identity parser]
Technical reviewBest possible solution: Retain the shared verifier and early read-only return, with receipts describing completed checks rather than granting authority. Do we have a high-confidence way to reproduce the issue? This is a new capability rather than a reported upstream bug; source inspection confirms current main has no equivalent read-only cache-verification API. Is this the best way to solve the issue? The implementation uses the existing installer’s verification owner, preserves installation behavior, and adds a focused early return instead of a competing installer or cache owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7f14e11f7f7e. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +139, Tests +168, Docs +15, Other +2. Total +324 across 9 files. Added test files: 1. View PR surface stats
Review metrics
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 HistoryReview history (1 earlier review cycle)
Reviewed October 30, 2026, 4:49 PM ET / 20:49 UTC (Revision 2). |
Use the dotted openclaw.runtime-installed stdout protocol across the producer, parser, consumer tests, and docs without adding an environment setting or changing the budget. Co-authored-by: galiniliev <[email protected]>
Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 25c7df9f-4eea-438b-8445-14225c1dedf2
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: 885d6f42-0ec8-4cda-9cd3-a894a26e0861
Integrate the exact runtime API parent and its test-only diagnostics logger fix; preserve all runtime proof inputs and verifier behavior. Co-authored-by: galiniliev <[email protected]>
Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 905f7c82-68c9-4a19-abc4-e21ec7065887
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
Preserve the verifier feature delta while incorporating the exact reviewed API parent. Historical package receipts remain historical pending new schema39 exports and real-cache qualification. Co-authored-by: galiniliev <[email protected]>
Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 7c68b220-ef0f-40f5-b001-cce3953b56c6
Dependency graph guard clearedThis PR no longer has dependency changes awaiting review. A future dependency graph change from an external contributor requires a maintainer's
|
Security-sensitive guard clearedCurrent revision: This PR no longer changes files in the maintainer security-review tier. Separate CODEOWNERS requirements still apply to security policy and enforcement files. |
Merge exact main a4b07c6 after API squash landing. Resolve the four ancestry-only conflicts by preserving the reviewed verifier files; the complete nine-file feature patch is byte-identical. Retain the actual package-origin proof at source 4254c59 and qualify identical generated commands and parsed receipts on the merged source. Co-authored-by: galiniliev <[email protected]>
Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 68f23993-0632-4ffb-aae4-5b58c037938a
|
Merged via squash.
|
Resolve the live startup-fixture conflict against main by adopting the canonical required-shutdown-join test from #188656. Remove the task-only startup synchronization variant rather than keeping duplicate coverage of the superseded bounded-settlement contract. Move three unchanged enrollment assertions to the existing fixture support owner to retain the file-size gate after upstream #188671. All 78 cases across the seven owning files pass on the resolved tree; targeted type, type-aware lint, format, and test-line gates pass. The optional node split prototype remains outside this publication. Co-authored-by: galiniliev <[email protected]>
…law#188671) * 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 * feat: verify warm worker runtime caches without modifying them Co-authored-by: galiniliev <[email protected]> * feat: verify warm worker runtime caches without modifying them Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: f0f27cb0-c075-4153-a025-9a9f1c0620ce * 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 * fix: distinguish runtime receipts from environment settings Use the dotted openclaw.runtime-installed stdout protocol across the producer, parser, consumer tests, and docs without adding an environment setting or changing the budget. Co-authored-by: galiniliev <[email protected]> * Publish openclaw/p2c-runtime-cache-verifier-final Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 25c7df9f-4eea-438b-8445-14225c1dedf2 * Publish openclaw/p2c-runtime-api-final Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 6d2083e0-fbd1-4410-b43b-515f5b21a52c * Publish openclaw/p2c-runtime-cache-verifier-final Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 5a334cc8-092a-4174-8b3e-36344e91814b * 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-cache-verifier-final Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 34df8fe7-1621-4e69-8100-48d9ff18dc3e * Publish openclaw/p2c-runtime-api-final Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: d7740df3-4673-4768-bdba-c59f6d7bf07e * Publish openclaw/p2c-runtime-cache-verifier-final Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: bc566238-84c8-41dc-83f2-9010751d3c97 * 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 * Publish openclaw/p2c-runtime-cache-verifier-final Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 0c334e8f-59e7-4684-85b9-ea559bbc92b0 * 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 * Publish openclaw/p2c-runtime-cache-verifier-final Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: afe43cdf-083e-4d58-aa6d-a40da29e2757 * 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-cache-verifier-final Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 905f7c82-68c9-4a19-abc4-e21ec7065887 * Publish openclaw/p2c-runtime-api-final Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: d139f994-a008-4727-a871-cfb342706b2b * Publish openclaw/p2c-runtime-cache-verifier-final Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 7c68b220-ef0f-40f5-b001-cce3953b56c6 * Publish openclaw/p2c-runtime-cache-verifier-final Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 68f23993-0632-4ffb-aae4-5b58c037938a --------- Co-authored-by: galiniliev <[email protected]>
Related: #188659 (landed). Current base:
main; integrated API parent:ee479a542b773fead85d101d915f8b21d3521853. Published verifier head:703d96eaedfea6694c4a32ca1e5774fbdc5402f8; exact integrated main:a4b07c63b60cf3a971c824064c82946c530e1686.What Problem This Solves
Image-preparation tooling needs to confirm that a retained worker runtime is usable without silently repairing or modifying its cache.
User Impact
Operators can run a credential-free warm-cache check and consume a bounded, artifact-matched installation receipt. Missing or corrupt caches fail without installation, pruning, runtime Node binding or enrollment state writes. Verification covers package/build/manifest identity, CLI version and worker archive integrity—not every installed payload byte or live execution authority.
Why This Change Was Made
The public lazy Crabbox CLI API shares the existing installer/verifier owner. Read-only verification returns before mutation and uses the runtime wrapper, not bootstrap binding. Producer/parser/tests/docs use
openclaw.runtime-installed:with no legacy alias or environment option. Bundle receipts distinguishinstalledandexisting-verified; npm preparation retains its diagnostic contract.Evidence
The required schema39 package-origin cache proof passed: two fresh offline installations through the actual npm-installed parent module, followed by all eight current-verifier receipt/no-effect cases. The later history-only conflict resolution preserves the proof through verified byte-equivalent commands and receipts; no package rebuild or archive re-export was performed.
openclaw/runtime-artifactsresolved insideinstalled-consumer/node_modules/openclaw/dist; both bundled selections exported through that installed package. This is not the earlier source-dist export. Actual build source is842de317b317a604492c4a5d10277e8a6d28f5fa, tree-equivalent to APIee479a5, with build ID2026.10.9-842de317b317-2026-10-31T04-58-16.446Zand agent schema39.dist/extensions/crabbox/cli-runtime-api.js. A separate plain-Node namespace mounted no verifier checkout or source loader; the parent module has no verifier export. Core and Codex installed into separate fresh homes in 8.324s and 8.968s, respectively. Both actual installed CLIs returnedOpenClaw 2026.10.9 (842de31); fs-safe 0.27.0, schema39, manifest/worker integrity and absent enrollment state were checked.4254c5977f79706be630bf16ced16bd6b216eeeb, loaded through maintainedscripts/tsx.mjswith privately frozen matching dependencies, generated and parsed commands against those real installations. Core and Codex each passed a positive artifact-matchedexisting-verifiedreceipt, then missing-worker, same-length corrupt-worker and absent-runtime rejection controls. All six negatives exited 1 with the expected cause, emitted no success receipt and were rejected by the parser. These are real installed CLIs, not fixture CLIs or a newly packaged verifier.bwrap --unshare-allnamespaces with networking disabled andenv -i. Generated installer/verifier commands ran from their own target homes, without inherited source-loader options or a source-checkout CLI fallback. No cloud or model service was contacted.082a5c00b827be05a011a129d242892195b3b39cby retaining the reviewed verifier versions: main had byte-identical API-parent files. The entire nine-file feature patch against exact main is byte-identical to the prior API-relative patch (415 insertions/92 deletions; SHA256fc81cdbf4546639b3709afdf8b31e3d045879a6f3611bdd5fa48d0582390a4a2). All Crabbox code/tests, dependency lockfile and relevant runtime/parser inputs are unchanged. Current merged source independently generated exactly the same core/Codex command bytes and parsed the retained real receipts identically; the eight installed-cache cases remain attributed to source4254c597, not relabeled as a fresh run. Prior scoped independent review, lint, formatting and the 17-test focused run (53.51s, fixture CLI) are reused for unchanged inputs; no substantive resolution required another review.main; the four ancestry conflicts are resolved. New-head CI is attached and must be evaluated independently; the previous head's 47 successful/77 skipped checks are prior-head evidence, not a green claim for this publication. Root owns maintainer review and landing. No remote CI rerun, retarget or merge was performed by this lane.Current installed-package artifact identities and evidence
Canonical npm tarball SHA256:
17cc2b32561fd72f3a1fa817d9817c55bb23ddf7f3409ac5797b9bdd5f54fb12(111,178,480 bytes).Core/Codex node archive SHA256:
b2c9a747f20d1d0f940e2836aef1d57f93ee8f812e64964fd12b9734d96f0c1b(293,213,073 bytes). Payload bytes are identical; selected plugin identities are[]and["codex"].Runtime manifest SHA256:
32efb5e97a141773a7fea076660c5065863bb7b4f3579ef0c0e4b0ef33110106.Worker archive SHA256:
8d1d25c625cb31392ae493dfea1f3782084a90ba1a0e23f20b1194868024fbe1(22,863,074 bytes).Executed real-cache verifier tree:
b100f835540e2d91d8e31d03c6a0663b6665d651. Published integration tree:6608921f834aaa942b8afe898cc1a39caac7a03c.Sanitized commands, producer receipt, parent-install results, eight per-case receipts/rejections and completed teardown are retained in the implementation session's
.openclaw/tmp/schema39-real-cache/artifacts/summary.json; summary SHA256d7b203cd7cbe24647acc89bdccf90eac5732bef75375f7989efc68004d1e07a4.Exact main/merge parents, unchanged patch identity, integration checks and cleanup are recorded in
.openclaw/tmp/main-reconcile/artifacts/summary.json.The earlier
49968f5build/eight-case proof remains historical, not relabeled as schema39. Source-dist schema39 exports are likewise distinct from the npm-installed-package-origin inputs above. No live Codex/Azure, native macOS/Windows, full installed-payload hashing or release-image qualification is claimed.Worked on by
Work sessions