feat(raft-sim-conformance): bag-only Drop/Duplicate/Reorder ops (task 2.2)

This commit is contained in:
Rongsong Shen 2026-06-24 12:19:15 +00:00
parent ae4495104a
commit b450e60d13
4 changed files with 238 additions and 1 deletions

View file

@ -45,7 +45,7 @@
- _Boundary: raft_sim.c, test_raft.c_
- _Depends: 1.2_
- [ ] 2.2 RED+GREEN: Drop / Duplicate / Reorder mutate only the bag
- [x] 2.2 RED+GREEN: Drop / Duplicate / Reorder mutate only the bag
- Test: `raft_sim_bag_drop`/`_duplicate` change bag multiplicity without mutating any node's term/role/log; reorder delivers in a PRNG-chosen order
- Implement the three bag operations (mirroring `raft.tla:443`/`448` `UNCHANGED` of non-message vars)
- Observable completion: node snapshots are identical before/after a drop or duplicate of an undelivered message