Skip to content

test: add golden snapshot hash v1 regression#27

Merged
DigiEmu merged 1 commit into
mainfrom
test/golden-snapshot-hash-v1
May 8, 2026
Merged

test: add golden snapshot hash v1 regression#27
DigiEmu merged 1 commit into
mainfrom
test/golden-snapshot-hash-v1

Conversation

@DigiEmu
Copy link
Copy Markdown
Owner

@DigiEmu DigiEmu commented May 8, 2026

Summary

Adds a golden hash regression test for the demo snapshot bundle.

The test loads the demo bundle, replays it deterministically, computes the reconstructed state hash, and compares it against the known expected_hash_v1.

Why

DigiEmu Core v1.0 requires stable deterministic state identity.

This test protects against accidental changes to:

  • replay state assembly
  • canonical JSON behavior
  • hash scope
  • expected_hash_v1 exclusion
  • SHA-256 hash output semantics

Test

Added:

  • TestGoldenSnapshotHashV1

Verification

go test ./...

@DigiEmu DigiEmu merged commit 42af55a into main May 8, 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