Repository navigation
Bug hunt ledger: Bundler (RubyGems) #316
Replies: 103 comments
|
[agent] 2026-09-30: Bundler (RubyGems) bug-hunt run This is the first run, so the ledger started empty and there were no Tested: main Setup: the sandbox can't reach the Socket patch API. I used a temporary, uncommitted copy of Cells
Issues
False positives ruled out
Next
|
|
[agent] 2026-09-30: Bundler (RubyGems) bug-hunt run Tested: main Setup: a temporary, uncommitted copy of Cells
Issues
False positives ruled out
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 Bundler (RubyGems) puts global installs: What to check (prove each with a real global install, not by reading source):
Add OS × Bundler (RubyGems) version cells for |
|
[agent] 2026-10-01: Bundler (RubyGems) bug-hunt run Tested: main Setup: for agent and Re-triage
Cells (global mode, maintainer checklist)Probe run: https://github.com/SocketDev/socket-patch/actions/runs/36816092864 (ubuntu, macos and windows × Ruby 2.7 / 3.3 / 3.4).
Other cells
Issues
False positives ruled out
Blocked
Next
|
|
[agent] 2026-10-01: handover from the Composer bug-hunt routine (lead, unverified for gem) While I was confirming #438 (Composer, Windows), the root cause turned out to be Composer evidence: #438 and the probe run https://github.com/SocketDev/socket-patch/actions/runs/36827949605 |
|
[agent] 2026-10-01: Bundler (RubyGems) bug-hunt run Tested: main Setup: a hold-open copy of Re-triage
Cells
Issues
False positives ruled out
Blocked
Next
|
|
[agent] 2026-10-01: Bundler (RubyGems) bug-hunt run Tested: main Setup: a copy of Re-triage
Cells
Issues
False positives ruled out
Next
|
|
[agent] 2026-10-02: Bundler (RubyGems) bug-hunt run Tested: main Setup: uncommitted probe tests added to a copy of Re-triage
Cells
Issues
False positives ruled out
Next
|
|
[agent] 2026-10-02: Bundler (RubyGems) bug-hunt run Tested: main Setup: uncommitted probes in copies of Re-triage
Cells
Issues
False positives ruled out
Next
|
|
[agent] 2026-10-02: Bundler (RubyGems) bug-hunt run Tested: main Setup: uncommitted probe tests in a copy of Re-triage
Cells
Issues
False positives 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: Bundler (RubyGems) bug-hunt run Tested: main Setup: a ~30-line Python mock of the patch API serving Re-triage
Cells
Issues
False positives ruled out
Probe branches
Next
|
|
[agent] 2026-10-03: Bundler (RubyGems) bug-hunt run Tested: main Setup: a temporary Re-triage
Cells
Issues
False positives ruled out
Next
|
|
[agent] 2026-11-15: Bundler (RubyGems) bug-hunt run Tested: main Harness: a Re-triage: main has not moved, so nothing to re-check. #1109 is Cells
Filed
Commented / closed: nothing. Ruled out
|
|
[agent] 2026-11-16: Bundler (RubyGems) bug-hunt run Tested: main Harness: the standalone Python mock again, with real Re-triage: main has not moved, so nothing to re-check. #1109 is Cells
Filed
Commented / closed: nothing. Ruled out
|
|
[agent] 2026-11-16: Bundler (RubyGems) bug-hunt run Tested: main Harness: the standalone Python mock, rebuilt from the state file's notes, with Re-triage: main has not moved, so nothing to re-check. #1109 is Cells
Filed
Commented / closed: nothing. Ruled out
|
|
[agent] 2026-11-17: Bundler (RubyGems) bug-hunt run Tested: main Harness: no mock this run. Agent records were written by hand ( Re-triage: not done. #2083 and #2086 (the two oldest without Cells (agent mode,
Filed
Commented / closed: nothing. Found, not filed (3-issue cap; first backlog item after re-triage)
Ruled out
|
|
[agent] 2026-11-17: Bundler (RubyGems) bug-hunt run Tested: main Harness: the standalone Python mock rebuilt from the state file's notes ( Re-triage (the two oldest without
Cells
Filed
Commented / closed: nothing. Ruled out
|
|
[agent] 2026-11-18: Bundler (RubyGems) bug-hunt run Tested: main Harness: a Python mock of the patch API and the patch registry (13 gems), plus Re-triage
Cells
Filed
Commented / closed: nothing. Ruled out
|
|
[agent] 2026-11-18: Bundler (RubyGems) bug-hunt run Tested: main 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; 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. Cells
Filed
Commented / closed: nothing. Ruled out
Blocked: Ruby 3.4 and 4.0 are untested. The sandbox has 3.1 to 3.3, |
|
[agent] 2026-11-19: Bundler (RubyGems) bug-hunt run Tested: main Harness: a Python mock of the patch API and the patch registry (rack 2.2.8 / 2.2.25, puma, rack-test, base64, json), plus a second compact index standing in for a private gem server. Re-triage
Cells
Filed
Commented / closed: nothing. Ruled out
Blocked: Ruby 3.4 and 4.0 are still untested (no such Ruby in the sandbox). |
|
[agent] 2026-11-19: Bundler (RubyGems) bug-hunt run Tested: main Harness: a Python mock of the patch API and the patch registry (rack 2.2.8, puma 6.4.3, rack-test 2.1.0, base64 0.2.0, json 2.7.2), plus a compact index standing in for a private gem server ( Re-triage: main has not moved since the last run re-checked #2086 and #2106 (both still reproduce), so neither was re-run and nothing was commented. Cells
Filed
Commented / closed: nothing. Ruled out
Blocked: Ruby 3.4 and 4.0 are still untested (no such Ruby in the sandbox). |
|
[agent] 2026-11-20: Bundler (RubyGems) bug-hunt run Tested: main Harness: the repo's own stand-in for the patch service, Re-triage
Cells (all on a precompiled nokogiri unless noted)
Filed
Commented / closed: one comment on #2174 ( Ruled out
Blocked: agent mode beside a platform gem (needs hand-written blobs; next run). Ruby 3.4 / 4.0 and JRuby: none in the sandbox. |
|
[agent] 2026-11-20: Bundler (RubyGems) bug-hunt run Tested: main Harness: one loopback server in front of several instances of the repo's stand-in ( Re-triage: main had not moved since the last run re-checked #2152, and no commit touches #2106, so neither was re-run and nothing was commented. Cells (precompiled platform gems, backlog item 1)
Filed
Commented / closed: nothing. Ruled out
Blocked: #2174's fix on |
|
[agent] 2026-11-24: Bundler (RubyGems) bug-hunt run Tested: main Harness: one loopback server in front of five instances of the repo's stand-in ( Re-triage
Cells
Filed
Commented / closed: nothing. Ruled out
Blocked: #2106 (argon2) and #2185 (a gem with no |
|
[agent] 2026-11-24: Bundler (RubyGems) bug-hunt run Tested: main Harness: one loopback server in front of five instances of the repo's stand-in ( Re-triage: main has not moved since this morning's run re-checked #2182 and #2214, so neither was re-run. #1109 carries Cells
Filed
Commented / closed: nothing. Ruled out (added to
Blocked: |
|
[agent] 2026-11-25: Bundler (RubyGems) bug-hunt run Tested: main Harness: one loopback server in front of four instances of the repo's stand-in ( Re-triage
Cells
Filed
Commented / closed: nothing. Ruled out (added to
Blocked / not reached: #2210 (needs a Bazel workspace), #2220, |
|
[agent] 2026-11-25: Bundler (RubyGems) bug-hunt run Tested: main Harness: one loopback server in front of five instances of the repo's stand-in ( Re-triage: main has not moved since this morning's run, which re-checked #2219 and filed #2230 and #2231 on this SHA, so nothing was re-run. #1109 carries Cells
Filed
Commented / closed: nothing. Ruled out (added to
Blocked / not reached: #2210 (needs a Bazel workspace), #2220 and |
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 Bundler (RubyGems) bug-hunt routine (label pm:bundler).
Last run: 2026-11-25, main
e685fb1, release 5.1.0, newest Bundler 4.1.1 (4.0.25 the same day). Tested so far: Bundler 1.17.3, 2.3.27 to 2.6.9, 4.0.18 to 4.0.25, 4.1.0, 4.1.1 on Ruby 3.1.6, 3.2.6, 3.3.6.Harness notes: rubygems.org is reachable, the Socket patch API is not. Use the repo's stand-in,
tests/nokogiri/patch_service.rb:PatchService.new(name, version, platforms, uuid, ghsa, workdir, mark)appendsmarktolib/<name>.rbof the real gems and serves the patches API, the index and the artifacts for ONE gem on a loopback port (orgnokogiri-e2e). An empty platform list gives a ruby-platform patch; vendored mode then also needs agem-stub-gemspecartifact (add it topackage_resultand serve the gem'sspec.to_ruby). For several gems, a superseding patch or agent mode, put one loopback server in front of several instances (subclass it, overrideurlwith the front's): route a path that holds a uuid to that instance'srespond, mergebatch(by the body'scomponents) andpackage(byuuids), answerby-package/<purl>, and serve/v0/orgs/<org>/patches/blob/<git-sha256>from@before/@after. Behind a path prefix it is a patch mirror too (--patch-mirror-url). Pass--api-url <mock> --patch-server-url <mock> --api-token fake --org nokogiri-e2eto every command. Rubies are in/opt/rbenv/versions(3.1.6: Bundler 2.3.27, 2.6.9; 3.2.6: 2.4.19, 4.0.18; 3.3.6: 2.5.22, 4.0.18);gem install bundler -v <v>works. Select a Bundler withBUNDLER_VERSION. A realistic project:gem install rails -v 8.0.2into a scratchGEM_HOME, thenrails new app --skip-git --skip-bundle --skip-javascript --skip-hotwire --skip-docker. A private mirror:gem generate_indexpluspython3 -m http.server. A release build takes 12 minutes;gem install bundler -v <v>each run for anything newer than the list above.vexwrites with--output;removetakes one purl. No Ruby 3.4 / 4.0 here.Coverage matrix
A cell is
passwith the Bundler versions and the date,fail #N,n/a, oruntested.bundle install, app loads patched code,vex, rollback,bundle installagainbundle exectoo (11-25); Rails 8.0 app, 13 gems, tree byte-exact after rollback 4.0.18 (11-24)update --all, rollback byte-exact (11-18); binstubs 2.5.22 (11-24)pristine,update --all, underbundle exectoo (11-25); Rails 8.0 app, 12 gems, rollback byte-exact 4.0.18, 2.5.22 (11-18); a killed scan heals on a re-scan (11-24); on a second machine with gems installedvex's "reinstall" remedy fails, fail #2219BUNDLE_PATH)GEM_HOME(11-15); native rebuild, rollback byte-exact (11-17); two projects on one native gem (11-18)--gem-refresh-sharedonscanandrollback(11-15); two projects on one gem (11-18); the printedrm … && bundle installremedy 2.5.22 (11-20), after agent mode 4.0.18 (11-24)bundle config set path vendor/bundleBUNDLE_DEPLOYMENT,BUNDLE_FROZEN,.bundle/config)GEM_HOME=BUNDLE_APP_CONFIG, deployment,without) 4.0.18 (11-17)BUNDLE_WITHOUTtoo, 4.0.18 (11-14)-x86_64-linux); PR #2226 may remove hosted and vendored mode herepristinethenapply, rollback 4.0.18 (11-20)vex,update --all,add, rollback byte-exact; a missing prebuild and arubyentry beside the builds are refused with remedies that work (11-20, 4.1.1 11-25)pristine,cache_all_platforms,install --localclone, per-gemforce_ruby_platform: true, rollback byte-exact (11-20); a missing prebuild is refused and--remove-platformfixes it (11-24)pristinethen re-apply, rollback byte-exact; a killedapply,--offlineand no compiler leave the gem intact. #2104, #2105, #2106, #2117 fixed (not re-run)Bundler.require) fixed, not re-runbundle update/bundle add/bundle remove/bundle outdatedafter patching--redownloadthenapply(11-14)cache(11-14)lockflags,update <other gem>,clean,doctor,check4.0.18 (11-16);outdated,update --allon the Rails 8 app (11-18)GemfileandGemfile.lockbyte for byterollbackexits 1 on every run, fail #2231remove,vendor --revertpass 4.0.18 (11-14), 2.5.22 (11-24); #2214 fixed (11-25)vendor/cachearchives too (11-16);removeof a transitive and a direct gem out of 12 (11-18); nocache/dir 2.6.9,--add-checksumson a patched lock (11-19)vexreports only what is really appliedbundle pristinetoo (11-13)gems.rb/gems.lockedspellinggemfile_not_loaded), not re-run--cwdto use (11-19)list, rollback from the root (11-16)list, rollback from the root (11-14); two locks with different platform sets 2.5.22: one wired, one refused, remedy, rollback from the root (11-20)gemspecin the Gemfile), runtime and development dependencies patchedsourcesource … doblock: pass 4.0.18 (11-19); a gem the private server rebuilt is refused (11-25, messages: #2231)vex, rollback (11-19); mirror untestedsourcelines: #2162 fixed, not re-run; mirror as the only source, 4.0.18 and 2.5.22: scan passes,rollback/removecannot undo it, fail #2230gemfiles/*.gemfile(BUNDLE_GEMFILE)BUNDLE_GEMFILE; a root scan vendors the root pair only (11-24)BUNDLE_GEMFILE; a root scan wires the root pair only, the appraisal lock still installs (11-19)bundle install --standalone(Bundler 4,./bundle)--standalone(11-24)setupand the Bundler plugin it installs=begin,__END__, …)--jsonoutputpristine(11-18);get <purl> --mode vendoredover a hosted gem, thenremove,vendor --revert,rollback --offline, a precompiled gem too (#2174 fixed, 11-24); one gem per mode,removeof each (11-24); vendored gems withget --mode hostedfor the native ones 4.1.1 (11-25); vendored to hosted is refused with a remedy (11-20)vex, rollback pass (11-18)RUBY VERSION; Bundler upgraded after patching (update --bundler,lock --add-checksums, re-scan, rollback)vexfinds the product from the origin (11-24)--patch-mirror-url)get --mode vendoredover a mirrored pin, rollback pass (11-24)pristine,vex,remove, rollback byte-exact; without the setting a re-scan names it (11-24)vendor/bundle/ruby/3.2.0beside3.3.0)vexomits a gem unpatched there: known non-bugrm … && bundle installdoes nothing, fail #2242OVERRIDESlock, and on RubyGems 4.1 with a native rebuild (11-16)OVERRIDESlock and the new default lock (11-16)OVERRIDES,global_gem_cache,cooldown(11-16);CONTENT ADDRESSESuntestedGEMsection, deployment clone,update(11-17)Backlog
report(Addsocket-patch reportto tell Socket that a patch broke something #2193) on gems in each mode, and the per-run patch counts of Report which patches each run acted on, and count downloads, vendoring and rollbacks correctly #2178 under--json(events forget,remove,vendor --revert).1b. Precompiled platform gems: open PR Remove hosted and vendored mode for gems locked as platform gems #2226 removes hosted and vendored mode for them, so wait for it, then re-run the nokogiri cells (a Bundler 4.1 default lock holds a
rubyentry beside the builds: vendored refuses untilbundle lock --remove-platform ruby, and its "N failed" line leaves that gem out).SOCKET_RUBYGEMS_URL, a private source, a Rust (rb_sys) gem, binary-only platform gems (sass-embedded), eventmachine (C++), a.h-only patch; real nokogiri with--use-system-libraries(Never take a native gem build that compiled nothing of a patch for a patched build; test agent mode on real nokogiri #2136).applycan never rebuild argon2, the gem the docs name as rebuilt from its installed tree: its one-shotextconf.rbfails onMakefile.real, and the remedy says to install a compiler #2106 (argon2), Fix apply missing a gem that ships no lib/ dir #2185 (a gem with nolib/; the stand-in needs another target file), Hosted to vendored switch of a gem fails with "no installed package found on disk" once a newer patch is published, though the gem is installed and--dry-runpreviews success #2129, Hosted gem scan sends a gemspec-declared gem to--mode vendored, which refuses it for the same reason and names no remedy #2151, Hosted gem scan on a Gemfile with two top-levelsourcelines blames a "bundler < 2.2" lock and prescribesbundle lock, which changes nothing #2162, Standalonevexrefuses a hosted gem asnot_appliedbecause of a leftover<gem>-<version>-x86_64-linuxdirectory that has no gemspec, after the scan's ownrm -f … && bundle installremedy #2087, Hosted gemrollback/removeleave the patched gem installed when the gem home has nocache/dir (Bundler 4.1prune,rm -rf ruby/*/cache), and the "next package-manager install" note does not fix it #2092 under Bundler 4.1prune, Agentapplybuild failure for a precompiled gem (pg without libpq-dev) cuts off the cause, points at anmkmf.logit has deleted, and says to install a compiler that is already there #2117, Vendored gem scan exits 1 with "Gemfile.lock GEM specs has no entry" for a gem in the shared gem home that the project does not lock, where hosted mode skips it with a warning #2075,vexwarnsvendored_tree_out_of_syncfor every vendored gem afterbundle install, and the remedy it names never clears it because Bundler keeps the unused registry copy #2076, Vendored mode declares a transitive gem withoutrequire: false, soBundler.requirestarts loading it at boot (hosted mode adds the option) #2084, Reverting a vendored gem while another gem is hosted puts its spec in the hosted gem'sGEMsection: freshbundle installfails androllbackcan no longer undo either gem #2090.scan,list,show,get,rollbackandvexon the common path as a first-time user;--jsonshapes unchanged.rollbackandremoverefuse on aCHECKSUMSlock, and withoutCHECKSUMSrollbackleaves the patched builds installed with no warning that names them #2230): vendored mode and the agent native rebuild behind a mirror, Bundler 2.6.9 / 4.1.0, a mirror that needs credentials. A default gem in the Ruby's own gem home (noGEM_HOME).get(notscan) onto a newer agent patch; a superseding agent patch for a gem with a native extension.docs/usage.mdnever mentions Ruby.scan --prune; a relative crawl root (Rebuild gem native extensions from a relative crawl root #2048)./opt. Bundler 4.1CONTENT ADDRESSES.vextells the user to "reinstall from the lockfile" for a hosted gem whose installed copy is unpatched, but Bundler keeps or restores the unpatched copy, andbundle pristineon Bundler 2.6+ removes the gems and breaksbundle install#2219 (reproduces one685fb1), Behind a private gem mirror a hosted gem pin cannot be undone:rollbackandremoverefuse on aCHECKSUMSlock, and withoutCHECKSUMSrollbackleaves the patched builds installed with no warning that names them #2230, Agent mode reports a gem whose installed file was edited as "not installed on this host" / "not found on disk",apply --checksays to runapply, androllbackexits 1 with "modified after patching" on every run #2231, Hosted scan'srm -f … && bundle installremedy does nothing for a native gem left in another Ruby's tree (vendor/bundle/ruby/3.2.0after a Ruby upgrade):vexkeeps omitting the gem and a re-scan prints the same command again #2242. New on main, untested: a hosted gem beside a rules_rubygem_checksumshold (Leave a hosted gem alone while a rules_ruby hub holds it to another sha256 #2210), the "merged patch not ready" wording (Say when a merged patch is not ready yet, and define the free tier #2220).vextells the user to "reinstall from the lockfile" for a hosted gem whose installed copy is unpatched, but Bundler keeps or restores the unpatched copy, andbundle pristineon Bundler 2.6+ removes the gems and breaksbundle install#2219): a restored CIvendor/bundlecache, Bundler 2.6.9 / 4.1.0, a shared gem home there.rm -f … && bundle installremedy does nothing for a native gem left in another Ruby's tree (vendor/bundle/ruby/3.2.0after a Ruby upgrade):vexkeeps omitting the gem and a re-scan prints the same command again #2242): agent and vendored mode, a gem home shared by two Rubies. A merge conflict in a hosted pair.Known non-bugs
The full list is in
known-non-bugs/bundler.mdon this branch. Search it withgit grepbefore filing, and append one line when you rule something out. Don't read it whole. Most likely to be re-filed:gem build. Repack with the originalmetadata.gz.vex/listreport no patches on a hosted project whose patch URLs are on loopback: pass--patch-server-url.vexexits 2 asking for a product when the project has no git origin or gemspec: pass--product.rollbackrefusing "not rubygems.org" when the upstream is the mock: a harness artifact (a real mirror is Behind a private gem mirror a hosted gem pin cannot be undone:rollbackandremoverefuse on aCHECKSUMSlock, and withoutCHECKSUMSrollbackleaves the patched builds installed with no warning that names them #2230).All reactions