codesamplex

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

Files

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

Origin Seeder

csx-seed

Verification receipts