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 fd52ab3
Browse filesBrowse the repository at this point in the historyBrowse files
[agent] 2026-12-06: Yarn classic (1.x) bug-hunt run
2
+
3
+
Run 51. Tested main `cd7c5c5` (v5.2.0 plus 2 commits, both for RubyGems platform gems; the `vex.rs` change only touches gem copies) on Linux with Node 22.23.5 and yarn 1.6.0 (via `yarn-path`), 1.7.0, 1.9.4 and 1.22.22. Yarn 1.22.22 is still the newest 1.x. I rebuilt the local mock patch API (known-non-bugs "Run-51 harness"). No new issues filed.
4
+
5
+
**Commented:**#2511 (https://github.com/SocketDev/socket-patch/issues/2511#issuecomment-7460171232). It still reproduces on `cd7c5c5`, and it also reproduces when the old yarn comes from `.yarnrc``yarn-path ".yarn/releases/yarn-1.6.0.js"` under a global 1.22.22: the vendored scan says `success` with no old-yarn warning, the fresh frozen install exits 0 with no `node_modules/left-pad`, and `vex` attests `not_affected`. Hosted and agent pass on the same project. The issue had listed `yarn-path` only as "possibly" a usable signal.
6
+
7
+
**Re-triage:**#2341 still reproduces on `cd7c5c5` (standalone `vex` exits 2 with "No patches in this project … Run `socket-patch scan` first" after a hosted scan of a workspace with a member `file:` copy). No new information, so no comment. #691 is `agent:needs-human`, skipped.
-`resolutions` + workspaces (members on `~1.1.0` and `^1.2.0` forced to 1.3.0), H/V/A on 1.7.0, 1.9.4 and 1.22.22: pass. Hosted rollback on 1.7 / 1.9 adds an `integrity` line (known class).
12
+
- Mode switch H→V→A→H→rollback on 1.7.0 and 1.9.4 (lock without `integrity`): pass; agent after vendored keeps vendored ownership.
13
+
-`get <uuid> --mode hosted|vendored|agent` on a CRLF workspace lock (sibling on `~1.1.0`), 1.22.22, plus vendored on 1.7.0: pass, CRLF kept, sibling untouched, rollback byte-for-byte.
14
+
-`yarn-path` → 1.6.0: H/A pass, V = #2511.
15
+
- devDependency + `--frozen-lockfile --production` after a scan, H/V/A: pass (exit 0, left-pad skipped).
16
+
-`yarn check`, `--integrity`, `--verify-tree` after a scan, H/V/A on 1.22.22 and ws 1.9.4: pass.
17
+
18
+
**Ruled out:** a harness artifact. Without a `.gitignore`, the fresh clones carried the committed `node_modules`, so yarn 1.6 (which installs nothing) looked like it installed an unpatched copy. Re-run with `node_modules/` ignored, it matches #2511 exactly.
19
+
20
+
**Next:** a #2511 fix check (incl. `yarn-path`), member-level rc / `engines.yarn`, nested `resolutions` paths, `--check-files` / `--force` after an agent apply.
- Run-50 harness (2026-12-04): `scratchpad/bin/mkfx.py <fx>` + `mock.py <fx> 18080`. **Strip the query string**: scan posts `patches/batch?capabilities=file-modes`, so an exact path match 404s (`api_batch_failed`). It also needs a `patches/blob/<hash>` route serving the original file, or agent rollback fails `missing_blob`, and a 200 for `telemetry`. `cp.sh` (shapes single / ws / wscrlf / crlf / bom / alias / aliasboth / aliascrlf / aliasws) passes `--patch-server-url` to vex and rollback too. `old.sh` is the #2511 repro.
154
154
- Vendored VEX product `@id` in a `git clone` names the clone's `origin` (the source path), not the clone dir: by design, the git remote origin is the highest-priority product id (`vex/product.rs:67`).
155
155
- Hosted `vex` with an `npm:` alias copy beside the pin exits 2 with `patched_ref_unattributable` and attests nothing: that's the documented alias skip, not a new bug.
156
+
- Run-51 harness (2026-12-06): `scratchpad/bin/mock.py <left-pad tgz> 18080` (one self-contained file: batch / by-package / view with `blobContent` / `patches/package` grant with sha512+sha1 / hosted tgz / `blob/<hash>` / telemetry; query strings stripped), `cp.sh <mode> <yarnver> <shape>` (shapes: single / wsres / ypath / dev), `ms.sh` (mode switch), `get.sh` (get uuid on CRLF ws). **Write `.gitignore` with `node_modules/` before the first commit**, or the fresh clones carry the committed install and old yarns (which install nothing) look like "unpatched copy installed".
Copy file name to clipboardExpand all lines: state/yarn-classic.md
+14-10Lines changed: 14 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,24 @@
1
1
[agent] Progress ledger for the scheduled Yarn classic (1.x) bug-hunt routine (label pm:yarn-classic).
2
2
3
-
Last run: 2026-12-04 (run 50), main `d987721` (= tag v5.2.0), release v5.2.0, newest yarn classic 1.22.22 (no 1.x release since). Open `pm:yarn-classic` issues: #2511 (new: vendored on yarn ≤ 1.6), #2341 (still reproduces on `d987721`), #691 (`agent:needs-human`).
3
+
Last run: 2026-12-06 (run 51), main `cd7c5c5` (v5.2.0 + 2 gem-only commits), release v5.2.0, newest yarn classic 1.22.22 (no 1.x release since). Open `pm:yarn-classic` issues: #2511 (also via `.yarnrc yarn-path`, commented 2026-12-06), #2341 (still reproduces on `cd7c5c5`), #691 (`agent:needs-human`).
4
4
5
5
## Coverage matrix
6
6
7
-
H = hosted (`scan --mode hosted`), V = vendored (`scan --mode vendored`), A = agent (`scan --mode agent`, then `apply` after each fresh install; `setup` was removed in v5). Every cell runs: install, scan, fresh-checkout `yarn install --frozen-lockfile` on a cold cache, patched bytes loaded, `vex -O` attests `not_affected` naming `pkg:npm/left-pad@1.3.0`, `rollback`, then another fresh frozen install (unpatched). Local mock patch API (see known-non-bugs "Run-50 harness"). Linux only (probe workflows are switched off). CI's `yarn-classic-matrix` (1.0.2, 1.6.0, 1.7.0, 1.9.4, 1.10.1, 1.22.22) is green on the 2026-11-25 and 11-26 nightlies.
7
+
H = hosted (`scan --mode hosted`), V = vendored (`scan --mode vendored`), A = agent (`scan --mode agent`, then `apply` after each fresh install; `setup` was removed in v5). Every cell runs: install, scan, fresh-checkout `yarn install --frozen-lockfile` on a cold cache, patched bytes loaded, `vex -O` attests `not_affected` naming `pkg:npm/left-pad@1.3.0`, `rollback`, then another fresh frozen install (unpatched). Local mock patch API (see known-non-bugs "Run-51 harness"). Linux only (probe workflows are switched off). CI's `yarn-classic-matrix` (1.0.2, 1.6.0, 1.7.0, 1.9.4, 1.10.1, 1.22.22) is green on the 2026-11-25 and 11-26 nightlies.
@@ -28,11 +32,11 @@ H = hosted (`scan --mode hosted`), V = vendored (`scan --mode vendored`), A = ag
28
32
29
33
## Backlog
30
34
31
-
1.#2511 follow-up: if fixed, check the warning/refusal fires for `packageManager: yarn@1.0`–`1.6.x` and stays silent on 1.7.0+, and that hosted mode is still offered.
32
-
2.`.yarnrc``yarn-path`pointing at an old yarn 1.x with vendored wiring (another way the yarn version is knowable; #2511 context).
33
-
3.`resolutions` + workspaces on 1.7.0 / 1.9.4 (resolutions only covered single-project so far).
34
-
4.Mode switch H→V→A on 1.7.0 / 1.9.4 (a lock without `integrity`).
35
-
5.`get <uuid> --mode hosted` /`--mode vendored` on a workspace with CRLF.
35
+
1.#2511 follow-up: if fixed, check the warning/refusal fires for `packageManager: yarn@1.0`–`1.6.x` and for `.yarnrc yarn-path` → a 1.0–1.6 release file, stays silent on 1.7.0+, and that hosted mode is still offered.
36
+
2.`engines.yarn` / `.yarnrc yarn-path`in a workspace member (does the vendored wiring respect a member-level rc?).
37
+
3.Re-run the CRLF / BOM, `npm:` alias and offline-mirror cells on main once a yarn-touching commit lands (all last passed 2026-12-04 on v5.2.0).
38
+
4.`resolutions` with a nested path (`"**/left-pad"`, `"a/left-pad"`) on 1.7.0 / 1.22.22.
39
+
5.`yarn install --check-files` and`--force` after an agent `apply` (does yarn restore unpatched bytes; does `apply` re-patch).
36
40
6.`vex --grype-config` with a yarn project (needs grype; generic, low priority).
37
41
7.#691 (`agent:needs-human`): leave it alone unless a maintainer comments.
0 commit comments