Skip to content

fix(release): allow the sqlite-store worker bundle its self-contained size - #155877

Merged
steipete merged 2 commits into
mainfrom
fix/sqlite-worker-dist-cap
Sep 22, 2026
Merged

steipete merged 2 commits into
mainfrom
fix/sqlite-worker-dist-cap

Conversation

@steipete

@steipete steipete commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Full Release Validation 35760444831 (2026.9.6 candidate) fails in Prepare npm artifacts / Check npm package contents: installed package root dist file 'worker/sqlite-store.worker.mjs' is invalid or exceeds 6291456 bytes. The portable cloud SQLite worker bundle from #154711 is a self-contained worker deploy artifact (~46 MiB) like worker/worker.mjs, but scripts/openclaw-npm-postpublish-verify.ts only exempted the main worker and rsync receiver from the 6 MiB root dist cap.

Solution

Add worker/${WORKER_BUNDLE_SQLITE_STORE_PATH} to SELF_CONTAINED_WORKER_DEPLOY_DIST_PATHS so it uses the existing 80 MiB self-contained worker limit. Two lines.

Second commit: main-red repair from the #155344/#155869 merge race; lists src/config/io.runtime-write-finalization.ts in scripts/pr-lib/wrapper-components.txt so test/scripts/eager-import-closure.test.ts resolves the new io.runtime.ts import.

Impact

Unblocks the 2026.9.6 npm artifact qualification; no runtime change.

Evidence

… size

The portable cloud SQLite worker added in #154711 is a self-contained
worker deploy bundle (~46 MiB) like worker.mjs, but the installed-package
verifier still applied the 6 MiB root dist cap to it, failing Full
Release Validation's npm package contents check for 2026.9.6.
@clawsweeper

clawsweeper Bot commented Sep 22, 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: XS maintainer Maintainer-authored PR labels Sep 22, 2026
@steipete steipete self-assigned this Sep 22, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 22, 2026
@clawsweeper

clawsweeper Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 22, 2026, 2:05 PM ET / 18:05 UTC (Revision 2).

ClawSweeper review

What this changes

The PR gives the self-contained SQLite worker the existing 80 MiB package-verification allowance and includes a required config module in extracted maintainer tooling.

Merge readiness

✅ Ready for maintainer review

The fixes remain necessary on current main, and no actionable patch defect was found. The previous contributor-proof blocker does not apply to this verified repository administrator.

Priority: P2
Reviewed head: a7abc1e6610d0faeecd30afa520bb8c327ec0185

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A narrow, maintainable repair with no identified correctness or security defect; runtime execution was not independently performed.
Proof confidence 🌊 off-meta tidepool Not applicable: Verified repository-admin authorship exempts this tooling-only PR from external-contributor proof. The shared package verifier has reported focused-test coverage, but no after-fix artifact qualification is claimed; the wrapper addition is source-supported. No stored-data contract or authority boundary changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Verified repository-admin authorship exempts this tooling-only PR from external-contributor proof. The shared package verifier has reported focused-test coverage, but no after-fix artifact qualification is claimed; the wrapper addition is source-supported. No stored-data contract or authority boundary changes.
Evidence reviewed 8 items Pinned introduced changes: The merge-base-to-head diff adds the existing SQLite artifact constant to the exact-path allowance and adds the config finalization module to the wrapper inventory. The verifier is unchanged since the previous reviewed head; only the inventory addition is new.
Bounded shared package verifier: The reader selects 80 MiB only for listed worker paths, retains the 6 MiB default and regular-file check, and still sends accepted contents through syntax and dependency verification. Both prepared-package and release checks call this shared verifier.
Artifact matches the existing build owner: The build registers worker/sqlite-store.worker through the same worker-deployment builder as the main worker. The canonical artifact constant resolves to sqlite-store.worker.mjs. The supplied merged cloud-runtime PR records an approximately 47.7 MB executable.
Findings None None.
Security None None.

How this fits together

Release tooling checks built and installed npm package contents before accepting artifacts. Separately, maintainer tooling extracts a declared source inventory so its commands can load their dependencies.

flowchart TD
  A[Built npm package] --> B[Package verifier]
  B --> C[Select artifact size limit]
  C --> D[Validate contents and dependencies]
  E[Wrapper source inventory] --> F[Extract maintainer tooling]
  F --> G[Resolve required imports]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Other +3. Total +3 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 3 0 +3
