UK AI Weekly: AI Has Helped Turn Raftβs Maths Into Software Guarantees
AI has just been put to work on one of distributed systemsβ oldest reliability problems: proving that production Raft libraries behave as their specification says they should. It matters because a mathematically correct protocol can still be undermined by the actual software built around it.
Antithesis has used AI, TLA+ and its own testing tools to formally model and verify production Raft libraries from etcd and HashiCorp. The two implementations follow the same core protocol but differ significantly in design. Antithesis says the work uncovered bugs in the code and gaps in the models, prompting fixes and further revisions until every test run conformed and the scoped designs could be proved correct.
This is not simply another claim that Raft itself has been verified. The protocol has been extensively studied, formally specified and rigorously proven correct under certain assumptions. The problem is that real implementations may deviate from those assumptions, redesign aspects for performance or add extensions that have never been verified.
The new work covers features including pre-votes, snapshots and leadership transfers. For etcd-raft, it also addresses read indexes for linearizability, asynchronous storage writes and membership changes, where the implementation intentionally differs from the original Raft paper.
Antithesis used Claude Fable 5.2 to infer TLA+ models from the implementations, while people reviewed the safety properties and supplied guidance about which features and scenarios to model. The project says AI was generally poor at inferring properties, so the agent was explicitly told to express the core safety properties from the Raft paper.
The crucial bridge was trace validation. Antithesis used its plugin to create test clusters, workloads covering the modelled features and assertions corresponding to the modelβs safety properties. The final proofs establish Election Safety, Leader Completeness and State-Machine Safety for the specific, scoped designs. The artefacts have been released for open review.
There are important boundaries. Antithesis says this does not reach the point of reasoning directly at assembly-instruction or programming-language semantics for distributed safety. The results also apply only to the features and designs modelled, after the necessary workarounds and fixes. That is not a flaw so much as an honest boundary condition: formal verification is powerful, but it cannot wave away gaps in scope.
What this means
The development did not originate in the UK, but its lessons land squarely with UK organisations running consensus-backed infrastructure, cloud platforms and other systems where split-brain behaviour or state inconsistency can become an operational crisis. It also shows AI doing something more concrete than generating plausible code: helping translate specifications and implementations into checkable claims.
UK regulation remains principles-based and sector-led, with no single AI regulator. The AI Security Institute independently evaluates frontier models before deployment, but there is no indication it has assessed this work. If any of these models later become part of critical UK services, relevant existing regulators may still need to ask ordinary questions about evidence, scope and operational assurance.
The takeaway is simple: AIβs most persuasive UK case may not be a chatbot at all, but accountable software engineering with proofs attached.
Source: Verifying formal models of Raft implementations β 28 points on Hacker News
Comments
Leave a message below. Your comment saves to your browser.