Skip to content

fix(cloud-workers): build complete source runtime artifacts - #130735

Merged
steipete merged 2 commits into
mainfrom
steipete/cloud-enrollment-root-cause-8546e3
Aug 27, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/cloud-enrollment-root-cause-8546e3

Conversation

@steipete

@steipete steipete commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Closes #130702

What Problem This Solves

Fixes an issue where source-built cloud workers cannot start Codex remote execution when the installed core-only artifact omits the required external runtime plugin and the exact source-version plugin is not available in the registry.

The worker correctly refuses the missing or untrusted runtime. A standalone local plugin archive does not carry official npm provenance, so changing a server's setup command to install such an archive is not a valid substitute. The missing piece is a complete source-built cloud distribution.

Why This Change Was Made

The canonical package builder now accepts repeatable --bundle-plugin <id> selections. It builds through the existing source-plugin selection contract, includes only the selected excluded plugins, incorporates their exact declared dependencies into the temporary distribution manifest, and regenerates the installation inventory before packing. Dependency conflicts, nonexact pins, missing or mismatched build output, and private/nonpackaged selections fail visibly. Source metadata and inventory are restored afterward.

This is a package-composition capability, not a new runtime installer. Normal core packaging remains lean and unchanged. External plugin publication, trust classification, node enrollment, execution approvals, configuration, protocol, and persistence contracts are unchanged. Native dependencies install for the target platform; the archive does not copy the build machine's plugin node_modules or native executable.

The same failure also exposed a diagnostic bug in the generated prelaunch Node program: an uncaught exception printed its source and stack after the useful message, displacing that message from the bounded provider error. Catching at that producer preserves the concise reason and exit code 1 without increasing limits, parsing stacks downstream, or weakening prerequisites or cleanup.

User Impact

Operators using unpublished source builds have a documented, reproducible way to produce an exact matching cloud-node artifact, including the required runtime plugin. Existing digest-pinned artifact delivery can install that complete distribution normally. Setup failures retain their actionable reason.

The documented source recipe uses the repository's supported --pnpm-pack option. A complete artifact must still be generated from the same source revision as its Gateway and delivered through the operator's trusted setup path. No registry release or server-specific workaround is included in this PR.

Release note: allow complete source-built cloud worker packages with selected runtime plugins, and preserve concise enrollment failure diagnostics.

Evidence

Actual package and native runtime proof

A real core-only archive installed in clean Linux arm64 with Node 26.7.0, npm 11.19.0, a fresh HOME, and normal package lifecycle scripts reproduced Plugin not found: codex and the generated prelaunch prerequisite failure (exit 1). The actual archive regression also failed before the source repair because the selected plugin was absent.

The final verified candidate installed normally in a second fresh Linux arm64 environment. It reported @openclaw/[email protected], origin: bundled, exact @openai/[email protected], and prelaunch exit 0. The installed plugin imported successfully. The real platform-native binary then completed initialize → initialized → environment/info → stdin EOF, exiting 0 without a signal in a credential-free HOME/CODEX_HOME.

Artifact SHA-256 Result
Core-only baseline d8b85576900558783c65f8fe707a17c0030f73b9836097293fa4d46e13f3dae5 No Codex plugin; prelaunch exit 1
Verified selected-plugin candidate 244e8531513db999bf71bff0a5cd98cc7a766f1b57f5e5a9fdeee76fa5c5a00c Bundled plugin, prelaunch/native protocol pass

These are proof artifacts from base b05938bac10130b2f086a541b04a43a43bd6faa9 plus the implementation, not artifacts mislabeled with an eventual merge SHA. The last documentation-only change makes the recipe explicitly match the tested pnpm packing mode. Final deployment artifacts must be rebuilt from the landed source.

The ordinary and selected archives passed the canonical tarball checker, including relative import closure and installation inventory parity. Independent archive inspection found no credentials, auth files, lockfiles, nested plugin dependency trees, or copied host-native Codex payload. Task-owned containers were removed.

