Skip to content

fix(build): Docker release images reject sealed worker native paths - #173173

Merged
roboclaw-bot merged 1 commit into
mainfrom
openclaw/frv-automation-catalog-20261015
Oct 15, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
openclaw/frv-automation-catalog-20261015

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes Docker release-image preparation failing the package import-closure check when sealed workers retain a native fs-safe subprocess path that they never execute.

User Impact

Release images can pass this sealed-worker closure check without shipping an unused native worker. Installed-package behavior and Windows security validation are unchanged; no configuration or migration is required.

Why This Change Was Made

Sealed workers already disable native loading. Specializing the unreachable native batch branch lets the bundler remove its dangling URL while preserving the Windows command-helper validation and failure paths. The transform refuses a changed upstream bootstrap shape. Package validation and archive integrity rules remain unchanged.

Evidence

  • Reproduced the exact two missing-worker edges from the failing arm64 producer with the pristine relocated-worker regression.
  • Focused worker suite: 16/16 passed, 119.84s wall; after integration with main, 16/16 passed, 99.83s wall. Hosted CI seconds are not measured yet.
  • Integrity-verified extracted archive passed the unchanged package-closure CLI. The archive matched its staged manifest (6,454 entries).
  • Scoped lint, formatting, scripts typecheck and selected root type graphs passed. Fresh independent Codex P0–P2 review found no actionable defects; reviewed source bytes are unchanged after rebase.
  • One intermediate fixture run failed because a workspace-nested temporary root exposed ancestor dependencies. The standard wrapper-owned namespace passed unchanged assertions.
  • Not run: full Docker arm64 image build and native Windows execution. No complete FRV pass or reseal is claimed. The original runtime scenario completed before its closure assertion failed; this is not evidence of a Linux runtime crash.

Thanks @vincentkoc for the investigation and fix-and-land direction.

Work sessions

Fix Docker package closure failures caused by fs-safe's owner-DACL batch
subprocess URL surviving in sealed worker output. Sealed bootstrap already
disables native loading; specialize only that unreachable branch and fail
closed if its pinned upstream shape changes. Installed-package behavior,
Windows command-helper validation, and archive admission remain unchanged.

The pristine relocated-worker test reproduced both missing-worker edges.
The repaired owner suite passes 16 tests (119.84s wall); the unchanged package
closure CLI also passes against an integrity-verified extracted archive.
Scoped lint, format, scripts types and selected root type graphs pass.
Independent Codex P0-P2 review is scoped-clean. Native Windows and the full
Docker arm64 image build were not run; no FRV pass or reseal is claimed.

Original discussion:
https://team.openclaw.ai/chat/roboclaw/dashboard/f2d13397-ed54-4d44-ade1-12b2edc3d0e3
Implementation and verification:
https://team.openclaw.ai/chat/roboclaw/~key/subagent/54bfa03f-d8f9-40ac-a1b7-0750e3fade6f

Co-authored-by: vincentkoc <[email protected]>
@clawsweeper

clawsweeper Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: S labels Oct 15, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 15, 2026 13:42
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) October 15, 2026 13:44
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 15, 2026
@clawsweeper

clawsweeper Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR removes an unreachable native subprocess branch from sealed worker bundles so package import-closure validation can pass.

Example: Preparing a Docker release image containing sealed worker bundles.

  • Before: The closure checker finds a reference to missing owner-dacl-batch-worker.js even though sealed workers disable native loading.
  • After: Bundling removes that unreachable reference while retaining Windows command-helper validation.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, source-supported repair with meaningful archive-boundary coverage; the supplied after-fix verification is reported rather than accompanied by inspectable terminal output.
Proof confidence 🦐 gold shrimp (3/6) This collaborator-authored bot PR is outside the ordinary contributor proof gate; its body reports extracted-archive closure CLI success, while the inspectable regression exercises the real build and archive owners.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Docker release-image preparation fails package validation on an unused native subprocess reference.
Reason: The focused repair restores an existing build contract, and collaborator authorship supplies direction without a new product decision.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR provides a focused repair for a current package-build failure, and source review found no introduced runtime defect.

Priority: P2
Reviewed head: ec83264d63a95894f7d9ae6dd99a7e4d343071d9

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Full arm64 Docker image construction and native Windows execution remain unrun; the reported extracted-archive CLI check directly covers the changed closure boundary.
Agent review details

How this fits together

The worker deploy build plugin specializes dependencies into portable worker artifacts, which are archived and checked for missing package imports before release-image preparation.

flowchart LR
  A[Worker source and dependencies] --> B[Worker deploy build plugin]
  B --> C[Sealed worker bundles]
  C --> D[Worker archive]
  D --> E[Package closure checker]
  E --> F[Docker image preparation]
Loading

Technical review

Best possible solution:

Land the narrow sealed-build specialization while preserving dependency-owned native loading and unchanged archive validation.

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

