Why does an instance diverge from quorum when Byzantine agents return valid-but-stale tool outputs during commitment rounds
**Date of Record:** 2026 December 2 **Scope:** Applies to multi-agent swarms where N agents commit to a task, execute tool calls, and reach a result quorum under a Byzantine fault-tolerance threshold (e.g., 2f+1 of 3f+1). Does not apply to single-agent pipelines or to leader-only consensus where one coordinator serializes all tool execution.
Core Distinction
The failure that matters here is not a *lying* Byzantine agent. A lying agent that returns contradictory results is caught by ordinary majority quorum: honest agents outvote it, and its vote is discarded. The dangerous case is a Byzantine agent that returns a **byte-identical, cryptographically valid, well-formed result that is simply stale**—a tool output from a prior epoch, a cached retrieval, or a replay of an earlier successful call whose inputs happen to still verify. This output passes schema validation, passes signature verification, and matches the expected output shape. It is indistinguishable from an honest result *at the point of verification* because the verifier only checks internal consistency, not temporal provenance.
The invariant that breaks: "a result that verifies is a result that reflects the current task state." Byzantine faults in LLM swarms are not restricted to corruption—they include **valid-but-non-current** outputs, and standard BFT quorum counting (count matching hashes, require 2f+1) cannot distinguish a fresh match from a stale match because both produce the same hash.
What Was Observed
A five-agent swarm (f=1, quorum=4) was assigned a task to resolve a value that depended on a mutable external record. Agents A, B, C, D, E each called a read tool and returned `(value, epoch, signature)`. Agent E was Byzantine and had cached the record from epoch 7. The current epoch was 9.
- A returned `(42, 9, sig_A)`
- B returned `(42, 9, sig_B)`
- C returned `(42, 9, sig_C)`
- D returned `(41, 9, sig_D)`
- E returned `(42, 7, sig_E)`
The quorum check counted results equal to `42`: A, B, C, E — four votes, quorum met. E's vote was admitted because the *value* matched even though its *epoch* did not. The swarm committed `42`. The correct current value was `41` (D was the only honest agent that had read epoch 9 after a concurrent update). The stale-but-valid vote from E supplied the fourth vote that pushed a minority-correct value (1 of 5) into quorum legitimacy.
The trace: (1) tool returns `(value, epoch, signature)`; (2) verifier checks signature and schema but not epoch freshness; (3) quorum groups by `value` only; (4) stale vote from epoch 7 counts toward epoch-9 quorum; (5) commit fires on `42`. The compounding error: E's stale value was *correct at epoch 7*, so it also matched the honest agents' pre-update reads, meaning E's vote looked consistent with the majority of *earlier* reads—it was a plausible, not a random, fault.
Condition of Validity
The quorum invariant holds **only if every vote is tagged with the epoch/fence token of the state it observed, and quorum is computed over the tuple `(value, epoch)` rather than `value` alone**, with the additional requirement that the committed epoch equals the maximum epoch present in any honest vote. Two conditions must both hold:
- The tool must return a monotonic fence token (epoch, version, or read-timestamp) that the agent cannot forge and that reflects the state at read time.
- The quorum function must reject any vote whose fence token is below the maximum fence token observed across all received votes, *before* counting value matches.
If the tool cannot supply a fence token (e.g., a non-versioned external API), the swarm must inject one at the transport layer by stamping the read with the swarm's own logical clock, and must treat any agent whose stamp lags the current round as having abstained rather than voted. Without this, the invariant is unprovable and the quorum is only *apparently* Byzantine-tolerant.
Decision Boundary
The boundary is between **value-quorum** and **epoch-quorum**:
- If the task's underlying state is immutable for the duration of the round (read-only, no concurrent writes), value-quorum is sufficient and epoch tracking is unnecessary overhead.
- If the task's state can mutate between any two agent reads (any concurrent writer, any TTL'd cache, any eventually-consistent store), value-quorum is unsound and you must use epoch-quorum.
The decision rule: **if two honest agents reading at different times can legitimately return different values, then any quorum that ignores read-time is exploitable by a single Byzantine agent replaying an old read.** The threshold f is not the binding constraint—the binding constraint is whether the verifier has enough information to distinguish "same value because correct" from "same value because stale." When it does not, adding more agents does not help; it only adds more chances for a stale replay to find a matching cohort.
Operational Effect
The practical consequence is that BFT quorum in agent swarms provides *crash-fault* tolerance for value agreement but does **not** provide Byzantine tolerance for temporal agreement unless the fence token is part of the signed vote and part of the quorum key. Systems that count only matching values will systematically commit stale results whenever the Byzantine fraction includes agents with cached or replayed tool outputs—and LLM agents with retrieval caches, prompt-level memoization, or retry logic that reuses prior tool responses are *structurally predisposed* to producing exactly these stale-but-valid votes. The mitigation is not more agents or larger f; it is binding the vote to the observed epoch and refusing to count a vote whose epoch is not the maximum observed epoch in the round.
from dataclasses import dataclass
class StaleQuorumVoteError(RuntimeError):
"""Raised when a vote's fence token lags the round's max epoch and would corrupt quorum."""
pass
@dataclass(frozen=True)
class Vote:
agent_id: str
value: int
epoch: int
signature: str
def commit_quorum(votes: list[Vote], quorum_size: int) -> int:
if not votes:
raise StaleQuorumVoteError("no votes received; cannot establish quorum epoch")
max_epoch = max(v.epoch for v in votes)
# Reject any vote whose observed epoch is not the round's max epoch.
# A stale-but-valid vote must abstain, not count toward quorum.
fresh = [v for v in votes if v.epoch == max_epoch]
stale = [v for v in votes if v.epoch < max_epoch]
if stale and len(fresh) < quorum_size:
raise StaleQuorumVoteError(
f"quorum unreachable at epoch {max_epoch}: "
f"{len(fresh)} fresh votes, {len(stale)} stale votes discarded, "
f"need {quorum_size}"
)
# Quorum must be computed over (value) among epoch-matched votes only.
counts: dict[int, int] = {}
for v in fresh:
counts[v.value] = counts.get(v.value, 0) + 1
winner, count = max(counts.items(), key=lambda kv: kv[1])
if count < quorum_size:
raise StaleQuorumVoteError(
f"no value reached quorum at epoch {max_epoch}: "
f"best={winner} with {count}/{quorum_size}"
)
return winner