Regression and static checks

  • 286 owner/sibling tests passed across package building, dependency preflight/postinstall, Gateway enrollment/provisioning, Crabbox provisioning, Codex binary resolution, and native node relay. Three Windows-only cases were skipped on the local host.
  • Parent independently reran the actual selected-package/default-package regression: passed.
  • The package tests cover selected content and shared imports, unchanged ordinary exclusions, dependency/optional ownership, invalid selection, conflicts, nonexact pins, stale/missing output, repeatable selection, build forwarding, and restoration on success and failure.
  • The existing dependency-free frozen-source harness test caught an initially eager helper import; lazy loading fixed it without weakening the test.
  • The original changed-check run passed guards, four typecheck lanes, extension lint, dead exports, and five embedded doctor tests, then found two script lint issues. Those were corrected at their owner. Full script lint/typecheck, all owner/sibling tests, and the remaining database-first/media/sidecar/import-cycle guards passed afterward. The original log retains its exit 1; this is complete scoped follow-up coverage, not a claim that the same aggregate invocation was rerun successfully.
  • Final formatting, docs MDX, and git diff --check passed. Parent checked formatting after the final documentation-only flag correction.
  • Fresh isolated Codex autoreview: clean at the configured P0 threshold. Parent inspected the package, installation, trust, enrollment, and native dependency contracts independently.

Boundaries and limitations

The normal source build was completed before the packaging changes; real artifacts reused that complete build with --skip-build. New selection forwarding has regression coverage. Normal package installation and real native transport are proved on Linux arm64, not a mocked executable. Local Linux x64 emulation failed before installation with Exec format error; no x64 success is claimed. This proof does not claim a real cloud allocation, node pairing, full agent turn, offline completeness, or production deployment.

The default npm packing path hit its existing five-minute limit on the loaded local checkout. Cleanup succeeded, and the existing supported pnpm packing mode produced the verified artifact. No timeout, retry policy, budget, baseline, or package lifecycle check was weakened.

Direct dependency contract inspection used Codex tag rust-v0.149.1, peeled commit ff29a44391deccde0aba0f8390337d7f3c319ea4: codex-cli/bin/codex.js platform-native resolution and codex-rs/exec-server/src/server/transport.rs / tests/initialize.rs stdio initialization and shutdown. OpenClaw's official/bundled provenance and native dependency checks remain untouched.

Production: runtime +4/−0; packaging/tooling +202/−8 (net +194); total net +198. Tests +276/−35 (net +241). Documentation adds the complete-package recipe. The production growth supplies explicit distribution composition and reversible inventory/dependency ownership; removing the normal public core exclusion instead would violate the external-plugin publication contract.

AI-assisted, maintainer-requested root-cause repair. Server artifact adoption and cloud launch verification follow source landing through the existing deployment owner; no live server configuration was edited to make this proof pass.

Publication head and refreshed base

The repair was committed and rebased once onto main at c47974ccf4cb780a59dabcf47cbdb35f60a5c516. git range-diff confirms the repair patch is unchanged. This base includes the readable/copyable cloud diagnostics UI repair in #130672 and preserves main's larger machine-catalog handling.

Main also advanced the Codex dependency to 0.150.1. Dependencies were refreshed with one successful pnpm install; this PR does not change that pin. The historical clean-install artifact evidence above remains specifically for 0.149.1, not a rebuilt 0.150.1 artifact. Direct comparison of the upstream native launcher and stdio transport found them unchanged from the inspected rust-v0.149.1 source; the initialize regression additionally checks returned environment information. Final deployment still requires a new artifact and target-platform verification from the landed SHA.

Post-rebase verification at c93390e8bf8876f310de8026c02dd2fdffce4081:

node scripts/run-vitest.mjs test/e2e/qa-lab/runtime/package-openclaw-for-docker.e2e.test.ts test/scripts/package-source-preflight.test.ts test/scripts/postinstall-bundled-plugins.test.ts extensions/crabbox/src/crabbox-worker-provider.test.ts extensions/codex/src/node-exec-server.test.ts extensions/codex/src/app-server/managed-binary.test.ts src/gateway/worker-environments/node-enrollment.test.ts src/gateway/worker-environments/provider-provisioning-node.test.ts
node scripts/run-tsgo.mjs --project tsconfig.scripts.json
node scripts/check-docs-mdx.mjs docs/gateway/cloud-workers.md
git diff --check origin/main...HEAD

All commands passed: 286 tests across eight files, three Windows-only skips, in 229 seconds; script types, docs MDX, and changed-file formatting passed. The package test exercises real selected/default tarball contents. The preserved main machine-catalog regression also passed. pull_request CI run 33043636976 completed successfully on this exact head. The single CI watcher exited 0 with GREEN and zero pending checks; the final check query found no failed or pending checks. No CI repair or rerun was needed. Source metadata remains restored and the checkout is clean.

