|
1 | 1 | [agent] Progress ledger for the scheduled npm bug-hunt routine (label pm:npm). |
2 | 2 |
|
3 | | -Last run: 2026-11-29, main `cfc870f`, release v5.1.0, newest npm 12.2.3 (next-11 11.21.3, next-10 10.9.11). |
| 3 | +Last run: 2026-11-30, main `cfc870f`, release v5.1.0, newest npm 12.2.3 (next-11 11.21.3, next-10 10.9.11). |
4 | 4 |
|
5 | | -Compacted 2026-11-26 from a 110 KB file (runs 1-65 kept in branch history; per-run notes are in `entries/npm/`). Open npm bughunt issues: #2275, #2304, #2331, #2358. Every `#N` below is closed unless marked open. |
| 5 | +Compacted 2026-11-26 from a 110 KB file (runs 1-65 kept in branch history; per-run notes are in `entries/npm/`). Open npm bughunt issues: #2275, #2304, #2331, #2358, #2379. Every `#N` below is closed unless marked open. |
6 | 6 |
|
7 | 7 | ## Coverage matrix |
8 | 8 |
|
@@ -37,17 +37,23 @@ Linux unless noted. Every cell is a real npm install. Hosted and agent/vendored |
37 | 37 | | Mode switching hosted → vendored → agent → hosted → vendored → rollback (12.2.3); vendored → agent → vendored (10.9.9); workspaces hosted → vendored → agent → hosted (8.19.4 / 12.2.3) | **fail #2304** (open; vendored → agent totals say "left to patch"; same on 10 / 8 / workspaces) | pass (2026-11-28) | pass (2026-11-28) | |
38 | 38 | | Lock-rewriting npm commands over pins: `dedupe`, `prune`, `install --package-lock-only`, `--install-links` (12.2.3); `dedupe`, `--lockfile-version=3` (8.19.4) | n/a | pass (2026-11-29) | pass (2026-11-29) | |
39 | 39 | | v3 lock rewritten as v2 after pinning (npm 7.24.2 `npm install`; 12.2.3 `--lockfile-version=2`), then `rollback` | n/a | **fail #2358** (open; re-scan → rollback loops; no re-scan → silent half-revert of the mirror; v5.1.0 too). Vendored at v2 from the start: pass (2026-11-29) | pass 12.2.3 (2026-11-29) | |
| 40 | +| Direct git dep (`github:` spec, npm 12 `allow-git=all`) beside a registry dep, 12.2.3 | pass (2026-11-30; git copy skipped) | registry dep pass, git copy refused loudly `vendor_lock_entry_not_rewritable` (2026-11-30) | registry dep pass, git copy warned (2026-11-30) | |
| 41 | +| `file:./libs/a` dir dep whose own dep nests at `libs/a/node_modules/left-pad` (12.2.3 v3; 8.19.4 v2 mirror, npm 6 cold `npm ci` of it) | pass 12.2.3 (2026-11-30) | pass 12.2.3 / 8.19.4 / npm 6 consumer (2026-11-30) | pass 12.2.3 / 8.19.4 (2026-11-30) | |
| 42 | +| No lock at all (`.npmrc` `package-lock=false`), 12.2.3 / 8.19.4 | n/a | **fail #2379** (open; `vendor_lockfile_missing` remedy "run install" loops; v5.1.0 too) | `redirect_npm_no_lockfile`, no hint at the setting (#2379) | |
| 43 | +| `npm update` / `npm audit fix` over vendored pins, 12.2.3 | n/a | npm drops the pins (known non-bug); `vex` / `vendor --check` fail closed, a bare re-scan rewires (2026-11-30) | known non-bug | |
| 44 | +| Mode-less `scan --prune` after `npm uninstall` of a vendored dep, 12.2.3 | n/a | GC reverts entry + artifact correctly (2026-11-30); closing totals miscount, see #2304 comment | n/a | |
40 | 45 | | `report` (#2193) name / scoped / `%40` purl | pass (2026-11-27; alias name `lp` unmatched, same as `rollback`) | n/a | pass (2026-11-27) | |
41 | 46 | | macOS / Windows | probes switched off (INSTRUCTIONS step 5); last pass 2026-10 | same | same | |
42 | 47 |
|
43 | 48 | ## Backlog |
44 | 49 |
|
45 | | -1. Re-check #2358, #2331, #2304 and #2275 when fixed. |
| 50 | +1. Re-check #2379, #2358, #2331, #2304 and #2275 when fixed. |
46 | 51 | 2. VEX products (#2243): prove or rule out a Grype / Trivy miss for `pkg:npm/@scope/name` vs `%40scope`. The sandbox policy denied running the Grype binary (2026-11-27). Try Trivy / Syft from npm or pip, or hand over. |
47 | | -3. Other lock re-saves over vendored and hosted pins: `npm update`, `save-exact` installs of a new dep, `npm audit fix`, and `npm shrinkwrap` converting package-lock.json to a shrinkwrap after pinning. |
| 52 | +3. `allow-remote` set outside the project (`npm_config_allow_remote=root` env, user `~/.npmrc`) over a hosted project's `allow-remote=all`: does scan warn, and does `npm ci` fail EALLOWREMOTE? |
48 | 53 | 4. Remaining pre-11-11 cells: npm 12 `allowScripts` (needs a patched package with an install script), `hasShrinkwrap` nested, CRLF-shebang bins, `install-strategy=nested/shallow`. |
49 | 54 | 5. Patch mirror on npm: vendored eject over mirrored pins, `allow-remote=root` with a mirror host, `SOCKET_PATCH_MIRROR_AUTHORIZATION` with `.npmrc` `_auth`. |
50 | | -6. `scan --prune` vendored revert reporting (#2246) on npm. |
| 55 | +6. `npm install --save-exact <new dep>` and `npm shrinkwrap` on npm 11.21.3 over vendored pins (npm 12 shrinkwrap-only is EUSAGE, known). |
| 56 | +7. Git dep on npm 8 / 10 (v2 mirror `version: git+...`) beside pins; aliased git dep (`lp@github:...`). |
51 | 57 |
|
52 | 58 | Mock tip: the hosted mock must be passed as `--patch-server-url` as well as `--api-url`, or lockfile discovery (`vex`, `rollback`) doesn't recognize the pins ("No patches in this project"). |
53 | 59 |
|
|
0 commit comments