Skip to content

fix: restore workspace workers in npm installs - #177130

Merged
roboclaw-bot merged 4 commits into
mainfrom
openclaw/release-packaged-workspace-workers-20261019
Oct 19, 2026
Merged

roboclaw-bot merged 4 commits into
mainfrom
openclaw/release-packaged-workspace-workers-20261019

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes packaged onboarding and agent turns exiting when the local memory worker cannot be found; the sibling skills worker was also omitted from npm installs.

User Impact

User impact: npm installations retain the local memory and skills subprocesses needed for workspace operations. No configuration change or migration is required. Portable deployment assets remain archive-only.

Why This Change Was Made

The runtime manifest emitted these local subprocesses inside dist/worker, which npm intentionally excludes in favor of a sealed portable-deployment archive. Re-including files there would also break the directory-absence check used to select that archive.

Emit the two local workers under dist/agents instead. Source locations stay unchanged, and build entries and launchers continue to use the same runtime manifest. A regression checks the real npm pack inventory against all core runtime-process descriptors and preserves portable-graph exclusion.

Evidence

  • Reproduced the package omission behind the missing-worker/exit-13 signature in release validation run 39196961475: the regression failed on the base with exactly the memory and skills worker paths missing, then passed with this change.
  • pnpm test test/scripts/runtime-process-package.test.ts --maxWorkers=1: passed; 296 ms test time and 3.79 s command wall time. CI seconds are not yet available.
  • Runtime URL, runtime build-graph, and standalone-worker consumers: 38 tests passed across three files.
  • pnpm build: passed (260.66 s wall time). The build reported an unrelated advisory UI boot-size overage; no budget or guard was changed.
  • Canonical package creation, actual npm inventory, and package dist-import-graph integrity checks passed.
  • From the extracted package, the packaged SDK resolved and launched both workers without a source loader: memory returned the expected fixture inventory and skills returned the expected instruction contents; both exited 0. Both new worker entries and the sealed portable archive were present, with no exposed dist/worker directory.
  • Focused typecheck, lint, format, whitespace checks, and fresh independent P0–P2 Auto Review passed.

CI failure and fixture correction

The initial CI run 39222038899 failed in checks-node-changed-6: the generation-verification fixture received a snapshot-size mismatch before reaching its expected final-generation diagnostic. The planner initially classified this as unknown. The same signature reproduced on the actual tested merge 592617ee and its main parent b6e0872. Main change #177082 made the initial observation provisional; the old fixture corrupted the source before snapshot acquisition.

The test-only correction waits for the private snapshot to close, then performs a valid SQLite commit between the final generation reads. Every original diagnostic assertion remains intact, with an added native version readback. No production code, integrity guard, redaction policy, skip, retry, timeout, or budget changed.

  • Repaired exact CI merge composition, all seven original targets in order under CI’s pinned Bun: 49/49 passed, 7/7 invocations completed, 108.16 s wall.
  • Full changed file: 9/9 passed, 41.47 s wall including 29.07 s cold worker compilation; test bodies about 5.95 s, changed case 202 ms. New-head CI timing remains pending.
  • The documented pnpm test:ci-failed 177130 --run selected replay and the native Node compatibility case passed. Targeted types, typed lint, formatting, and fresh independent P0–P2 review passed.

The original build, package-integrity, and extracted-worker proof above remain valid for unchanged production code; the full build was not repeated for this fixture repair. The original CI failure is retained as failed history, not relabeled green. Fresh remote-head CI is a separate pending gate.

Proof limits: the complete channel-agent, typed-onboarding, and upgrade release lanes were not rerun. The local tarball is verification material, not a release-qualified artifact. Broader exact-head proof remains with PR CI and release qualification.

Contributor credit: @vincentkoc directed this release repair.

Work sessions

Worked on by


View the OpenClaw team session

roboclaw-bot and others added 2 commits October 19, 2026 07:42
Keep local memory and skills subprocess outputs outside the sealed portable worker directory. Runtime launchers and build entries continue to share the manifest, while npm preserves the portable archive-only contract.

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

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 837639f8-021c-49ac-8d2a-8636b8aeec13
@clawsweeper

clawsweeper Bot commented Oct 19, 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.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 19, 2026 08:20
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P1 High-priority user-facing bug, regression, or broken workflow. 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. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 19, 2026
@clawsweeper

clawsweeper Bot commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR moves the packaged Memory and Skills worker outputs outside the npm-excluded portable worker directory.

Example: An npm-installed OpenClaw launches its local Memory worker.

  • Before: The launcher targets dist/worker/memory-worker-entry.js, which the package excludes.
  • After: The build and launcher use dist/agents/workspace-memory.worker.js, which the package includes.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused patch is coherent and has a valuable package-boundary regression; independently inspectable after-fix product evidence is limited.
Proof confidence 🦐 gold shrimp (3/6) This collaborator-authored bot PR is outside the ordinary contributor proof gate; its body reports both workers launching successfully through the extracted package's SDK, while the visible regression exercises npm file selection rather than full onboarding.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Packaged onboarding and agent turns can exit because required local workspace subprocess files are missing.
Reason: The source confirms a concrete package-boundary defect, and this maintainer-authored repair restores the existing capability without changing configuration or product policy.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR fixes a concrete packaging omission still present on main, with no introduced code defects found; the required CI gate is currently failing.

Priority: P1
Reviewed head: adbd0584c670287399a863b0956d474366b55c5d

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied package-worker verification does not show a complete packaged onboarding or agent turn, and no inspectable after-fix terminal trace accompanies the narrative.
Agent review details

How this fits together

The runtime-process manifest supplies source locations and compiled paths to build tooling and subprocess launchers; npm file selection determines which compiled workers reach installed users.

flowchart TD
  A[Runtime process manifest] --> B[Build entries]
  A --> C[Workspace launcher]
  B --> D[Compiled worker files]
  D --> E[Npm package selection]
  E --> F[Installed package]
  C --> F
  F --> G[Memory and Skills subprocesses]
Loading

Technical review

Best possible solution:

Keep the shared manifest as the single build-and-launch owner and ship the two local workers outside the sealed portable directory.

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

Source establishes the failure directly: main builds and launches both workers beneath the directory excluded from npm packages; no target code was executed during this review.

Is this the best way to solve the issue?

This is the smallest complete repair: separate source and compiled paths in the existing manifest, retain source loading, and test the independent npm selection boundary.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 7c2eb6c3728c.

Provenance checked

  • Runtime-process metadata factory and output mapping changes intended behavior with a stated reason (5c34fc6: The metadata factory separated diagnostic imports from executable launcher declarations while preserving the caller module URL and one descriptor table; that extraction carried forward the existing source-shaped output paths.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 5c34fc6 adds src/infra/runtime-process-manifest.ts:2 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 5c34fc675770; files: src/infra/runtime-process-manifest.ts)

PR surface

Source +8, Tests +40. Total +48 across 2 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 1 12 4 +8
Tests 1 40 0 +40
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 52 4 +48

Labels

Label changes:

  • add P1: Missing packaged subprocesses can terminate onboarding and agent turns, making this an urgent packaging repair.
  • 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:

  • P1: Missing packaged subprocesses can terminate onboarding and agent turns, making this an urgent packaging repair.
  • 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.

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 19, 2026, 4:35 AM ET / 08:35 UTC.

roboclaw-bot and others added 2 commits October 19, 2026 08:47
After #177082 made the initial generation read provisional, the old fault corrupted the source before private snapshot acquisition. Wait for the private image to close, then perform a real SQLite commit between the final generation reads. Preserve all diagnostic assertions and verify the committed version.

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

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 1a214a82-7a55-4e45-a884-c50f2d10bbe3
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) October 19, 2026 09:09
@roboclaw-bot
roboclaw-bot merged commit 35848cd into main Oct 19, 2026
137 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/release-packaged-workspace-workers-20261019 branch October 19, 2026 09:10
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash auto-merge.

steipete added a commit that referenced this pull request Oct 19, 2026
The valid version-4 write introduced by #177130 happens after private snapshot acquisition. Its final generation check correctly refuses the changed family, not a snapshot-size mismatch from the earlier corruption fixture in #177158.

Serial exact CI merge and base replays reproduce the stale expectation. Keep the exact cause, both source paths, best-effort advice, and committed version assertion. All nine schema cases pass; targeted native types, lint and format pass. The suppression audit reports an unrelated main-owned UI helper allowlist mismatch (13 pass, 1 fail); this test-only change adds no suppression.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 20, 2026
* fix: restore workspace workers in npm installs

Keep local memory and skills subprocess outputs outside the sealed portable worker directory. Runtime launchers and build entries continue to share the manifest, while npm preserves the portable archive-only contract.

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

* fix: restore workspace workers in npm installs

Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 837639f8-021c-49ac-8d2a-8636b8aeec13

* test(update): inject writes during final generation verification

After openclaw#177082 made the initial generation read provisional, the old fault corrupted the source before private snapshot acquisition. Wait for the private image to close, then perform a real SQLite commit between the final generation reads. Preserve all diagnostic assertions and verify the committed version.

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

* Publish openclaw/release-packaged-workspace-workers-20261019

Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 1a214a82-7a55-4e45-a884-c50f2d10bbe3

---------

Co-authored-by: vincentkoc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 20, 2026
The valid version-4 write introduced by openclaw#177130 happens after private snapshot acquisition. Its final generation check correctly refuses the changed family, not a snapshot-size mismatch from the earlier corruption fixture in openclaw#177158.

Serial exact CI merge and base replays reproduce the stale expectation. Keep the exact cause, both source paths, best-effort advice, and committed version assertion. All nine schema cases pass; targeted native types, lint and format pass. The suppression audit reports an unrelated main-owned UI helper allowlist mismatch (13 pass, 1 fail); this test-only change adds no suppression.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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