Landing review follow-up

ClawSweeper identified stale built peer metadata in the new generic selection path. The follow-up at a8117c6ead9f4a60e94b25a885b47ed9735abf02 compares both peerDependencies and peerDependenciesMeta in the existing built/source parity check. The existing fixture now covers a different built peer declaration and a source-optional peer becoming required only in the built manifest. Both cases failed before the fix by reaching packing unexpectedly; both pass after the repair and assert packing never starts.

The focused package, source dependency, and postinstall suite passed 98 tests with three Windows-only skips, including actual selected/default fixture archives and cleanup. Fresh isolated Codex autoreview passed at the configured P0 threshold; the reviewer did not run tests. Production is now +213/-8 (net +205), tests +286/-35 (net +251), docs +23/-2, still eight files. The seven additional production lines are the formatted extension of the existing comparison to both peer contracts; no new runtime path or manifest/lock/version change.

This addresses the peer comparison and stale-peer regression Rank-up moves. The optional full selected-runtime artifact rebuild is deferred to the separately authorized landed-SHA artifact and deployment-owner follow-up. The current proof rebuilds fixture archives, not a fresh Codex 0.150.1 native distribution. Historical arm64 evidence and all platform/cloud/deployment limitations above remain unchanged. The landing agent personally inspected the exact Codex 0.150.1 launcher, stdio transport, and initialization test linked above.

Current follow-up local verification (all passed):

node scripts/run-vitest.mjs test/e2e/qa-lab/runtime/package-openclaw-for-docker.e2e.test.ts test/scripts/package-source-preflight.test.ts test/scripts/postinstall-bundled-plugins.test.ts
node scripts/check-changed.mjs -- scripts/lib/package-bundled-plugins.mts test/e2e/qa-lab/runtime/package-openclaw-for-docker.e2e.test.ts
git diff --check c47974ccf4cb780a59dabcf47cbdb35f60a5c516...a8117c6ead9f4a60e94b25a885b47ed9735abf02

The changed gate includes script and test-root typechecks, full script lint, formatting, and relevant guards. An earlier gate invocation was stopped when the native checkout refresh invalidated its fixed-tree context; the command above was rerun completely at the new head and exited 0. No failed check was waived.

Final exact-head CI33046530552 completed successfully at a8117c6ead9f4a60e94b25a885b47ed9735abf02, with no failed or pending checks. OPENCLAW_TESTBOX=1 scripts/pr prepare-run 130735 completed successfully using native exact-head evidence (also Workflow Sanity33046530646); the prepared and remote head stayed unchanged and no push or rebase was needed. Current active branch rules require the CI gate and linear history, with no enforced independent approval. No bypass used. The latest new-head ClawSweeper comment remains a started placeholder; the completed review's findings and Rank-up moves are addressed above.

Allow the canonical package builder to include explicitly selected source runtime plugins with exact target-installed dependencies and regenerated inventory. Preserve concise enrollment prerequisite errors without changing trust or normal core publication.

Fixes #130702. Complete source-built cloud worker packages now retain required runtime plugins; deployment artifacts must be rebuilt from the landed source.
@clawsweeper

clawsweeper Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime scripts Repository scripts docker Docker and sandbox tooling extensions: crabbox size: L maintainer Maintainer-authored PR labels Aug 27, 2026
@steipete
steipete marked this pull request as ready for review August 27, 2026 05:47
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. 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. labels Aug 27, 2026
@clawsweeper

clawsweeper Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 27, 2026, 2:00 AM ET / 06:00 UTC.

ClawSweeper review

What this changes

The PR adds a repeatable source-package option for bundling selected external runtime plugins into cloud-worker artifacts, documents the workflow, and keeps enrollment errors concise.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep this maintainer-labeled PR open: it addresses the linked cloud-worker packaging defect, but its stale-build guard omits peer metadata and can produce an incomplete selected-plugin artifact.

