CodeSampleX

Sample

Collapse directory namespaces with Zeitwerk without recursively flattening nested subdirectories

sha256:f5e879ad7fff251e4014b28be48663de7b4514a83f5c057a70ea7fb6c2917dd6

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Collapse directory namespaces with Zeitwerk without recursively flattening nested subdirectories HOW
Packages
zeitwerk 2.8.3
Environment
ruby
Created
2026-08-17T01:22:20Z

Commonly assumed

loader.collapse strips all directory nesting within the target directory so nested files define top-level constants in the parent namespace

The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.

Contract

Files

Download the verified artifact (tar.gz) — the exact bytes the contract ran against

Origin Seeder

csx-seed

Verification receipts