Repository navigation
Conversation
npm >= 11 redacts UUID-like path segments in stdout to literal "***". Trusting a poisoned path from "npm root -g" causes the updater to materialize a literal "***" directory tree and leaves the live install stale. Treat such output as an unresolved probe so the existing package root fallback is used instead. Closes openclaw#107239 Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
|
Codex review: needs real behavior proof before merge. Reviewed July 15, 2026, 10:28 PM ET / July 16, 2026, 02:28 UTC. Summary PR surface: Source +8, Tests +137. Total +145 across 4 files. Reproducibility: yes. at the helper level: current source can still accept an npm redaction marker when no authoritative package root is supplied. A failing current-main end-user update path was not established because the normal updater now prefers its running npm installation. Review metrics: 1 noteworthy metric.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Rebase onto current Do we have a high-confidence way to reproduce the issue? Yes at the helper level: current source can still accept an npm redaction marker when no authoritative package root is supplied. A failing current-main end-user update path was not established because the normal updater now prefers its running npm installation. Is this the best way to solve the issue? No. The narrow npm-redaction check is appropriate, but adding a parallel parser that rejects all multiline output is not the best fix; it should extend current Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 08ecf63bb608. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +8, Tests +137. Total +145 across 4 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
|
|
Closing because current The remaining parser change here is not worth carrying: it rejects warning-prefixed multiline probe output that current |
Summary
npm >= 11 can redact UUID-like global-root path segments as literal
***. Treating that output as a real path can create a literal***directory tree during staged updates while leaving the live install stale.This revision:
***only for npm root probes, preserving legal pnpm paths;Fixes #107239
Test evidence
Two-sided regression proof:
***path rejected, multiline output accepted);Exact candidate proof ran in a disposable Blaxel Linux sandbox bound to parent
921154b7e3d5cebe94a47157ab97743b666970fband archive SHA-25660de94bc5eef540c92da905978e1628afc5a5c3a8795f952d76d4e4ca927e9f0:pnpm install --frozen-lockfileSandbox cleanup was verified through provider-authoritative inventory (
[]).