Repository navigation
Bug hunt ledger: Yarn Berry (2+) #305
Replies: 66 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-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.
|
[agent] 2026-11-29: Yarn Berry (2+) bug-hunt run Tested: main Harness note: Cells (Linux, main
|
| Cell | Result |
|---|---|
Repo berry suites on 4.19.0 with SOCKET_PATCH_YARN_BERRY_EOL=crlf, skips forbidden (redirect 7, PnP safety 26, vendor 17, pnpm linker 13, workspaces 11) |
pass 74/74 |
Hosted common path 4.19.0: pin, cold --immutable --check-cache patched, vex, rollback byte-exact |
pass |
compressionLevel shapes: "0", '0', ${LVL:-0}, 0 # c, extra spaces pin; mixed (cacheKey 10) and 9 (10c9) refused, nothing written |
pass |
Lock churn after a pin (yarn add, yarn up), then rollback + --immutable |
pass |
Workspace (root + 2 members, 1.3.0/^1.3.0/~1.3.0 on one entry, workspace:^), enableImmutableInstalls: true, fresh install and yarn workspaces focus a |
pass |
Scoped package (@isaacs/string-locale-compare) under npmScopes with token + npmAlwaysAuth: pin, fresh install, no Authorization to the patch host, vex, rollback byte-exact |
pass |
| Real PnP project on 4.19.0, hosted scan | refused (yarn_pnp_unsupported), nothing written: pass |
Takeovers by hand: hosted→vendored (fresh install, vex, vendor --revert byte-exact to registry) and vendored→hosted (redirect_takeover_reverted_vendored, fresh install, rollback byte-exact) |
pass |
mode_migration_npm berry legs |
blocked: the test's own reqwest client rejects the sandbox proxy CA |
report by name, purl and uuid on a hosted berry project; unknown name → patch_not_found |
pass |
vex --grype-config |
pass (writes .grype.yaml listing the document) |
Mirror: earlier patch-server pin + SOCKET_PATCH_MIRROR_URL run (4.19.0 node-modules and pnpm linker, 4.0.2) |
fail: #2369 (two false warnings beside redirect_mirror_pin_not_moved) |
| Mirror pin, rollback with the mirror unset | "No patches in this project": documented (CLI_CONTRACT, What every command reads); not filed |
Filed / commented / closed
- Filed Hosted yarn berry run with --patch-mirror-url calls an earlier patch-server pin a user
http:dependency the redirect "cannot own" #2369: hosted yarn berry run with--patch-mirror-urlreports an earlier patch-server pin as anhttp:dependency the redirect "cannot own" (redirect_yarn_berry_unsupported_protocol+redirect_yarn_berry_entry_not_found) next to the correctredirect_mirror_pin_not_moved. Berry counterpart of the Bun issue 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, whose fix (Fix Bun pins on the patch server under a patch mirror (#2279) #2282) only covers Bun. Friction; nothing is written and VEX is right.
Ruled out
- A 4.19.0 lock installed with yarn 4.0.2
--immutablefails YN0028 (lockfileversion: 10→8). The unpatched lock fails the same way, so it's yarn, not socket-patch. vex -o filesets--org, not the output (-O). Not a bug.- Mock artifacts on my side: the mirror check needs HEAD on the mirror (501 →
redirect_mirror_unavailable), and a scoped purl must be served aspkg:npm/@scope/..., not%40.
Next
- Re-check Hosted yarn berry run with --patch-mirror-url calls an earlier patch-server pin a user
http:dependency the redirect "cannot own" #2369 once a fix lands (and whether Fix Bun pins on the patch server under a patch mirror (#2279) #2282's shape is extended to berry). - Renamed copies (
portal:/link:/file:/exec:/github:) and custom-registry rollback on 4.19.0. - Mirror: member
get <uuid>,scan --prune/repairunder a mirror.
|
[agent] 2026-12-01: Yarn Berry (2+) bug-hunt run Tested: main Re-triage: #2369 still reproduces on Cells (Linux, main
|
| Cell | Result |
|---|---|
Repo berry suites, 4.19.0, SOCKET_PATCH_YARN_E2E_REQUIRED=1 (redirect 7, PnP safety 26, vendor 17, pnpm linker 13, workspaces 11) |
pass 74/74 |
Hosted common path, 2 packages (left-pad + ms), 4.19.0 and 4.0.2: pin, cold --immutable --check-cache installs patched bytes, rollback byte-exact |
pass |
pinChanged: fresh pin true (dry and wet), re-run false, sibling patch added later (false for the old pin, true for the new one), UUID update true, get <uuid> true then false, 4.19.0 and 4.0.2 |
pass |
pinChanged workspace (root ^1.3.0, member 1.3.0, member pinned at unpatched 1.2.0), then fresh install and rollback byte-exact |
pass |
pinChanged under a mirror (fresh pin, re-run) |
pass |
Member yarn add left-pad@^1.3.0 after the pin → re-scan pins the new descriptor (rewrites package.json + yarn.lock, which fixes the unpatched copy) but reports pinChanged: false |
fail: #2415 (4.19.0 and 4.0.2) |
Mirror pin: repair → redirect_only_project; scan --mode hosted --prune → redirect_prune_ignored; lock and package.json byte-identical |
pass |
Filed / commented / closed
- Filed Hosted yarn berry re-scan reports pinChanged: false after pinning a newly added workspace descriptor onto an existing pin #2415 (Hosted yarn berry re-scan reports pinChanged: false after pinning a newly added workspace descriptor onto an existing pin #2415):
pinChangedisfalsewhen a re-scan merges a newly added workspace descriptor into an existing hosted pin.PatchedRefrecords no descriptors, and the comparison chainsrefswithshadowed, so the move from shadowed to fully pinned compares equal. The field is unreleased, so this isn't a regression. Commented that it also reproduces on 4.0.2.
Ruled out
- Rollback
hosted_restore_refused("upstream checksum metadata has invalid SHA-512 integrity"): my mock served a fakeintegrity. With the real registry integrity, rollback is byte-exact. scan --prunewithout--moderan a non-hosted flow on a lockfile-only checkout ("not installed").--mode hosted --prunegives the documented warning. Not filed.
Next
- Re-check Hosted yarn berry run with --patch-mirror-url calls an earlier patch-server pin a user
http:dependency the redirect "cannot own" #2369 and Hosted yarn berry re-scan reports pinChanged: false after pinning a newly added workspace descriptor onto an existing pin #2415 once fixes land. pinChangedon the pnpm linker, and when a user deletes theresolutionskey while the lock pin stays.- Renamed copies and custom-registry rollback on 4.19.0.
|
[agent] 2026-12-03: Yarn Berry (2+) bug-hunt run Tested: main Re-triage: #2415 still reproduces on v5.2.0 (now released). I commented: #2415 (comment). #2369 has no fix commit since the last run. Not re-run. Cells (Linux, v5.2.0)
Filed / commented / closed
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 Yarn Berry (2+) bug-hunt routine (label pm:yarn-berry).
Last run: 2026-12-03 (run 52), main
d987721= release v5.2.0, newest yarn 4.19.0 (also tested 3.8.7).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: #2369 (mirror warnings, filed run 50; no fix as of v5.2.0), #2415 (pinChangedfalse on a newly added descriptor, filed run 51; still reproduces on v5.2.0, commented run 52).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 bootstrapfile:./patched.tgzinstall. The mock must answer HEAD on the mirror and serve scoped purls aspkg:npm/@scope/…. SetYARN_UNSAFE_HTTP_WHITELIST=127.0.0.1.patches-api.socket.devis blocked (403). Vendored:vendoris service-only now (a hand-staged.socket/+--offlinefailsvendor_service_offline_conflict), so pin hosted first and runvendor --patch-server-url <mock>; it downloads the hosted tarball.mode_migration_npmberry legs can't run here (their reqwest client rejects the proxy CA).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.storepruning, not-on-disk) (2026-12-03); 2.4.2 (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 (but two false warnings beside it: fail #2369, 2026-11-29), pin on another base →redirect_pin_on_unconfigured_host(2026-11-27);repair(redirect_only_project) andscan --mode hosted --prune(redirect_prune_ignored) leave the mirror pin byte-identical (2026-12-01).pnp.cjs,${}linker,.env.yarn)yarn_pnp_unsupported(2026-11-29)catalog:, member adds, aliasesenableImmutableInstalls+workspaces focus(2026-11-29)portal:/link:/file:/exec:/github:)npmScopes/ env registry rollbacknpmScopestoken +npmAlwaysAuth: no auth to patch host, rollback byte-exact, 4.19.0 (2026-11-29); custom-registry rollback untested.yarnrc.yml+mixedrefused (2026-12-03)${}/comment pass,mixed/9refused, 4.19.0; CRLF e2e (2026-11-29); BOM.yarnrc.ymlpin/install/rollback pass (2026-12-03)--revertbyte-exact, 4.19.0 (2026-11-29)--revert/--checkreportvendor_state_unreadable, nothing written: pass 4.19.0 (2026-11-27)MODULE.bazel(empty, or rules_js dep without a translate)https://u:tok@…?auth_token=descriptor redacted in the vendored error: pass 4.19.0 (2026-12-03)unsupported_protocolwarning: pass 4.19.0 (2026-12-03).yarn/cache+yarn install --immutable --immutable-cacheyarn add/yarn up) → rollbackdetails.pinChanged(new since v5.1.0, #2307)get <uuid>, dry run, workspace, mirror: pass 4.19.0 + 4.0.2 (2026-12-01); member adds a new range onto a pin → false: fail #2415report,vex --grype-config-gBacklog
http:dependency the redirect "cannot own" #2369 and Hosted yarn berry re-scan reports pinChanged: false after pinning a newly added workspace descriptor onto an existing pin #2415 when fixes land.SOCKET_PATCH_YARN_BERRY_VERSION=<new> SOCKET_PATCH_YARN_E2E_REQUIRED=1, plusSOCKET_PATCH_YARN_BERRY_EOL=crlf).portal:/link:/exec:/github:), custom-registry (npmRegistryServer) rollback by hand, SIGKILL during hosted scan and vendor.get <uuid>.--immutable-cacheYN0056 is a docs gap in known-non-bugs (never filed). Don't file it unless that line is removed.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, or a mirror pin withSOCKET_PATCH_MIRROR_URLunset, reads as "Manifest not found" / "No patches in this project" (documented).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.resolutionswith the lock pin kept →redirect_yarn_berry_resolutions_conflict(correct refusal, run 52). Same-namehttps:/file:copy →shared_descriptor(fail-closed).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