Repository navigation
[2026.10.10-beta.5] fix: keep installs and updates working below recommended Node security patches (#186589) - #187626
Conversation
…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)
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR 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.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +103, Tests +140, Docs +10, Config 0, Other +27. Total +280 across 55 files. Added test files: 1. View PR surface stats
LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 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.
|
Release-owner CI classification: |
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.shalready follows main's relaxed Node policy (#186589). On the macOS runner it accepted Homebrewnode@24= 24.22.0. Installing the beta.5 candidate tarball then failed inscripts/preinstall-package-manager-warning.mjs:release/2026.10.10(and beta.4) still enforce>=24.22.1 <25 || >=26.12.1as 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.mjsstays the single owner: compatibility floors go back to>=24.16.0 <25 || >=26.1.0, and 24.22.1/26.12.1 becomeNODE_SECURITY_RELEASE_FLOORS, surfaced byformatNodeSecurityWarning.package.jsonengines,openclaw.mjs, the runtime guard,node-sqlite.mjsmessages, worker bootstrap,install.sh,install-cli.sh,install.ps1, and the macOSRuntimeLocator.openclaw security auditnow print a nonblocking SECURITY WARNING (runtime.node_security_patch) for Node below 24.22.1/26.12.1. They no longer refuse it.Release-branch adaptation (conflict resolution)
-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.update-command-node-runtime.tsandupdate-command-target.ts: the release-onlyadmittedPackageRuntimehandling is kept, and the security-warning handling is added after it.update-command-target.tswas over the 700-line lint ceiling after the merge (701 counted lines). I moved the preflight-step recorder intoupdate-command-runtime-preflight.tsasrecordNodeSecurityWarning(record, cwd, warning). It records the same step (node-security-patch).audit.ts:collectElevatedFindingsmoves toaudit-runtime.tsas on main. Release's attack-surface call shape is kept, and main's open-inbound plumbing is not pulled in.install.ps1Check-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.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:
~/.nvm/versions/node/v24.16.0/bin/node scripts/preinstall-package-manager-warning.mjs): exit 0.process.versions.nodepreloaded as 24.22.0, the FRV failure version): exit 0. Before this change, release rejected 24.22.0 here, as FRV shows.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 andopenclaw 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.tssrc/commands/doctor-host-runtime.test.ts,src/security/audit-node-runtime.test.tssrc/daemon/runtime-paths.test.ts,src/daemon/program-args.test.tssrc/gateway/worker-environments/bootstrap.test.ts,src/infra/runtime-guard.test.ts,src/worker/worker-deploy-entry.test.tstest/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(realpwsh; 5 Windows-only cases skipped)test/openclaw-launcher.e2e.test.tsThe final rerun after the recovered-probe adaptation passed: the
cli,cli-process,infraande2eshards (service-plan 46/46, launcher e2e included). An earlier run had caught twoupdate-command-service-plancases 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.no-shadowatnode-sqlite.mjs:97. That line is untouched; the same error appears onorigin/release/2026.10.10.RuntimeLocator.swiftfloor constants plusRuntimeLocatorTests): Xcode 26.6 is available, butswift test --filter RuntimeLocatorTestsin this worktree stops on a missing generated resource (theOpenClawChatUIMermaid bundle input). The Swift change is not built here; CI covers it.