[.VALMONTE 6-LAYER VERIFIABLE TRAJECTORY // vm-trace-repo-01]

Distributed Raft Log Compaction & Snapshot Index Race

Base policy truncates uncommitted follower tail entries during concurrent InstallSnapshot RPC; expert counterfactual fork restores monotonic commitIndex fencing across 4 repository modules.

← Overview
vm-env-raft-compaction-v4SEED #904118PRM PIN: CONCURRENCY_INVARIANT_VIOLATION
EXIT 0 — VERIFIED PASS · 14ms

Distributed Raft Log Compaction & Snapshot Index Race

Base policy truncates uncommitted follower tail entries during concurrent InstallSnapshot RPC; expert counterfactual fork restores monotonic commitIndex fencing across 4 repository modules.

EXIT 1 — FAILED ASSERTION (test_snapshot_concurrent_append)FORK AT step_07 (raft/log_store.rs:214)
thread 'raft::tests::snapshot_concurrent_append' panicked at src/log_store.rs:221:9
assertion failed: `(left >= right)` -> commit_index (418) < snapshot_last_included (422)
TLA+ trace invariant MonotonicCommitSafety violated at tick 1,042
COUNTERFACTUAL EXPERT RECOVERY PATCHEXIT 0 — VERIFIED PASS (84/84 Cargo + Deterministic Sim)
pub fn compact_to_snapshot(&mut self, snap: SnapshotMeta) -> Result<(), StoreErr> {
- self.entries.drain(..snap.last_index - self.offset);
- self.offset = snap.last_index;
+ let safe_bound = snap.last_index.min(self.commit_index);
+ if safe_bound > self.offset {
+ let cut = (safe_bound - self.offset) as usize;
+ self.entries.drain(..cut.min(self.entries.len()));
+ self.offset = safe_bound;
+ }
Ok(())
cargo_sim_deterministic_1000_seeds
1000 / 1000 passed
PASS (== 1000)
tla_monotonic_commit_safety
0 violations
PASS (== 0)
microvm_wall_verifier_time
14.0 ms
PASS (<= 50 ms)
SHA-256 Holdout Clean · $0.00 LLM JudgeOpen Permalink (vm-trace-repo-01) →
[COHORT LICENSING // SWE/Bash]
Provision 500–10,000 holdout-attested trajectories in this domain.
Inspect Live Trace ↓
vm-trace-repo-01 — Distributed Raft Log Compaction & Snapshot Index Race — Valmonte