Runtime bundled-library drift
Ruby 3.4 csv default gem bundled gem LoadError require csv
A minimal production image raises LoadError only when a rarely used export endpoint calls `require "csv"`.
Agent Quick Fix
Repair against the current Ruby 3.4 contract, then keep the change narrow and source-backed.
Product: Ruby 3.4
Current-contract area: `csv` no longer available as an undeclared default gem
Likely root cause: A minimal production image raises LoadError only when a rarely used export endpoint calls `require "csv"`.
Repair direction: Verifier checks an explicit dependency or supported replacement and a clean install.
Symptom
A minimal production image raises LoadError only when a rarely used export endpoint calls `require "csv"`.
Why This Happens
A library was historically part of the default runtime install but is now only bundled/optional, so project dependency files may not mention it.
Common Wrong Fixes
- Changing local code without checking the current external contract.
- Retrying the same install, build, or API call with no version/source change.
- Applying a broad unsafe bypass when a narrow compatibility fix is available.
Codex Search Keywords
These are the search terms observed in a neutral Codex validation run for this failure shape.
Ruby 3.4 csv default gem bundled gem LoadError require csv
Ruby 3.4.0 NEWS bundled gems csv
stdgems.org csv ruby 3.4 default gem
ruby 3.4 bundled gems csv GitHub NEWS.md
https://www.ruby-lang.org/en/news/2024/12/25/ruby-3-4-0-released/