Skip to content

Commit 7b54843

Browse files
committed
yarn-berry: run 47 ledger
1 parent c6c19ef commit 7b54843

2 files changed

Lines changed: 43 additions & 3 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
[agent] 2026-10-17: Yarn Berry (2+) bug-hunt run
2+
3+
**Tested:** main `657fce2` (unchanged; release 5.0.1 is still the latest tag) and PR #1605 head `022189d`, with yarn 4.0.2 and 4.18.1 from `@yarnpkg/cli-dist` on Node 22, Linux.
4+
5+
**Harness:** rebuilt from scratch (`/home/user/bh`): `bin/yarn` (`YV=418|402`, proxy CA env), `h/mock.py <pk> 8790` (batch, by-package, package, view with real git-blob sha256 hashes, tarball; `cfg.json` `ck`/`status`), `h/copycell.sh` (#1598 copies), `h/ext.sh` (`DEP`, `EXTRA_RC`, `MODE`; scan, then a fresh `--immutable` and hardened install) and `h/ws.sh` (a first-party workspace named like the target). **Build each PR head with its own `CARGO_TARGET_DIR`.** Run 46 shared one target dir, so its "PR #1605" binary was really main.
6+
7+
**Probes:** none. `git push --delete` of the stale probe branches is still denied by the session permission policy.
8+
9+
### Re-triage
10+
- PR #1605 / #1598: **correction.** With a properly separate build, PR head `022189d` fixes every #1598 shape. `""`, `../x`, `" left-pad"` (`link:`) and `version: ""` now give `redirect_copy_unpatched` and `vex_omitted` with exit 1 (hosted 4.18.1 and 4.0.2). Vendored `""` gives `vendor_copy_unpatched` + `patched_ref_unattributable` and no statement. Main still fails, so #1598 stays open until the PR merges. Correction posted: https://github.com/SocketDev/socket-patch/pull/1605#issuecomment-6228979479
11+
- #1611, #962, #859, #783: no fix has landed, so I didn't re-run them. Code check: every berry `${…}` expansion (`YarnEnv::var`, `crawlers/pkg_managers.rs`) reads only the process env, and nothing reads `.env.yarn`. So `.env.yarn`-driven `pnpmStoreFolder` / `npmRegistryServer` / `compressionLevel` cells are the same root cause as #1611, not new bugs.
12+
13+
### Cells (Linux, main `657fce2`)
14+
| Cell | Result |
15+
| --- | --- |
16+
| Hosted baseline 4.18.1 (pin, fresh `--immutable`, patched bytes) | pass |
17+
| `packageExtensions` adding a dependency to `left-pad@*`, hosted (fresh `--immutable` + hardened; extension dep resolvable) | pass |
18+
| 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 |
19+
| Default `catalog:` and named `catalog:lp` (yarn `catalogs:`), hosted + hardened | pass |
20+
| Named `catalog:lp` and plain, vendored: fresh `--immutable` + hardened, `vendor --revert` byte-exact lock, `.socket/` gone | pass |
21+
| 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 |
22+
| PR #1605 `022189d`, #1598 shapes (hosted 4.18.1/4.0.2, vendored 4.18.1) | pass (fixed) |
23+
24+
### Filed / commented / closed
25+
- Nothing filed. I commented on PR #1605 with the correction above.
26+
27+
### Ruled out
28+
- Run 46's "PR #1605 doesn't fix #1598" finding was a harness error (shared `CARGO_TARGET_DIR`). Run 46's PR #1592 results are still valid, because they show withdrawn-sweep behaviour main doesn't have.
29+
- Agent `sources_download_failed` on the workspace cell is the mock's missing `/patches/blob/` route; the run still writes nothing.
30+
31+
### Next
32+
1. #1598: verify on main once PR #1605 merges (same cells, plus lock-only and post-install `vex`).
33+
2. #1611: re-verify once fixed, adding `injectEnvironmentFiles` overrides and `pnpmStoreFolder` / `npmRegistryServer` set from `.env.yarn`.
34+
3. Named catalogs on the pnpm linker and in a workspace member; `packageExtensions` on vendored.
35+
4. Re-verify #783, #962 and #859 when fixes land.
36+
5. macOS/Windows probes once a maintainer deletes the two stale probe branches (and branch deletes are allowed).

0 commit comments

Comments
 (0)