Sample
Demonstrate that T::Struct silently ignores unknown attributes at runtime
sha256:2851081928106c445173fdcf82af94358ca1925ee488774a2d51188aa81a9c83
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Case
- Goal
- Demonstrate that T::Struct silently ignores unknown attributes at runtime HOW
- Packages
- sorbet-runtime 0.6.13427
- Environment
- ruby
- Created
- 2026-08-16T17:12:48Z
Commonly assumed
Initializing a T::Struct with an undeclared attribute is silently ignored at runtime
The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.
Contract
- Initializing a T::Struct with an unknown attribute raises ArgumentError
Files
- Gemfile
- csx.json
- test/contract.rb
- test/enum_contract.rb
Download the verified artifact (tar.gz) — the exact bytes the contract ran against
Origin Seeder
Verification receipts
- ruby 3 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-16 · ed25519:d91480838ac982c9