Total 2 3 0 +3

Review metrics

Metric Value Why it matters
Artifact size allowance One additional exact path: 6 MiB → 80 MiB The existing self-contained-worker limit accommodates the reported approximately 46 MiB artifact without raising the general dist limit.

Technical review

Best possible solution:

Keep the exact-artifact allowance and complete the existing wrapper inventory while preserving all other package and source-verification checks.

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

Yes, from source: main applies the 6 MiB cap to the larger SQLite artifact and omits a directly imported module from wrapper extraction. No tests or release commands were executed during this read-only review.

Is this the best way to solve the issue?

Yes. Both changes extend the existing owners at the precise omission, without duplicating validation or changing runtime contracts.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Verified repository-admin authorship exempts this tooling-only PR from external-contributor proof. The shared package verifier has reported focused-test coverage, but no after-fix artifact qualification is claimed; the wrapper addition is source-supported. No stored-data contract or authority boundary changes.
  • remove status: 📣 needs proof: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This bounded tooling repair restores package qualification and extracted-wrapper dependency completeness without changing user runtime behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Verified repository-admin authorship exempts this tooling-only PR from external-contributor proof. The shared package verifier has reported focused-test coverage, but no after-fix artifact qualification is claimed; the wrapper addition is source-supported. No stored-data contract or authority boundary changes.

Evidence

What I checked:

  • Pinned introduced changes: The merge-base-to-head diff adds the existing SQLite artifact constant to the exact-path allowance and adds the config finalization module to the wrapper inventory. The verifier is unchanged since the previous reviewed head; only the inventory addition is new. (scripts/openclaw-npm-postpublish-verify.ts:93, a7abc1e6610d)
  • Bounded shared package verifier: The reader selects 80 MiB only for listed worker paths, retains the 6 MiB default and regular-file check, and still sends accepted contents through syntax and dependency verification. Both prepared-package and release checks call this shared verifier. (scripts/openclaw-npm-postpublish-verify.ts:570, a7abc1e6610d)
  • Artifact matches the existing build owner: The build registers worker/sqlite-store.worker through the same worker-deployment builder as the main worker. The canonical artifact constant resolves to sqlite-store.worker.mjs. The supplied merged cloud-runtime PR records an approximately 47.7 MB executable. (tsdown.config.ts:980, a7abc1e6610d)
  • Required wrapper dependency: io.runtime.ts imports io.runtime-write-finalization.js at line 21. The added inventory entry supplies that existing module to extraction; its surrounding dependencies are already listed. Wrapper extraction continues verifying source bytes against the trusted anchor. (scripts/pr-lib/wrapper-components.txt:374, a7abc1e6610d)
  • Still absent on fetched main: Fetched main lacks both the SQLite size allowance and the finalization-module inventory entry. The latest supplied release, v2026.9.5, also lacks the SQLite allowance; no merged replacement establishing this repair was identified. (scripts/openclaw-npm-postpublish-verify.ts:89, fd069fef6d33)
  • Release comparison: The tagged verifier lists only the main worker and rsync receiver for the larger allowance. (scripts/openclaw-npm-postpublish-verify.ts, ec9c1a13db89)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-22T17:50:35.963Z sha 456f346 :: needs real behavior proof before merge. :: none

#155344 made src/config/io.runtime.ts import ./io.runtime-write-finalization.js
but scripts/pr-lib/wrapper-components.txt was not updated, so
test/scripts/eager-import-closure.test.ts fails on main with
"src/config/io.runtime.ts: unresolved ./io.runtime-write-finalization.js".
@steipete
steipete enabled auto-merge (squash) September 22, 2026 18:02
@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 22, 2026
@steipete
steipete merged commit f6e970f into main Sep 22, 2026
148 of 149 checks passed
@steipete
steipete deleted the fix/sqlite-worker-dist-cap branch September 22, 2026 18:16
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