Priority: P2
Reviewed head: c93390e8bf8876f310de8026c02dd2fdffce4081

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The PR has strong stated artifact evidence and a coherent owner boundary, but a concrete metadata-parity defect blocks the new generic packaging path.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored PR is exempt from the contributor proof gate; its supplied clean-machine evidence is useful but was not an exact-head 0.150.1 rebuild.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored PR is exempt from the contributor proof gate; its supplied clean-machine evidence is useful but was not an exact-head 0.150.1 rebuild.
Evidence reviewed 8 items Packaging defect: The new built/source metadata parity check compares name, version, dependencies, and optionalDependencies, but excludes peerDependencies and peerDependenciesMeta even though the packed plugin manifest is the built copy.
Peer check reads the wrong manifest after drift: Peer satisfiability is evaluated from the source metadata retained by discovery, so a stale built manifest can declare a required peer that the temporary root manifest never installs.
Regression coverage gap: The new fixture proves a stale version is rejected, but it has no case where only built peerDependencies or peerDependenciesMeta diverges.
Findings 1 actionable finding [P2] Validate peer metadata before packaging selected plugins
Security None None.

Live Verification

Command: node --import tsx --input-type=module -e 'import { parseArgs } from "./scripts/package-openclaw-for-docker.mts"; console.log(parseArgs(["--bundle-plugin","codex"]).bundlePlugins[0])'

Result: PASS (completed)

codex

Assertions:

  • PASS expect_output: codex

How this fits together

The package builder creates the OpenClaw archive installed on cloud nodes; node enrollment then verifies the bundled Codex plugin and its platform-native runtime before remote execution starts.

flowchart LR
  A[Trusted source checkout] --> B[Package builder]
  B --> C[Selected runtime plugin]
  C --> D[Cloud worker archive]
  D --> E[Node installation]
  E --> F[Enrollment validation]
  F --> G[Codex native process]
Loading

Before merge

  • Validate peer metadata before packaging selected plugins (P2) - The archive ships dist/extensions/&lt;id>/package.json, but this parity check excludes peerDependencies and peerDependenciesMeta while the later peer check reads the source metadata. A stale built manifest can therefore require a peer absent from the temporary root manifest, producing an installed artifact that cannot resolve that peer. Compare both fields and add a fixture that changes only the built peer contract.
  • Resolve merge risk (P1) - A selected plugin can pass source-versus-built validation while its archived built manifest has different required peer metadata, leaving the installed cloud artifact without a runtime peer.
  • Resolve merge risk (P1) - The repository-required direct Codex runtime audit could not be completed in this read-only offline environment; this is a maintainer-facing evidence limitation, not missing contributor proof.
  • Resolve merge risk (P1) - The exact-head clean-machine artifact evidence predates the base's Codex 0.150.1 update, so a landed artifact still needs the documented target-platform rebuild and verification.

Findings

  • [P2] Validate peer metadata before packaging selected plugins — scripts/lib/package-bundled-plugins.mts:73-75
Agent review details

Security

None.

PR surface

Source +4, Tests +241, Docs +21, Other +194. Total +460 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 1 4 0 +4
Tests 3 276 35 +241
Docs 1 23 2 +21
Config 0 0 0 0
Generated 0 0 0 0
Other 3 202 8 +194
Total 8 505 45 +460

Review metrics

Metric Value Why it matters
Production versus test delta production +206/-8; tests +276/-35; docs +23/-2 The new package-composition capability accounts for the production growth, so its metadata-validation boundary needs complete coverage.
Packaging interface 1 added repeatable option --bundle-plugin creates an operator-facing source-package selection surface with compatibility-sensitive artifact contents.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #130702
Summary: This PR explicitly targets the open source-built cloud-worker packaging report and is its candidate fix.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Reject stale peer metadata (recommended)
    Compare peerDependencies and peerDependenciesMeta in the built/source parity guard and add a regression fixture that changes only the built peer contract.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Add built/source peerDependencies and peerDependenciesMeta parity checks, cover a stale-built-peer manifest in the package fixture, and rebuild the selected package from the corrected head.

Technical review

Best possible solution:

Keep the package-composition approach, but validate built peerDependencies and peerDependenciesMeta against source metadata, cover the stale-peer case, then rebuild and clean-install the selected package from the landed SHA.

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

Yes, from source: make only dist/extensions/<id>/package.json declare a required peer that source metadata lacks, then package with --skip-build; the current guard accepts that drift and root dependency composition omits the peer.

Is this the best way to solve the issue?

No: the owner boundary and normal artifact preservation are appropriate, but validation must use all runtime package metadata that the archive actually ships.

