Repository navigation
fix: keep updates working below recommended Node security patches - #186589
Conversation
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]>
Resolve the Bun history conflict without changing newer signed-fork policy. Preserve the reviewed Node compatibility and advisory behavior. Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 9d2cfd56-3cfe-4d3e-8516-968cf5d46d9a
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper review |
|
🦞👀 Re-review progress:
|
|
|
|
Codex review: needs changes before merge. What this changesThis PR restores earlier Node compatibility floors and reports missing security patches as warnings during updates, Doctor, and security audits. Example: A Gateway uses Node 24.21.0 with passing SQLite safety checks.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Needs changes before merge - 2 items remain Keep this PR open: it implements an explicitly accepted runtime-policy change that main still lacks, but two patch-caused CI failures need repair. Priority: P1 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe shared runtime policy feeds package admission, CLI startup, installers, worker bootstrap, and native runtime selection; update and diagnostic callers turn its decisions into refusals or warnings. flowchart TD
A[Node executable] --> B[Shared version policy]
A --> C[SQLite capability checks]
B --> D[Runtime admission]
C --> D
D --> E[CLI and Gateway startup]
B --> F[Update Doctor and audit warnings]
Technical reviewBest possible solution: Keep the shared compatibility/advisory split, repair the omitted consumer expectations, and give the audit collector a distinct export. Do we have a high-confidence way to reproduce the issue? Current-main admission rejects Node 24.21.0 even with healthy SQLite, and the earlier security change identifies the responsible floor; no target code was executed during this review. Is this the best way to solve the issue? The smallest complete implementation separates compatibility from security recommendations in the existing version owner, preserves capability and package-engine checks, and updates every affected consumer. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2e5c67e203e6. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +99, Tests +184, Docs +6, Config 0, Other +27. Total +316 across 46 files. Added test files: 1. View PR surface stats
LabelsLabel changes:
Label justifications:
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 28, 2026, 2:39 AM ET / 06:39 UTC. |
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]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: c9fc6607-e7f5-47d5-811c-14a954645c1a
…mmended Node security patches (#186589) (#187626) * fix: keep updates working below recommended Node security patches (#186589) * 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) * docs: state the restored Node compatibility range #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) * ci: pin installer smoke Node to 24.22.1 as on main 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. --------- Co-authored-by: RoboClaw <[email protected]> Co-authored-by: steipete <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
Adapted from main c6a19e5, the fixture follow-up to openclaw#186589. Release keeps its own test layouts; only the candidate-admission recovery minimum and the Parallels bootstrap table move to the restored floor (>=24.16.0 / >=26.1.0), with genuinely incompatible fixtures (24.15.0, 26.0.0, 24.14.1) still requiring bootstrap. (cherry picked from commit c6a19e5)
What Problem This Solves
Fixes: updates are refused, or an explicitly pinned Gateway runtime cannot restart after an update, when Node meets the previous compatibility requirements but lacks the latest security-only patches.
User Impact
Users can update on Node
>=24.16.0 <25 || >=26.1.0without first upgrading Node. Updates, Doctor, andopenclaw security auditprominently warn below Node 24.22.1 / 26.12.1. Upgrade Node promptly: these patches reject keys compromised in the October 2026 eMudhra incident; continued compatibility does not remove that exposure. SQLite safety checks, excluded release lines, explicit target-package engines and patched provisioning defaults remain enforced.Why This Change Was Made
Separate compatibility from security recommendations in the canonical version policy instead of stranding installations. Audit finding
runtime.node_security_patchdescribes the audit process runtime, not an unprobed Gateway, and skips Bun. Audit collectors use a coherent sibling module.Evidence
6d987863ea42cfd9ec70eec4c445725a4746e17dinstalled/set up on checksum-verified Node 24.21.0. Real Gateway readiness 200, successful read-only RPC serving the exact build, new PID after cold restart and preserved synthetic settings. Doctor lint visibly warned about security patches; exit 1 reflected the warning, not an error or clean lint. Cleanup verified.dc2523e) public updater activated that exact candidate on Node 24.22.1 in a supervised offline rootless namespace. Exit 0 /status: ok; real snapshot/install/Doctor/canary/activation/finalization, preserved chosen settings, and new foreground Gateway readiness 200 / RPC success with the exact build. This was a stopped baseline →--no-restartupdater → owner-started new process, not automatic/native-service restart or old-Node pin proof. Latest stable itself refuses the old-Node baseline. Synthetic-profile warnings retained; process/container teardown and removal verified; no host supervisor guard changed.c7db2804, ceiling unchanged. Explicit target-engine, runtime-recovery and unsafe-SQLite coverage retained.process.getBuiltinModule, and missing QAreplyToIdafter actual hard-kill/restart. Final logs preserve those signatures and actual checkout9267c251/ first parent703618fa; blob equivalence binds the source-equivalent baseline, not execution of the entire first-parent commit. The aggregate classification report timed out and is not used as attribution. The single diagnosed Node-download infrastructure recovery succeeded: Node setup and extension lint now pass; independentsecurity-fastpassed. The authorized inherited-failure exception is selected, without waiving enforced review, security or live writer authority. Feishu is not failing this run and was not classified from passing replays.Worked on by
Work sessions