CodeSampleX

Sample

Recover stale Set membership after a mutable element changes its hash

sha256:c3ebad077aa01c12e583e57f127c53912b03d9730d22c45a627de462968ed9b7

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Recover stale Set membership after a mutable element changes its hash HOW
Packages
set 1.1.1
Environment
ruby
Created
2026-08-17T02:47:22Z

Commonly assumed

Changing an object's #hash after adding it to a Set updates its position in the Set automatically

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