Skip to content

Commit 3fec2da

Browse files
committed
npm bug-hunt run 66: compact state, file #2275
1 parent ed0b8d6 commit 3fec2da

3 files changed

Lines changed: 226 additions & 579 deletions

File tree

‎entries/npm/20261126T065212Z.md‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[agent] 2026-11-26: npm bug-hunt run
2+
3+
Run 66. I tested main `cfc870f` (50 commits after v5.1.0) and the published v5.1.0 on Linux with Node 22.23.5 and npm 12.2.3 (newest), 10.9.9, 8.19.4 and 6.14.18. A local Python mock of the patch API (batch, by-package, reference, view with inline blobs, blob, hosted tarball) served free patches for the real npmjs `left-pad@1.3.0`, `is-number@7.0.0` and `@tootallnate/once@2.0.0`. A small proxy stood in for a patch mirror (200 / 403 / 404).
4+
5+
**Ledger maintenance**
6+
- `state/npm.md` was 110 KB. I compacted it to one row per workflow, moved its Known non-bugs into the new `known-non-bugs/npm.md`, and dropped the per-run narrative (it's still in the branch history).
7+
8+
**Re-triage**
9+
- No open `bughunt` + `pm:npm` issues; the 8 open after run 65 have all been closed by fixes.
10+
11+
**Cells** (real npm installs; cycle = scan → fresh `npm ci` → `vex` → re-scan no-op → `rollback` byte-exact → `npm ci` unpatched)
12+
- Common-path cycle, hosted / vendored / agent, on npm 12.2.3, 10.9.9 and 8.19.4, main and v5.1.0: **pass** (9 cells on main, 9 baselines on the release). No regression found.
13+
- npm 6.14.18 v1 lock, hosted and agent: **pass**. Hosted with a cold cache fails EINTEGRITY with the documented `redirect_npm_legacy_client` warning.
14+
- Workspace root with 2 members, all three modes (12.2.3): **pass**.
15+
- Dual npm-shrinkwrap.json + package-lock.json, hosted and vendored (10.9.9, 12.2.3): **pass**, both locks byte-exact after rollback.
16+
- Scoped `@tootallnate/once` + alias `lp@npm:left-pad`, all three modes (12.2.3): **pass**. VEX package products (#2243) name them by their Socket purl (`pkg:npm/@tootallnate/once@2.0.0`, `pkg:npm/left-pad@1.3.0`).
17+
- Patch mirror (#2180, `SOCKET_PATCH_MIRROR_URL`) on npm 12.2.3: pins move under the base, `npm ci` fetches through the mirror, `vex` attests, re-run no-op, a project already pinned on the patch server is re-pinned, `rollback` byte-exact; 403 → `redirect_mirror_unverified` and pinned, 404 → `redirect_mirror_unavailable` and skipped: **pass**.
18+
- `vex --grype-config` (#2252): creates `.grype.yaml`, removes the entry when a later run leaves no document: **pass**.
19+
- Unreadable vendor ledger (#2250 area), hand-corrupted and after a git merge conflict in `state.json`: **fail**, filed below.
20+
21+
**Issues**
22+
- Filed #2275 (https://github.com/SocketDev/socket-patch/issues/2275): with an unreadable `.socket/vendor/state.json`, `vex` says re-run `vendor`, `vendor` exits 0 and says run `repair`, and `repair` fails with no remedy. The realistic trigger is two branches that each vendor a patch, then merge. v5.1.0 too (not a regression).
23+
24+
**False positives ruled out**
25+
- A vendored alias run looked like `npm ci` exit 1; that was my script's exit status, not npm's. Re-run twice from fresh: exit 0.
26+
- `vex` / `rollback` without the mirror setting don't see mirrored pins: documented ("Patch hosts"); `scan` gives the right remedy.
27+
- Vendored `skipped` / `vendor_prebuilt_downloaded` events: documented advisories.
28+
29+
**Next**
30+
1. Prove or rule out a Grype / Trivy miss for scoped npm VEX products (`@` vs `%40`) once a scanner binary is reachable.
31+
2. Re-run the remaining pre-11-11 cells on main: member dir / hidden member, npm 12 `allowScripts` / `allow-remote=root`, `overrides`, bundled deps.

0 commit comments

Comments
 (0)