vincentkoc pushed a commit that referenced this pull request Sep 22, 2026
… size (#155877)

* fix(release): allow the sqlite-store worker bundle its self-contained size

The portable cloud SQLite worker added in #154711 is a self-contained
worker deploy bundle (~46 MiB) like worker.mjs, but the installed-package
verifier still applied the 6 MiB root dist cap to it, failing Full
Release Validation's npm package contents check for 2026.9.6.

* fix(scripts): list the write-finalization module in the wrapper closure

#155344 made src/config/io.runtime.ts import ./io.runtime-write-finalization.js
but scripts/pr-lib/wrapper-components.txt was not updated, so
test/scripts/eager-import-closure.test.ts fails on main with
"src/config/io.runtime.ts: unresolved ./io.runtime-write-finalization.js".

(cherry picked from commit f6e970f)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 23, 2026
… size (openclaw#155877)

* fix(release): allow the sqlite-store worker bundle its self-contained size

The portable cloud SQLite worker added in openclaw#154711 is a self-contained
worker deploy bundle (~46 MiB) like worker.mjs, but the installed-package
verifier still applied the 6 MiB root dist cap to it, failing Full
Release Validation's npm package contents check for 2026.9.6.

* fix(scripts): list the write-finalization module in the wrapper closure

openclaw#155344 made src/config/io.runtime.ts import ./io.runtime-write-finalization.js
but scripts/pr-lib/wrapper-components.txt was not updated, so
test/scripts/eager-import-closure.test.ts fails on main with
"src/config/io.runtime.ts: unresolved ./io.runtime-write-finalization.js".
steipete added a commit that referenced this pull request Sep 28, 2026
Full Release Validation for 2026.9.7 (parent 36466521174) failed two
release-tooling checks that main never exercises:

- The installed-package verifier applied the 6 MiB root-dist cap to
  dist/package-update-activation-recovery.mjs, the ~66 MB sealed
  self-contained recovery helper added by #158491. Treat it like the other
  self-contained bundles (80 MiB cap, no reparse), as #155877 did for the
  sqlite-store worker. Every main-based FRV since #158491 failed here.
- plugin-npm-security-scan had no reviewed inventory for release/2026.9.7.
  Freeze the 9.6 counts, record four post-9.6 test-file-only findings
  (codex auth-refresh harness spawn, feishu proxy env test, imessage
  client test #156334, signal socket probe count after #159648) in the
  current inventory, and map release/2026.9.7 to it, as #153372 did for 9.6.
steipete added a commit that referenced this pull request Sep 28, 2026
#160717)

fix(release): admit 2026.9.7 recovery helper and plugin scan inventory

Full Release Validation for 2026.9.7 (parent 36466521174) failed two
release-tooling checks that main never exercises:

- The installed-package verifier applied the 6 MiB root-dist cap to
  dist/package-update-activation-recovery.mjs, the ~66 MB sealed
  self-contained recovery helper added by #158491. Treat it like the other
  self-contained bundles (80 MiB cap, no reparse), as #155877 did for the
  sqlite-store worker. Every main-based FRV since #158491 failed here.
- plugin-npm-security-scan had no reviewed inventory for release/2026.9.7.
  Freeze the 9.6 counts, record four post-9.6 test-file-only findings
  (codex auth-refresh harness spawn, feishu proxy env test, imessage
  client test #156334, signal socket probe count after #159648) in the
  current inventory, and map release/2026.9.7 to it, as #153372 did for 9.6.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 29, 2026
openclaw#160717)

fix(release): admit 2026.9.7 recovery helper and plugin scan inventory

Full Release Validation for 2026.9.7 (parent 36466521174) failed two
release-tooling checks that main never exercises:

- The installed-package verifier applied the 6 MiB root-dist cap to
  dist/package-update-activation-recovery.mjs, the ~66 MB sealed
  self-contained recovery helper added by openclaw#158491. Treat it like the other
  self-contained bundles (80 MiB cap, no reparse), as openclaw#155877 did for the
  sqlite-store worker. Every main-based FRV since openclaw#158491 failed here.
- plugin-npm-security-scan had no reviewed inventory for release/2026.9.7.
  Freeze the 9.6 counts, record four post-9.6 test-file-only findings
  (codex auth-refresh harness spawn, feishu proxy env test, imessage
  client test openclaw#156334, signal socket probe count after openclaw#159648) in the
  current inventory, and map release/2026.9.7 to it, as openclaw#153372 did for 9.6.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XS 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