arXiv:2610.30114cs.DCOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.30114

The End of Consensus Research?

Clément Burgelin, Rachid Guerraoui, Zicong Hong, Yinan Hu, Anne-Marie Kermarrec, Rafael Pires, Rasmus Moorits Veski, Martijn de Vos

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Consensus is a fundamental problem in distributed computing and at the core of state machine replication (SMR). Despite decades of active human research, discovering practical low-latency solutions to the problem is still open. This endeavor is very challenging since it requires combining protocol knowledge, correctness reasoning, implementation, and experimental evaluation. We report on how AI helped us discover A-GREEMENT, a new consensus protocol for geo-replicated state machines that significantly outperforms state-of-the-art solutions. Averaged across six deployments with 5 or 9 replicas, A-GREEMENT reduces the mean latency of a geo-distributed key-value store over the fastest baseline by 12.2% and 33.3% on write-heavy and read-heavy workloads, respectively, and matches the fastest baseline on read-only workloads. A-GREEMENT combines lease-authorized local reads, direct client learning for leader-ordered writes, and a fast fixed-quorum per-key write path. It selects replica roles and write paths according to network topology and workload, accounting for both write completion and read waiting. At the heart of our consensus discovery lies AI-GREEMENT, an agent harness for the “autonomous” discovery, implementation, experimentation, and verification of candidate protocols. AI-GREEMENT integrates (1) a concept-oriented protocol knowledge base that explores consensus mechanisms through published protocols, (2) a modular implementation skeleton that structures protocol development, and (3) a LEAN-based verification framework with reusable safety definitions, reference specifications, and proofs. Our harness supports iterative design exploration, using performance measurements and fault-injection feedback to refine protocols. AI-GREEMENT is of independent interest, beyond A-GREEMENT. Its LEAN formalization uncovers several previously unreported vulnerabilities in existing consensus protocols. AI-GREEMENT provides guidelines on how domain-specific harnesses can turn general-purpose coding agents into effective tools for (distributed) computing research. Yet we argue that human consensus experts remain essential before, during, and after the search: agents reshape the researcher’s role rather than end consensus research.

1 Introduction

In state machine replication (SMR) [37, 65], a universal paradigm to build highly-available computing systems, consensus enables replicas to agree on a common sequence of client commands, maintaining consistent state despite concurrent requests and failures. Consensus is a fundamental building block of modern distributed systems, underpinning replicated databases [17,30,71], storage systems [6], cloud coordination services [10] and blockchain infrastructures [8,81]. Consensus has been an active research area for over four decades. However, designing and implementing consensus protocols that are both correct and practically efficient remains an exceptionally challenging task [12,55]. Protocol decisions involving ordering, quorums, recovery, and execution are tightly coupled: an optimization that shortens the common-case path may complicate recovery or introduce subtle correctness violations [12,64,70], as we also find for the optimizations of EPaxos Revisited [75] (§ 8). Translating a protocol design into a working system further requires preserving its safety properties throughout implementation optimizations [25,68,79], as well as demonstrating performance improvements across diverse network topologies and workloads. Advancing the state of the art in consensus therefore requires tightly integrating protocol knowledge, correctness reasoning, implementation and experimental evaluation.

The overall question we address in this paper is whether, just like in other fields of computing, AI could help “crack” the consensus problem. More specifically, we aim to come up with a new practically effective solution that would, on the one hand, tolerate, besides failures of the processes, failures of the network (i.e., asynchronous periods) and, on the other hand, expedite decisions in common failure-free executions. In particular, we ask whether we can develop a consensus protocol that would yield an SMR scheme in which, in the common case, (a) read-only commands complete at a nearby replica and (b) commands with updates take one round trip to a majority of replicas. This would essentially be optimal. Importantly, and unlike many recent AI-assisted results in mathematics and theoretical computer science, we seek a protocol that is practically useful and hence, besides algorithmic design and proofs, consider the implementation, deployment and evaluation as part of the AI-assisted task.

In short, we show in this paper that the answer is positive. Yet, we highlight the crucial role of the human researcher in the development of an adequate AI agent, the prompting of the agent as well as the certification of the agent's output. We furthermore argue that this human researcher needs to be a consensus expert to effectively steer and leverage the capabilities of agents.

Recent advances in the capabilities of large language models (LLMs) have indeed enabled coding agents to autonomously perform increasingly complex software engineering tasks [35, 80]. For example, CODEX by OpenAI [57], CLAUDE CODE by Anthropic [4], and CURSOR AGENT by Anysphere [5] can navigate repositories, modify code, execute tests, and iteratively refine implementations based on execution feedback. However, these general-purpose capabilities do not necessarily translate into the autonomous discovery of consensus protocols. Existing AI-driven systems research frameworks optimize self-contained policies such as schedulers and load balancers in simulators [14, 54], but do not seem an adequate fit for consensus, whose logic is spread across many communicating, failure-prone nodes [14]. Our preliminary experiment in § 2.3 also suggests that a coding agent combined with a frontier LLM, starting from a single existing consensus codebase, finds only marginal improvements. This gap motivates the need for specific support for consensus research beyond general-purpose coding capabilities.

We present AI-GREEMENT, an agent harness that equips general-purpose coding agents with domain-specific support for autonomous consensus research. AI-GREEMENT addresses three key challenges in consensus discovery. First, synthesizing new protocols requires understanding and combining mechanisms scattered across the consensus literature. To support this, a concept-oriented protocol knowledge base organizes consensus mechanisms and grounds them in concrete examples from published protocols. Second, translating novel designs into executable implementations is challenging because consensus mechanisms often have complex protocol states and message flows. A modular implementation skeleton structures this scheme through well-defined components and interfaces, allowing the agent to focus on protocol-specific logic. Third, subtle correctness violations can escape conventional testing, which covers only a limited set of message orderings and failure scenarios. Formal verification closes this gap by proving safety for every execution of a protocol model, but writing such models and proofs from scratch for each candidate is too costly. A LEAN-based verification framework therefore provides reusable safety definitions, reference specifications, and proof libraries, so the agent can obtain machine-checked evidence that its design, as modeled, is safe. These components work together in an iterative discovery process, where performance measurements and fault-injection results guide the agent toward more efficient and robust designs.

We demonstrate the capabilities of AI-GREEMENT through A-GREEMENT, a new consensus protocol that significantly outperforms state-of-the-art solutions. To the best of our knowledge, A-GREEMENT is the first consensus protocol that is designed and implemented by an LLM agent. When replicating a key-value store, A-GREEMENT jointly optimizes read and write latency. A-GREEMENT builds on the quorum-lease local reads of Paxos Quorum Leases (PQL) [50], generalizes BODEGA's leader-side gating of writes [29] to any replica, and adds a leaderless write path in the style of SWIFTPAXOS [63]. Its design couples write completion with read availability: for frequently accessed keys, a designated completion owner can continue serving reads while a write is pending; for ordinary keys, clients learn leader-ordered writes directly from acceptor votes; and for infrequently accessed keys, writes can bypass leader ordering through a fixed-majority per-key path. These paths share rules ensuring that local reads do not miss completed writes. A planner uses network delays and workload statistics to select replica roles and write paths, accounting for both write latency and the time reads spend waiting behind pending writes.

Averaged across six deployments with 5 or 9 replicas, on write-intensive workloads (50% writes) A-GREEMENT reduces mean latency by 12.2% relative to SWIFTPAXOS, the best alternative, at the cost of a 13.8% higher p99 latency. On read-dominated workloads (5% writes), A-GREEMENT reduces mean and p99 latency by 33.3% and 30.1%, respectively, relative to BODEGA, the alternative with the lowest mean latency, with a p99 latency within 3.4% of the best alternative on that metric, SWIFTPAXOS. In the common case, A-GREEMENT's reads complete at a single nearby replica, and writes to rarely accessed keys complete in one round trip. AI-GREEMENT completed the discovery process (including the verification) of A-GREEMENT in around 24 hours, consuming 778.45 million tokens at an estimated API-equivalent cost of $198.69.

To summarize, we make the following contributions:

• We design AI-GREEMENT, an agent harness designed for the automated discovery of consensus protocols ( §3§ 3). AI-GREEMENT integrates a consensus knowledge base, a modular consensus skeleton, and LEAN-based formalization and verification.

• Using AI-GREEMENT, we synthesize A-GREEMENT, a new consensus protocol “autonomously” designed and implemented by AI-GREEMENT. A-GREEMENT combines localized reads, complementary write paths, as well as topology- and workload-aware planning ( §4,5,6§ 4,5,6).

• We perform an extensive experimental evaluation of A-GREEMENT across replica counts, workloads, and network topologies. Averaged across six deployments with 5 or 9 replicas, A-GREEMENT reduces mean latency relative to the best alternative by 12.2% and 33.3% on write-heavy and read-heavy workloads, respectively, while matching the best-performing baseline on the read-only workload ( §7§ 7).

• Using AI-GREEMENT, we describe four previously unreported safety vulnerabilities in existing consensus protocols, found through agent-driven LEAN formalization and verification, demonstrating AI-GREEMENT’s ability to uncover subtle protocol flaws ( §8§ 8).

• We reflect on our results and ask whether this marks the end of human-driven consensus research, based on where our agent succeeded, where it needed human steering, and what remains for researchers to do ( §10§ 10). Our findings imply that a human consensus expert is (still) badly needed. Many of these findings should apply to other (distributed) computing problems, especially when the goal is to discover, formally prove and practically evaluate a solution.

References (67)