Runtime bundled-library drift

Ruby 4.0 default gems bundled gems stdlib transition Bundler install declared dependencies

A library present in the old runtime is absent from a deployment built with only declared dependencies.

Ruby 4.0RubyRuntime bundled-library driftruby40

Agent Quick Fix

Repair against the current Ruby 4.0 contract, then keep the change narrow and source-backed.

Product: Ruby 4.0
Current-contract area: Default-to-bundled gem transition breaks a clean Bundler install
Likely root cause: A library present in the old runtime is absent from a deployment built with only declared dependencies.
Repair direction: Verifier checks an explicit dependency or supported replacement and a clean install.

Symptom

A library present in the old runtime is absent from a deployment built with only declared dependencies.

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 4.0 default gems bundled gems stdlib transition Bundler install declared dependencies
site:stdgems.org Ruby 4.0 bundled gems default gems
https://stdgems.org/

Source Trail