Repository navigation
Bug hunt ledger: Bun #306
Replies: 70 comments
|
[agent] 2026-09-30: Bun bug-hunt run Tested: main Method: the patch API is unreachable from the sandbox ( This is the first run: there was no earlier ledger and no Cells
Issues
False positives ruled out
Probe
Next
|
|
[agent] 2026-10-01: Bun bug-hunt run Tested: main Method: same as run 1, with the mock rebuilt ( Re-triage (on
|
|
[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 Bun puts global installs: What to check (prove each with a real global install, not by reading source):
Add OS × Bun version cells for |
|
[agent] 2026-10-01: Bun bug-hunt run Tested: main Method: real Re-triage (on
|
|
[agent] 2026-10-01: Bun bug-hunt run Tested: main Method: a Python mock of the authenticated patch API ( Re-triage
Cells
Issues
False positives ruled out
Blocked
Next
|
|
[agent] 2026-10-01: Bun bug-hunt run Tested: main No probe branch this run: Method: a Python mock of the patch API ( Re-triage
Cells (Linux)
Issues
False positives ruled out
Blocked
Next
|
|
[agent] 2026-10-02: Bun bug-hunt run Tested: main Method: a fresh Python mock of the org-scoped patch API ( Re-triage
Cells (Linux)
Issues
False positives ruled out
Blocked
Next
|
|
[agent] 2026-10-02: Bun bug-hunt run Tested: main Method: a fresh Python mock of the org-scoped patch API ( Re-triage
Cells (Linux): backlog item 5,
|
|
[agent] 2026-10-02: Bun bug-hunt run Tested: main Method: a fresh Python mock of the org-scoped patch API ( Re-triage
Cells (Linux)
Issues
False positives ruled out
Next
|
|
[agent] Janitor: ledger drift. The coverage matrix still lists these issues as
This is a heads-up only. The janitor never edits ledgers. Generated by Claude Code |
|
[agent] Janitor: ledger drift. The coverage matrix still lists these issues as
This is a heads-up only. The janitor never edits ledgers. Generated by Claude Code |
|
[agent] 2026-10-02: Bun bug-hunt run Tested: main Method: a fresh Python mock of the public proxy ( Re-triage
Cells (Linux)
IssuesFalse positives ruled out
Next
Generated by Claude Code |
|
[agent] 2026-10-03: Bun bug-hunt run Tested: main Method: a fresh Python mock of the public proxy ( Re-triage
Cells (Linux)
IssuesFalse positives ruled out
Next
Generated by Claude Code |
|
[agent] 2026-10-03: Bun bug-hunt run Tested: main Method: a fresh Python mock of the public proxy ( Re-triage
Cells (Linux)
Issues
False positives ruled out
Next
Generated by Claude Code |
|
[agent] 2026-10-03: Bun bug-hunt run Tested: main Method: a fresh Python mock of the public proxy ( Re-triage
Cells (Linux)
Issues
False positives ruled out
Next
Generated by Claude Code |
|
[agent] 2026-10-16: Bun bug-hunt run Run 46. Main FiledNone. No new bugs. Re-triage
Cells
False positives ruled out
Probe branchesNone. The 4 old Next
|
|
[agent] 2026-10-17: Bun bug-hunt run Run 47. Main Filed
Re-triage
Cells
False positives ruled out
Handovers
Probe branchesNone. The 4 old Next
|
|
[agent] Janitor: ledger drift on main Generated by Claude Code |
|
[agent] Janitor: ledger drift on main
Please re-verify them on the next run and update the tables. Generated by Claude Code |
|
[agent] 2026-10-28: handover from the npm bug-hunt routine (ledger #302) npm bug #1756 (#1756): npm's
Evidence for bun: Bun 1.4.4 does the same rewrite on Linux. I installed a local tarball whose |
|
[agent] 2026-11-26: Bun bug-hunt run Run 49. Main Filed
Cells (pass unless noted)
Ruled out
Ledger
|
|
[agent] 2026-11-27: Bun bug-hunt run Run 50. Main Re-triage
Commented
Cells (pass unless noted)
Ruled out
|
|
[agent] 2026-11-28: Bun bug-hunt run Run 51. Main Filed
Re-triage
Cells (Bun 1.4.5 unless noted; pass unless noted)
Ruled out
|
|
[agent] 2026-11-29: Bun bug-hunt run Run 52. Main Filed: none. Re-triage: #2335 and #2279 not re-tested (main unchanged since they were filed). Cells (pass unless noted)
Ruled out
|
|
[agent] 2026-11-30: Bun bug-hunt run Run 53. Main Filed
Re-triage: #2335 and #2279 not re-tested (main unchanged since they were filed). Cells (Bun 1.4.5 unless noted; pass unless noted)
Ruled out: none. |
|
[agent] 2026-12-01: Bun bug-hunt run Run 54. Main Filed
Re-triage
Cells (Bun 1.4.5 unless noted; pass unless noted)
Ruled out
|
|
[agent] 2026-12-02: Bun bug-hunt run Run 55. Main Re-triage
Cells (pass unless noted)
Ruled out (harness mistakes, not CLI bugs)
|
|
[agent] 2026-12-03: Bun bug-hunt run Run 56. Main Filed
Re-triage
Cells on v5.2.0 (pass unless noted)
Ruled out
|
|
[agent] 2026-12-04: Bun bug-hunt run Run 57. Main Filed
Re-triage
Cells on v5.2.0 (all pass)
Ruled out
|
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 Bun bug-hunt routine (label pm:bun).
Last run: 2026-12-04 (run 57), main
d987721(= v5.2.0), latest release v5.2.0, newest Bun 1.4.5 (canary 1.4.5-canary.20261203.1).The per-run narrative (runs 1–48) and the old per-version matrices are in the branch history (
git log -p -- state/bun.md) and inentries/bun/.Method (Linux sandbox)
unset BUN_OPTIONS(the sandbox exports--smol). Bun binaries:npm i --no-save --ignore-scripts @oven/bun-linux-x64@<v>in a scratch dir. On Bun ≥ 1.2,bunfig [install] saveTextLockfile = falsewritesbun.lockb; Bun 1.1.x writesbun.lockbonly.--api-url http://127.0.0.1:A --org o --api-token fake, servingPOST /v0/orgs/o/patches/batch(answer only for the requested purls),GET …/by-package/<purl>,POST …/package(grants:{"results":{uuid:{"status":"granted","url","purl","artifacts":[{"kind":"tarball","url","integrity":{"sha512":"sha512-…"}}]}}}),GET …/view/<uuid>(withfilesbefore/after git-sha256 + blob contents) and the tarball at/patch/npm/<name>/<ver>/<tok>/<uuid>/<name>-<ver>.tgz. SetSOCKET_PATCH_SERVER_URL,SOCKET_PROXY_URLandSOCKET_VENDOR_URLto the mock's origin. Hosted rollback needsSOCKET_NPM_REGISTRYif the CLI can't reach npmjs. A ~100-line Pythonhttp.servermock that builds each patched tarball from the registry tarball (marker prepended toindex.js) covers all three modes; agent mode needsblobContent(base64) inview. Also serve the public routes:GET /patch/view/<uuid>(hosted-onlyvexwithout--api-urlreads it) andGET /patch/blob/<git-sha256>or/v0/orgs/o/patches/blob/<hash>(agentrollbackdownloads before-blobs).PATH=<bun dir>:$PATH SOCKET_PATCH_BUN_E2E_REQUIRED=1 SOCKET_PATCH_BUN_E2E_VERSION=<v> SOCKET_PATCH_BUN_LOCKB_REQUIRED=1 cargo test --release -p socket-patch-cli --test …./artifactory/socket-patch(HEAD and GET). Pass--patch-mirror-url http://127.0.0.1:B/artifactory/socket-patch, or setSOCKET_PATCH_MIRROR_URLfor later commands.bun install --frozen-lockfilewith an emptyBUN_INSTALL_CACHE_DIR, then the marker bytes innode_modules, the mock's request log (which host served the tarball), byte compares of the lock, andvex -O. Test repos neednode_modules/in.gitignore./<name>/<version>(hosted rollback reads it) and the tarball. Keep one mock process alive for the whole cell: a restart re-gzips tarballs with new integrity.scripts/backtest-bun.py,bun-compatibility.yml) covers plain hosted / vendored across Bun 0.8.1–1.4.2 with--ignore-scripts, without agent mode and withoutvexon isolated trees. The patch-mirror live test covers only a fresh single-projectbun.lock.Coverage matrix
v5.2.0 was tagged 2026-12-03 at
d987721; the common-path and workspace rows were re-run on it. "pre-5.1" marks cells last tested before v5.1.0.bun.lockv0/v1/v2 (scan → frozen fresh install →vex→ rollback → install)bun.lockb(1.1.39 → 1.4.5)apply+vex(root) + rollback (v5.2.0, 2026-12-03); 1.3.10 (2026-12-02); 1.1.39 (2026-11-27); npm alias in an isolated ws: scan,vex, frozen +apply,rollbackbyte-exact (1.4.5, 2026-12-01)vendor_bun_workspace_unsupported(documented); lockb on 1.2.23/1.3.10 survives unfrozen install + memberbun add(2026-11-27)redirect_bun_workspace_unsupported(documented) (2026-11-27). Catalogs (catalog:/ named),!negation, dot-dir members: pass all three modes, text + lockb 1.4.5 (2026-11-28)bun installpicks it up (2026-11-28)redirect_takeover_reverted_vendored(2026-12-02); with mirror pass (2026-11-27); superseding uuid pass text + lockb 1.4.5 (2026-11-28)vendor --revert/scan --prune/repair)remove <purl>pass 1.4.5 text + lockb ws (2026-11-27)vendor --revertbyte-exact,repairre-downloads a deleted tarball,vendor --checkpass 1.4.5 text + lockb ws (2026-11-27)scan --prunen/a (redirect_prune_ignored). Vendored--pruneafterbun removepass text + lockb; agent--syncprunes (1.4.5, 2026-11-28)vex(isolated linker, lockfile-only, workspaces)bun adddrop → re-run re-pins on disk (2026-11-27)--frozen-lockfile/bun ci/--filterafter rewiringredirect_mirror_unavailable, nothing written (2026-11-27); HEAD 401/403/302 →redirect_mirror_unverified+ pins, 500 / no answer → skipped, nothing written (1.4.5, 2026-11-29)SOCKET_PATCH_MIRROR_AUTHORIZATIONsent on the HEAD only (1.4.5, 2026-11-30). lockb: superseding pass, but every re-run re-HEADs and a 5xx reports the pin skipped/unpatched: fail #2384 (1.2.23 / 1.4.5; still on6280589, 2026-12-02)redirect_mirror_pin_not_moved, both remedies work, "another copy" alias clause pass (1.4.5, 2026-12-01). Reverse case (mirror pin, run without the setting): text passredirect_pin_on_unconfigured_host; lockb fail #2406 (1.1.39 / 1.2.23 / 1.4.5)binCRLF shebang rewrite (#1756, Bun does it too)vex, rollback keeps LF (1.4.4, 2026-11-26)vex, revert (1.4.5, 2026-11-29)vex, rollback viaBUN_CONFIG_REGISTRY(1.4.5, 2026-11-29)globalStore(Bun ≥ 1.3.14)-gvex -g/rollback -g(1.4.5, 2026-11-29)--globalwith hosted (documented, 2026-11-29)bun patchinterplay (#367 / #1019)bun patch lpskipped / refused with--allow-patch-conflicts(1.4.5, 2026-11-30)bun patch lpskipped (1.4.5, 2026-11-30)trustedDependencies/ default trust6280589, 2026-12-02).gitignore/ LFS on vendored artifacts*.tgzrule: still committed;.socket//vendor/rules: clear refusal, nothing written (1.4.5, 2026-11-28). LFS pre-5.1--updaterefusesmanaged_installwithbun add -g …@latest(global) /bun add …@latest(project, hoisted + isolated); the project remedy keeps it a devDependency and frozen install stays clean (1.4.5, v5.2.0, 2026-12-04)bun installkeeps the rewritten lock (2026-12-02); canary 20261203.1 passes the 102 repo e2e tests (2026-12-04)mode(#2433, new)apply --check/vexcatch a reinstall,applyre-tightens, rollback keeps the mode (documented) (2026-12-02)modeinviewdoesn't disturb hosted (2026-12-02)--max-new-patcheson a URL-tarball dep (text + lockb)verified, rollout "Next up" then exit 1 every run (1.2.23 / 1.4.5, v5.2.0, 2026-12-03); hosted dry run warns correctlyredirect_bun_non_registry_entry_skipped; a credential in the dep URL is never printed (#2445) (1.4.5, 2026-12-03)Backlog
[would-refuse], rollout skips the refused purl, no view fetch; text + lockb; also a bundled-only copy and afile:tarball).read.fileslacksbun.lockb): re-test both when fixed (lockb reverse case on 1.1.39 / 1.2.23 / 1.4.5; lockb re-run with the mirror at 200 / 401 / 5xx sends no HEAD; a lockb ws with one existing and one new pin; text unchanged).d987721). Workspaces on 1.1.39 still dated 2026-11-27. Patch mirror and the takeover matrix outside the repo suites not re-run on v5.2.0 (repo takeover/migration suites pass on v5.2.0)..gitignore+ LFSrepair(repair leaves a pre-#1541 root<uuid>/.gitattributesas* -text, so the repaired Bun tarball goes back into Git LFS on the next commit #1581).packages/*never lists dot-directories, so that project can't be patched at all #1631 (dot-dir workspaces) fully on main; vendored on afile:folder copy in a lockb workspace.bun.cmd): can't be probed now. Note likely platform differences in issues.Known non-bugs
Full list:
known-non-bugs/bun.md. Search it withgit grep -n <term> origin/bughunt/ledger -- known-non-bugs/bun.md. The ones most likely to be re-filed:bun.lockbpins:rollback/removerefuse with thegit checkout -- bun.lockbremedy (documented).bun.lockbtakeovers are semantically identical, not byte-exact.redirect_bun_workspace_unsupported), a pre-v2 workspace lock in vendored mode (vendor_bun_workspace_unsupported).file:/ URL tarball of the patchedname@versionwarnsredirect_bun_non_registry_entry_skippedand doesn't attest it (Bun hosted and vendored modes skip a URL orfile:tarball copy of the patched package without warning, and vendoredvexattests not_affected (the #326 fix covers npm locks only) #497 design). Only the patch-server-pin case under a mirror is a bug (Hosted Bun run with --patch-mirror-url gives no redirect_mirror_pin_not_moved for a bun.lockb pin and says an earlier patch-server pin "stays UNPATCHED" #2279).vex/rollbackrun withoutSOCKET_PATCH_MIRROR_URLsee no hosted pins (documented).apply/apply --check/vex/rollbackrun from a Bun workspace member report no manifest / no patches (exit 0 forapply);.socket/lives at the root (--cwdscoping, npm known-non-bugs too).scanfrom a member refuses withredirect_workspace_lockfile_elsewherenaming the root.vex --jsonwith no--outputis thejson_requires_outputusage error (exit 2).scanis hosted by default on a Bun project and re-pins, so use--mode agentfor agent cells and--dry-run/listas read-only checks.package.json(new dependency orbin) installs patched bytes, but Bun's frozen install uses the lock's metadata.BUN_CONFIG_REGISTRYrestores""in the registry slot, which is what Bun itself writes.preparedoesn't run for registry or tarball dependencies on any Bun version.All reactions