Module: Henitai::MutantIdentity
- Defined in:
- lib/henitai/mutant_identity.rb,
sig/henitai.rbs
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
-
.legacy_stable_id(mutant) ⇒ String
Stable id formula used before site offsets were introduced.
- .stable_id(mutant) ⇒ String
Class Method Details
.legacy_stable_id(mutant) ⇒ String
Stable id formula used before site offsets were introduced. Emitted as a temporary report alias so scoped runs can replace pre-migration entries.
18 19 20 |
# File 'lib/henitai/mutant_identity.rb', line 18 def self.legacy_stable_id(mutant) digest(legacy_identity_components(mutant)) end |
.stable_id(mutant) ⇒ String
12 13 14 |
# File 'lib/henitai/mutant_identity.rb', line 12 def self.stable_id(mutant) digest(identity_components(mutant)) end |