Skip to content

fix(runtime): require Node builds with lossless SQLite reads - #140672

Merged
steipete merged 7 commits into
mainfrom
codex/compat-node-sqlite-floor
Sep 7, 2026
Merged

steipete merged 7 commits into
mainfrom
codex/compat-node-sqlite-floor

Conversation

@steipete

@steipete steipete commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Related: #140465. Reported by @aeoess.

Previously supported Node releases silently truncate SQLite TEXT at embedded NUL characters. SQLite retains the correct bytes, but Node loses the suffix when converting to JavaScript strings. This breaks session identity validation and suggestion accounting and reproduces four existing session regressions.

Why This Change Was Made

Requires engines.node = >=24.16.0 <25 || >=26.1.0 consistently across package metadata, runtime diagnostics, installers, native runtime discovery, worker defaults, documentation, and compatibility CI. Node 22.23.x, 24.15.0, 25.9.0, and 26.0.0 contain the broken decoder; 24.16.0 and 26.1.0 are the first fixed releases on their lines. Node #61954 makes the conversion length-bearing. The separate SQLite WAL-version gate remains intact.

Peter approved this compatibility change and the platform losses below on September 7, 2026. Corrected native bindings address every SQLite text-read boundary without changing schemas or persistent-store semantics.

The worker default becomes node:24.19.0-slim; explicit worker images remain operator-owned. The sealed worker entry checks the existing runtime contract. The rootless installer validates a downloaded runtime before activating its alias, preserving an existing runtime when validation fails. The macOS Gateway-error fixture uses supported Node 24.16.0 while retaining its error assertions.

Windows test temporary roots use native path resolution before fixture allocation and child-environment publication. This expands inherited 8.3 aliases before Node 24 filesystem watchers encounter them. Explicit custom-root spelling and cleanup ownership are preserved. Both regression files are included in the existing Windows CI lane without adding jobs or changing timeouts.

User Impact

  • Node 22 and 25 users, users on Node 24 before 24.16.0, and users on Node 26.0 must upgrade Node before updating OpenClaw. Node 22 remains maintenance LTS; this support change is driven by correctness.
  • Official Linux ARMv7 provisioning is dropped because Node 24+ has no official ARMv7 binaries. Use a supported 64-bit OS or host.
  • Supported Node-based CLI/Gateway installation on macOS 11 through 13.4 is dropped because official Node 24/26 binaries require macOS 13.5. The native app independently requires macOS 15.0, documented by docs(macos): publish native app support requirements #140578.
  • Replace explicitly configured older worker images before upgrading. Older Node syntax support can cause startup failure before the runtime diagnostic executes.
  • Compatibility CI covers the exact 24.16.0 and 26.1.0 floors and the three session regression files.

Evidence

  • Tagged upstream SQLite source confirms the broken conversion in 22.23.2, 24.15.0, 25.9.0, and 26.0.0 and the corrected conversion in 24.16.0 and 26.1.0. Checksum-verified official binary probes retain identical stored bytes while demonstrating truncated versus complete reads.
  • Earlier candidate session proof reproduced exactly 4 failures/30 passes on Node 22.23.2 and passed 34/34 on each supported floor. Earlier rebased focused proof passes 86 tests, with two Windows-only tests skipped on macOS: session suites, runtime/worker guard, and temporary-root owners.
  • Installer preservation cases failed before the activation-order repair and pass afterward for fresh/upgrade installations and too-old/unlaunchable candidates, including successful retry. Prior fixture suites passed 129 with 28 PowerShell-only local skips, plus 44 workflow/guest cases. The worker refusal regression failed before repair. The actual sealed-worker bundle refused 26.0.0 and prewarmed on 24.16.0; Node 22 rejected its syntax before the diagnostic.
  • Native Windows build 26100, using checksum-verified official Node 22.23.2 and 24.20.0: both original temporary-root owners pass on 22.23.2 and abort on 24.20.0 with fs-event.c:72. The two native-realpath calls make both watcher flows pass on both runtimes. POSIX symlink behavior remains intact. Both pre-rebase hosted Windows jobs passed: part 1, part 2.
  • Related lifecycle proof passes 55 local tests with two native-Windows skips. All type checks and the completed changed-scope guards pass. Full lint, import-cycle checks, and targeted test lint pass in a separate physical checkout with its own dependency installation; the nested-worktree declaration guard was preserved.
  • Fresh full-candidate review through P2 is clean. The rebase onto main 29ba80f738dfd59b7ca71313081242b05206040d was conflict-free and preserves the exact stable patch identity.
  • The candidate includes main's independent Mermaid repairs (fix(ui): stop clipboard mocks leaking into Mermaid tests #141092/test(ui): finish Mermaid rendering before clipboard teardown #141085), Telegram lint repairs (fix(ci): unblock lint for Telegram progress tests #141139/fix(telegram): unblock PR lint checks for progress-update tests #141148), and permission-fixture repair (fix(ui): scope permission refresh e2e child lists #141020). Original ordered Mermaid proof passes 27/27 on repaired main. The original chat-picker failure did not reproduce on main in the full catalog file under CI-matching Node 24.19.0 or in 50 local repetitions; no speculative repair or weakened assertion was added.
  • The candidate now includes merged finalization/planner fixture repair fix(ci): avoid finalization fixture startup stalls #141137 (ed86b491cce2d084dea375fb700c47e65f1b1913). The exact preceding failed job confirmed the completion fixture timed out in its prerequisite validation phase. The conflict-free rebase onto c9b9d7b42291491d088246c3315738714733e85e preserves the reviewed patch identity; refreshed runtime and temporary-root checks pass 48 tests with two Windows-only skips on macOS. Fresh full-candidate review through P2 is clean. Required CI passed at b502e9b8a72b2d8c68c63508291807cfe93e2123 in run 34122023111, attempt 2, including both Windows jobs and macOS Swift. Main subsequently added three Windows tests to the same inventory line; the required rebase onto 43bc88f6f78410b86548ac29ec3f13a762481ae9 retains all three plus this PR’s two regressions. The new candidate is b6639e6d0173582dca99045f096dae3f782994c4, with 48 refreshed owner tests passing (two Windows-only skips on macOS) and fresh full-candidate review through P2 clean. The reviewed and committed trees match exactly. Npm lock, config baseline, dependency pins, plugin boundaries, and other applicable metadata guards passed; a package-only check invocation incorrectly selected a release-only guard and is not claimed as a passing full changed-scope run. Required CI run 34138604962 passed on that exact rebased head: 131 jobs succeeded and seven were skipped. Main then changed the generated configuration-documentation checksum, requiring another rebase onto d234f9d4d09273615508d34bb1b098e803630165. The checksum was regenerated with the canonical tool and its check passes. Current candidate 578c932a69f6ae08a3222ac42266b657f065f5c6 preserves the exact stable patch identity of all non-generated changes, passes 48 refreshed tests (two Windows-only local skips), and has a fresh clean full-candidate review through P2. Required CI run 34141385195, attempt 2 passed on this exact head, including openclaw/ci-gate. Both Windows lanes and macOS Swift passed initially. UI6 failed one image-handoff assertion; the unchanged main test passed on CI-matching Node 24.19.0 and the actual CI merge tree has identical UI/shared-package sources. One failed-jobs-only retry passed without source, assertion, timeout, or gate changes; the UI interleaving remains unproven.

No full local native-app suite, operator Gateway, or authenticated provider run is claimed. The six-boundary Swift owner probe and prior MDX/documentation checks are retained separately from hosted platform proof.

Upstream: 24.16.0 release, 26.1.0 release, Node platform requirements.

A later main change conflicted in CI routing documentation during final native merge admission. No merge request was dispatched. The candidate was rebased onto 8dde3559a5516073694517043cc81efed41737bf, preserving main’s QA/published-upgrade guidance and the corrected Node minimum wording. Current head is 3c0f0d8229361b46657ba365bece23ab1fa060a4; the PR’s added/removed lines are unchanged from the previous green candidate. The page passes MDX validation, 48 refreshed owner tests pass (two Windows-only skips on macOS), and fresh complete-candidate review through P2 is clean. Required CI run 34146264659 passed on this exact head on its first attempt. The two directly changed compatibility-workflow contracts also pass locally.

@clawsweeper

clawsweeper Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: macos App: macos gateway Gateway runtime cli CLI command changes scripts Repository scripts commands Command implementations plugin: file-transfer app: linux plugin: linux-node size: L maintainer Maintainer-authored PR labels Sep 7, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 7, 2026
@clawsweeper

clawsweeper Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 7, 2026, 1:15 PM ET / 17:15 UTC.

ClawSweeper review

What this changes

Requires Node releases with lossless SQLite text reads across installation and startup, updates worker defaults and documentation, preserves failed runtime replacements, and repairs Windows test temporary paths.

Merge readiness

⛔ Blocked before merge - 3 items remain

This remains a useful fix: current main and v2026.9.2 still accept affected runtimes. No blocking introduced defect was found, and the discussion already approves the compatibility tradeoff.

Priority: P2
Reviewed head: 3c0f0d8229361b46657ba365bece23ab1fa060a4

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Consistent runtime enforcement, focused upgrade safeguards, and substantial recorded platform proof support an above-average patch.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The captured body reports official-binary SQLite before/after observations, actual sealed-worker refusal and prewarm results, installer preservation on fresh and upgrade paths, and native Windows watcher recovery for both changed temporary-root owners; CI and mocked tests are supplemental.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The captured body reports official-binary SQLite before/after observations, actual sealed-worker refusal and prewarm results, installer preservation on fresh and upgrade paths, and native Windows watcher recovery for both changed temporary-root owners; CI and mocked tests are supplemental.
Evidence reviewed 9 items Pinned introduction boundary: Inspected the merge-base-to-head changes, including files omitted from the supplied bounded list. Base-only plugin installation changes were excluded from PR ownership.
Current main still accepts affected releases: The fetched main revision retains floors of 22.22.3, 24.15.0, and 25.9.0; this PR’s central change is not implemented there.
Latest release contract: v2026.9.2 also retains the older runtime floors, establishing the shipped compatibility change.
Findings None None.
Security None None.

How this fits together

OpenClaw’s runtime checks select which Node builds may run the CLI, Gateway, and workers. Those processes read session state through Node’s SQLite bindings, so truncated strings can undermine identity checks and suggestion limits.

flowchart TD
  A[Installed or downloaded Node] --> B[Runtime version checks]
  B -->|Unsupported| C[Upgrade diagnostic]
  B -->|Supported| D[CLI Gateway and workers]
  D --> E[SQLite safety check]
  E --> F[Lossless session state reads]
Loading

Before merge

  • Resolve merge risk (P1) - The approved support reduction stops Node 22/25, older Node 24/26, and explicitly configured older worker images until upgraded; official ARMv7 provisioning and macOS 11–13.4 CLI/Gateway support are lost.
  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Runtime compatibility 2 minimum release floors; 1 worker-image default changed The package, launchers, installers, and worker defaults must enforce the same approved runtime contract.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/cli/update-cli/update-command-service-plan.ts, migration/backfill/repair: src/infra/node-sqlite.ts, unknown-truncated-pull-files. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #140465
Summary: This PR implements the runtime-contract remedy for the reported SQLite decoding failures; the issue should remain open until implementation lands.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Retain the approved support reduction (recommended)
    Proceed under the recorded compatibility approval with the existing upgrade warnings and runtime-preservation behavior.

Technical review

Best possible solution:

Use corrected native SQLite bindings under the approved runtime policy, retaining pre-activation validation and documented host and worker upgrades.

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

Yes: the related report provides a concrete Node 22.23.2 session-test reproduction, and inspected Node source explains the NUL truncation. This review did not execute it.

Is this the best way to solve the issue?

Yes: requiring corrected native bindings addresses the shared decoding boundary without rewriting stored data or adding per-store workarounds; the support reduction has explicit approval.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This addresses a demonstrated SQLite decoding defect affecting bounded session identity and accounting cases.
  • merge-risk: 🚨 compatibility: Previously supported runtimes and platforms become unsupported, requiring operator upgrades despite explicit approval.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The captured body reports official-binary SQLite before/after observations, actual sealed-worker refusal and prewarm results, installer preservation on fresh and upgrade paths, and native Windows watcher recovery for both changed temporary-root owners; CI and mocked tests are supplemental.
  • proof: sufficient: Contributor real behavior proof is sufficient. The captured body reports official-binary SQLite before/after observations, actual sealed-worker refusal and prewarm results, installer preservation on fresh and upgrade paths, and native Windows watcher recovery for both changed temporary-root owners; CI and mocked tests are supplemental.

Evidence

What I checked:

  • Pinned introduction boundary: Inspected the merge-base-to-head changes, including files omitted from the supplied bounded list. Base-only plugin installation changes were excluded from PR ownership. (3c0f0d822936)
  • Current main still accepts affected releases: The fetched main revision retains floors of 22.22.3, 24.15.0, and 25.9.0; this PR’s central change is not implemented there. (node-version.mjs:5, 4b1f467dff76)
  • Latest release contract: v2026.9.2 also retains the older runtime floors, establishing the shipped compatibility change. (node-version.mjs:5, 3928bad9badf)
  • Authoritative dependency boundary: The PR explicitly depends on Node’s SQLite decoder. Inspected tagged source: 22.23.2 converts TEXT without its byte length; 24.16.0 and 26.1.0 pass the SQLite byte length through string conversion. (src/node_sqlite.cc)
  • Existing behavior contract: Existing session tests exercise embedded-NUL author accounting and reject malformed identity JSON containing a literal NUL. The related report supplies matching before/after runtime output: Node 22.23.2 is within engines, but four session tests fail on embedded-NUL SQLite reads #140465. (src/config/sessions/session-sharing-store.test.ts:146, 3c0f0d822936)
  • Upgrade preservation and worker boundary: Downloaded Node is validated before activating the runtime alias; the sealed worker invokes the existing runtime guard before prewarming or starting work. Explicit container-image settings still take precedence over the new default. (scripts/install-cli.sh:1146, 3c0f0d822936)

Likely related people:

  • steipete: 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 (13 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-07T10:01:49.883Z sha 70b4314 :: blocked before merge. :: none
  • reviewed 2026-09-07T10:26:28.835Z sha 5b77080 :: blocked before merge. :: none
  • reviewed 2026-09-07T11:23:42.097Z sha 3c11d95 :: blocked before merge. :: none
  • reviewed 2026-09-07T12:38:50.598Z sha b502e9b :: blocked before merge. :: none
  • reviewed 2026-09-07T15:37:55.468Z sha b6639e6 :: blocked before merge. :: none
  • reviewed 2026-09-07T16:01:56.917Z sha b6639e6 :: blocked before merge. :: none
  • reviewed 2026-09-07T16:14:56.140Z sha 578c932 :: blocked before merge. :: none
  • reviewed 2026-09-07T16:50:01.779Z sha 578c932 :: blocked before merge. :: none

@steipete
steipete force-pushed the codex/compat-node-sqlite-floor branch from 463187e to 83f2a53 Compare September 7, 2026 02:57
@steipete steipete self-assigned this Sep 7, 2026
@steipete
steipete marked this pull request as ready for review September 7, 2026 08:27
@steipete
steipete requested review from a team as code owners September 7, 2026 08:27
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Sep 7, 2026
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Dependency Guard

This PR changes dependency-related files. Maintainers should confirm these changes are intentional.

Changed files:

  • package.json

Maintainer follow-up:

  • Review whether the dependency changes are intentional.
  • Inspect resolved package deltas when lockfiles or workspace dependency policy changes are present.
  • Treat pnpm-lock.yaml and package-lock.json diffs as dependency security-review surfaces.
  • Run pnpm deps:changes:report -- --base-ref origin/main --markdown /tmp/dependency-changes.md --json /tmp/dependency-changes.json locally for detailed release-style evidence.

@github-actions

github-actions Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

Dependency graph changes noted

This PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin, a member of @openclaw/openclaw-secops, or an OpenClaw organization member with Maintain or Admin repository access.

  • Current SHA: 3c0f0d8229361b46657ba365bece23ab1fa060a4
  • Trusted actor: @steipete
  • Trusted role: pull request author; openclaw-secops

Security review is still recommended before merge when the dependency graph change is intentional.

@steipete
steipete force-pushed the codex/compat-node-sqlite-floor branch from 83f2a53 to ae78b47 Compare September 7, 2026 08:54
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 7, 2026
Expand Windows short paths before creating test directories and owned child environments. Node 24 filesystem watchers otherwise abort when native long event paths differ from inherited short temporary paths. Preserve explicit custom-root spelling and existing cleanup ownership.
@steipete
steipete force-pushed the codex/compat-node-sqlite-floor branch from 578c932 to 3c0f0d8 Compare September 7, 2026 17:07
@steipete
steipete merged commit ce0e84d into main Sep 7, 2026
214 checks passed
@steipete
steipete deleted the codex/compat-node-sqlite-floor branch September 7, 2026 17:31
@steipete

steipete commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Rorqualx pushed a commit to Rorqualx/cortex that referenced this pull request Sep 7, 2026
…ine floor

Upstream ce0e84d (fix(runtime): require Node builds with lossless SQLite
reads, openclaw#140672) raised engines to >=24.16.0 <25 || >=26.1.0. huey's pinned
/home/joe/node24 (v24.15.0) built everything else green but died in
write-cli-startup-metadata shelling out to the openclaw CLI's engine check.
/home/joe/node24x is a fresh v24.20.0 user-local install (nodejs.org tarball,
rsynced); the old node24 dir is untouched for running processes.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 8, 2026
…w#140672)

* fix(runtime): require Node builds with lossless SQLite reads

* fix(runtime): preserve upgrades and guard sealed workers

Validate downloaded Node before switching the active runtime alias, reject unsupported sealed-worker runtimes, and keep the Gateway error fixture on a supported Node release. Document the approved ARMv7 and older macOS compatibility losses and decoder fix boundaries.

* test(runtime): use typed process exports in worker fixture

* test(runtime): align installer fixtures without growing test shards

* test(runtime): align release and guest runtime fixtures

* fix(test): canonicalize Windows temp roots for Node 24

Expand Windows short paths before creating test directories and owned child environments. Node 24 filesystem watchers otherwise abort when native long event paths differ from inherited short temporary paths. Preserve explicit custom-root spelling and existing cleanup ownership.

* test(ci): run Windows temp-root regressions in the native lane
vincentkoc added a commit that referenced this pull request Sep 8, 2026
Five commits changed docs/reference/RELEASING.md while this branch was
turning it into an index (#142195, #142291, #142260, #141786, #140672),
adding 98 lines. Resolved to the index, then re-extracted every child
section from main's current file: 15 sections refreshed across 9
children. Verified line by line that all 792 content lines present on
main survive the split.

Re-extraction reverted three of the split's own repairs, which is the
known cost of that approach:

- four cross-page links fell back to same-page fragments
  (#regular-release-publish-automation, #stable-main-closeout); all
  repointed at the children that own those headings
- versioning.md's "see the dedicated workflow below" lost its target
  again and is a link to /reference/releasing/extended-stable once more

The link reverts are caught by docs-link-audit and markdownlint MD051.
The prose revert is caught by nothing and was found by hand.

Glossary: union keyed on source, 701 entries, 0 duplicate sources.

Full CI docs gate after staging: markdownlint 0 issues,
docs-link-audit --anchors 0 broken links, check-docs-mdx passed,
format-docs clean.

Still requires @openclaw/openclaw-release-managers approval.
steipete added a commit that referenced this pull request Sep 9, 2026
Validate the loaded SQLite library and TEXT, BLOB, and JSON round trips across startup, doctor, Gateway install, update preflight, and installers. Admit capable Node 24+ vendor builds with a support-policy note while retaining the package engines and Node 22 exclusion. Refs #140465 #140672.
steipete added a commit that referenced this pull request Sep 9, 2026
…143312)

* fix(runtime): gate node:sqlite on a NUL round-trip capability probe

Validate the loaded SQLite library and TEXT, BLOB, and JSON round trips across startup, doctor, Gateway install, update preflight, and installers. Admit capable Node 24+ vendor builds with a support-policy note while retaining the package engines and Node 22 exclusion. Refs #140465 #140672.

* fix(runtime): expose capability diagnostics through doctor

Register the runtime check in the ordered Doctor contribution catalog. Keep shared audit types in a leaf module, include the bootstrap probe in duplicate scanning, and update native runtime and compiled-worker fixtures for the capability protocol.

* fix(update): preserve target Node version requirements

* fix(install): remove unused Node major probe state
steipete added a commit that referenced this pull request Sep 9, 2026
Share CLI admission between the launcher and source guard, retain private-copy
SQLite recovery, and keep live database writers and repair agents refused.
Route plain Doctor to lint and refuse update before its run-ledger admission
when the CLI Node is unsupported. Report CLI/service runtime findings and the
reporting Node version in update-failure reports.

Refs #140672 #142742
steipete added a commit that referenced this pull request Sep 9, 2026
…de (#143344)

* fix(runtime): keep diagnostics and update usable on an unsupported Node

Share CLI admission between the launcher and source guard, retain private-copy
SQLite recovery, and keep live database writers and repair agents refused.
Route plain Doctor to lint and refuse update before its run-ledger admission
when the CLI Node is unsupported. Report CLI/service runtime findings and the
reporting Node version in update-failure reports.

Refs #140672 #142742

* docs(install): explain private Node recovery and diagnostic access

* test(runtime): preserve Node recovery coverage with diagnostic admission

* fix(runtime): offer Node recovery once per update invocation

* fix(build): emit Node 22 syntax for recovery diagnostics

* fix(update): check runtime at the state preparation boundary

* fix(doctor): preserve migration order before runtime diagnostics

* fix(runtime): recover before admitting unsupported Node diagnostics

* fix(runtime): preserve capability admission in diagnostic recovery

* test(cli): retain capability checks in startup fixtures

* refactor(runtime): share Node findings across diagnostic commands

* fix(doctor): omit absent repair hints in lint errors
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 10, 2026
…penclaw#143312)

* fix(runtime): gate node:sqlite on a NUL round-trip capability probe

Validate the loaded SQLite library and TEXT, BLOB, and JSON round trips across startup, doctor, Gateway install, update preflight, and installers. Admit capable Node 24+ vendor builds with a support-policy note while retaining the package engines and Node 22 exclusion. Refs openclaw#140465 openclaw#140672.

* fix(runtime): expose capability diagnostics through doctor

Register the runtime check in the ordered Doctor contribution catalog. Keep shared audit types in a leaf module, include the bootstrap probe in duplicate scanning, and update native runtime and compiled-worker fixtures for the capability protocol.

* fix(update): preserve target Node version requirements

* fix(install): remove unused Node major probe state
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 10, 2026
…de (openclaw#143344)

* fix(runtime): keep diagnostics and update usable on an unsupported Node

Share CLI admission between the launcher and source guard, retain private-copy
SQLite recovery, and keep live database writers and repair agents refused.
Route plain Doctor to lint and refuse update before its run-ledger admission
when the CLI Node is unsupported. Report CLI/service runtime findings and the
reporting Node version in update-failure reports.

Refs openclaw#140672 openclaw#142742

* docs(install): explain private Node recovery and diagnostic access

* test(runtime): preserve Node recovery coverage with diagnostic admission

* fix(runtime): offer Node recovery once per update invocation

* fix(build): emit Node 22 syntax for recovery diagnostics

* fix(update): check runtime at the state preparation boundary

* fix(doctor): preserve migration order before runtime diagnostics

* fix(runtime): recover before admitting unsupported Node diagnostics

* fix(runtime): preserve capability admission in diagnostic recovery

* test(cli): retain capability checks in startup fixtures

* refactor(runtime): share Node findings across diagnostic commands

* fix(doctor): omit absent repair hints in lint errors
vincentkoc added a commit that referenced this pull request Sep 26, 2026
* docs(release): restore the npm publication bookmark

Preserve the published publish-the-npm-packages fragment after the extended-stable heading rename. Keep the current release policy and canonical maintainer procedures unchanged.

* docs(reference): split the release runbook by reader job

docs/reference/RELEASING.md was 99,140 characters and mixed reference,
how-to, and explanation content for five release jobs on one page. It is
now a 4.6k index over nine pages under docs/reference/releasing/, one per
reader job, so an operator can complete one procedure on one page.

Children, in release order:

- releasing/versioning - version formats, git tags, npm dist-tags, cadence
- releasing/preflight - checks and generators to run before tagging
- releasing/regular-release - the twelve-step operator checklist
- releasing/test-boxes - Full Release Validation and the Vitest, Docker,
  QA Lab, and Package boxes
- releasing/publish-automation - OpenClaw Release Publish order, tooling
  tags, and Windows, Android, and ClawHub recovery
- releasing/beta-latest-sequence - the orchestrated stable sequence
- releasing/main-closeout - bringing main to the shipped state
- releasing/extended-stable - the monthly .33+ Gateway lane
- releasing/npm-workflow-inputs - operator-controlled workflow inputs

Anchor strategy. Per-anchor routes are impossible here: redirectSource()
in scripts/lib/docs-redirects.mjs rejects any source containing [?#]. So
every original anchor stays alive on the parent index, matching the
configuration-reference, Control UI, CI, protocol, and Slack splits: 18
authored <a id="..." /> stubs in a "Where each section moved" list, each
linking to /reference/releasing/<child>#<anchor>. The remaining two ids,
public-references and related, keep their sections on the index itself
and are deliberately not stubbed, so no duplicate authored/canonical ID
is raised.

Every id was computed with parseDocsDocument from
scripts/lib/docs-markdown.mjs, never a slug approximation. That matters
for "Regular beta/latest stable release sequence", which mints both the
percent-encoded canonical regular-beta%2Flatest-stable-release-sequence
and the compatibility alias regular-beta/latest-stable-release-sequence;
both are stubbed.

Anchor proof, run as a script rather than inferred from a passing audit
(a split rewrites the repo's own links, so docs-link-audit reads clean
even when every external deep link is broken): 20 pre-split ids
enumerated, 20 resolve against the parsed post-split index through
resolveDocsFragment, 18 stubs all point at an id that exists on the named
child, 0 collisions on the index or any child.

Losslessness, asserted mechanically by concatenating child bodies back
to the original section bodies: 0 divergences. Words 12,605 -> 13,045
(+440 from the index funnel, per-child frontmatter, and Related blocks).
Code fences 23 -> 23, unchanged. Links 23 -> 79 (+18 stubs, +9 index
bullets, +27 Related entries, +2 orphan repairs). Characters 98,834 ->
104,528.

Prose was not rewritten. The one declared exception is the cross-
reference repair the split requires: "see the dedicated workflow below"
in Version naming and "documented at the top of this page" in the
beta/latest sequence both pointed at content that now lives on another
page, so each became a real link to the extended-stable page.

Supporting changes:

- docs/docs.json gains a "Release runbook" nav group under "Release
  process", mirroring the "CI" group under "Testing and CI".
- .github/CODEOWNERS extends @openclaw/openclaw-release-managers to
  /docs/reference/releasing/, so the split does not silently drop
  release-manager ownership of the runbook.
- test/scripts/package-acceptance-workflow.test.ts and
  test/scripts/openclaw-npm-extended-stable-workflow.test.ts read
  RELEASING.md plus docs/reference/releasing/*.md as one set, following
  the pattern already used there for docs/ci.md plus docs/ci/*.md, so the
  assertions follow the content instead of a single file path.
- test/scripts/docs-sync-publish.test.ts pins the nine new routes.
- docs/.i18n/glossary.zh-CN.json gains one entry per new page title.
  The zh-CN targets are machine-written and unreviewed.

Closes audit findings: r3-0683, r3-0685

* Merge origin/main into docs-audit/split-releasing

Five commits changed docs/reference/RELEASING.md while this branch was
turning it into an index (#142195, #142291, #142260, #141786, #140672),
adding 98 lines. Resolved to the index, then re-extracted every child
section from main's current file: 15 sections refreshed across 9
children. Verified line by line that all 792 content lines present on
main survive the split.

Re-extraction reverted three of the split's own repairs, which is the
known cost of that approach:

- four cross-page links fell back to same-page fragments
  (#regular-release-publish-automation, #stable-main-closeout); all
  repointed at the children that own those headings
- versioning.md's "see the dedicated workflow below" lost its target
  again and is a link to /reference/releasing/extended-stable once more

The link reverts are caught by docs-link-audit and markdownlint MD051.
The prose revert is caught by nothing and was found by hand.

Glossary: union keyed on source, 701 entries, 0 duplicate sources.

Full CI docs gate after staging: markdownlint 0 issues,
docs-link-audit --anchors 0 broken links, check-docs-mdx passed,
format-docs clean.

Still requires @openclaw/openclaw-release-managers approval.

* docs(reference): stub the anchors main added, and relink extended-stable

Both found by ClawSweeper on the rebased head.

Main added three headings to RELEASING.md while this branch was open:
Previous updater compatibility, Design proposal: immutable runtime
generations, and Required checks. Re-extracting moved their content to
preflight.md but added no compatibility stubs, so links such as
/reference/RELEASING#previous-updater-compatibility lost their target.
Added four stubs — the punctuated heading emits both an encoded and a
cleaned id, and both are now covered.

Anchor preservation applies to content main adds mid-flight, not only to
what existed when the split was planned. Verified against main's current
file: 24 pre-split ids, 24 resolving on the index, 0 lost.

Also restored the second extended-stable cross-page link. The earlier
rebase reverted two of them; I fixed versioning.md but missed
beta-latest-sequence.md, which still said the path was "documented at
the top of this page" after that path moved to its own child. An
orphaned directional phrase passes every validator, which is why this
one survived a full gate run.

markdownlint 0 issues, docs-link-audit --anchors 0 broken links,
check-docs-mdx passed, format-docs clean.

* Merge origin/main into docs-audit/split-releasing

Glossary conflict only; union keyed on source, 709 entries, 0 duplicate
sources. No page conflicted.

Ran the new .audit/check-orphan-refs.py over this tree: 0 directional
references remaining. That check exists because this branch shipped two
orphaned 'below' references past a full gate run, and they were found by
a reviewer both times.

markdownlint 0 issues, docs-link-audit --anchors 0 broken links,
format-docs clean.

Still requires @openclaw/openclaw-release-managers approval.

* Merge origin/main into docs-audit/split-releasing

This PR has been waiting on release-manager review, and main moved under
it. Refreshed so it is mergeable the moment the owners approve.

#142538 added 41 lines on extended-stable validation dispatch to
docs/reference/RELEASING.md. Resolved to the index, then re-extracted
five child sections from main's current file so that content survives.
Verified line by line: 817 content lines on main, all present after the
split. The one apparent gap is the Tideclaw alpha line, which is present
with its link repointed at the npm-workflow-inputs child.

Re-extraction reverted the split's own repairs again, both kinds:
- four cross-page links fell back to same-page fragments and were
  repointed at the children owning those headings
- two orphaned directional references came back and were relinked,
  in versioning.md and beta-latest-sequence.md

The link reverts are caught by docs-link-audit; the prose reverts are
caught by nothing and were found with .audit/check-orphan-refs.py.

Anchor check against main's current file: 24 ids, 24 resolving, 0 lost.
markdownlint 0 issues, format-docs clean, check-docs-mdx passed.
docs-link-audit --anchors reports only the 3 pre-existing maturity
failures that also fail on a clean origin/main.

Still requires @openclaw/openclaw-release-managers approval.

* Merge origin/main into docs-audit/split-releasing

Three conflicts, resolved as follows.

docs/reference/RELEASING.md: kept the index (ours). main's only change to
this page since the merge base is ca3bc36, which rewrote one paragraph
of the `update-first-hop-compat` lane inside "Release preflight". That
section now lives in docs/reference/releasing/preflight.md, so main's hunk
was applied there verbatim rather than dropped.

test/scripts/package-acceptance-workflow.test.ts: took main's version of
both hunks -- the recursive docs/ci walk and the new set-read over
docs/reference/full-release-validation/ -- and kept readReleasingDocs() as
the reader for the release policy page. readReleasingDocs() now walks
docs/reference/releasing recursively with toSorted(), matching the pattern
and the rationale main established for docs/ci.

docs/.i18n/glossary.zh-CN.json: order-preserving union. 1119 sources from
main + 10 from this branch = 1129, 0 duplicates, both sides' orders
preserved as subsequences. The 10 new entries were moved out of the
end-of-array collision zone to sit beside the parent "Release policy"
entry.

Losslessness re-proved against current origin/main:docs/reference/RELEASING.md
(body sha256 9159abcad8cc2afe9a823570ca852fe912f66ed27c6c85a40d6576c595c51230):
all 12 top-level sections are byte-identical once the 6 declared link
rewrites are reversed; concatenated sections hash
66734f4ef0c88c6f2a7153de8708a5a58c058ed1561843babcdd0dec77410104 on both
sides. Code fences 25 -> 25 with an identical (info string, body sha256)
multiset; 0 tables; words 14,179 -> 15,020.

* Merge remote-tracking branch 'origin/main' into docs-audit/split-releasing

* origin/main:
  fix(channels): preserve labels for unloaded plugins (#143416)
  refactor(tests): share image resource acquisition setup (#143443)
  refactor(hooks): consolidate source precedence policy (#143439)

* docs(release): retain the original split history

The canonical release-policy split landed in #156946. Preserve the original branch ancestry while retaining only its missing legacy publication anchor on current source.

* commit 'f478156122dcc285acb7413024c4ecfc3101e0c8':
  docs(reference): stub the anchors main added, and relink extended-stable
  docs(reference): split the release runbook by reader job

Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 27, 2026
* docs(release): restore the npm publication bookmark

Preserve the published publish-the-npm-packages fragment after the extended-stable heading rename. Keep the current release policy and canonical maintainer procedures unchanged.

* docs(reference): split the release runbook by reader job

docs/reference/RELEASING.md was 99,140 characters and mixed reference,
how-to, and explanation content for five release jobs on one page. It is
now a 4.6k index over nine pages under docs/reference/releasing/, one per
reader job, so an operator can complete one procedure on one page.

Children, in release order:

- releasing/versioning - version formats, git tags, npm dist-tags, cadence
- releasing/preflight - checks and generators to run before tagging
- releasing/regular-release - the twelve-step operator checklist
- releasing/test-boxes - Full Release Validation and the Vitest, Docker,
  QA Lab, and Package boxes
- releasing/publish-automation - OpenClaw Release Publish order, tooling
  tags, and Windows, Android, and ClawHub recovery
- releasing/beta-latest-sequence - the orchestrated stable sequence
- releasing/main-closeout - bringing main to the shipped state
- releasing/extended-stable - the monthly .33+ Gateway lane
- releasing/npm-workflow-inputs - operator-controlled workflow inputs

Anchor strategy. Per-anchor routes are impossible here: redirectSource()
in scripts/lib/docs-redirects.mjs rejects any source containing [?#]. So
every original anchor stays alive on the parent index, matching the
configuration-reference, Control UI, CI, protocol, and Slack splits: 18
authored <a id="..." /> stubs in a "Where each section moved" list, each
linking to /reference/releasing/<child>#<anchor>. The remaining two ids,
public-references and related, keep their sections on the index itself
and are deliberately not stubbed, so no duplicate authored/canonical ID
is raised.

Every id was computed with parseDocsDocument from
scripts/lib/docs-markdown.mjs, never a slug approximation. That matters
for "Regular beta/latest stable release sequence", which mints both the
percent-encoded canonical regular-beta%2Flatest-stable-release-sequence
and the compatibility alias regular-beta/latest-stable-release-sequence;
both are stubbed.

Anchor proof, run as a script rather than inferred from a passing audit
(a split rewrites the repo's own links, so docs-link-audit reads clean
even when every external deep link is broken): 20 pre-split ids
enumerated, 20 resolve against the parsed post-split index through
resolveDocsFragment, 18 stubs all point at an id that exists on the named
child, 0 collisions on the index or any child.

Losslessness, asserted mechanically by concatenating child bodies back
to the original section bodies: 0 divergences. Words 12,605 -> 13,045
(+440 from the index funnel, per-child frontmatter, and Related blocks).
Code fences 23 -> 23, unchanged. Links 23 -> 79 (+18 stubs, +9 index
bullets, +27 Related entries, +2 orphan repairs). Characters 98,834 ->
104,528.

Prose was not rewritten. The one declared exception is the cross-
reference repair the split requires: "see the dedicated workflow below"
in Version naming and "documented at the top of this page" in the
beta/latest sequence both pointed at content that now lives on another
page, so each became a real link to the extended-stable page.

Supporting changes:

- docs/docs.json gains a "Release runbook" nav group under "Release
  process", mirroring the "CI" group under "Testing and CI".
- .github/CODEOWNERS extends @openclaw/openclaw-release-managers to
  /docs/reference/releasing/, so the split does not silently drop
  release-manager ownership of the runbook.
- test/scripts/package-acceptance-workflow.test.ts and
  test/scripts/openclaw-npm-extended-stable-workflow.test.ts read
  RELEASING.md plus docs/reference/releasing/*.md as one set, following
  the pattern already used there for docs/ci.md plus docs/ci/*.md, so the
  assertions follow the content instead of a single file path.
- test/scripts/docs-sync-publish.test.ts pins the nine new routes.
- docs/.i18n/glossary.zh-CN.json gains one entry per new page title.
  The zh-CN targets are machine-written and unreviewed.

Closes audit findings: r3-0683, r3-0685

* Merge origin/main into docs-audit/split-releasing

Five commits changed docs/reference/RELEASING.md while this branch was
turning it into an index (openclaw#142195, openclaw#142291, openclaw#142260, openclaw#141786, openclaw#140672),
adding 98 lines. Resolved to the index, then re-extracted every child
section from main's current file: 15 sections refreshed across 9
children. Verified line by line that all 792 content lines present on
main survive the split.

Re-extraction reverted three of the split's own repairs, which is the
known cost of that approach:

- four cross-page links fell back to same-page fragments
  (#regular-release-publish-automation, #stable-main-closeout); all
  repointed at the children that own those headings
- versioning.md's "see the dedicated workflow below" lost its target
  again and is a link to /reference/releasing/extended-stable once more

The link reverts are caught by docs-link-audit and markdownlint MD051.
The prose revert is caught by nothing and was found by hand.

Glossary: union keyed on source, 701 entries, 0 duplicate sources.

Full CI docs gate after staging: markdownlint 0 issues,
docs-link-audit --anchors 0 broken links, check-docs-mdx passed,
format-docs clean.

Still requires @openclaw/openclaw-release-managers approval.

* docs(reference): stub the anchors main added, and relink extended-stable

Both found by ClawSweeper on the rebased head.

Main added three headings to RELEASING.md while this branch was open:
Previous updater compatibility, Design proposal: immutable runtime
generations, and Required checks. Re-extracting moved their content to
preflight.md but added no compatibility stubs, so links such as
/reference/RELEASING#previous-updater-compatibility lost their target.
Added four stubs — the punctuated heading emits both an encoded and a
cleaned id, and both are now covered.

Anchor preservation applies to content main adds mid-flight, not only to
what existed when the split was planned. Verified against main's current
file: 24 pre-split ids, 24 resolving on the index, 0 lost.

Also restored the second extended-stable cross-page link. The earlier
rebase reverted two of them; I fixed versioning.md but missed
beta-latest-sequence.md, which still said the path was "documented at
the top of this page" after that path moved to its own child. An
orphaned directional phrase passes every validator, which is why this
one survived a full gate run.

markdownlint 0 issues, docs-link-audit --anchors 0 broken links,
check-docs-mdx passed, format-docs clean.

* Merge origin/main into docs-audit/split-releasing

Glossary conflict only; union keyed on source, 709 entries, 0 duplicate
sources. No page conflicted.

Ran the new .audit/check-orphan-refs.py over this tree: 0 directional
references remaining. That check exists because this branch shipped two
orphaned 'below' references past a full gate run, and they were found by
a reviewer both times.

markdownlint 0 issues, docs-link-audit --anchors 0 broken links,
format-docs clean.

Still requires @openclaw/openclaw-release-managers approval.

* Merge origin/main into docs-audit/split-releasing

This PR has been waiting on release-manager review, and main moved under
it. Refreshed so it is mergeable the moment the owners approve.

openclaw#142538 added 41 lines on extended-stable validation dispatch to
docs/reference/RELEASING.md. Resolved to the index, then re-extracted
five child sections from main's current file so that content survives.
Verified line by line: 817 content lines on main, all present after the
split. The one apparent gap is the Tideclaw alpha line, which is present
with its link repointed at the npm-workflow-inputs child.

Re-extraction reverted the split's own repairs again, both kinds:
- four cross-page links fell back to same-page fragments and were
  repointed at the children owning those headings
- two orphaned directional references came back and were relinked,
  in versioning.md and beta-latest-sequence.md

The link reverts are caught by docs-link-audit; the prose reverts are
caught by nothing and were found with .audit/check-orphan-refs.py.

Anchor check against main's current file: 24 ids, 24 resolving, 0 lost.
markdownlint 0 issues, format-docs clean, check-docs-mdx passed.
docs-link-audit --anchors reports only the 3 pre-existing maturity
failures that also fail on a clean origin/main.

Still requires @openclaw/openclaw-release-managers approval.

* Merge origin/main into docs-audit/split-releasing

Three conflicts, resolved as follows.

docs/reference/RELEASING.md: kept the index (ours). main's only change to
this page since the merge base is a0a7528, which rewrote one paragraph
of the `update-first-hop-compat` lane inside "Release preflight". That
section now lives in docs/reference/releasing/preflight.md, so main's hunk
was applied there verbatim rather than dropped.

test/scripts/package-acceptance-workflow.test.ts: took main's version of
both hunks -- the recursive docs/ci walk and the new set-read over
docs/reference/full-release-validation/ -- and kept readReleasingDocs() as
the reader for the release policy page. readReleasingDocs() now walks
docs/reference/releasing recursively with toSorted(), matching the pattern
and the rationale main established for docs/ci.

docs/.i18n/glossary.zh-CN.json: order-preserving union. 1119 sources from
main + 10 from this branch = 1129, 0 duplicates, both sides' orders
preserved as subsequences. The 10 new entries were moved out of the
end-of-array collision zone to sit beside the parent "Release policy"
entry.

Losslessness re-proved against current origin/main:docs/reference/RELEASING.md
(body sha256 9159abcad8cc2afe9a823570ca852fe912f66ed27c6c85a40d6576c595c51230):
all 12 top-level sections are byte-identical once the 6 declared link
rewrites are reversed; concatenated sections hash
66734f4ef0c88c6f2a7153de8708a5a58c058ed1561843babcdd0dec77410104 on both
sides. Code fences 25 -> 25 with an identical (info string, body sha256)
multiset; 0 tables; words 14,179 -> 15,020.

* Merge remote-tracking branch 'origin/main' into docs-audit/split-releasing

* origin/main:
  fix(channels): preserve labels for unloaded plugins (openclaw#143416)
  refactor(tests): share image resource acquisition setup (openclaw#143443)
  refactor(hooks): consolidate source precedence policy (openclaw#143439)

* docs(release): retain the original split history

The canonical release-policy split landed in openclaw#156946. Preserve the original branch ancestry while retaining only its missing legacy publication anchor on current source.

* commit 'f478156122dcc285acb7413024c4ecfc3101e0c8':
  docs(reference): stub the anchors main added, and relink extended-stable
  docs(reference): split the release runbook by reader job

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

Labels

app: linux app: macos App: macos cli CLI command changes commands Command implementations dependencies-changed PR changes dependency-related files docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. plugin: file-transfer plugin: linux-node proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. scripts Repository scripts size: XL 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