Repository navigation
fix(build): Docker release images reject sealed worker native paths - #173173
Conversation
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]>
|
🦞👀 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 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.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +18, Other +16. Total +34 across 2 files. Added test files: 0. View PR surface stats
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 Reviewed October 15, 2026, 9:57 AM ET / 13:57 UTC. |
|
Merged via squash auto-merge.
|
…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]>
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
Thanks @vincentkoc for the investigation and fix-and-land direction.
Work sessions