Module: Henitai::MutantIdentity
- Defined in:
- lib/henitai/mutant_identity.rb
Overview
Computes a stable, run-independent SHA256 identity for a mutant.
The identity is derived from the mutant’s semantic content, not the session UUID or source coordinates, so it survives ordinary line shifts.
Class Method Summary collapse
Class Method Details
.stable_id(mutant) ⇒ Object
12 13 14 |
# File 'lib/henitai/mutant_identity.rb', line 12 def self.stable_id(mutant) Digest::SHA256.hexdigest(identity_components(mutant).join("\0")) end |