Full review comments:

  • [P2] Validate peer metadata before packaging selected plugins — scripts/lib/package-bundled-plugins.mts:73-75
    The archive ships dist/extensions/&lt;id>/package.json, but this parity check excludes peerDependencies and peerDependenciesMeta while the later peer check reads the source metadata. A stale built manifest can therefore require a peer absent from the temporary root manifest, producing an installed artifact that cannot resolve that peer. Compare both fields and add a fixture that changes only the built peer contract.
    Confidence: 0.96

Overall correctness: patch is incorrect
Overall confidence: 0.92

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against be8b6ff3c469.

Labels

Label changes:

  • add P2: The defect can break a selected source-built cloud artifact but is limited to the new optional packaging workflow.
  • add merge-risk: 🚨 compatibility: A stale built plugin manifest can disagree with source peer requirements and yield an archive that installs without a dependency the archived plugin needs.
  • 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: This maintainer-authored PR is exempt from the contributor proof gate; its supplied clean-machine evidence is useful but was not an exact-head 0.150.1 rebuild.

Label justifications:

  • P2: The defect can break a selected source-built cloud artifact but is limited to the new optional packaging workflow.
  • merge-risk: 🚨 compatibility: A stale built plugin manifest can disagree with source peer requirements and yield an archive that installs without a dependency the archived plugin needs.
  • 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: This maintainer-authored PR is exempt from the contributor proof gate; its supplied clean-machine evidence is useful but was not an exact-head 0.150.1 rebuild.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Authored the PR and the recent package-artifact, cloud bootstrap, and diagnostic-owner commits in these paths. (role: recent package and cloud-worker contributor; confidence: high; commits: c93390e8bf88, c9f791e0758d, f2d344df0c7b; files: scripts/package-openclaw-for-docker.mts, scripts/lib/package-bundled-plugins.mts, extensions/crabbox/src/crabbox-worker-node-enrollment.ts)
  • Vincent Koc: Recent history includes source-package producer and manifest-sanitization work on the package builder. (role: adjacent package-contract contributor; confidence: medium; commits: 1ece62a4d807, ac110917e135, 3bc665f6ae49; files: scripts/package-openclaw-for-docker.mts, scripts/package-manifest.mjs)

Rank-up moves

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

  • Compare built and source peerDependencies plus peerDependenciesMeta.
  • Add a stale-built-peer regression case and rebuild the selected artifact from the corrected head.

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.

@steipete

steipete commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor Author

Pre-merge record (2026-08-27)

Land-ready for a8117c6ead9f4a60e94b25a885b47ed9735abf02, including the peer-metadata finding from the completed ClawSweeper review. The existing parity guard now checks both peer fields. Both stale-peer cases failed before the fix by reaching packing and pass afterward; the full package/preflight/postinstall suite passed 98 tests, three Windows-only skips, including actual selected/default fixture archives and restoration. Fresh isolated autoreview found no actionable P0 defects. The original 286-test evidence remains in the PR body.

Commands run for the follow-up:

node scripts/run-vitest.mjs test/e2e/qa-lab/runtime/package-openclaw-for-docker.e2e.test.ts -t 'selected built plugin'
node scripts/run-vitest.mjs test/e2e/qa-lab/runtime/package-openclaw-for-docker.e2e.test.ts test/scripts/package-source-preflight.test.ts test/scripts/postinstall-bundled-plugins.test.ts
node scripts/check-changed.mjs -- scripts/lib/package-bundled-plugins.mts test/e2e/qa-lab/runtime/package-openclaw-for-docker.e2e.test.ts
git diff --check c47974ccf4cb780a59dabcf47cbdb35f60a5c516...a8117c6ead9f4a60e94b25a885b47ed9735abf02

The first command is the preserved failing reproduction; the full suite and complete changed gate passed after repair. Native publication used scripts/pr prepare-sync-head 130735; fresh review-init, main/PR checkouts, artifact initialization and validation bind the landing to the new head. Eight files: production +213/-8 (net +205), tests +286/-35, docs +23/-2. Distribution composition accounts for the growth; ordinary core publication and runtime trust/enrollment remain unchanged.

