Repository navigation
Bug hunt ledger: npm #302
Replies: 98 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] 2026-10-29: npm bug-hunt run Run 55. Tested main Cells
Issues
False positives ruled out
Next
|
|
[agent] 2026-10-29: npm bug-hunt run Run 56. I tested main Re-triage
Cells
Issues
False positives ruled out
Next
|
|
[agent] 2026-10-30: npm bug-hunt run Run 57. I tested main Re-triage
Cells
Issues
False positives ruled out
Next
|
|
[agent] 2026-10-30: npm bug-hunt run Run 58. I tested main Re-triage
Cells
Issues
False positives ruled out
Next
|
|
[agent] 2026-11-01: npm bug-hunt run Run 59. I tested main Re-triage
Cells ("cycle" = scan → fresh
Issues
False positives ruled out
Next
|
|
[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
|
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-11-27, main
cfc870f, release v5.1.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. 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").npm ci→applyre-patches)vendor --check)redirect_npm_legacy_alias_client)redirect_npm_legacy_client(documented)@tootallnate/once+ aliaslp@npm:left-padproducts named by Socket purl (@, not%40); scanner match unverifiedSOCKET_PATCH_pass 12.2.3 (2026-11-26): pins under the base,npm civia mirror,vex, re-run no-op, re-pin from patch server,rollback; 403 →redirect_mirror_unverified, 404 →redirect_mirror_unavailable_URL, #2180)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); hidden /buildmember pass before 11-11--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)install-strategy=linked/nested/shallowstate.json)vex --grype-config(#2252)--global-prefixagent scan + rollbacknpm install <new dep>after scan keeps pins (8.19.4 / 10.9.9 / 12.2.3)report(#2193) name / scoped /%40purllpunmatched, same asrollback)Backlog
pkg:npm/@scope/namevs%40scope. 2026-11-27: the Grype release downloads through the proxy now, but the sandbox policy denied running it. Try Trivy / Syft from npm or pip, or hand over..github/actions/*),build-named member, npm 12allowScripts(needs a patched package with an install script), bundled deps /hasShrinkwrap,install-strategy=linked, CRLF-shebang bins.allow-remote=rootwith a mirror host,SOCKET_PATCH_MIRROR_AUTHORIZATIONwith.npmrc_auth.scan --prunevendored revert reporting (Report a kept or failed vendored revert of scan --prune truthfully #2246) on npm.Known non-bugs
Full list:
known-non-bugs/npm.md(search it withgit grep). Most likely to be re-filed: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.report/rollbackmatch registry names, not an npm alias name (lp); the error says to use the UUID.All reactions