Source shows the retained native-worker URL and a closure checker that rejects missing relative JavaScript targets; the PR reports failing-before reproduction, but this read-only review ran no target code.

Is this the best way to solve the issue?

The existing build adapter is the appropriate owner: specializing the unreachable branch avoids shipping unused executable code or weakening closure checks.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 950d600695bd.

Provenance checked

  • Sealed dependency specialization keeps the original intent (75bcd26: The previous native-directory transform was removed when fs-safe moved to platform-package ownership; sealed-worker defaults were intentionally preserved.)
  • Relocated archive closure regression keeps the original intent (3962087: The existing regression ensured lazy facade activation remained inside the relocated sealed archive; checking extracted archive contents strengthens that boundary without removing its assertions.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Pinned introduced change: The introduced diff specializes only fs-safe's native batch branch and extends the relocated-archive regression; the package closure validator remains unchanged. (scripts/lib/worker-deploy-build-plugin.mts:152, ec83264d63a9)
  • Existing sealed-runtime policy: Sealed bootstrap explicitly configures fs-safe native mode off before runtime consumers; the new transform therefore removes a branch the existing runtime policy cannot select. (src/infra/sealed-runtime-bootstrap.ts:8, ec83264d63a9)
  • Pinned dependency contract and applicable policy: The patch transforms this dependency's executable code, making its contract and security policy applicable. At v0.26.5, getNativeBinding returns undefined in mode off, owner-DACL batching derives native selection from that binding, and only the native branch selects owner-dacl-batch-worker.js. The retained command path still validates identities and helper responses. Root AGENTS.md was read; no nested AGENTS.md applies. (src/windows-security-command.ts, 88f8255eb397)
  • Archive-boundary regression: The changed regression invokes the unchanged package-closure CLI against extracted archive contents and checks that sealed mode overrides OPENCLAW_FS_SAFE_NATIVE_MODE=require. (test/scripts/worker-deploy-build-plugin.test.ts:418, ec83264d63a9)
  • Reported verification and limits: The complete PR body reports a failing-before relocated-worker regression, passing focused tests, and a passing unchanged closure CLI against an integrity-verified extracted archive. It explicitly excludes full arm64 Docker and native Windows execution. The linked producer job failed during image construction; its redirected logs were blocked by the review environment, so their exact failure trace was not independently inspected. (ec83264d63a9)
  • Feature history and original intent: Worker deployment history centers on Peter Steinberger, with Dallin Romney contributing dependency packaging and runtime composition. The earlier native-directory rewrite was intentionally removed in 75bcd26 when fs-safe adopted platform-package ownership; this PR does not restore it. History traversal encountered an unavailable old object at the creation boundary. (scripts/lib/worker-deploy-build-plugin.mts, 75bcd267f5e7)

Likely related people:

  • Peter Steinberger: Raw commit 78502ed adds scripts/lib/worker-deploy-build-plugin.mts:41 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 78502eda6dec; files: scripts/lib/worker-deploy-build-plugin.mts)
  • Dallin Romney: Raw commit 8dd21b0 adds scripts/lib/worker-deploy-build-plugin.mts:14 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 8dd21b0f34d2; files: scripts/lib/worker-deploy-build-plugin.mts)

PR surface

Tests +18, Other +16. Total +34 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 37 19 +18
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 16 0 +16
Total 2 53 19 +34

Labels

Label changes:

  • add P2: Repairs a release-image packaging failure without evidence of a deployed runtime outage.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Repairs a release-image packaging failure without evidence of a deployed runtime outage.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

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

  • Link the existing extracted-archive closure CLI output to make the reported after-fix result directly inspectable.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 15, 2026, 9:57 AM ET / 13:57 UTC.

@roboclaw-bot
roboclaw-bot merged commit e7a155a into main Oct 15, 2026
173 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/frv-automation-catalog-20261015 branch October 15, 2026 14:01
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 16, 2026
…openclaw#173173)

Fix Docker package closure failures caused by fs-safe's owner-DACL batch
subprocess URL surviving in sealed worker output. Sealed bootstrap already
disables native loading; specialize only that unreachable branch and fail
closed if its pinned upstream shape changes. Installed-package behavior,
Windows command-helper validation, and archive admission remain unchanged.

The pristine relocated-worker test reproduced both missing-worker edges.
The repaired owner suite passes 16 tests (119.84s wall); the unchanged package
closure CLI also passes against an integrity-verified extracted archive.
Scoped lint, format, scripts types and selected root type graphs pass.
Independent Codex P0-P2 review is scoped-clean. Native Windows and the full
Docker arm64 image build were not run; no FRV pass or reseal is claimed.

Original discussion:
https://team.openclaw.ai/chat/roboclaw/dashboard/f2d13397-ed54-4d44-ade1-12b2edc3d0e3
Implementation and verification:
https://team.openclaw.ai/chat/roboclaw/~key/subagent/54bfa03f-d8f9-40ac-a1b7-0750e3fade6f

Co-authored-by: vincentkoc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant