Skip to content

[2026.10.10-beta.5] fix: keep installs and updates working below recommended Node security patches (#186589) - #187626

Merged
RomneyDa merged 3 commits into
release/2026.10.10from
beta5/node-floor-backport
Oct 29, 2026
Merged

RomneyDa merged 3 commits into
release/2026.10.10from
beta5/node-floor-backport

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Problem

Release blocker on the install path, found by the provisional beta.5 Full Release Validation: cross_os_release_checks / macOS / installer fresh (run 40852450759, job 123377578997).

The live https://openclaw.ai/install.sh already follows main's relaxed Node policy (#186589). On the macOS runner it accepted Homebrew node@24 = 24.22.0. Installing the beta.5 candidate tarball then failed in scripts/preinstall-package-manager-warning.mjs:

this OpenClaw release requires Node >=24.22.1 <25 || >=26.12.1. detected Node 24.22.0

release/2026.10.10 (and beta.4) still enforce >=24.22.1 <25 || >=26.12.1 as a hard engines floor, so the shipped package and the live installer disagree. Any user on a compatible but unpatched Node 24/26 gets an installer that says yes and a package that says no.

Fix

Backport #186589 (git cherry-pick -x 4a5ec828b19c) plus its docs follow-up 5eeafd8.

  • node-version.mjs stays the single owner: compatibility floors go back to >=24.16.0 <25 || >=26.1.0, and 24.22.1/26.12.1 become NODE_SECURITY_RELEASE_FLOORS, surfaced by formatNodeSecurityWarning.
  • Consumers align with that owner: package.json engines, openclaw.mjs, the runtime guard, node-sqlite.mjs messages, worker bootstrap, install.sh, install-cli.sh, install.ps1, and the macOS RuntimeLocator.
  • Updates, Doctor and openclaw security audit now print a nonblocking SECURITY WARNING (runtime.node_security_patch) for Node below 24.22.1/26.12.1. They no longer refuse it.
  • SQLite safety checks are unchanged: lossless TEXT/BLOB/JSON round trips and a WAL-reset-safe SQLite are still required. Node 22, 23 and 25 stay excluded.

Release-branch adaptation (conflict resolution)

  • Main's prerelease admission for future majors (Node 27 -head/nightly) is not on this branch. I left it out, including the Node 27 docs row and prerelease test cases, so release behavior for prereleases is unchanged.
  • update-command-runtime-preflight.ts: the warning is set only after the release-only executable-identity recheck on the fallback runtime succeeds.
  • Recovered runtime: release already probes the recovered Node before admitting it. Rather than adding main's second best-effort probe, the warning reuses that probe's version, so recovery still makes one probe per executable.
  • update-command-node-runtime.ts and update-command-target.ts: the release-only admittedPackageRuntime handling is kept, and the security-warning handling is added after it.
  • update-command-target.ts was over the 700-line lint ceiling after the merge (701 counted lines). I moved the preflight-step recorder into update-command-runtime-preflight.ts as recordNodeSecurityWarning(record, cwd, warning). It records the same step (node-security-patch).
  • audit.ts: collectElevatedFindings moves to audit-runtime.ts as on main. Release's attack-surface call shape is kept, and main's open-inbound plumbing is not pulled in.
  • Tests: I kept the release-side test structure and applied main's expectation changes, without main's unrelated test consolidation. The new floor versions are added to the existing tables (runtime guard, preinstall, launcher, install.ps1 Check-Node), and the Doctor nonblocking-warning test is ported. Update recovery now recommends the lowest release that satisfies both ranges: 24.16.0 instead of 24.22.1 for old candidates, as on main.
  • Docs: release-only text is kept. That covers the capability-admission paragraph and the Bun 1.4.3 rows; main's Bun 1.4.4/fork rows are not imported.

Not included: #187518 (1e11b88), a main CI-harness workaround that keeps setup-node first on PATH in the cross-OS installer smoke. This backport fixes the product disagreement itself, so the smoke no longer depends on which Node 24 patch comes first on PATH.

Evidence

Direct preinstall runs on this branch:

  • Node 24.16.0 (~/.nvm/versions/node/v24.16.0/bin/node scripts/preinstall-package-manager-warning.mjs): exit 0.
  • Node 24.22.0 (Node 24.22.1 with process.versions.node preloaded as 24.22.0, the FRV failure version): exit 0. Before this change, release rejected 24.22.0 here, as FRV shows.
  • Node 24.15.0: exit 1, this OpenClaw release requires Node >=24.16.0 <25 || >=26.1.0 (still below the floor).

Preinstall accepts 24.22.0 silently, as main does. The security warning appears in openclaw update, Doctor and openclaw security audit, not in npm's preinstall.

Tests (Node 24.22.1, pnpm test), all passing:

  • src/cli/update-cli.node-runtime.test.ts, src/cli/update-cli/status.test.ts, src/cli/update-cli/update-command-service-plan.test.ts, src/cli/update-cli/update-command-runtime.test.ts, src/cli/update-cli/update-command-runtime-preview.test.ts
  • src/commands/doctor-host-runtime.test.ts, src/security/audit-node-runtime.test.ts
  • src/daemon/runtime-paths.test.ts, src/daemon/program-args.test.ts
  • src/gateway/worker-environments/bootstrap.test.ts, src/infra/runtime-guard.test.ts, src/worker/worker-deploy-entry.test.ts
  • test/scripts/preinstall-package-manager-warning.test.ts, test/scripts/install-cli.test.ts, test/scripts/install-sh.test.ts, test/scripts/install-ps1.release.test.ts (real pwsh; 5 Windows-only cases skipped)
  • test/openclaw-launcher.e2e.test.ts

The final rerun after the recovered-probe adaptation passed: the cli, cli-process, infra and e2e shards (service-plan 46/46, launcher e2e included). An earlier run had caught two update-command-service-plan cases on main's extra recovered-runtime probe, and the adaptation removes that probe.

Other checks:

  • pnpm tsgo:core, pnpm tsgo:core:test, pnpm tsgo:test:root: pass.
  • oxfmt: all changed files clean.
  • oxlint: changed files clean, except an existing no-shadow at node-sqlite.mjs:97. That line is untouched; the same error appears on origin/release/2026.10.10.
  • macOS Swift (RuntimeLocator.swift floor constants plus RuntimeLocatorTests): Xcode 26.6 is available, but swift test --filter RuntimeLocatorTests in this worktree stops on a missing generated resource (the OpenClawChatUI Mermaid bundle input). The Swift change is not built here; CI covers it.

roboclaw-bot and others added 2 commits October 29, 2026 04:31
…86589)

* fix: keep updates working below recommended Node security patches

Restore the pre-security compatibility floors while preserving SQLite safety checks. Surface nonblocking Node security advisories in updates, Doctor, and security audit.

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

* fix: keep updates working below recommended Node security patches

Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 9d2cfd56-3cfe-4d3e-8516-968cf5d46d9a

* fix: align Node compatibility consumers and CI coverage

Rename the audit collector, restore consumer expectations and recovered-runtime metadata, and consolidate equivalent tests without increasing the test-line ceiling.

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

* Publish openclaw/keen-prawn

Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: c9fc6607-e7f5-47d5-811c-14a954645c1a

---------

Co-authored-by: steipete <[email protected]>
(cherry picked from commit 4a5ec82)
#186589 restored compatibility to >=24.16.0 <25 || >=26.1.0 and made 24.22.1/26.12.1 security recommendations. The mac signing and CI pipeline pages still described the old engines range.

(cherry picked from commit 5eeafd8)
@clawsweeper

clawsweeper Bot commented Oct 29, 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 docs Improvements or additions to documentation app: macos App: macos gateway Gateway runtime cli CLI command changes security Security documentation scripts Repository scripts commands Command implementations size: L labels Oct 29, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. 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. labels Oct 29, 2026
@clawsweeper

clawsweeper Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR restores earlier Node compatibility floors on the release branch and reports missing security patches as nonblocking recommendations.

Example: Install the beta candidate using Node 24.22.0 with passing SQLite capability checks.

  • Before: The installer accepts Node, but package preinstall rejects it because it requires Node 24.22.1.
  • After: Package installation accepts Node 24.22.0, while update, Doctor, and security audit recommend upgrading Node.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A coherent backport with no identified introduced defect; direct release-candidate flow coverage is limited, and current CI failures remain unclassified.
Proof confidence 🦐 gold shrimp (3/6) Maintainer authorship exempts this PR from the ordinary contributor proof gate; supplied evidence covers branch-local preinstall admission, with broader install, upgrade, and warning proof recorded for the original main candidate rather than this adapted release candidate.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A compatible existing Node runtime passes the live installer but is rejected when installing the beta package.
Reason: The release failure is concrete, and maintainer authorship plus the merged upstream repair establish the intended compatibility/security tradeoff.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it fixes a demonstrated beta installer/package mismatch, and the merged main fix does not replace this release-branch backport. No definite introduced defect was found.

Priority: P1
Reviewed head: 5b0b494396f3b3dd5690f44ed82937edd89754f3

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: This release candidate lacks a recorded packaged fresh install and v2026.10.8-to-candidate upgrade preserving settings and service selection; branch-local preinstall runs cover only admission.
Agent review details

How this fits together

The shared Node version policy feeds package installation, CLI startup, update preflight, worker bootstrap, and macOS runtime selection; diagnostics separately report security recommendations.

flowchart TD
  A[Selected Node executable] --> B[Shared version policy]
  A --> C[SQLite capability checks]
  B --> D[Install and runtime admission]
  C --> D
  D --> E[CLI Gateway and workers]
  B --> F[Update Doctor and audit warnings]
Loading

Technical review

Best possible solution:

Land the aligned release runtime policy so compatible installs complete without manual Node repair and security recommendations remain visible.

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

The release-base package and shared policy reject Node 24.22.0, matching the reported beta validation failure; current main already carries the relaxed policy, and this review ran no target code.

Is this the best way to solve the issue?

The backport uses the existing version-policy owner, aligns its consumers, and preserves release-specific executable identity and recovery checks without introducing another admission mechanism.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Node admission floors and installer/native mirrors changes intended behavior with a stated reason (67a30ce: Require patched Node releases that reject compromised CA keys even when SQLite capability checks pass.)
  • SQLite correctness admission keeps the original intent (bf6f74b: Validate real NUL round-trip capabilities and retain WAL safety rather than relying only on version labels.)
  • Target-aware update runtime recovery keeps the original intent (3755040: Check the selected package engine and Gateway executable before package staging while preserving service ownership.)
  • Elevated audit collector extraction keeps the original intent (c2a4f25: Report wildcard and overly broad elevated execution allowlists; the moved collector retains its existing behavior.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Pinned introduction and release target: The reviewed introduction is merge-base aa17a46 through head 5b0b494; GitHub confirms the target is release/2026.10.10 and the head is mergeable. (node-version.mjs:7, 5b0b494396f3)
  • Demonstrated installer disagreement: The full PR body records beta.5 release validation rejecting Node 24.22.0 after installer acceptance, and branch-local preinstall acceptance on actual Node 24.16.0 and simulated Node 24.22.0; Node 24.15.0 remains rejected. (package.json:2428, 5b0b494396f3)
  • Accepted upstream policy and proof: fix: keep updates working below recommended Node security patches #186589 merged the compatibility/advisory split as 4a5ec82. Its full body explicitly acknowledges older-Node compromised-key exposure and records real fresh-install, latest-stable upgrade, Gateway, and warning scenarios on the main candidate. (node-version.mjs:11, 4a5ec828b19c)
  • Release-specific recovery safeguards preserved: Fallback and recovered executables retain their existing identity and capability checks; advisory versions reuse successful admission probes rather than adding another probe. (src/cli/update-cli/update-command-runtime-preflight.ts:249, 5b0b494396f3)
  • SQLite safety remains enforced: Admission still rejects unavailable bindings, lossy TEXT/BLOB/JSON behavior, unsafe SQLite WAL versions, and excluded Node release lines; this patch changes the compatibility floors and associated diagnostic guidance. (node-sqlite.mjs:157, 5b0b494396f3)
  • Original security-floor intent: The previous release backport deliberately required patched Node releases to reject compromised CA keys; this PR explicitly replaces that refusal with recommendations while retaining patched provisioning defaults. (node-version.mjs:13, 67a30ce4f703)

Likely related people:

  • Peter Steinberger: Raw commit a917c99 adds node-version.mjs:3 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: a917c99e92c8; files: node-version.mjs)

PR surface

Source +103, Tests +140, Docs +10, Config 0, Other +27. Total +280 across 55 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 11 156 53 +103
Tests 18 299 159 +140
Docs 18 50 40 +10
Config 1 1 1 0
Generated 0 0 0 0
Other 7 44 17 +27
Total 55 550 270 +280

Labels

Label changes:

No label changes.

Label justifications:

  • P1: Release validation demonstrates a broken beta installation path caused by disagreement between installer admission and package preinstall.
  • merge-risk: 🚨 security-boundary: Older admitted Node releases retain compromised-key TLS exposure; the maintainer-authored backport explicitly accepts the already-merged policy tradeoff while preserving security recommendations and patched provisioning defaults.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

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

  • Qualify the packaged release candidate through fresh installation and a latest-stable upgrade with settings and service selection preserved.
  • Classify the failing macOS installer and Codex shard checks using their complete logs before landing.

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 29, 2026, 7:49 AM ET / 11:49 UTC.

The installer now accepts Node below the security recommendation, so the
published package (still requiring 24.22.1) must be smoke-tested on the
pinned runtime main already uses.
@RomneyDa

Copy link
Copy Markdown
Member Author

Release-owner CI classification: macos-installer is fixed by the 24.22.1 pin (as on main). The remaining failures are outside this PR. voice-call cli-call-log FIFO subprocess spawnSync ETIMEDOUT is load. codex run-attempt-one-shot-cleanup is the known cold-start 5s waitFor timeout, also seen on #187470; it's being fixed separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: macos App: macos cli CLI command changes commands Command implementations docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts security Security documentation size: L 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.

3 participants