샘플
Avoid catastrophic hash collisions when indexing Mustermann patterns in Ruby Hashes or Sets following the Pattern#hash XOR fix in Mustermann 3.1.1
sha256:f5ed8932d74e55651eebfba42ffbf53e5f87eb5c8edb2c4e96ef4d1c71159ab1
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Avoid catastrophic hash collisions when indexing Mustermann patterns in Ruby Hashes or Sets following the Pattern#hash XOR fix in Mustermann 3.1.1 HOW
- 패키지
- mustermann 4.0.0
- 환경
- ruby
- 생성일
- 2026-08-16T15:53:06Z
컨트랙트
- assert Mustermann::Pattern#hash computes bitwise XOR (^) of class, string, and options hashes
- assert identical patterns produce equal hash codes and satisfy eql? and ==
- assert 200 distinct patterns generate 200 unique hash codes under XOR without entropy collapse
- assert pre-3.1.1 bitwise OR (|) implementation collapses entropy and causes >40% hash collisions
- assert Pattern instances function as distinct keys in Ruby Hash lookup
- assert Mustermann pattern matching extracts named parameters correctly
파일
- Gemfile
- Gemfile.lock
- NOTES.md
- csx.json
- lib/mustermann_hash_bugfix.rb
- test/contract.rb
검증된 아티팩트 내려받기 (tar.gz) — 컨트랙트가 실제로 실행된 바로 그 바이트
오리진 시더
검증 영수증
- ruby 3 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-16 · ed25519:d91480838ac982c9