feat(raft-sim-conformance): Leader Completeness invariant checker (task 3.3)

This commit is contained in:
Rongsong Shen 2026-06-24 12:44:18 +00:00
parent d9b5fd51e0
commit 63a9740c85
4 changed files with 143 additions and 1 deletions

View file

@ -71,7 +71,7 @@
- _Boundary: raft_sim.c, test_raft.c_
- _Depends: 1.1_
- [ ] 3.3 RED+GREEN: Leader Completeness checker (P)
- [x] 3.3 RED+GREEN: Leader Completeness checker (P)
- Test: a committed `(index, term)` absent from a higher-term leader's log fails; present passes
- Implement `raft_sim_check_leader_completeness` using `commit_index` + per-node logs, tracking the highest-term leader to date
- Observable completion: both directions assert correctly