Drop the answer digest from same_answer (L1 Cut 4, c4.s2.f3)

`step_session` compares a row found by command id against the fresh session
with `same_answer`. The command id is `session_command_id(world_id,
jurisdiction, answer_digest)`, so a row under the fresh session's id carries
the fresh session's digest unless its bytes were forged or the hash collided;
the digest clause never decided and survived as an equivalent mutant in two
Soul passes. It is deleted; world, jurisdiction and answer remain.

The id derivation is unchanged, and
`soul_the_session_command_id_derivation_moved_under_the_refactor` still pins
that a moved digest moves the id. Suite counts are unchanged and the distinct
warning messages equal those at 01312dd.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-09-16 19:52:35 +02:00
commit 872ba3525c

View file

@ -76,14 +76,14 @@ pub struct ElaboratorSession {
}
impl ElaboratorSession {
/// Whether two sessions answer the same thing: the fields the command id
/// is derived from, plus the answer they digest. Ancestry, lens and
/// Whether two sessions answer the same thing: world, jurisdiction and
/// answer. The answer's digest is not compared, because the command id both
/// sessions were found under is derived from it. Ancestry, lens and
/// instructions are not identity; they are what a recorded session carries.
fn same_answer(&self, other: &ElaboratorSession) -> bool {
self.world_id == other.world_id
&& self.jurisdiction == other.jurisdiction
&& self.answer == other.answer
&& self.answer_digest == other.answer_digest
}
}