Skip to content

fix: exclude audit metadata from snapshot hash#22

Merged
DigiEmu merged 1 commit intomainfrom
test/deterministic-boundary-replay-v1
May 7, 2026
Merged

fix: exclude audit metadata from snapshot hash#22
DigiEmu merged 1 commit intomainfrom
test/deterministic-boundary-replay-v1

Conversation

@DigiEmu
Copy link
Copy Markdown
Owner

@DigiEmu DigiEmu commented May 7, 2026

Summary

This PR tightens the deterministic snapshot hash boundary.

It removes audit/non-deterministic metadata from the version canonical lines used for snapshot hashing:

  • Label
  • ActorID
  • CreatedAtUnix

These values remain available as metadata, but no longer affect deterministic state identity.

Why

DigiEmu Core v1.0 requires stable deterministic state hashes.

Before this change, identical deterministic content states with different timestamps or generated labels produced different snapshot hashes.

Tests

Added regression tests:

  • TestSnapshotHashIgnoresCreatedAtUnix
  • TestSnapshotHashIgnoresGeneratedLabel

Verification

go test ./...

@DigiEmu DigiEmu merged commit 7de573a into main May 7, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant