Repository navigation
fix(candy): xurl — run the postinstall npm 12 blocks - #148
Conversation
npm >=12 (the builder image carries 12.0.1) blocks install scripts unless explicitly allowed; @xdevplatform/xurl's postinstall fetches the real platform binary, so xurl --help failed 'xurl binary not found' on the check-openclaw-full-pod / check-openclaw-desktop-pod beds. Run the package's own download script explicitly in the plan — one audited script, no global allow-scripts policy change. Proven live on npm 12.0.1: install.js fetches the binary and xurl --help succeeds. Assisted-by: Kimi Code Moonshot Kimi K3 (analysed on a live system)
pr-validator — APPROVED ✅Bound identities (verified read-only, live):
Change class: candy/box-config (single candy install path — Validator's own gate (re-derived, never inherited): The full R10 sequence ran on the final PR tree with the fix's local candy tree ( Checklist (every rule):
Comments considered: none — the PR carries zero comments. Cross-PR interactions considered:
Decision: PASS. The diff is exactly what the body claims; the npm-≥12 mechanism is spike-proven and RCA'd; my own serial composing-bed run on the bound final tree passed 12/12 with both xurl checks green in both scopes and zero warnings; every applicable rule verified from my own re-runs. Posting Assisted-by: Kimi Code Moonshot Kimi K3 (fully tested and validated) |
Assisted-by: Kimi Code Moonshot Kimi K3 (fully tested and validated)
pr-validator — LANDED ✅ (outcome record)Gated actions after the PASS verdict above — every outcome ALLOWED, verbatim:
No denials, no retries, no force-push, no Assisted-by: Kimi Code Moonshot Kimi K3 (fully tested and validated) |
Summary of changes
candy/xurl's npm-installed CLI broke on npm ≥12: the builder image carries npm 12.0.1, which blocks package install scripts unless explicitly allowed, and@xdevplatform/xurl's postinstall (install.js) is what downloads the real platform binary. The global install completed, butxurl --helpfailedxurl binary not found— surfaced as 2/171 failures oncheck-openclaw-full-podand 2/355 oncheck-openclaw-desktop-pod(first-ever runs of those beds).Concrete edits (
candy/xurl/charly.ymlonly):run:step executes the package's own download script explicitly after the npm install:node "${HOME}/.npm-global/lib/node_modules/@xdevplatform/xurl/install.js"— one audited script, no global allow-scripts policy change, no suppression;version:bumped2026.144.1443→2026.200.1305;CHANGELOG/2026.200.1305.mdplaceholder, incl. the sibling note (gemini's optional postinstalls still pass; the shared builder-template policy for the class belongs to the named bed-image-hygiene batch).Change class
candy/box-config (single candy install path).
How R10-tested — exact gate, commands, and pasted output
charly box validate+ the bed that composes xurl:charly check run check-openclaw-full-pod.check-openclaw-full-pod | pod (cachyos) | ok | 12 steps | 604s— run-calver2026.200.1317, on the assembled gate tree (main+ this fix + the claude-code native-installer fix from fix(candy): claude-code npm → official native installer #143 — the two candy install fixes gate together because the bed's plan requires both; fix(candy): claude-code npm → official native installer #143 lands first, this PR immediately after, each re-gated on the evolving main by the fresh validator).charly update; image rebuilt from the assembled tree.run:step executed at build time and both xurl checks PASS at check-image AND check-live (pasted). Also spike-proven in isolation on npm 12.0.1 (the builder's exact version): plain install reproduces the bed's byte-identical failure;node .../install.jsthen fetches the binary andxurl --helpsucceeds.Residual raw warnings in the bed's image-build log are the cachyos base-image class (pacman
local is newer than reponotices from the freshly repinned base,ldconfignetwork-isolation notice in rootless buildah, reinstall notices) — emissions of base-image content, RCA'd in the same class as pkg-arch#5's documented set; the named bed-image-hygiene batch owns them.Attribution tier
analysed on a live systemat push (spike + validate + assembled-gate ran live); the attached fresh-rebuild roster earnsfully tested and validatedfor the squash.Harness rulebook compliance
check,image:layer,git-workflowloaded before edits.origin/main; status/show --statverified.disposable: true, fresh rebuild; the xurl checks fail without this fix (they did).CHANGELOG/2026.200.1305.mdplaceholder staged.Assisted-by: Kimi Code Moonshot Kimi K3 (analysed on a live system)