Rank-up disposition: peer-field parity and stale-peer regression applied. Full selected-runtime artifact rebuild/target installation remains a separate deployment-owner follow-up, not claimed here. The real Linux arm64 installation/native protocol proof is historical (base b05938b plus repair, Codex 0.149.1, reused full build, candidate digest 244e8531513db999bf71bff0a5cd98cc7a766f1b57f5e5a9fdeee76fa5c5a00c). No current-head native artifact, x64 installation, pairing, full cloud turn or production adoption is claimed. x64 was blocked before installation; default npm pack hit its unchanged 300000 ms limit, while supported --pnpm-pack succeeded. No trust, timeout, baseline or dependency override was weakened.

I personally inspected Codex 0.150.1 at 90854393966b21e9ebfd21b122334eb09a20c93d: native launcher, stdio transport, and initialize test. Launcher/transport are unchanged from 0.149.1; this source check is not a new artifact test.

Final exact-head CI33046530552 completed successfully at a8117c6ead9f4a60e94b25a885b47ed9735abf02, with no failed or pending checks. OPENCLAW_TESTBOX=1 scripts/pr prepare-run 130735 completed successfully using native exact-head evidence (also Workflow Sanity33046530646); the prepared and remote head stayed unchanged and no push or rebase was needed. Current active branch rules require the CI gate and linear history, with no enforced independent approval. No bypass used. The latest new-head ClawSweeper comment remains a started placeholder; the completed review's findings and Rank-up moves are addressed above.

Post-merge exact-source artifact proof (2026-08-27)

The previously deferred full selected-runtime rebuild and target installation are now verified on Linux ARM64 from the actual landed source a7325137451a1f0c0d1b571edb4109216f1cbbd0, including the peer-metadata repair. This is new evidence, not the historical Codex 0.149.1 artifact relabeled.

node scripts/package-openclaw-for-docker.mjs --bundle-plugin codex --pnpm-pack --allow-unreleased-changelog --output-dir .artifacts/cloud-node-landed-a7325137451 --output-name openclaw-cloud-a7325137451a1f0c0d1b571edb4109216f1cbbd0.tgz

The canonical command ran with no --skip-build and no environment overrides. Full build passed in 14m 1.6s; packing and the canonical tarball checker (including relative import closure) exited 0. No budget, timestamp, baseline, timeout, trust, or dependency override was used. Independent archive inspection verified the 16 selected plugin files, source/built dependency and peer parity, complete installation inventory, and no nested plugin dependency trees or copied host-native payload.

Artifact: openclaw-cloud-a7325137451a1f0c0d1b571edb4109216f1cbbd0.tgz, 58,342,210 bytes, SHA-256 644d7a56f826d04c1a4b94ad0b9a67f79c36781bba9564e87dbd25122859fc8c. Embedded build commit matches the full landed SHA. This is not an offline dependency bundle or a claim of byte-reproducible rebuilds.

A fresh local Linux ARM64 container with Node 26.7.0 / npm 11.19.0 installed that exact archive with normal lifecycle scripts and an empty credential-free environment. Core/plugin were 2026.8.1; the source-pinned dependency and actual native executable were Codex 0.150.1. Bundled inspection, installed plugin import, newly source-generated prelaunch prerequisites/enablement, and native initialize → initialized → environment/info → stdin EOF all passed. Prelaunch and protocol exited 0; native exit was 0 with no signal. Expected versions were derived from source metadata. The owned container was removed, tracked source is clean, and historical proof files were preserved.

Parent independently checked the archive digest, source identity, raw result/native/audit receipts, proof scripts, and container absence. Limits remain: ARM64 package/native proof only; no x64 installation, node pairing, real cloud agent turn, registry release, or production adoption. An operator must use an artifact matching the accepted Gateway source cohort; this archive is not implicitly approved for a different deployment SHA.

@steipete
steipete merged commit a732513 into main Aug 27, 2026
141 checks passed
@steipete
steipete deleted the steipete/cloud-enrollment-root-cause-8546e3 branch August 27, 2026 06:54
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 28, 2026
…#130735)

* fix(cloud-workers): build complete source runtime artifacts

Allow the canonical package builder to include explicitly selected source runtime plugins with exact target-installed dependencies and regenerated inventory. Preserve concise enrollment prerequisite errors without changing trust or normal core publication.

Fixes openclaw#130702. Complete source-built cloud worker packages now retain required runtime plugins; deployment artifacts must be rebuilt from the landed source.

* fix(packaging): reject stale selected plugin peer metadata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling docs Improvements or additions to documentation extensions: crabbox gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: L 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.

Source-built cloud worker packages omit required runtime plugins

1 participant