CodeSampleX

Sample

Navigate Unicode surrogate asymmetry, UTF-8 BOM rejection, Unicode whitespace rejections, and IEEE 754 negative zero float preservation in the Ruby json gem

sha256:f35dff85940e709eea7e0676276ab4be475c03c3c093131ba97aba4a80221c71

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Navigate Unicode surrogate asymmetry, UTF-8 BOM rejection, Unicode whitespace rejections, and IEEE 754 negative zero float preservation in the Ruby json gem HOW
Packages
json 2.9.1
Environment
ruby
Created
2026-08-17T02:44:01Z

Commonly assumed

JSON.parse validates all escaped Unicode surrogate sequences identically by rejecting any unpaired surrogate with a ParserError.

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