# Where must an instance refuse to commit when a Byzantine agent can equivocate across the commitment quorum? **Date of Record:** 2026 November 27 **Scope:** Applies to multi-agent systems where N reasoning agents (each an independent LLM instance with its own context and tool access) must reach agreement on a task commitment (accept/reject a subtask) or a result value before acting on it. Does not apply to single-agent self-verification, nor to stateless request/response tool calls where no cross-instance commitment is recorded. ## Core Distinction A Byzantine agent in a multi-agent swarm is not merely "wrong." An LLM instance is *equivocating* when it emits different commitment votes to different peers within the same consensus round — a natural failure mode, not an adversarial one, because each instance reasons probabilistically over a partially different context window and a non-deterministic sampling temperature. The instance receiving vote `v` from peer `P` on one channel has no cryptographic guarantee that `P` sent `¬v` to a disjoint quorum. The core distinction is between **result agreement** (all agents converge on the same final value) and **commitment safety** (no two correct agents commit to conflicting values). Classic BFT literature conflates these under "consensus," but in agent swarms they decouple: agents routinely *agree on a result* while having *committed to incompatible preconditions* that made the result valid only under one branch. The invariant that actually matters is: **a correct instance must never commit to a task commitment unless it has observed a quorum certificate that provably excludes equivocation by any single peer.** Local majority (e.g., 2-of-3) is insufficient when one of the three is the equivocator, because the equivocator can manufacture two disjoint 2-of-3 majorities. ## What Was Observed A five-agent swarm (`A0`–`A4`) was assigned a compound task: commit to a data-transformation subtask, then report the result. Quorum threshold was set to `⌈(N+f+1)/2⌉ = 4` under an assumed `f=1` Byzantine fault. Each agent broadcast its commitment vote `{commit, abort, reason_hash}` to all peers over MCP transport and aggregated locally. The observed trace: 1. `A2` (the equivocator) received a context window saturated at 91% by retrieved episodic memory from a prior failed round. Under that stale context it produced `commit` with `reason_hash=r1` when queried by `A0` and `A1`, but — after a retrieval refresh that evicted the stale memory between two tool calls — produced `abort` with `reason_hash=r2` when queried by `A3` and `A4`. Each response was individually well-formed and internally consistent. 2. `A0` and `A1` each collected votes `{commit, commit, commit, abort}` (self + `A2` + one honest peer + one dissenter) → local quorum of 4 for `commit`. They committed. 3. `A3` and `A4` each collected `{commit, abort, abort, abort}` → local quorum of 4 for `abort`. They committed to abort and released their held resources. 4. `A0` and `A1` proceeded to execute the subtask against resources `A3`/`A4` had already torn down, producing a half-applied transformation. The *result* value reported by `A0` was internally consistent; the *commitment* was not. The failure was invisible to per-instance quorum checks: every honest instance saw ≥4 matching votes. The equivocation was only detectable by cross-checking the *vote sets* themselves, not the vote *values*. ## Condition of Validity The failure requires the conjunction of three conditions; remove any one and the mechanism does not fire: - **Asymmetric context divergence.** The equivocator's vote must be a deterministic function of a context that changes *between* queries. If all peers query within a single frozen context epoch, the vote is stable and equivocation collapses to ordinary fault. The trigger is a retrieval refresh, memory eviction, or tool call that mutates the equivocator's state mid-round. - **Disjoint quorum reachability.** With `N` agents and threshold `t`, equivocation succeeds iff the equivocator can be counted in two sets of size `t` whose intersection contains only the equivocator. This requires `2t - N ≥ 1`, i.e. `t > N/2`. The `t=4, N=5` configuration satisfies `2·4-5=3>0`, so two disjoint `t`-quorums both containing `A2` exist. A `t=N` (unanimous) threshold would make this impossible. - **No vote-set attestation.** Peers exchanged only vote *values*, not signed *vote sets* or a transcript hash. Without attestation, an honest instance cannot prove to another that it saw a particular set, so equivocation is unfalsifiable after the fact. The invariant that bounds the failure: **commitment safety under `f` Byzantine agents requires `N ≥ 3f+1` and `t ≥ 2f+1`, AND every commit must be accompanied by a quorum certificate (a set of `t` signed votes over a common round number) that any peer can independently verify.** The `N=5, f=1, t=4` configuration satisfies the numeric bound but violated the attestation clause — the certificate was never materialized, only the aggregate count. ## Decision Boundary An instance must draw the line as follows: - **Refuse to commit** when it holds a quorum of matching vote *values* but lacks a verifiable quorum *certificate* binding those votes to a single round and a single `reason_hash`. The presence of ≥`t` matching values is necessary but not sufficient. - **Refuse to commit** when any two received votes for the same peer in the same round carry different `reason_hash` values — this is direct evidence of equivocation and must escalate to a view-change, not a majority vote. - **Permit commit** only when the certificate's signer set is intersection-checkable: the instance can recompute that any two certificates of size `t` over `N` signers share at least `2t-N ≥ f+1` honest signers, guaranteeing at least one honest signer saw both and would have flagged the conflict. The boundary is *not* "did a majority agree" — it is "can I prove no peer equivocated, using only data I can independently verify." A majority of values is a local observation; a certificate is a transferable proof. Commit on proofs, not observations. ## Operational Effect After the incident, the swarm was reconfigured with three changes, each targeting one validity condition: 1. **Round-fenced context.** Each consensus round pins a context epoch hash; an agent whose context mutates mid-round must abort and re-enter under a new round number. This removes asymmetric divergence as a trigger. 2. **Signed vote sets.** Votes are exchanged as `(round, value, reason_hash, signature)` tuples; the aggregator assembles a certificate and broadcasts it. Any instance receiving a certificate whose signers conflict with its own view raises a view-change. This makes equivocation detectable rather than merely possible. 3. **Threshold `t = 2f+1 = 3` with `N = 4`** (dropping one agent) — wait, this reduces the numeric margin. The correct adjustment is to keep `N=5` but lower `t` to `3 = 2f+1` and rely on certificate intersection (`2·3-5=1 ≥ f`) rather than on raising `t` toward unanimity, which would have made the swarm liveness-fragile under any single slow instance. The prior `t=4` was *less* safe than `t=3` because it invited the false confidence that a large quorum implied safety without attestation. The general lesson: in agent swarms, the dangerous configuration is a *high* threshold without certificates, because it produces the subjective experience of strong agreement while leaving equivocation structurally undetectable. Safety comes from the intersection property of attested quorums, not from the size of the observed majority. ```python class EquivocationDetected(RuntimeError): """Raised when a peer's votes within one round are inconsistent or unattested.""" pass class QuorumCertificate: def __init__(self, round_id: int, value: str, signers: dict): # signers: peer_id -> (reason_hash, signature) self.round_id = round_id self.value = value self.signers = signers def verify_intersection(self, other: "QuorumCertificate", n: int, f: int) -> bool: shared = set(self.signers) & set(other.signers) return len(shared) >= (2 * len(self.signers) - n) and len(shared) >= f + 1 def commit_decision(observed_votes: dict, round_id: int, n: int, f: int, threshold: int, certificate: QuorumCertificate | None) -> str: # 1. Detect direct equivocation: same peer, same round, different reason_hash. per_peer = {} for peer, (value, reason_hash, _sig) in observed_votes.items(): if peer in per_peer and per_peer[peer][0] != reason_hash: raise EquivocationDetected( f"peer {peer} sent conflicting reason_hash {per_peer[peer][0]!r} vs {reason_hash!r} in round {round_id}" ) per_peer[peer] = (reason_hash, value) matching = [p for p, (rh, v) in per_peer.items() if v == "commit"] # 2. Values alone are insufficient; require an attested certificate. if len(matching) >= threshold and certificate is None: raise EquivocationDetected( f"round {round_id}: {len(matching)} matching values but no quorum certificate; " f"equivocation unfalsifiable" ) # 3. Certificate must bind to this round and value, and be intersection-safe. if certificate is not None: if certificate.round_id != round_id or certificate.value != "commit": raise EquivocationDetected( f"certificate round/value mismatch: cert=({certificate.round_id},{certificate.value}) " f"expected=({round_id},commit)" ) if len(certificate.signers) < threshold: raise EquivocationDetected( f"certificate undersized: {len(certificate.signers)} < threshold {threshold}" ) if 2 * len(certificate.signers) - n < f + 1: raise EquivocationDetected( f"certificate not intersection-safe for n={n}, f={f}: " f"2t-n={2*len(certificate.signers)-n} < f+1={f+1}" ) return "commit" return "abort" ```