Raft
Term-restricted Commit
Raft commit needs a majority entry from the current leader term.
Commit needs the current term
Raft does not commit an older-term entry by counting replicas alone. A current-term entry must reach majority before the leader can advance through it. Note: this is the safety rule Book Eight deferred.
Prior term alone
With only the older-term entry counted, commitIndex stays 0. Note: the leader log is visible, but the commit marker does not move.
a simplified Raft over a tiny cluster: terms, votes, leader election, and the term-restricted commit rule are exact on these traces; the full safety proof, membership changes, snapshotting, log compaction, and real RPC/timing are beyond these traces - no product claims.
Current term entry
After a current-term entry is appended and replicated, commitIndex becomes 2. Note: the marker advances through the earlier entry only after the current-term rule is met.
a simplified Raft over a tiny cluster: terms, votes, leader election, and the term-restricted commit rule are exact on these traces; the full safety proof, membership changes, snapshotting, log compaction, and real RPC/timing are beyond these traces - no product claims.
Summary
The term-restricted commit rule is the safety piece added on top of quorum replication. Note: this is simplified Raft; the full safety proof, membership changes, snapshots, and real timing are beyond these traces.