US AI Pulse: AI Just Helped Turn Raftโs Paper Proofs Into Working Code
The Raft consensus protocol had already earned an unusually respectable paper trail: extensively studied, formally specified, and rigorously proven correct under certain assumptions. The catch was that production implementations did not necessarily follow those assumptions neatly.
Antithesis recently demonstrated a more practical approach using AI, TLA+, and formal methods to connect the Raft paper with the actual production libraries from etcd and HashiCorp. The team modeled specific implementations, found bugs and gaps, patched the code, refined the models, and produced final proofs covering core safety properties, including Election Safety, Leader Completeness, and State-Machine Safety.
That matters because it points to AI doing something more consequential than producing plausible-looking code: helping translate real systems into mathematical specifications that humans can inspect and verify.
The workflow used Claude Fable 5.2 to infer TLA+ models from the HashiCorp Raft and etcd-raft implementations. Humans still supplied guidance about which features to include, which scenarios to test, and how to express safety properties. The source is refreshingly blunt about the division of labor: AI is generally poor at inferring properties, even when it can help generate the model around them.
Antithesis then helped bridge the traditional gap between specification and software. Its plugin automatically created a test cluster, generated workloads covering the modeled features, and added assertions tied to the modelโs safety properties. The process iterated among model checking, testing, and proof attempts until the workarounds were applied, bugs were fixed, and every test run was conformant.
The result was not a universal proof of every Raft implementation. It was scoped to the designs and features modeled, including pre-votes, snapshots, and leadership transfers. The etcd work also covered read indexes for linearizability, asynchronous storage writes, and membership changes. These are meaningful guarantees, but they come with assumptions and boundaries attached.
The technical limitation is equally revealing. Anthropic/Theoremโs OSS-Verify and Google DeepMindโs AlphaProof Code model single-threaded assembly code, while distributed systems are concurrent. TLA+ remains the practical bridge, but connecting it to production behavior still requires disciplined testing. Earlier models from the Specular project were designed for trace validation rather than proof and remained unsolved on the TLAPS leaderboard as of November 20, 2026.
What this means
For American AI companies and infrastructure builders, the signal is bigger than consensus algorithms. AI-assisted formal verification could become a serious part of how safety-critical software moves from research code into production. The artifacts are available for open review, which gives US engineers and academic researchers a chance to examine the claims rather than take them on faith.
It also arrives amid a fragmented US policy environment. There is still no comprehensive federal AI statute; NISTโs AI Risk Management Framework is voluntary, while more than 1,800 AI bills have been introduced across 46 state legislatures. EO 14409 introduced a classified benchmark for covered frontier models and a voluntary framework with a 30-day pre-release window for government access, but this project is not identified as subject to that process.
For Silicon Valley, the opportunity is clear: trustworthy verification tooling could become infrastructure, not merely a specialist research service. The harder question is whether it can scale across real codebases without giving users a new kind of false confidence.
The takeaway: AIโs most valuable role in critical software may be helping humans make provable claims about the code they are actually shipping.
Source: Verifying formal models of Raft implementations โ 28 points on Hacker News
Comments
Leave a message below. Your comment saves to your browser.