You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 190057e
Browse filesBrowse the repository at this point in the historyBrowse files
Run 44. Main `15ead12` (release 5.0.1; new since run 43: #1559 for #1541, plus non-Bun fixes). Bun 1.2.23 / 1.3.9 / 1.4.3. Linux only. Patch API: a local Python mock on the authenticated routes, with a deterministic (gzip mtime 0) granted tarball.
4
+
5
+
## Filed
6
+
-**#1581**: on a tree vendored by 5.0.1 or earlier in a repo that LFS-tracks `*.tgz`, `repair` (the remedy `vendor --check` prints in an LFS-less clone) re-downloads the tarball but leaves the root `<uuid>/.gitattributes` as legacy `* -text`. Committing the repair puts the tarball back into LFS, and fresh frozen installs still fail. Reproduces on 1.2.23 text / 1.3.9 lockb / 1.4.3 lockb workspace; plain npm behaves the same. On lockb workspaces the member mirrors are upgraded; a vendored scan heals both. https://github.com/SocketDev/socket-patch/issues/1581
7
+
8
+
## Re-triage
9
+
-#1541 (fixed by #1559): verified on Bun. Vendored scan → commit → `GIT_LFS_SKIP_SMUDGE=1` clone → cold frozen install installs patched bytes, with no LFS objects and the new uuid `.gitattributes` in the root and member mirrors (1.2.23 lockb ws, 1.4.3 × text / lockb × single / ws). The documented upgrade path (main vendored re-run, then `git add --renormalize`) works. Only the `repair` path is left (#1581).
10
+
-#1019: no Bun fix has landed, so I didn't re-run it.
11
+
12
+
## Cells
13
+
| Cell | Bun | Result |
14
+
| --- | --- | --- |
15
+
|#1541 LFS repo, new vendored run | 1.2.23 / 1.4.3 × text / lockb × single / ws | pass |
16
+
| 5.0.1 tree → main re-run + renormalize | 1.4.3 lockb ws, text single | pass |
| main `vendor --revert` of a 5.0.1-vendored workspace | 1.2.23 lockb, 1.4.3 text + lockb | pass |
20
+
| Lockfile-only nested project under a root scan | 1.4.3 text / lockb | pass (out of the warning's scope by contract) |
21
+
| Nested project inside a workspace member dir + suggested command + fresh frozen clones | 1.2.23 / 1.3.9 / 1.4.3, hosted + vendored | pass |
22
+
23
+
## False positives ruled out
24
+
- The first `repair` attempt failed with "downloaded artifact does not match the recorded SHA-256". My mock rebuilt the tarball with a new gzip mtime on each restart. With a deterministic mock, `repair` succeeds.
25
+
- The lockfile-only nested project isn't warned about: CLI_CONTRACT `nested_project_skipped` covers only installed copies.
26
+
- The 1.2.23 text workspace vendored refusal is the documented `vendor_bun_workspace_unsupported`.
27
+
28
+
## Probe branches
29
+
None. The 4 old `bughunt/bun/*` probe branches still need a maintainer to delete them.
30
+
31
+
## Next
32
+
1.#1581 and #1019 when a fix lands.
33
+
2. A hosted → vendored takeover in an LFS repo, on a legacy tree.
34
+
3.#1276 leftovers (a project `.npmrc` over a user-level scope); #1243 with `remove`.
35
+
4.#1444 cap under a throttling (429) mock.
36
+
5. macOS/Windows quoting of the `nested_project_skipped` PATH.
Copy file name to clipboardExpand all lines: state/bun.md
+17-3Lines changed: 17 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
[agent] Progress ledger for the scheduled Bun bug-hunt routine (label pm:bun).
2
2
3
-
Last updated: 2026-10-15 (run 43), main `7b6371c`, latest release 5.0.1, latest Bun 1.4.3 (stable since 2026-10-10; canary `1.4.3-canary.20261014.1` = `1.4.4-canary.1`).
3
+
Last updated: 2026-10-15 (run 44), main `15ead12`, latest release 5.0.1, latest Bun 1.4.3.
4
4
5
5
Method (run 36 note: the authenticated routes work too: `--api-url <mock> --org o --api-token fake` serves `/v0/orgs/o/patches/{batch,by-package,package,view}`; still set `SOCKET_PATCH_SERVER_URL` to the mock origin or hosted pins aren't recognized and `rollback` exits `manifest_not_found`. Run 16 note: the sandbox shell exports `BUN_OPTIONS=--smol`, so unset it; run 17 note: on Bun ≥ 1.2, `bunfig [install] saveTextLockfile = false` writes a binary `bun.lockb`): real Bun installs (npm `@oven/bun-*` or GitHub release binaries) and a local Python mock of the patch API: batch, by-package, the `patches/package` grant, `patches/view` with blob contents, `blob/<hash>`, the hosted tarball route, and a `/registry/` passthrough for `SOCKET_NPM_REGISTRY`. Set `SOCKET_PATCH_SERVER_URL` and `SOCKET_PROXY_URL` to the mock (run 32: without a token the CLI uses the public-proxy routes `/patch/batch`, `/patch/by-package/<purl>`, `/patch/view/<uuid>`, `/patch/blob/<hash>` and `POST /patch/package`, and `patch.socket.dev` returns 403 through the sandbox proxy). Test repos need `node_modules/` in `.gitignore`, or the fresh-clone oracle reads committed store entries. The oracle is the marker bytes after a fresh-checkout `bun install --frozen-lockfile` with an empty cache, plus byte comparison of the lockfiles and `node require` where runtime matters. The repo's own matrix (`scripts/backtest-bun.py`, `bun-compatibility.yml`) already covers plain hosted and vendored shapes across Bun 0.8.1–1.4.2. It always runs with `--ignore-scripts` and never in agent mode, and it never runs `vex` on an isolated-linker tree. This ledger tracks what it doesn't.
6
6
@@ -72,6 +72,8 @@ Run 42 (new main `a3f56f7`: #1523 for #1521): new **#1541**. When the repo's `.g
72
72
73
73
Run 43 (new main `7b6371c`: #1543 for #1534, the nested-project handover from run 41; no Bun-specific code change): no new bugs. #1534 verified fixed on Bun: a root hosted / vendored scan over an independent nested Bun project (own `bun.lock` / `bun.lockb`) warns `nested_project_skipped` with a correct shell-relative, quoted PATH, exits 0, and the suggested `scan --mode <m> <PATH>` patches the nested project (1.2.23 / 1.3.9 / 1.4.3 × text / lockb / isolated × hosted / vendored, fresh frozen clones patched). Root VEX leaves the skipped package out. Root locking the same / a different version, `!`-excluded members and `.gitattributes``* text=auto eol=crlf` clones pass. #1541 / #1019: no fix yet, not re-run.
74
74
75
+
Run 44 (new main `15ead12`: #1559 for #1541, plus non-Bun fixes): new **#1581**. On a tree a pre-#1541 release vendored, in a repo that LFS-tracks `*.tgz`, `repair` (the remedy `vendor --check` prints in an LFS-less clone) leaves the root `<uuid>/.gitattributes` as legacy `* -text`. The repaired tarball goes back into LFS on commit, and fresh frozen installs still fail (1.2.23 / 1.3.9 / 1.4.3; lockb member mirrors are upgraded; plain npm is the same). #1541 verified fixed for new vendored runs (1.2.23 / 1.4.3 × text / lockb × single / workspace), and the 5.0.1 → main vendored re-run + `git add --renormalize` upgrade path passes. Passing: the #1534 leftovers (lockfile-only nested project, nested project inside a workspace member dir) and main `vendor --revert` of 5.0.1-vendored (legacy `.gitattributes`) workspaces.
| 5.0.1-vendored LFS tree, no-LFS clone, main `repair` → commit → no-LFS clone | 1.2.23 text / 1.3.9 lockb / 1.4.3 lockb ws |**fail #1581** (root `.gitattributes` stays `* -text`, tarball back in LFS) |
612
+
| main `vendor --revert` of a 5.0.1-vendored workspace (legacy `.gitattributes`) | 1.2.23 lockb / 1.4.3 text + lockb | pass (lock byte-restored, no `.socket` leftovers) |
613
+
|#1534 leftover: lockfile-only nested project (no `node_modules`) under a root hosted / vendored scan | 1.4.3 text / lockb | pass (not crawled, nested lock untouched; contract scopes the warning to installed copies) |
614
+
|#1534 leftover: nested project inside a workspace member dir (`packages/a/tools/x`), member doesn't lock it; suggested command; fresh frozen clones | 1.2.23 text / 1.3.9 lockb / 1.4.3 text + lockb × hosted / vendored | pass |
615
+
603
616
## Backlog
604
617
605
618
0.**Maintainer request (partly covered in runs 3 and 6):** global (`-g`) mode for hosted patches. Still to do: a non-writable global dir must fail loudly (needs a probe; the sandbox runs as root); Windows 1.1.45/1.2.23 with an ASCII temp path; Bun 1.0.x. #443 is still open; re-test #434 (`bun.cmd`) on Windows now that #442 has landed. Checklist: the 20261001T040000Z entry.
@@ -623,8 +636,8 @@ Other passes (Linux, 1.4.2 unless noted):
623
636
15.#1437: verified fixed (run 39). Agent manifest + hosted pins under a bare scan is covered (Known non-bugs).
19.#1541: re-test when fixed (root + member mirrors, hosted → vendored takeover, `repair`in a no-LFS clone). Other `.gitattributes` rules on vendored artifacts: custom `filter=` smudge, `binary`/`-diff` on `bun.lockb`. (`* text=auto eol=crlf`: pass, run 43.) (#1097 extglobs on real Bun: Bun refuses them, pass, run 41.)
627
-
20.#1534(verified run 43) leftovers: a nested project that is lockfile-only (no `node_modules`) under a root scan, nested projects inside a workspace memberdir, macOS/Windows path quoting of the suggested PATH.
639
+
19.#1541: verified fixed for new runs (run 44). #1581 (`repair` on a legacy tree): re-test when fixed. Still to do: hosted → vendored takeoverin an LFS repo. Other `.gitattributes` rules on vendored artifacts: custom `filter=` smudge, `binary`/`-diff` on `bun.lockb`. (`* text=auto eol=crlf`: pass, run 43.) (#1097 extglobs on real Bun: Bun refuses them, pass, run 41.)
640
+
20.#1534 leftovers: macOS/Windows path quoting of the suggested PATH (lockfile-only and member-dir nesting pass, run 44).
628
641
17.#1444 cap under real 429s from a registry (a mock that throttles), and a 40+ pin workspace.
629
642
## Known non-bugs
630
643
@@ -738,3 +751,4 @@ Other passes (Linux, 1.4.2 unless noted):
738
751
- A bare `scan` / `get` on a project with an agent manifest plus hosted pins runs agent mode. It adds the hosted packages to the manifest and warns `hosted_wiring_retained` (documented: agent runs don't unwind hosted wiring). It doesn't double-patch, and only vendored + hosted is `mode_ambiguous` (run 39).
739
752
- Bun ignores `NPM_CONFIG_USERCONFIG`, so a scope configured only there isn't a valid #1276 cell (run 39).
740
753
- Vendoring on a `bun.lockb` workspace writes every patched tarball's mirror under every member, including members that don't depend on it. That's harmless (run 39).
754
+
- A lockfile-only nested independent project (no `node_modules`) under a root hosted / vendored scan gets no `nested_project_skipped` warning: CLI_CONTRACT scopes the warning to packages the crawl finds installed (run 44).
0 commit comments