Repository navigation
feat: build Linux images from offline runtime packages - #188661
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: abb5a92a-2552-4be8-91fc-4258059363e4
|
🦞👀 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 changes before merge. What this changesThis PR composes portable packages and qualified Linux dependencies into verified Docker image inputs without online dependency resolution. Example: Build Linux/x64 image assets from openclaw.tgz and an inventoried dependency directory.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this maintainer-authored PR open: it adds useful offline image composition, but its new Docker stage selector breaks the existing digest-pinning check. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherRelease tooling combines a portable package, dependency inventory, and matching source metadata; Docker consumes the resulting application tree and runs the existing package lifecycle. flowchart LR
A[Portable package] --> D[Offline composition]
B[Qualified Linux dependencies] --> D
C[Matching source helpers] --> D
D --> E[Inventoried installed assets]
E --> F[Offline target finalization]
F --> G[Shared Docker runtime]
Technical reviewBest possible solution: Retain the composition slice and teach the existing digest validator to distinguish declared internal stages from external image references. Do we have a high-confidence way to reproduce the issue? This is a feature addition; exact-head CI independently demonstrates the digest-test failure, and no target code was executed during this review. Is this the best way to solve the issue? The smallest coherent slice uses existing archive, dependency-planning, lifecycle, and Docker owners; the digest-test consumer needs a narrow adaptation rather than a broader redesign. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f86f168f54d2. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceTests +755, Docs +77, Other +1048. Total +1880 across 11 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 Reviewed October 30, 2026, 4:27 PM ET / 20:27 UTC. |
…sites Merge the reviewed offline runtime prerequisite without rewriting history. Recognize already-declared Docker stages while keeping digest enforcement for all external images. Co-authored-by: galiniliev <[email protected]>
Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 7f0ad263-49b7-4178-96a2-c1d101a61593
Merge main 65acdfd to resolve the real executable-entry conflict while preserving both declaration sets. Retain private implementation trees below src/node_modules, leaving dependency-root placement with its existing planner. Co-authored-by: galiniliev <[email protected]>
Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: ea39c266-fd27-4fd1-8151-4387b09a4a77
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]> (cherry picked from commit 79daa9c)
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]> (cherry picked from commit d4e71ba)
Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 6c5dbb4e-05b9-4de2-96c2-b7c9e83ecb02
|
|
Merged via squash.
|
Windows stat reports 0666 for the extracted module. Keep the exact 0755 normalization assertion on POSIX and run the valid, digest-mismatch, and link-rejection variants on every platform. Repairs the test introduced by #188661. Co-authored-by: steipete <[email protected]> Co-authored-by: galiniliev <[email protected]>
Related: #188661. ## What Problem This Solves Fixes Windows CI failing the digest-bound package extraction test introduced by #188661 because Windows reports file mode `0666` rather than POSIX `0755`. ## User Impact No runtime behavior changes. Package validation tests can run on Windows while POSIX still requires exact `0755` executable permissions. ## Why This Change Was Made Apply the platform condition only to the executable-bit assertion. Keep manifest validation and all valid extraction, digest-mismatch and link-rejection variants on every platform. ## Evidence - Reused the exact [Windows failure](https://github.com/openclaw/openclaw/actions/runs/41151564335/job/124389364304) on `ac897d3b339ee8c91eac5dab2a853d48364eb808`; cached log integrity verified, no redownload. - Node 24.22.1: all 84 owner cases pass (42.287s). Pinned Bun: 82 cases pass, and the two pnpm-produced fixture cases pass through the same installed pnpm 12.15.0 JavaScript entrypoint (3.951s), qualifying its shebang-less host launcher. - A real POSIX extraction mutation still fails the exact `0755` assertion; restored production bytes and the focused valid/digest/link case pass. Scoped strict typecheck, typed lint, oxfmt/Bun parity and ratchets pass; no baseline or allocation growth. - Fresh-context independent P0–P2 source review found no actionable issues. The canonical helper stalled at host Python startup; the explicitly authorized fallback lacks helper-owned isolation and validated machine status. It did not independently rerun tests. - Native Windows proof belongs to PR CI `checks-windows-node-test-4` if that shard runs. The current exact-head PR run has a skipped Windows matrix and does not include that shard, so native Windows green remains unverified. Local Linux proof does not establish it. ## Worked on by - @steipete - @galiniliev Requested by @steipete ## Work sessions - [Discussion, implementation and verification](https://team.openclaw.ai/chat/roboclaw/~key/dashboard/b5679712-7777-4ff7-a05a-81c1efab2069) Co-authored-by: steipete <[email protected]> Co-authored-by: galiniliev <[email protected]>
Compose portable OpenClaw packages and qualified Linux dependencies into inventoried installed image assets without online package resolution. Preserve the default Docker source-build route and keep composition separate from target runtime qualification. Retain importer-relative dependency ownership, nested implementation files, and digest enforcement for external images. Resolve npm packages whose names match Node builtins and align Codex with the already-approved root fs-safe version. Track exactly 798 regression lines for composition, archive ownership, tamper rejection, lifecycle and Docker digest behavior, plus 35 lines for relocated builtin-name dependency cycles and ancestor deduplication. Leave the shared test-line scalar unchanged. Co-authored-by: galiniliev <[email protected]>
…88955) Related: openclaw#188661. ## What Problem This Solves Fixes Windows CI failing the digest-bound package extraction test introduced by openclaw#188661 because Windows reports file mode `0666` rather than POSIX `0755`. ## User Impact No runtime behavior changes. Package validation tests can run on Windows while POSIX still requires exact `0755` executable permissions. ## Why This Change Was Made Apply the platform condition only to the executable-bit assertion. Keep manifest validation and all valid extraction, digest-mismatch and link-rejection variants on every platform. ## Evidence - Reused the exact [Windows failure](https://github.com/openclaw/openclaw/actions/runs/41151564335/job/124389364304) on `cb1240c260d61535a11d0c830b0064cdff46e56e`; cached log integrity verified, no redownload. - Node 24.22.1: all 84 owner cases pass (42.287s). Pinned Bun: 82 cases pass, and the two pnpm-produced fixture cases pass through the same installed pnpm 12.15.0 JavaScript entrypoint (3.951s), qualifying its shebang-less host launcher. - A real POSIX extraction mutation still fails the exact `0755` assertion; restored production bytes and the focused valid/digest/link case pass. Scoped strict typecheck, typed lint, oxfmt/Bun parity and ratchets pass; no baseline or allocation growth. - Fresh-context independent P0–P2 source review found no actionable issues. The canonical helper stalled at host Python startup; the explicitly authorized fallback lacks helper-owned isolation and validated machine status. It did not independently rerun tests. - Native Windows proof belongs to PR CI `checks-windows-node-test-4` if that shard runs. The current exact-head PR run has a skipped Windows matrix and does not include that shard, so native Windows green remains unverified. Local Linux proof does not establish it. ## Worked on by - @steipete - @galiniliev Requested by @steipete ## Work sessions - [Discussion, implementation and verification](https://team.openclaw.ai/chat/roboclaw/~key/dashboard/b5679712-7777-4ff7-a05a-81c1efab2069) Co-authored-by: steipete <[email protected]> Co-authored-by: galiniliev <[email protected]>
Related: #188661. ## What Problem This Solves Fixes Windows CI failing the digest-bound package extraction test introduced by #188661 because Windows reports file mode `0666` rather than POSIX `0755`. ## User Impact No runtime behavior changes. Package validation tests can run on Windows while POSIX still requires exact `0755` executable permissions. ## Why This Change Was Made Apply the platform condition only to the executable-bit assertion. Keep manifest validation and all valid extraction, digest-mismatch and link-rejection variants on every platform. ## Evidence - Reused the exact [Windows failure](https://github.com/openclaw/openclaw/actions/runs/41151564335/job/124389364304) on `ac897d3b339ee8c91eac5dab2a853d48364eb808`; cached log integrity verified, no redownload. - Node 24.22.1: all 84 owner cases pass (42.287s). Pinned Bun: 82 cases pass, and the two pnpm-produced fixture cases pass through the same installed pnpm 12.15.0 JavaScript entrypoint (3.951s), qualifying its shebang-less host launcher. - A real POSIX extraction mutation still fails the exact `0755` assertion; restored production bytes and the focused valid/digest/link case pass. Scoped strict typecheck, typed lint, oxfmt/Bun parity and ratchets pass; no baseline or allocation growth. - Fresh-context independent P0–P2 source review found no actionable issues. The canonical helper stalled at host Python startup; the explicitly authorized fallback lacks helper-owned isolation and validated machine status. It did not independently rerun tests. - Native Windows proof belongs to PR CI `checks-windows-node-test-4` if that shard runs. The current exact-head PR run has a skipped Windows matrix and does not include that shard, so native Windows green remains unverified. Local Linux proof does not establish it. ## Worked on by - @steipete - @galiniliev Requested by @steipete ## Work sessions - [Discussion, implementation and verification](https://team.openclaw.ai/chat/roboclaw/~key/dashboard/b5679712-7777-4ff7-a05a-81c1efab2069) Co-authored-by: steipete <[email protected]> Co-authored-by: galiniliev <[email protected]> (cherry picked from commit 5ca51dc)
Related: #188651 (landed prerequisite); #188678 (qualified-reuse follow-on). This PR targets
main.What Problem This Solves
Release tooling needs to turn a portable OpenClaw package and qualified Linux dependencies into installed image assets without rebuilding the package or resolving dependencies online.
User Impact
Operators can compose and verify Linux/x64 image inputs offline while preserving bundled payloads and importer-relative dependency versions. The default Docker source-build route remains unchanged.
This is composition, not Linux runtime qualification. ABI/libc acceptance, entrypoint, provider identity, and runtime-export checks remain target requirements. The installed-assets stage finalizes without networking; shared later image stages can still require network access for OS/operator tools.
Why This Change Was Made
Reuse the existing archive inspector, installed-dependency planner, package lifecycle, and Docker graph rather than introduce another installer. Full input/output inventories bind the handoff, portable bundles retain their bytes, and promoted plugin dependencies use their declared importer instead of unrelated root development packages. Root production dependencies keep root ownership. Private implementation trees inside dependency packages are preserved while installed dependency placement remains planner-owned.
The shared resolver distinguishes declared npm packages from identically named Node builtins, including ancestor deduplication. Codex's fs-safe importer is aligned with the root's already-approved 0.26.15 pin. Qualified reuse and archive-bound optimization remain separate in #188678; this does not import the runtime-artifact API feature.
Net growth against integrated main
65acdfd629e3555f3c876e3fe887d548633e1863is 1,127 non-test lines (including documentation/configuration) and 833 test lines. Separate allocations cover 798 composition/archive/ownership/tamper/lifecycle/digest lines and exactly 35 shared resolver regression lines. Existing baseline debt and the shared scalar are unchanged.Source implementation contributed by @galiniliev.
Evidence
d69cf9304cd093585bdf7fb006f2b6922d90e41bretained both executable-entry declaration sets. Subsequent cherry-picks import only reviewed shared fixesd4e71ba4a3154f0d3a2e45ff9d7a018bfbbdce30and79daa9c3c9563b43f6538dae0faf90a85bc59c56; their six resulting file blobs match exactly. Reviewed integration head:ce39deacdc7fa0fbabaeb241924be495bb4525ab.src/node_modulespackage implementation files survive extraction, while only root installed-dependency placement is planner-owned. Docker ARG-backed internal stages are recognized without relaxing external-image digest pinning. The installed-only Docker graph was built offline from a minimal context without source-build inputs; that is not full release-image acceptance.e3e349754cce1fee3a0629538b35b909f82732f7throughce39deacdc7fa0fbabaeb241924be495bb4525abis also scoped-clean, with no actionable findings.ciArtifactsin 2m39s, including the same root-help bundle in 3.77s, without increasing the timeout. This is prior-head evidence, not a demonstrated cause or a full build of the latest integration. Full Linux target qualification remains unproven.Worked on by
Work sessions