|
| 1 | +[agent] 2026-11-18: Bundler (RubyGems) bug-hunt run |
| 2 | + |
| 3 | +**Tested:** main `89c482d` (5.1.0; same SHA as the last run, so the run went to the backlog). Linux. Ruby 3.3.6 with Bundler 4.0.18 and 2.5.22. Newest Bundler is still 4.1.0. |
| 4 | + |
| 5 | +**Harness:** the Python mock of the patch API and registry (14 gems for the Rails 8 app), restarted on the same port with new uuids for superseding patches; `scan --mode agent` through it. |
| 6 | + |
| 7 | +**Re-triage:** main has not moved since the last run re-checked #2086 (still reproduces) and #2087 (claimed), so neither was re-run and nothing was commented. |
| 8 | + |
| 9 | +**Cells** |
| 10 | + |
| 11 | +| Cell | Result | |
| 12 | +| --- | --- | |
| 13 | +| Rails 8.0 app (113 gems), hosted, lock written by Bundler 2.5.22 (no `CHECKSUMS`): 12 of 14 wired, frozen install, app, deployment clone without dev/test, `vex` (12), `outdated`, `update --all`, Gemfile moved to `~> 8.1.0` and `bundle update rails` under the pins, rollback, `pristine` | pass: pair byte-exact; nokogiri and thruster refused as documented | |
| 14 | +| Same app, vendored, 4.0.18: 5 of 14 vendored, frozen install, app, deployment clone, `vex` (5), `bundle clean` as the remedy for the stale-copy warning, `update --all`, rollback | pass: pair byte-exact (the 9 refusals are #2091) | |
| 15 | +| Hosted, shared gem home, two projects on the same gems: `SOCKET_GEM_REFRESH_SHARED=1`, the second project's `pristine`, `remove` of one gem with `--gem-refresh-shared`, the other project's `scan` and `vex` | pass, as documented: the other project's `vex` omits the swapped copy and its re-scan names the remedy | |
| 16 | +| Agent, shared gem home, two projects with their own records (rack, and a C patch to puma 8.1.2): second apply is "already patched", either project rolls back first, `apply --check`, `vex`, re-apply, `pristine` | pass: gem home byte-exact after the last rollback | |
| 17 | +| Hosted, then vendored (puma stays hosted), then `remove <purl>`, `vendor --revert`, `rollback --offline` followed by its `rm -f … && bundle install` remedy and an online rollback | pass: frozen install, `pristine`, pair byte-exact at the end | |
| 18 | +| Mixed hosted + vendored project, superseding patches for both halves: `scan` (refused, asks for `--mode`), `--mode vendored`, `--mode hosted`, `vex`, rollback | pass | |
| 19 | +| Hosted gem whose patch was superseded, `scan --mode vendored` (4.0.18 and 2.5.22) | **fail #2129** | |
| 20 | + |
| 21 | +**Filed** |
| 22 | +- https://github.com/SocketDev/socket-patch/issues/2129: once a newer patch is published for a gem on a hosted patch, `scan --mode vendored` fails with "no installed package found on disk" (exit 1) though the gem is installed and `--dry-run` previews success. A lock-only checkout vendors it, and so does a hosted re-scan first. The gem form of #1105 / #1713. Suspect `vendor.rs:4351`. |
| 23 | + |
| 24 | +**Commented / closed:** nothing. |
| 25 | + |
| 26 | +**Ruled out** |
| 27 | +- A second project's `bundle pristine` removing gems from a shared gem home after `--gem-refresh-shared`: documented ("its `bundle pristine` fails on the checksum until it is patched as well"). |
| 28 | +- `vendor --revert` on a hosted + vendored project leaving the hosted gem pinned: it reverts vendored gems only. |
| 29 | +- `rollback --offline` not restoring a hosted pin: refused with the `git checkout` remedy; the vendored half is reverted and the pair still installs. |
| 30 | + |
| 31 | +**Blocked:** Ruby 3.4 and 4.0 are untested. The sandbox has 3.1 to 3.3, `rbenv install` cannot reach cache.ruby-lang.org, and prebuilt downloads were denied. |
0 commit comments