Repository navigation
Bug hunt ledger: npm #302
Replies: 106 comments
|
[agent] 2026-09-30: npm bug-hunt run This is the first run with a ledger. An earlier run on the same day filed #324, #325 and #326 but wrote no entry. Tested: main Setup: the Socket patch API isn't reachable from the sandbox. Agent and vendored cells hand-stage Re-triage#324, #325 and #326 are still open, their fix PRs (#337 and #345) aren't merged yet, and main is the same commit they were filed on. I didn't re-run them. Cells
Issues
False positives ruled out
Probe runs
Next
|
|
[agent] 2026-10-01: npm bug-hunt run Tested: main Re-triageMain hasn't moved, so #324, #325, #326, #356 and #359 still reproduce as filed, and I didn't re-run them. #326's fix PR #345 is still open; I built its head (see below). Cells
Issues
False positives ruled out
Probe branches
Next
|
|
[agent] 2026-10-01: maintainer note: test global ( This is a maintainer request, not a run report. Add it to the top of the backlog and keep it there until the cells below are covered. Ask: make sure we correctly scan global installs when Where npm puts global installs: What to check (prove each with a real global install, not by reading source):
Add OS × npm version cells for |
|
[agent] 2026-10-01: npm bug-hunt run Tested: main Setup: a Python mock of the patch API (batch, by-package, Re-triage
Cells
Issues
False positives ruled out
Probe branches
Next
|
|
[agent] 2026-10-01: handover from the Yarn Berry (2+) bug-hunt routine (#305) This one isn't Berry-specific, so it's yours to triage if you want it. On main The hint leaves out |
|
[agent] 2026-10-01: handover from the vlt bug-hunt routine (ledger #307) While covering the maintainer's Symptom: after a failed agent-mode
Repro: main Related: #424 covers the first run's Generated by Claude Code |
|
[agent] 2026-10-01: npm bug-hunt run Tested: main Handovers triaged
Re-triage
Cells
Issues
False positives ruled out
Next
|
|
[agent] 2026-10-01: npm bug-hunt run Tested: main Re-triage
Cells
Issues
False positives ruled out
Next
|
|
[agent] 2026-10-01: handover from the Deno bug-hunt routine (ledger #308): agent-mode Found while testing Deno's hoisted linker. The root cause is generic npm-family, and the realistic trigger is plain npm, so this is yours to file. Nothing was filed from Deno. I searched for duplicates (#325, #405, #435, #471 are bundled / hosted / isolated / global variants) and found none covering agent mode. Defect. In agent mode Realistic trigger (real npm 10.9.4, main mkdir npmdup && cd npmdup && echo '{"name":"npmdup","version":"1.0.0"}' > package.json
npm install kind-of@6.0.3 is-number@3.0.0 # nests kind-of@3.2.2 under is-number
# offline manifest + blobs patching package/index.js of pkg:npm/kind-of@3.2.2 (any free patch works)
socket-patch apply --offline # applied 1
npm install is-accessor-descriptor@0.1.6 # adds node_modules/is-accessor-descriptor/node_modules/kind-of@3.2.2 (unpatched)
socket-patch vex --offline -O v.json # exit 0, 1 statement: not_affected pkg:npm/kind-of@3.2.2Copies afterwards: Deno too: Expected: agent vex attests a PURL only when every installed copy the crawler finds verifies (the hosted path already does this), otherwise it omits it as |
|
[agent] 2026-10-02: npm bug-hunt run Tested: main Handover triaged
Cells
Issues
False positives ruled out
Next
|
|
[agent] 2026-10-02: npm bug-hunt run Tested: main Probe
The branch delete failed through the proxy again ("remote end hung up"), so it joins the stale-branch list. Cells (Linux unless noted)
IssuesNone filed, commented on or closed. Nothing new met the bar. False positives ruled out
Next
|
|
[agent] 2026-10-02: handover from the Bun bug-hunt routine (#306). Not filed: the behaviour is in the npm-family agent crawler, not Bun-specific, and could be by design. Observation: in agent mode, Repro (main
Related, also generic and not filed: hosted/vendored PATH globs ( Your call whether either one is a bug under CLI_CONTRACT "socket.yml patch policy" → Paths. |
|
[agent] Handover from the vlt bug-hunt routine (ledger #307): npm vendored Found while filing #541 (vlt), which uses npm as the control. Main echo 'registry=http://127.0.0.1:18555/' > .npmrc
echo '{"name":"app","version":"1.0.0","dependencies":{"left-pad":"1.3.0"}}' > package.json; npm install
socket-patch scan --mode vendored --yes # rc 0
echo '{"name":"app","version":"1.0.0","dependencies":{"left-pad":"1.2.0"}}' > package.json; npm install
socket-patch scan --mode vendored --yes # rc 1, vendor_lock_entry_not_found
socket-patch scan --mode vendored --prune --yes --json # rc 1, gc.revertedVendoredEntries = [] <- npm-specific
socket-patch scan --mode vendored --yes # rc 1 again: stuckOn vlt, the same |
|
[agent] 2026-10-02: npm bug-hunt run Tested: main Handovers checked
Cells (Linux)
Issues
False positives ruled out
Next
|
|
[agent] 2026-10-02: handover from the Bun bug-hunt routine (#306). Not filed: the behaviour lives in the shared npm-family VEX discovery and reproduces identically with npm 10, so it isn't Bun-specific. It might also be by design, since CLI_CONTRACT's vendored row attests from "the committed artifact + lock wiring". Observation: a vendored (and, under A natural way to get there: run vendored (or hosted) scan, then add a workspace member that depends on the same Repro (main # root: is-number@7.0.0, workspaces packages/*; packages/a: is-number@6.0.0
npm install && socket-patch scan --mode vendored --yes # packages/a/node_modules/is-number → file:.socket/vendor/…
# add packages/b with is-number@6.0.0
npm install # packages/b/node_modules/is-number → registry 6.0.0 (unpatched bytes)
socket-patch vex --json --product pkg:npm/app@1.0.0 -O vex.json # verified pkg:npm/is-number@6.0.0 (also with --no-verify)Bun (1.4.2, text v2 workspace lock): the same with Expected (suggestion): treat an unwired registry entry of the same |
|
[agent] Janitor: ledger drift on main Generated by Claude Code |
|
[agent] 2026-11-26: npm bug-hunt run Run 66. I tested main Ledger maintenance
Re-triage
Cells (real npm installs; cycle = scan → fresh
Issues
False positives ruled out
Next
|
|
[agent] 2026-11-27: npm bug-hunt run Run 67. I tested main Re-triage
Cells (real npm installs; cycle = scan → fresh
Issues
False positives ruled out
Next
|
|
[agent] 2026-11-28: npm bug-hunt run Run 68. I tested main Re-triage
Cells (real npm installs; cycle = scan → fresh
Issues
False positives ruled out
Next
|
|
[agent] 2026-11-29: npm bug-hunt run Run 69. I tested main Re-triage
Cells (real npm installs; each is scan →
Issues
False positives ruled out
Next
|
|
[agent] 2026-11-30: npm bug-hunt run Run 70. I tested main Re-triage
Cells (real npm installs, cold
Issues
False positives ruled out
Next
|
|
[agent] 2026-12-01: npm bug-hunt run Run 71. I tested main Re-triage
Cells (real npm installs, cold
Issues: none filed. One comment (#2275). False positives ruled out
Next: common-path cycles on npm 11 / 10 / 8 / 7 / 6 on the new main; an aliased git dependency; the patch-mirror items. |
|
[agent] 2026-12-02: npm bug-hunt run Run 72. I tested main Re-triage
Cells (real npm installs, cold
Issues
False positives ruled out
Next: the patch-mirror backlog items; npm 12 |
|
[agent] 2026-12-03: npm bug-hunt run Run 73. Tested main Re-triage
Cells
Issues
False positives ruled out
Next: re-triage #2331 and #2358; |
|
[agent] 2026-12-03: handover from the vlt bug-hunt routine (not vlt-specific, unverified as a bug) On main Repro: |
|
[agent] 2026-12-04: npm bug-hunt run Run 74. Tested main Re-triage
Cells
Issues False positives ruled out
Next: re-triage #2358 and #2379; mirror on npm 12 with |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
[agent] Progress ledger for the scheduled npm bug-hunt routine (label pm:npm).
Last run: 2026-12-04, main
d987721(= v5.2.0), release v5.2.0, newest npm 12.2.3 (next-11 11.21.3, next-10 10.9.11).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, #2476, #2502 (also tracked: #2341 sharedvexwording, #2423 non-bughunt). Every#Nbelow is closed unless marked open.Coverage matrix
Linux unless noted. Every cell is a real npm install. Hosted and agent/vendored cells use a local mock of the patch API (
--api-url/--patch-server-url). "Cycle" = scan → freshnpm ci(patched) →vex→ re-scan no-op →rollbackbyte-exact →npm ciunpatched. Cells last run before 2026-11-11 count as untested for the release (INSTRUCTIONS "Release focus").6280589)vendor --check).npmrcit created)omit-lockfile-registry-resolved=true+npm install(8.19.4 / 10.9.9 / 11.21.3 / 12.2.3)file:resolved stripped, coldnpm ciEINTEGRITY, no warning; v5.1.0 too)redirect_npm_legacy_alias_client, 11-27)redirect_npm_legacy_client(documented, 11-27)@tootallnate/once+ aliaslp@npm:left-padproducts named by Socket purl (@, not%40); scanner match unverifiedSOCKET_PATCH_MIRROR_URL, #2180)scan --mode vendoredtakeover →npm cipatched,vex,vendor --check,rollback,npm ciupstream; vendor download reads the patch server (documented)npm civia mirror,vex, re-run no-op, re-pin from patch server,rollback; 403 →redirect_mirror_unverified, 404 →redirect_mirror_unavailableredirect_workspace_lockfile_elsewhere, root pass (2026-11-27).github/actions/x+build/ymembers, 12.2.3--jsonexplains)allow-remote=root(transitive pin) /allowScripts(#1595) /allow-file(#969)allowScripts,allow-filepass before 11-11allow-remote=rootrespected + warned,npm ciEALLOWREMOTE (documented; 2026-11-27)overrides(flat,$ref; alias / URL target #1965 before 11-11), freshnpm ciandnpm installlp@npm:left-pad,@tootallnate/once), 12.2.3hasShrinkwrapnested (#753)hasShrinkwrapbefore 11-11install-strategy=linked12.2.3 (nested/shallow before 11-11)state.json)vex --grype-config(#2252)--global-prefixagent scan + rollbackvex -ginside a project whose own copy is unpatched (10.9.9)not_affected; v5.1.0 too)npm install <new dep>after scan keeps pins (8.19.4 / 10.9.9 / 12.2.3)dedupe,prune,install --package-lock-only,--install-links(12.2.3);dedupe,--lockfile-version=3(8.19.4)npm install; 12.2.3--lockfile-version=2), thenrollbackgithub:spec, npm 12allow-git=all) beside a registry dep, 12.2.3vendor_lock_entry_not_rewritable(2026-11-30)file:./libs/adir dep whose own dep nests atlibs/a/node_modules/left-pad(12.2.3 v3; 8.19.4 v2 mirror, npm 6 coldnpm ciof it).npmrcpackage-lock=false), 12.2.3 / 8.19.4vendor_lockfile_missingremedy "run install" loops; v5.1.0 too)redirect_npm_no_lockfile, no hint at the setting (#2379)npm update/npm audit fixover vendored pins, 12.2.3vex/vendor --checkfail closed, a bare re-scan rewires (2026-11-30)scan --pruneafternpm uninstallof a vendored dep, 12.2.3allow-remotefrom env (npm_config_allow_remote/NPM_CONFIG_ALLOW_REMOTEnone/root) or project.npmrcnone/root/CRLF over hosted pinsnpm ci --allow-remote=allnpm install --save-exact <dep>/npm shrinkwrapover pinsvex_npm_shrinkwrap_only, rollback refuses with rename hint, exit 1)--save-exactkeeps the pin,npm cipatched,vexok; afternpm shrinkwrapvexexit 1vex_npm_shrinkwrap_only, rollback restores the shrinkwrap)github:spec) beside a registry dep on an npm 10.9.9 v2-mirror lockvendor_lock_entry_not_rewritable)postinstall: socket-patch apply --silent --ecosystems npmhook under v5 (no manifest, manifest, API unreachable); then switch to hosted + rollback, 12.2.3node_modulesis a symlink to a cache dir, 12.2.3mode(#2433): content patch + permissions-only patch, umask 002, 12.2.3vexwording says "original content" for a mode-only drift, nit)packages/+blobs/user files,--manifest-pathroot /state/lp: github:left-pad…) beside registryleft-pad@1.3.0, 12.2.3vexexit 1)vexsays "No patches … run scan" exit 2 (#2341 open, yarn-classic issue, npm comment 2026-12-02).npmrc(registry=userinfo,_authToken,_password) through hosted warnings (allow-remote, omit-lockfile),--verbose,--json,vex,rollback, vendored scan /--check, 10.9.9resolved(npm 10.9.9 / 12.2.3 write it verbatim), userinfo in a registryresolvedvendor --checkprints the git token;scan/vex/repair/list/removeredact)report(#2193) name / scoped /%40purllpunmatched, same asrollback)Backlog
d987721: still EINTEGRITY; next re-triage After npm rewrites a vendored lockfileVersion 3 lock as v2 (npm 7 install or --lockfile-version=2), rollback either loops forever (exit 1, every remedy fails) or exits 0 leaving the patched integrity in the legacy dependencies mirror #2358, npm project with package-lock=false in .npmrc: vendored scan tells the user to run npm install, which never writes the missing lock, and hosted scan warns "no lockfile" with no hint at the setting #2379).allow-remote=rootwith a mirror host; mirror needing.npmrc//<host>/:_auth(npm ci through an authenticated mirror);redirect_mirror_unverifiedon 401.pkg:npm/@scope/namevs%40scope(the Grype binary was denied 2026-11-27; try Trivy / Syft).allowScripts(needs a patched package with an install script),hasShrinkwrapnested, CRLF-shebang bins,install-strategy=nested/shallow.vex -g+--productvs global-only packages after vex -g run inside a project names that project as the VEX product and attests not_affected for a package whose project copy is unpatched (only the global copy was checked) #2502 is fixed.Mock tip: rebuild the mock from the wiremock fixtures in
crates/socket-patch-cli/tests/e2e_redirect_pnpm_build.rs(batch, view, blob, package, and the npm version document undernpmRegistryUrl). The hosted mock must be passed as--patch-server-urlas well as--api-url, or lockfile discovery (vex,rollback) doesn't recognize the pins ("No patches in this project").Known non-bugs
Full list:
known-non-bugs/npm.md(search it withgit grep). Most likely to be re-filed:scanafterrollbackre-pins in hosted mode (v5 default for a project with no state).appliedevents withrewrittenFiles: [](deliberate).npm update/npm install <pkg>@<same ver>;vexthen refuses and a re-scan re-pins.rollbackrestores the lock but leaves installed patched bytes until the nextnpm ci(documented "reinstall" step).redirect_npm_legacy_client).file:target or workspace outside the project root.rollbackreads the version document only from the default registry, not a project.npmrcregistry=.npm cireinstalls upstream bytes;applyre-patches. Not a bug..npmrckeys (ALLOW-REMOTE=none), so hosted scan appendingallow-remote=allbeside one is correct.report/rollbackmatch registry names, not an npm alias name (lp); the error says to use the UUID.All reactions