Repository navigation
Bug hunt ledger: Yarn Berry (2+) #305
Replies: 63 comments
|
[agent] 2026-09-30: Yarn Berry (2+) bug-hunt run Tested: main This is the first run: no earlier ledger, and no Cells
Issues
False positives ruled out
Probe
Next
|
|
[agent] 2026-10-01: Yarn Berry (2+) bug-hunt run Tested: main Re-triage
Cells
False positives ruled out
Probe
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 Yarn Berry (2+) puts global installs: Berry has no What to check (prove each with a real global install, not by reading source):
Add OS × Yarn Berry (2+) version cells for |
|
[agent] 2026-10-01: Yarn Berry (2+) bug-hunt run Tested: main Re-triage
Cells (global mode)
Observations not filed
Probe branches
Next
|
|
[agent] 2026-10-01: Yarn Berry (2+) bug-hunt run Tested: main Harness, new this run: the Python patch-API mock now also serves the v5 vendoring service. Re-triage
Cells
Ruled out
Next
|
|
[agent] 2026-10-01: Yarn Berry (2+) bug-hunt run Tested: main Re-triage
Cells
Ruled out
Harness notes
Next
|
|
[agent] 2026-10-02: handover from the Yarn classic (1.x) bug-hunt routine (#304) Lead for yarn berry PnP, not verified with berry. In a yarn classic PnP project, standalone |
|
[agent] 2026-10-02: Yarn Berry (2+) bug-hunt run Tested: main Re-triage
Handover from yarn-classic (#519)
Cells (Linux)
Ruled out
Unconfirmed lead (not filed)
Next
|
|
[agent] 2026-10-02: Yarn Berry (2+) bug-hunt run Tested: main Re-triage
Filed
Cells (Linux)
Ruled out
Next
|
|
[agent] 2026-10-02: Yarn Berry (2+) bug-hunt run Tested: main Harness note: the v5 vendoring-service mock needs a Re-triage
Filed
Cells (Linux, all pass unless noted)
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. This ledger still lists these issues as failing, but they are now closed:
Please re-check them and update the matrix on your next run. Generated by Claude Code |
|
[agent] 2026-10-02: Yarn Berry (2+) bug-hunt run Tested: main Harness note: the Re-triage
Cells (Linux, all pass unless noted)
Filed
Ruled out
Next
|
|
[agent] 2026-10-03: Yarn Berry (2+) bug-hunt run Tested: main Harness: this run rebuilt the hosted mock as a single Python server driven by a JSON config. It serves batch (filtered by Re-triage
Cells (Linux)
Filed / commented
Ruled out
Next
|
|
[agent] 2026-10-13: Yarn Berry (2+) bug-hunt run Tested: main Harness (new this run): no Python mock. A Probes: none. The stale probe branches still need deleting by hand. Re-triage
Cells (Linux,
|
| Cell | Result |
|---|---|
#759 neighbours: a member adds 1.3.0, alias lp: npm:left-pad@^1.3.0, 1.3.x, ~1.3, >=1.x, >= 1.0.0 < 2, devDependencies ^1.0.0, or a transitive file: package depending on left-pad@^1.0.0, all while vendored; then vendor --revert, fresh --immutable (4.18.1; 4.0.2 for add/alias/x/dev/transitive) |
pass |
Same with rollback and remove left-pad (4.0.2, 4.18.1) |
pass |
CRLF yarn.lock + member add + revert (4.0.2, 4.18.1) |
pass (CRLF kept) |
4.0.2 → 4.18.1 upgrade + member add, then vendor --revert / rollback |
pass |
Member adds latest, 1.3.0 - 2 (partial hyphen) or 1.1.3 (unsatisfied) while vendored |
loud vendor_lock_descriptor_unlocked event, exit 0; fresh --immutable YN0028 until yarn install (designed) |
#1097 berry dialect: 23 workspaces shapes, yarn workspaces list vs get <uuid> --mode hosted from the member (4.0.2, 4.18.1) |
fail #1490 (new): packages/(a|b), packages/pkg-(a|b), [[:alpha:]], [[:digit:]]x and packages/a/../b are listed by yarn but not refused (exit 0, nothing pinned). Pass: *, **, ./, trailing /, @(a|b), !(z), ?(x), [a-c], [!b], [^b], **/b, ! negation. !packages/(b|c) gives a false refusal (loud, noted on #1490). packages/.hidden is refused although yarn skips dot dirs (loud, not filed) |
Filed / commented / closed
- Filed Hosted get/scan from a yarn berry workspace member still pins nothing and exits 0 when the root's workspaces glob uses a regex group (packages/(a|b)), a POSIX class ([[:alpha:]]) or a
..segment #1490: Hosted get/scan from a yarn berry workspace member still pins nothing and exits 0 when the root's workspaces glob uses a regex group (packages/(a|b)), a POSIX class ([[:alpha:]]) or a..segment #1490 - No comments; nothing closed (Vendored yarn berry revert restores the pre-vendor lock entry verbatim, so after upgrading from yarn 4.0.x it writes back a bare-hex checksum and every
yarn install --immutablefails YN0028 #759 and Hosted yarn berry rollback/remove drop the::__archiveUrl=binding when the project's mirror serves npmjs tarball URLs, so cold installs fetch a mirror path that 404s #1465 were already closed by their fixes).
Ruled out
vendor_lock_descriptor_unlockedforlatestand for a partial hyphen range (1.3.0 - 2) is the documented fail-loud path ("or its range could not be read"). Not filed.- A CRLF
package.jsoncoming back as LF after vendoring: yarn's own install rewrites it to LF (known non-bug); the revert is byte-exact to the post-install bytes. - The Hosted yarn berry rollback/remove drop the
::__archiveUrl=binding when the project's mirror serves npmjs tarball URLs, so cold installs fetch a mirror path that 404s #1465 e2e failing with "403 /meta/left-pad" was my shim'sYARN_HTTP_PROXY, a sandbox artifact.
Next
- Re-verify Hosted get/scan from a yarn berry workspace member still pins nothing and exits 0 when the root's workspaces glob uses a regex group (packages/(a|b)), a POSIX class ([[:alpha:]]) or a
..segment #1490 when fixed (the 5 failing shapes on 4.0.2 and 4.18.1, plus the scan path with a member-owned copy). - Hosted yarn berry rollback/remove drop the
::__archiveUrl=binding when the project's mirror serves npmjs tarball URLs, so cold installs fetch a mirror path that 404s #1465 neighbours not covered by the repo e2e:npmScopesscoped target,YARN_NPM_REGISTRY_SERVER,~/.yarnrc.yml(they need a non-hermetic harness), and the hosted→vendored takeovervendor --revertbehind a mirror. - Vendored yarn berry misses a parent-scoped user
resolutionsentry (pkg-a/left-pad), reports success, and everyyarn install --immutablefails YN0028 #783, Yarn berry hosted and vendored scans miss afile:/URL copy of the patched package locked under another dependency name, so lockfile VEX (and vendored VEX after install) attests not_affected while that copy installs unpatched #939, Yarn berry hosted rollback/remove report success after a useryarn patchof the pinned package, but leave a lock that everyyarn install --immutablerejects (YN0028); the next install re-pins the Socket tarball #962, Agent mode misses transitive packages in Yarn's pnpm-linker store whenpnpmStoreFoldermoves it out ofnode_modules: skipped aspackage_not_installed, or refused as "first-party source" #859 re-verify. - After a vendored-to-hosted takeover is interrupted once its commit journal is written, the next
rollbackreplays the journal, then exits 0 having restored nothing, and the project stays hosted-patched (removesays "No patch found") #1241 takeover journal replay re-check. - macOS/Windows probes once the stale branches are deleted.
|
[agent] 2026-10-14: handover from the Yarn classic (1.x) bug-hunt (ledger #304) While testing #1489 for yarn classic I filed #1516: renamed-copy detection fails open when it can't read the copy's identity. That happens for a The berry side shares the reader in
Suggested cells: berry 3 / 4, |
|
[agent] 2026-10-14: Yarn Berry (2+) bug-hunt run Tested: main Harness: a scratch copy of Probes: none. The stale probe branches still need deleting by hand. Re-triage
Cells (Linux)
Filed / commented / closed
Ruled out
Next
|
|
[agent] 2026-10-14: Yarn Berry (2+) bug-hunt run Tested: main Harness: a corepack shim ( Probes: none. The stale probe branches still need deleting by hand. Re-triage
Cells (Linux, main
|
| Cell | Result |
|---|---|
lp2: portal:../ext/lpdir (outside root), hosted, 4.18.1 |
pass: redirect_copy_unpatched, vex_omitted, scan exit 1; lock-only and post-install vex exit 2 (#1516 fixed) |
Member packages/a portal:../../../ext/lpdir and file:../../../ext/lp.tgz, hosted, 4.18.1 |
pass (same codes) |
Vendored portal:../ext/lpdir and file:../ext/lp.tgz, 4.18.1 |
pass: vendor_copy_unpatched, vex_omitted; lock-only vex exit 1 |
Absolute file:/abs/ext/lpdir and file:/abs/ext/lp.tgz, hosted, 4.18.1 |
pass: fail-closed unidentified copy, redirect_copy_unpatched, vex exit 2 |
Relative portal through a symlinked dir (portal:../ext/lnk), hosted, 4.18.1 |
pass |
Absolute portal:/abs/ext/lpdir: hosted 4.18.1 ×2, hosted 4.0.2, vendored 4.18.1 |
fail #1540: scan exit 0, no copy warning; in-run, lock-only and post-install VEX attest not_affected; node_modules/lp2 unpatched |
Absolute link:/abs/ext/lpdir, hosted 4.18.1 |
fail #1540 (same) |
Filed / commented / closed
- Filed Yarn berry renamed-copy detection ignores a
portal:/link:copy with an absolute path, so hosted and vendored scans succeed and every VEX path attests not_affected while that copy installs unpatched #1540: Yarn berry renamed-copy detection ignores aportal:/link:copy with an absolute path, so hosted and vendored scans succeed and every VEX path attests not_affected while that copy installs unpatched #1540. An unreadLinkedcopy is dropped (vendor/yarn_copies.rs:111,vex/discover/yarn.rs:878), andread_pathnever reads anchored paths (copy.rs:46). - Nothing closed. Yarn classic renamed-copy detection (#1489) misses a
file:copy outside the project root and a tarball whose root isn'tpackage/, so scans succeed and VEX attests while that copy installs unpatched #1516 was already closed by its maintainer.
Ruled out
- The member-relative
portal:../../ext"Manifest not found" was my path error: frompackages/a, the shared directory is three levels up.
Next
- Yarn berry renamed-copy detection ignores a
portal:/link:copy with an absolute path, so hosted and vendored scans succeed and every VEX path attests not_affected while that copy installs unpatched #1540: when it's fixed, re-verify absoluteportal:/link:(hosted and vendored, 4.0.2 and 4.18.1, all three VEX paths), pluslink:from a workspace member, and a~/env-interpolated path, if yarn expands one. - Other unread
Linkedcopies: a portal directory whosepackage.jsonis unreadable (EACCES) or a symlink to outside the tree; aportal:path containing:or#(berry_copy_refsplits on both). - Hosted get/scan from a yarn berry workspace member still pins nothing and exits 0 when the root's workspaces glob uses a regex group (packages/(a|b)), a POSIX class ([[:alpha:]]) or a
..segment #1490 neighbours:[[:upper:]],{1,}quantifiers, a nested worktree member. - Re-verify Vendored yarn berry misses a parent-scoped user
resolutionsentry (pkg-a/left-pad), reports success, and everyyarn install --immutablefails YN0028 #783, Yarn berry hosted rollback/remove report success after a useryarn patchof the pinned package, but leave a lock that everyyarn install --immutablerejects (YN0028); the next install re-pins the Socket tarball #962 and Agent mode misses transitive packages in Yarn's pnpm-linker store whenpnpmStoreFoldermoves it out ofnode_modules: skipped aspackage_not_installed, or refused as "first-party source" #859 when fixes land. - macOS/Windows probes once the stale branches are deleted (Windows
portal:C:\…belongs to the Yarn berry renamed-copy detection ignores aportal:/link:copy with an absolute path, so hosted and vendored scans succeed and every VEX path attests not_affected while that copy installs unpatched #1540 class).
|
[agent] 2026-10-15: Yarn Berry (2+) bug-hunt run Tested: main Harness: a corepack shim ( Probes: none. The stale probe branches still need deleting by hand. Re-triage
Cells (Linux, main
|
| Cell | Result |
|---|---|
#1540 absolute portal: (4.0.2, 4.18.1) |
pass (fixed) |
Relative portal:./vend/lp / link:./vend/lp, target present, hosted scan + lock-only vex (4.0.2, 4.18.1) |
pass: redirect_copy_unpatched, vex exit 2 |
Relative portal:/link:, target ABSENT (submodule not checked out), lock-only vex (4.18.1 ×2, 4.0.2; link 4.18.1) |
fail #1561: exit 0, attests not_affected |
Same, lock-only scan --mode hosted --vex (portal 4.0.2 and 4.18.1, link 4.18.1) |
fail #1561: exit 0 success, no copy warning, in-run VEX attests; after restoring the target, yarn install --immutable leaves node_modules/lp2 unpatched |
Same, scan --mode vendored --vex (portal 4.18.1, link 4.0.2) |
fail #1561 (same) |
Control: file:./vend/lp with the target absent, hosted / vendored / vex (4.0.2, 4.18.1) |
pass: fails closed (#1516 design) |
Filed / commented / closed
- Filed Yarn berry drops a relative
portal:/link:copy whose target directory is missing (e.g. an uninitialized git submodule), so hosted and vendored scans succeed and VEX attests not_affected while that copy installs unpatched #1561: Yarn berry drops a relativeportal:/link:copy whose target directory is missing (e.g. an uninitialized git submodule), so hosted and vendored scans succeed and VEX attests not_affected while that copy installs unpatched #1561. The relative linked copy whose read fails hits the oldcontinue(vex/discover/yarn.rs:894,vendor/yarn_copies.rs:113). Fix yarn berry absolute portal:/link: copies (#1540) #1551 widened fail-closed only to anchored paths. - Nothing closed. Yarn berry renamed-copy detection ignores a
portal:/link:copy with an absolute path, so hosted and vendored scans succeed and every VEX path attests not_affected while that copy installs unpatched #1540 was already closed by Fix yarn berry absolute portal:/link: copies (#1540) #1551.
Ruled out
vexexit 2 with "Manifest not found … no hosted or vendored patch references were found" when the only pin is withheld by a copy is misleading wording (the lock does carry the pin, and the copy warning prints first). It's cosmetic, so I didn't file it.- Fix vlt extglob workspace members (#1542) #1555 changes only the vlt dialects plus a
dotfield, and the npm/yarn dialects keepdot: true, so there's no berry glob regression to chase.
Next
- Yarn berry drops a relative
portal:/link:copy whose target directory is missing (e.g. an uninitialized git submodule), so hosted and vendored scans succeed and VEX attests not_affected while that copy installs unpatched #1561: when it's fixed, re-verify the missing relativeportal:/link:(root and member-relative, hosted/vendored/vex, 4.0.2/4.18.1). Also check that alink:to an existing plain directory with nopackage.jsonis still ignored, and add neighbours: a dangling symlink target, a target that is a file and not a directory, and apackage.jsonthat is invalid JSON or has noversion. - Root
scan --mode vendoredexits 1 forever and drops its in-run VEX when a nested independent npm project installs a patched package the root lock doesn't have (hosted mode only warns) #1534 / Fix vendored scans failing on nested npm projects (#1534) #1543 on berry: a nested independent berry project (ownyarn.lock, not inworkspaces) under a berry root, hosted and vendored (nested_project_skipped), plus a nested project that the root also links throughportal:. - Hosted get/scan from a yarn berry workspace member still pins nothing and exits 0 when the root's workspaces glob uses a regex group (packages/(a|b)), a POSIX class ([[:alpha:]]) or a
..segment #1490 neighbours:[[:upper:]],{1,}quantifiers, a nested worktree member. - Re-verify Vendored yarn berry misses a parent-scoped user
resolutionsentry (pkg-a/left-pad), reports success, and everyyarn install --immutablefails YN0028 #783, Yarn berry hosted rollback/remove report success after a useryarn patchof the pinned package, but leave a lock that everyyarn install --immutablerejects (YN0028); the next install re-pins the Socket tarball #962 and Agent mode misses transitive packages in Yarn's pnpm-linker store whenpnpmStoreFoldermoves it out ofnode_modules: skipped aspackage_not_installed, or refused as "first-party source" #859 when fixes land. - macOS/Windows probes once the stale branches are deleted (Windows
portal:C:\…belongs to the Yarn berry renamed-copy detection ignores aportal:/link:copy with an absolute path, so hosted and vendored scans succeed and every VEX path attests not_affected while that copy installs unpatched #1540 class).
|
[agent] 2026-10-15: Yarn Berry (2+) bug-hunt run Tested: main Harness (run 44, fully local, no Rust scratch test): Probes: none. The stale probe branches still need deleting by hand. Re-triage
Cells (Linux, main
|
| Cell | Result |
|---|---|
#1561 shapes (missing, empty, LFS pointer, file, dangling symlink), portal: hosted + vex (4.18.1; missing also 4.0.2) |
pass (fixed) |
portal: target is a non-empty dir with no package.json (.gitkeep placeholder), hosted + vendored + vex (4.0.2, 4.18.1 ×2) |
fail #1579: exit 0 success, VEX attests. yarn itself refuses a manifest-less portal (YN0001 "Manifest not found"), so a fetch step must fill it; after that, node_modules/lp2 is unpatched |
portal:/link: target package.json without name or without version, hosted + vex (4.0.2, 4.18.1), vendored (4.18.1) |
fail #1579: yarn installs it, and lp2 is unpatched left-pad code |
Control: file:./vend/lp with a nameless or version-less package.json |
pass (fails closed) |
link: to a dir holding only .gitkeep or logo.svg |
dropped, documented ("A link: to a non-empty directory with no package.json is not a package copy") |
#1534/#1543: nested independent berry project tools/x (own yarn.lock, not in workspaces) under a berry root, hosted and vendored |
pass: nested_project_skipped warning, root files byte-identical; the PATH remedy scan --mode <m> tools/x pins tools/x only, fresh --immutable installs patched bytes, vex --cwd tools/x attests, and root vex exits 2 |
#1541/#1559: vendored berry in a repo with *.tgz filter=lfs (git-lfs 3.4.1) |
pass: the <uuid>/.gitattributes unsets filter, the committed blob is the real gzip, and a GIT_LFS_SKIP_SMUDGE=1 clone --immutable installs patched bytes |
#783 parent-scoped pkg-a/left-pad (4.18.1) |
fail #783 (still) |
Filed / commented / closed
- Filed Yarn berry still drops a
portal:copy whose target has no package.json (e.g. a.gitkeepplaceholder) or whose package.json lacks name/version, so scans succeed and VEX attests not_affected while that copy installs unpatched #1579: Yarn berry still drops aportal:copy whose target has no package.json (e.g. a.gitkeepplaceholder) or whose package.json lacks name/version, so scans succeed and VEX attests not_affected while that copy installs unpatched #1579. The cause islinked_copy_unknown(vendor/yarn_copies.rs:143-163): its plain-dir exemption also applies toportal:, andmanifest_parsedshort-circuits.CopyRef::identity(formats/yarn/copy.rs:73) needs bothnameandversion. - Nothing closed (Yarn berry drops a relative
portal:/link:copy whose target directory is missing (e.g. an uninitialized git submodule), so hosted and vendored scans succeed and VEX attests not_affected while that copy installs unpatched #1561 was already closed by Fix yarn berry missing portal:/link: copies (#1561) #1571).
Ruled out
link:to plain assets (non-empty dir, no manifest) is documented and yarn installs it as a plain link, so it isn't filed.- A root-scan exit 1 with
manifest_not_foundwhen--vexhas nothing to attest (everything skipped to a nested project) is the documented "nothing to attest" exit.
Next
- Yarn berry still drops a
portal:copy whose target has no package.json (e.g. a.gitkeepplaceholder) or whose package.json lacks name/version, so scans succeed and VEX attests not_affected while that copy installs unpatched #1579: re-verify when fixed (.gitkeepportal, nameless and version-less manifests;portal:/link:; hosted, vendored,vex; 4.0.2/4.18.1). Check that alink:to plain assets stays ignored. - A nested independent berry project that the root also reaches through
portal:./tools/x(root lock lists the dep, tools/x has its own install): which copy node resolves, and whether VEX should hold back. - Hosted get/scan from a yarn berry workspace member still pins nothing and exits 0 when the root's workspaces glob uses a regex group (packages/(a|b)), a POSIX class ([[:alpha:]]) or a
..segment #1490 neighbours:[[:upper:]],{1,}quantifiers, a nested worktree member. - Re-verify Vendored yarn berry misses a parent-scoped user
resolutionsentry (pkg-a/left-pad), reports success, and everyyarn install --immutablefails YN0028 #783, Yarn berry hosted rollback/remove report success after a useryarn patchof the pinned package, but leave a lock that everyyarn install --immutablerejects (YN0028); the next install re-pins the Socket tarball #962 and Agent mode misses transitive packages in Yarn's pnpm-linker store whenpnpmStoreFoldermoves it out ofnode_modules: skipped aspackage_not_installed, or refused as "first-party source" #859 when fixes land. - macOS/Windows probes once the stale branches are deleted.
|
[agent] 2026-10-16: Yarn Berry (2+) bug-hunt run Tested: main Harness (run 45): rebuilt the run-44 way: Probes: none (the stale probe branches still need deleting by hand). Re-triage
Cells (Linux, main
|
| Cell | Result |
|---|---|
| Repo berry e2e suites (redirect, vendor, pnpm linker, workspaces; 4.18.1) | pass (37 + 44 + 40 + 39) |
#1579 shapes, hosted + vendored + vex |
pass (fixed) |
portal:/link: copy whose manifest has "name": "", "../x" or " left-pad", with version 1.3.0 (hosted 4.0.2 + 4.18.1; vendored lock-only 4.18.1) |
fail #1598: exit 0 success; in-run, lock-only and post-install VEX attest; node_modules/lp2 installs unpatched (2 real installs) |
file: dir copy with "name": "" (4.18.1, real install from the start ×2) |
fail #1598 |
portal: copy with "version": "" (4.0.2, 4.18.1) |
fail #1598 (same class) |
portal: copy with a valid other name (other-pkg) |
ignored, by design |
#1490 neighbours: workspaces packages/{a,b}, +(a|b), @(a), !(z), [[:lower:]], a{,}, ?; get <uuid> from the member |
pass (redirect_workspace_lockfile_elsewhere, exit 1, nothing written) |
compressionLevel: "${CL:-0}" (quoted and unquoted), enableGlobalCache: "${EGC:-false}"; hosted + vendored + fresh immutable |
pass (the run-31 false refusal is gone) |
Nested independent berry project tools/x that the root also links with portal:./tools/x |
hosted pins the root copy with no warning; tools/x/node_modules/left-pad shadows it at runtime. This is the #1534 design, so it's a known non-bug |
Filed / commented / closed
- Filed Yarn berry treats a
portal:/link:/file:copy whose package.json has an empty or invalidname("" or "../x") as a different package, so scans succeed and VEX attests not_affected while that copy installs unpatched (#1579 follow-up) #1598: Yarn berry treats aportal:/link:/file:copy whose package.json has an empty or invalidname("" or "../x") as a different package, so scans succeed and VEX attests not_affected while that copy installs unpatched (#1579 follow-up) #1598 (follow-up to Yarn berry still drops aportal:copy whose target has no package.json (e.g. a.gitkeepplaceholder) or whose package.json lacks name/version, so scans succeed and VEX attests not_affected while that copy installs unpatched #1579).CopyRef::identity(formats/yarn/copy.rs:84-86) andmanifest_name(formats/yarn/source.rs:131) accept""and invalid npm names as identities. - Nothing closed (Yarn berry still drops a
portal:copy whose target has no package.json (e.g. a.gitkeepplaceholder) or whose package.json lacks name/version, so scans succeed and VEX attests not_affected while that copy installs unpatched #1579 was already closed by Fix yarn portal copies read as no package (#1579) #1586).
Ruled out
- The nested
portal:./tools/xshadow (the Rootscan --mode vendoredexits 1 forever and drops its in-run VEX when a nested independent npm project installs a patched package the root lock doesn't have (hosted mode only warns) #1534 design rewires only the root's locks). compressionLevel: "${CL:-mixed}": yarn 4.18.1 itself fails the fixture install, so it's not testable.
Next
- Yarn berry treats a
portal:/link:/file:copy whose package.json has an empty or invalidname("" or "../x") as a different package, so scans succeed and VEX attests not_affected while that copy installs unpatched (#1579 follow-up) #1598: re-verify when fixed (all the shapes above; hosted, vendored,vex; 4.0.2/4.18.1). Check yarn classic's sharedmanifest_namepath or hand it over. - Re-verify Vendored yarn berry misses a parent-scoped user
resolutionsentry (pkg-a/left-pad), reports success, and everyyarn install --immutablefails YN0028 #783, Yarn berry hosted rollback/remove report success after a useryarn patchof the pinned package, but leave a lock that everyyarn install --immutablerejects (YN0028); the next install re-pins the Socket tarball #962 and Agent mode misses transitive packages in Yarn's pnpm-linker store whenpnpmStoreFoldermoves it out ofnode_modules: skipped aspackage_not_installed, or refused as "first-party source" #859 when fixes land. - Interpolated
npmScopes/pnpmStoreFoldervalues (Yarn berry PnP refusal misses a live Plug'n'Play project whose.yarnrc.ymlsetsnodeLinkerthrough${VAR}interpolation: agent apply exits 0 "not installed" and lock-only vendor passes the PnP gate (regression from #978) #1100/Hosted yarn berry rollback/remove still drops a mirror's::__archiveUrl=binding when the registry comes fromnpmScopes,YARN_NPM_REGISTRY_SERVER,~/.yarnrc.ymlor a parent-dir.yarnrc.yml(#908 fix covers only the project rc's top-level key) #1017 class). - After a vendored-to-hosted takeover is interrupted once its commit journal is written, the next
rollbackreplays the journal, then exits 0 having restored nothing, and the project stays hosted-patched (removesays "No patch found") #1241 replayed-journal rollback re-check on current main. - macOS/Windows probes once the stale branches are deleted.
|
[agent] 2026-10-16: Yarn Berry (2+) bug-hunt run Tested: main Harness: rebuilt as in run 45. The mock gained blob, Probes: none (the stale probe branches still need deleting by hand). Re-triage
Cells (Linux)
Filed / commented / closed
Ruled out
Next
|
|
[agent] 2026-10-17: Yarn Berry (2+) bug-hunt run Tested: main Harness: rebuilt from scratch ( Probes: none. Re-triage
Cells (Linux, main
|
| Cell | Result |
|---|---|
Hosted baseline 4.18.1 (pin, fresh --immutable, patched bytes) |
pass |
packageExtensions adding a dependency to left-pad@*, hosted (fresh --immutable + hardened; extension dep resolvable) |
pass |
Descriptor spellings npm:1.3.0, npm:left-pad@1.3.0, npm:^1.3.0, 1.3.0 || 1.2.0, =1.3.0, v1.3.0, hosted |
pass |
Default catalog: and named catalog:lp (yarn catalogs:), hosted + hardened |
pass |
Named catalog:lp and plain, vendored: fresh --immutable + hardened, vendor --revert byte-exact lock, .socket/ gone |
pass |
First-party workspace packages/left-pad (left-pad@1.3.0) that transparent workspaces resolve the root's left-pad: 1.3.0 and a member's ^1.3.0 to |
pass: hosted redirect_yarn_berry_entry_not_found exit 1; vendored vendor_override_conflict exit 1; agent writes nothing to the workspace; nothing attested |
PR #1605 022189d, #1598 shapes (hosted 4.18.1/4.0.2, vendored 4.18.1) |
pass (fixed) |
Filed / commented / closed
- Nothing filed. I commented on PR Fix yarn copies with invalid manifest names (#1598) #1605 with the correction above.
Ruled out
- Run 46's "PR Fix yarn copies with invalid manifest names (#1598) #1605 doesn't fix Yarn berry treats a
portal:/link:/file:copy whose package.json has an empty or invalidname("" or "../x") as a different package, so scans succeed and VEX attests not_affected while that copy installs unpatched (#1579 follow-up) #1598" finding was a harness error (sharedCARGO_TARGET_DIR). Run 46's PR Restore withdrawn hosted pins upstream during scan #1592 results are still valid, because they show withdrawn-sweep behaviour main doesn't have. - Agent
sources_download_failedon the workspace cell is the mock's missing/patches/blob/route; the run still writes nothing.
Next
- Yarn berry treats a
portal:/link:/file:copy whose package.json has an empty or invalidname("" or "../x") as a different package, so scans succeed and VEX attests not_affected while that copy installs unpatched (#1579 follow-up) #1598: verify on main once PR Fix yarn copies with invalid manifest names (#1598) #1605 merges (same cells, plus lock-only and post-installvex). - Yarn berry reads the wrong
nodeLinkerwhen a${VAR}in.yarnrc.ymlis set from.env.yarn: vendored falsely refuses a node-modules project, and agent misses a live PnP project #1611: re-verify once fixed, addinginjectEnvironmentFilesoverrides andpnpmStoreFolder/npmRegistryServerset from.env.yarn. - Named catalogs on the pnpm linker and in a workspace member;
packageExtensionson vendored. - Re-verify Vendored yarn berry misses a parent-scoped user
resolutionsentry (pkg-a/left-pad), reports success, and everyyarn install --immutablefails YN0028 #783, Yarn berry hosted rollback/remove report success after a useryarn patchof the pinned package, but leave a lock that everyyarn install --immutablerejects (YN0028); the next install re-pins the Socket tarball #962 and Agent mode misses transitive packages in Yarn's pnpm-linker store whenpnpmStoreFoldermoves it out ofnode_modules: skipped aspackage_not_installed, or refused as "first-party source" #859 when fixes land. - macOS/Windows probes once a maintainer deletes the two stale probe branches (and branch deletes are allowed).
|
[agent] 2026-10-17: Yarn Berry (2+) bug-hunt run Tested: main Harness: rebuilt ( Re-triage
Cells (Linux, main
|
| Cell | Result |
|---|---|
Named catalog:lp at the root plus default catalog: in member a, pnpm linker, hosted (pin, fresh --immutable + hardened, both copies patched, post-install vex attests (redirected)) |
pass |
| Same, node-modules linker, hosted | pass |
Same, both linkers: hosted rollback and remove (lock + package.json byte-exact, in-place --immutable ok) |
pass |
Same, both linkers, vendored (fresh --immutable + hardened patched, post-install vex attests, vendor --revert byte-exact) |
pass |
packageExtensions (left-pad@* gains is-number), vendored, 4.0.2 and 4.18.1 (fresh immutable + hardened, --revert byte-exact) |
pass |
Renamed github:stevemao/left-pad#v1.3.0 copy, hosted and vendored |
pass (redirect_copy_unpatched / patched_ref_unattributable, withheld, exit 1) |
Renamed lp2: exec:./gen.js copy of left-pad@1.3.0, hosted and vendored, 4.0.2 and 4.18.1 (4.18.1 run twice) |
fail #1630: exit 0, no warning; in-run and lock-only VEX attest not_affected; the copy installs unpatched; vendored post-install vex attests too |
Filed / commented / closed
- Filed Yarn berry ignores an
exec:copy of the patched package under another dependency name, so hosted and vendored scans succeed and VEX attests not_affected while that copy installs unpatched #1630: Yarn berry ignores anexec:copy of the patched package under another dependency name, so hosted and vendored scans succeed and VEX attests not_affected while that copy installs unpatched #1630
Ruled out
- The pnpm-linker "no patched file found" was my harness's
find, which doesn't follow thenode_modules/left-padsymlink into.store. Both copies were patched. - Zero-install
.yarn/cacheand**/resolutions were already covered (known non-bug and pass), so I didn't re-run them.
Next
- Yarn berry ignores an
exec:copy of the patched package under another dependency name, so hosted and vendored scans succeed and VEX attests not_affected while that copy installs unpatched #1630 neighbours: a same-nameexec:in a member, anexec:building a different package at the same version, non-httpgit remotes, the pnpm linker. - Yarn berry treats a
portal:/link:/file:copy whose package.json has an empty or invalidname("" or "../x") as a different package, so scans succeed and VEX attests not_affected while that copy installs unpatched (#1579 follow-up) #1598: verify on main once PR Fix yarn copies with invalid manifest names (#1598) #1605 merges. - Yarn berry reads the wrong
nodeLinkerwhen a${VAR}in.yarnrc.ymlis set from.env.yarn: vendored falsely refuses a node-modules project, and agent misses a live PnP project #1611: re-verify once fixed (.env.yarnneighbours). - Re-verify Vendored yarn berry misses a parent-scoped user
resolutionsentry (pkg-a/left-pad), reports success, and everyyarn install --immutablefails YN0028 #783, Yarn berry hosted rollback/remove report success after a useryarn patchof the pinned package, but leave a lock that everyyarn install --immutablerejects (YN0028); the next install re-pins the Socket tarball #962 and Agent mode misses transitive packages in Yarn's pnpm-linker store whenpnpmStoreFoldermoves it out ofnode_modules: skipped aspackage_not_installed, or refused as "first-party source" #859 when fixes land. - macOS/Windows probes once the stale branches are deleted.
|
[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] Janitor: ledger drift on main
Please re-verify them on the next run and update the cells. Generated by Claude Code |
|
[agent] 2026-11-27: Yarn Berry (2+) bug-hunt run Tested: main Ledger: the state file was 78 KB. I compacted it to about 6 KB, moved its 99 known-non-bug bullets to Cells (Linux, main
|
| Cell | Result |
|---|---|
| Repo berry e2e suites on 4.19.0, skips forbidden (redirect 7, PnP safety 26, vendor 17, pnpm linker 13, workspaces 11) | pass 74/74 |
Hosted common path on 4.19.0 and 4.0.2: pin, cold --immutable --check-cache patched, in-run and post-install VEX, rollback byte-exact |
pass |
pnpm-linker workspace (root + 2 members, three ranges) on 4.19.0: vendored fresh install, hosted fresh install, agent apply (4 copies incl. .store), rollback |
pass |
| Yarn 2.4.2 / 3.8.7: hosted and vendored refused (cacheKey 7/8), agent apply + rollback | pass (as documented) |
| Patch mirror (new since v5.1.0), 4.19.0 and 4.0.2: mirrored pin, cold install from the mirror, no-op re-scan, rollback byte-exact | pass |
Mirror: catalog: + named catalog in a workspace; trailing-slash and uppercase-host base; 404 or unreachable mirror (redirect_mirror_unavailable, nothing written) |
pass |
Mirror: earlier patch-server pin → redirect_mirror_pin_not_moved; following its remedy (rollback <purl>, re-scan) pins on the mirror |
pass |
Mirror: pin under another base or port → redirect_pin_on_unconfigured_host, nothing changed |
pass (documented) |
Mirrored hosted pin → vendor takeover, fresh install, vendor --revert byte-exact to the original |
pass |
Corrupt .socket/vendor/state.json (#2250): rollback, remove, vendor --revert, --check report vendor_state_unreadable, nothing written |
pass |
Stray MODULE.bazel (empty, or a rules_js bazel_dep only): hosted and vendored unaffected |
pass |
Zero-install .yarn/cache + yarn install --immutable --immutable-cache after a hosted or vendored pin |
YN0056, no warning. Already listed in known-non-bugs as a docs gap, so not filed (see backlog 6) |
Filed / commented / closed
- None.
Ruled out
- "Manifest not found" on hosted rollback: my harness had left out
--patch-server-url(already a known non-bug). - Mirror pins restored without the mirror setting: the mirror shared host:port with my
--patch-server-urlorigin, which owns its whole host. On a separate port it behaves as documented. - An agent
applywith an empty manifest after an earlierrollback: by design (rollback drops the manifest entry).
Next
- Re-run the untested-since-2026-11-11 rows on 4.19.0 (renamed copies, PnP shapes, compressionLevel/CRLF, custom-registry rollback, takeovers).
- Mirror: member
get <uuid>,scan --prune/repair, pnpm linker; the noisy extra warnings next toredirect_mirror_pin_not_moved. report(Addsocket-patch reportto tell Socket that a patch broke something #2193) andvex --grype-config(Add vex --grype-config to list the VEX document in Grype's config #2252) on berry.
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 Yarn Berry (2+) bug-hunt routine (label pm:yarn-berry).
Last run: 2026-11-27 (run 49), main
cfc870f, release v5.1.0, newest yarn 4.19.0 (also tested 4.0.2, 3.8.7, 2.4.2).Compacted in run 49: the per-run matrix rows and the known-non-bug list (runs 1-48) moved out; the old version is in this branch's history (commit before run 49). Open
pm:yarn-berryissues: none (all earlier filings closed by 2026-10-27).Harness (rebuild each run, ~10 min): yarn via
corepack yarn@XwithNODE_USE_ENV_PROXY=1 COREPACK_NPM_REGISTRY=https://registry.npmjs.org(repo.yarnpkg.com is unreachable). A Python mock serves the patch API (/v0/orgs/<org>/patches/{batch,by-package,package,view,blob}), the tarball,/upstream/npm/<uuid>.json(needed by hosted rollback) and any<base>/patch/...path as a mirror. Pass--patch-server-url <mock>to every command, or rollback/remove/list don't see the pin. Put the mirror on a different port from the patch server: the patch-server origin owns its whole host. The checksum comes from a bootstrapresolutions: file:./patched.tgzinstall.patches-api.socket.devis blocked (403).Coverage matrix
Linux only (macOS/Windows probes are off). Versions are yarn releases; date is the last pass. Linker node-modules unless noted.
--immutable --check-cache, vex, rollback byte-exact.store), 2.4.2, 3.8.7 (2026-11-27)SOCKET_PATCH_MIRROR_URL, new since v5.1.0)vendortakeover +--revertbyte-exact: pass 4.19.0 (2026-11-27)catalog:+ named catalog workspace, trailing-slash and host-case base, 404/down mirror →redirect_mirror_unavailablenothing written, earlier patch-server pin →redirect_mirror_pin_not_movedand its remedy works, pin on another base →redirect_pin_on_unconfigured_host(2026-11-27).pnp.cjs,${}linker,.env.yarn)catalog:, member adds, aliasesportal:/link:/file:/exec:/github:)npmScopes/ env registry rollback--revert/--checkreportvendor_state_unreadable, nothing written: pass 4.19.0 (2026-11-27)MODULE.bazel(empty, or rules_js dep without a translate).yarn/cache+yarn install --immutable --immutable-cache-gBacklog
SOCKET_PATCH_YARN_BERRY_VERSION=<new> SOCKET_PATCH_YARN_E2E_REQUIRED=1, five suites, 74 tests) on the next yarn release; 4.19.0 passed 74/74 in run 49.get <uuid>andscan --prune/repairunder a mirror; a mirror pin withSOCKET_PATCH_MIRROR_URLunset on another machine (rollback says only "Manifest not found"; decide if that is friction worth filing); a mirror on the pnpm linker.redirect_mirror_pin_not_movedcomes with two misleading extra warnings (redirect_yarn_berry_unsupported_protocolcalling Socket's own pin anhttp:protocol entry, andredirect_yarn_berry_entry_not_found). Check whether the Bun/vlt siblings do the same before filing.reportcommand (Addsocket-patch reportto tell Socket that a patch broke something #2193) andvex --grype-config(Add vex --grype-config to list the VEX document in Grype's config #2252) on a berry project.--immutable-cacheYN0056 is listed as a docs gap in known-non-bugs (never filed). It breaks Yarn's recommended zero-install CI check silently; a maintainer may want to reconsider. Don't file it unless that line is removed.npm_translate_lockreading a lock), only if rules_js can read a berry lock at all.Known non-bugs
Full list:
known-non-bugs/yarn-berry.md(search it withgit grep). The ones most likely to be re-filed:.pnp.cjsare refused in every mode withyarn_pnp_unsupported.patch.socket.dev,--patch-server-urlor the mirror base as hosted pins; a mock host without the flag reads as "Manifest not found".rollbackdrops the agent manifest entry, so a laterapplyis a no-op.scanmode is hosted; pass--mode agentfor the manifest flow.not_applied(correct).SOCKET_PATCH_MIRROR_URL(HTTP://) is a usage error (exit 2); an uppercase host works.yarn.lockis refused by both modes (*_mixed_line_endings).compressionLevel: mixed/ non-zero is refused (*_cache_unsupported)..yarn/cache: hosted is lock-only and the cache entry is replaced on install (documented).All reactions