FV-14: TLA+ faithfulness tests for Nim state machines
Add tests/tla_faithfulness.nim verifying Nim code against TLA+ invariants: - Raft: ElectionSafety, LogMatching, CommittedIndexValid - MVCC: NoDirtyReads, CommittedMustStart - 2PC: Atomicity, RecoveryConsistency Documented gap: Nim MVCC allows multiple committed versions per key, while TLA+ spec enforces first-committer-wins (WriteWriteConflict). This test ensures future changes to Nim code maintain alignment with specs. Update PLAN.md (FV-14 done), CHANGELOG.md, test_all.nim includes new suite.
This commit is contained in:
@@ -2483,3 +2483,6 @@ suite "Parameterized queries":
|
||||
|
||||
# JOIN tests
|
||||
include "join_tests"
|
||||
|
||||
# TLA+ faithfulness tests
|
||||
include "tla_faithfulness"
|
||||
|
||||
Reference in New Issue
Block a user