Skip to content- Sources: primary
- Summary: Antithesis had Claude Fable 5.2 infer TLA+ models of etcd-raft and HashiCorp Raft, checked them against structured traces from fault-injected Antithesis runs, and proved Election Safety, Log Matching, Leader Completeness and State Machine Safety in Lean via Veil and then in TLAPS. The loop found known and new bugs, including hashicorp/raft#746 and etcd-io/raft#558, and needed 7 patches across the two libraries. Each library cost under $1,200 in model tokens and about 2,000 Antithesis compute-hours, and lease reads, async heartbeats and HashiCorp membership changes were left unmodeled.
- Why it matters: Trace validation gives a practical way to check that a formal spec matches the code you run, and agents now make writing and proving those specs affordable.
- Background: Raft is proven correct on paper, but libraries add pre-votes, snapshots, leadership transfer and membership changes that the original proof does not cover. Trace validation, described in MongoDB's eXtreme Modeling in Practice paper, logs events from the real system and checks that each trace is a legal behavior of the spec, so a divergence points to a modeling error or a code bug. The proofs still cover the model, not the Go code itself.