Repository navigation
Bug hunt ledger: Bundler (RubyGems) #316
Replies: 115 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-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 |
|
[agent] 2026-11-26: 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: #2242 closed as fixed (#2242 (comment)). Ruled out (added to
Blocked / not reached: Grype, Syft and Trivy could not be run (the sandbox refuses downloaded scanners), so the VEX product forms were read, not matched by a scanner. #2230 behind a mirror, #2210 (needs Bazel), |
|
[agent] 2026-11-26: Bundler (RubyGems) bug-hunt run Tested: main Harness: one loopback server in front of ten instances of the repo's stand-in ( Re-triage: #2269 is unchanged (same main, a fix PR is open); #1109 carries Cells
Filed
None is a regression: the three features are new since 5.1.0. Ruled out (added to
Blocked / not reached: vendored and agent mode behind the mirror (the hosted unwind failed first; needs a mirror with hex checksums), the Rails app on Bundler 2.6.9, Ruby 3.4 / 4.0, the re-runs of older fixes (backlog 6), the terminal UI read-through (backlog 7). |
|
[agent] 2026-11-27: Bundler (RubyGems) bug-hunt run Tested: main Harness: one loopback server in front of five instances of the repo's stand-in ( Re-triage: #2269 and #2283 are the two oldest without Cells
Filed: nothing. No defect met the filing bar this run. Commented / closed: nothing. Ruled out (added to
Blocked / not reached: a Rust ( |
|
[agent] 2026-11-27: Bundler (RubyGems) bug-hunt run Tested: main Harness: one loopback server in front of the repo's stand-in ( Re-triage: #2269 and #2283 were filed on this same main and have fix work claimed; nothing to re-check. #1109 carries Cells
Filed
Commented
Ruled out (added to
Blocked / not reached: a Rust ( |
|
[agent] 2026-11-28: Bundler (RubyGems) bug-hunt run Tested: main Harness: one loopback server in front of five instances of the repo's stand-in ( Re-triage: the open issues without Cells
Filed
Commented
Ruled out (added to
Blocked / not reached: Ruby 3.4 / 4.0 (ruby-build cannot download: the Ruby download host is blocked by the sandbox), sass-embedded and a private source in the agent rebuild, |
|
[agent] 2026-11-28: Bundler (RubyGems) bug-hunt run Tested: main Harness: one loopback server in front of four instances of the repo's stand-in ( Re-triage: the open issues without Cells
Filed
Ruled out (added to
Blocked / not reached: Ruby 3.4 / 4.0 (none under |
|
[agent] 2026-11-29: Bundler (RubyGems) bug-hunt run Tested: main Harness: one loopback server in front of five instances of the repo's stand-in ( Re-triage: the open issues without Cells
Filed
Ruled out (added to
Blocked / not reached: Ruby 3.4 / 4.0 (none under |
|
[agent] 2026-11-29: Bundler (RubyGems) bug-hunt run Tested: main Harness: one loopback server in front of instances of the repo's stand-in ( Re-triage: the open issues without Cells (each: scan, frozen install, app, a deployment clone,
Filed: nothing. No defect met the bar this run. Ruled out (added to
Blocked / not reached: Ruby 3.4 / 4.0 and 2.7 (none under |
|
[agent] 2026-11-30: Bundler (RubyGems) bug-hunt run Tested: main Harness: one loopback server in front of seven instances of the repo's stand-in ( Re-triage: the open issues without Cells
Filed
Ruled out (added to
Blocked / not reached: Ruby 3.4 / 4.0 and 2.7 (none under |
|
[agent] 2026-11-30: Bundler (RubyGems) bug-hunt run Tested: main Harness: one loopback server in front of six instances of the repo's stand-in ( Re-triage: the open issues without Cells
Filed: nothing. No defect met the bar this run. Ruled out (added to
Blocked / not reached: Ruby 3.4 / 4.0 and 2.7 (none under |
|
[agent] 2026-12-01: Bundler (RubyGems) bug-hunt run Tested: main Harness: one loopback server in front of six instances of the repo's stand-in ( Re-triage: #2313 (oldest open) still reproduces on this main: with Cells (release focus: the common path first, then what the new commits touched)
Filed
Ruled out (added to
Blocked / not reached: Ruby 3.4 / 4.0 and 2.7 (none under |
|
[agent] 2026-12-01: Bundler (RubyGems) bug-hunt run Tested: main Harness: one loopback server in front of the repo's stand-in ( Re-triage: nothing to re-check. #2325 and #2326 (the oldest open issues without Cells
Filed: nothing. No defect met the bar this run. Ruled out (added to
Blocked / not reached: Ruby 3.4 / 4.0 and 2.7 (none under |
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-12-01 (second run), main
1b3f422, release 5.1.0, newest Bundler 4.1.1. Tested so far: Bundler 1.17.3, 2.2.15 to 4.1.1 on Ruby 3.1.6 to 3.3.6.Harness: 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 API, the index and the artifacts for ONE gem (orgnokogiri-e2e). An empty platform list gives a ruby-platform patch; vendored mode then also needs agem-stub-gemspecartifact (add it topackage_result, serve the gem'sspec.to_ruby). For several gems, put one loopback server in front of several instances (subclass, overrideurl) and route by uuid, by purl (by-package), by thecomponentsofbatch(filter by them: a single stand-in answers for its gem unasked, which hides discovery gaps) and theuuidsofpackage; serve…/patches/blob/<git-sha256>too. Agent cells: addblobContent/beforeBlobContent(base64) to thefilesentry of the patch view. For a C patch, overridepatched_datato mark a file underext/and key the view'sfilesby it. Pass--api-url <mock> --patch-server-url <mock> --api-token fake --org nokogiri-e2eto every command.vexwrites with--outputand needs anoriginremote or--product. Rubies:/opt/rbenv/versions(3.1.6, 3.2.6, 3.3.6);gem install bundler -v <v>(2.2.x runs on 3.1.6), thenBUNDLER_VERSION. Rails:rails new app --skip-git --skip-bundle --skip-javascript --skip-hotwire --skip-docker. Don'tBundler.requiresinatra (it starts a server) or change the global git identity.--gem-refresh-sharedwith the rbenv home onGEM_PATHpatches the sandbox Ruby's own gems: roll back with the same flag. The release:npm install @socketsecurity/socket-patch@5.1.0. Without a mock, hand-write.socket/manifest.json(keypkg:gem/<name>@<version>?platform=ruby) and.socket/blobs/<git-sha256>, thenapply --offline.Coverage matrix
bundle install, app loads patched code,vex, rollback,bundle installagainremove,vex, rollback 4.1.1 (11-30); Rails 8.0 app 4.1.1 (11-26), 2.6.9 (11-27)--remove-platformremedy: nokogiri vendored on the sinatra lock once installed (12-01; #2284 fixed), and on the default Rails 8 lock, Ruby 3.2.6 (12-01); a fresh checkout of a 2.6.9 lock with ruby-platform gems only (12-01); the Dockerfile gem layer (COPY Gemfile Gemfile.lock): fail #2326BUNDLE_PATH)GEM_HOME(11-15); native rebuild, rollback byte-exact (11-17); apathother thanvendor/bundle, or nothing installed in it yet: fail #2313--gem-refresh-sharedonscanandrollback(11-15); a second machine that pulls the pair over stale copies, invendor/bundleand in a shared home:vexrefuses, its remedies work 4.1.1 (12-01)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 herevex, rollback; a missing prebuild and arubyentry beside the builds are refused (11-26);--remove-platformafter vendoring 4.1.1:vendor --check,vex, rollback, install pass (#2283 fixed, 12-01);--add-platformafter vendoring: refused by Bundler as documented, revert and re-scan works (11-29)pristine,install --localclone, rollback (11-20); a missing prebuild is refused and--remove-platformfixes it (11-24);lock --add-platform(no prebuild) after wiring 4.1.1: re-scan,vex, rollback keeps the platform (11-29)pristinethen re-apply; eventmachine, a.h-only patch, a Rust gem 4.1.1 (11-28); a killedapply,--offlineand no compiler leave the gem intact; a C patch through the mock 4.1.1: CI clone,apply --offline,pristine, re-apply, rollback gives the.soback byte for byte (12-01)pristine, rollback (12-01)require: falseon the added line 4.1.1 (11-27); parent dropped withbundle remove: rollback clean (11-28)bundle update/bundle add/bundle remove/bundle outdatedafter patchingcache(11-14);bundle removeof the vendored gem, or a newer version by hand: fail #2325; the vendoredgemline edited: fail #2338lockflags,update <other gem>,clean(11-16); the printed steps to move a gem to a newer release, direct and transitive 4.1.1 (11-27); a wired line moved into agroupblock or given an option: rollback keeps the edit (11-28);bundle removeof a patched gem 4.1.1:list, re-scan,vex, rollback leave what Bundler writes (12-01)GemfileandGemfile.lockbyte for byteremove,vendor --revertpass 4.0.18 (11-14), 2.5.22 (11-24); #2214 fixed (11-25); platform gem after--remove-platformpass 4.1.1 (12-01)vendor/cachearchives too (11-16);bundle cache --all-platforms4.1.1 (12 archives, offline clone) and a cache built after the scan 2.6.9: archives restored byte for byte (12-01)vexreports only what is really appliedgems.rb/gems.lockedspellinggemfile_not_loaded), not re-runlock --add-checksumson a hosted 2.6.9 lock with 8 nokogiri builds, re-scan, clone, rollback,pristine(11-30)--cwdto use (11-19)gemspec path:gems in one Gemfile 4.1.1, 2.6.9 (11-30)gemspec path:gems 4.1.1, 2.6.9 (11-30); 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 patched; a Rails engine (rails plugin new --mountable,test/dummy) passes in all three modes 4.1.1 (12-01)gem buildpacks.socket/manifest.json(#2354)gem buildof abundle gemlibrary packs.socket/vendor/4.1.1, 2.6.9: fail #2354; development dependency refused (#2151 fixed, not re-run)gem buildunchanged 4.1.1 (11-29);rake build/install/release4.1.1 (11-30); development dependency refused (#2151 fixed, not re-run)sourcesource … doblock: pass 4.0.18 (11-19); a gem the private server rebuilt is refused (11-25)vex, rollback (11-19)sourcelines: #2162 fixed, not re-run; mirror as the only source: scan passes; the unwind behind agem generate_indexmirror: #2285 fixed, not re-rungemfiles/*.gemfile(BUNDLE_GEMFILE)BUNDLE_GEMFILE; a root scan wires the root pair only (11-19)bundle install --standalone(Bundler 4,./bundle)--standalone(11-24)?platform=rubyrecord, 4.1.1, 2.6.9, a CI cache too: fail #2376--jsonoutputget <purl> --mode vendoredover a hosted gem, each unwind (11-24);get --mode hostedfor the native ones 4.1.1 (11-25); vendored to hosted is refused with a remedy (11-20);removeof a vendored gem beside hosted ones (11-27); afterget --mode hostedfor a refused native gem the vendored re-scan skips it (#2269 fixed, 12-01); for a refused gem in agroupblock it still exits 1, fail #2395RUBY VERSION; Bundler upgraded after patching (update --bundler,lock --add-checksums, re-scan, rollback)--patch-mirror-url)get --mode vendoredover a mirrored pin, rollback pass (11-24)vendor/bundle/ruby/3.2.0beside3.3.0)rm -rf …remedy and the re-run with that Ruby first onPATHboth work (11-27)OVERRIDESlock, 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)Backlog
vexproduct form in agent mode (Name each patched package as a VEX product so Trivy and Grype match it #2243).vendor/cache(install --local, thenapply); a scan run from an engine'stest/dummy(it says "No packages found", not checked further).applyalso patches gems in the system gem home that Bundler never loads when the project sets a Bundlerpathother thanvendor/bundle, or has nothing installed in it yet #2313 (still fails, 12-01), Vendored gem dropped withbundle remove(or moved to a newer version) can never be cleaned up:scan --prune,remove,rollbackandvendor --revertkeep it as drifted, andvendor --checkstays red #2325, Vendored gems break the usual Dockerfile gem layer (COPY Gemfile Gemfile.lock ./thenbundle install), and neither the scan output nor the Ruby docs say to copy.socket/vendor/#2326, Vendored gem cannot be rolled back or removed after its Gemfile line is edited (moved into agroupblock,require: falseadded):vendor --checkpasses,rollbackandremoveexit 1, and the named remedies do nothing #2338, Vendored gems are packed into a gem library's own .gem: abundle gemgemspec lists files withgit ls-files, sogem buildafter the scan ships.socket/vendor/(5 files become 757, 5.6 KB becomes 14.9 MB) and nothing warns #2354, Agent mode cannot move a gem to a newer patch of the same version:applyand the re-scan fail with "no matching variant found" for a?platform=rubyrecord, and CI with a cachedvendor/bundleexits 1 #2376, Vendored scan on a fresh checkout skips a gem locked only as platform gems (nokogiri) without a word and reports "Nothing left to patch", also after following the printed--remove-platform rubyremedy #2394, Vendored gem scan exits 1 on every run after a gem in agroupblock is patched in hosted mode as the refusal advises: the #2269 skip covers native gems only #2395. A mirror whose index has hex checksums (gemstash, or rewriteinfo/*): the hosted unwind, vendored mode, the agent native rebuild, credentials in the URL.--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, Fix apply missing a gem that ships no lib/ dir #2185, 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 (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, Hosted gem rollback behind agem generate_indexmirror still refuses with SOCKET_RUBYGEMS_URL set: a base64checksum:in the compact index is not read #2285 (mirror unwind)./opt(ruby-build can't download: cache.ruby-lang.org is blocked). Bundler 4.1CONTENT ADDRESSES.applyalso patches gems in the system gem home that Bundler never loads when the project sets a Bundlerpathother thanvendor/bundle, or has nothing installed in it yet #2313):BUNDLE_PATHoutside the project, a global-configpath.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.All reactions