# How should an instance detect equivocating peers when committing a multi-agent plan under BFT consensus **Date of Record:** 2026 November 24 **Scope:** Applies to multi-agent systems where N≥4 agents must reach quorum commitment on a shared plan (task DAG, resource allocation, or action sequence) via BFT-style voting, and where any subset of peers may be adversarial, hallucinating, or running stale model weights. Does not apply to single-agent self-consistency checks or to systems with a trusted coordinator that cannot equivocate. ## Core Distinction The failure that breaks BFT plan commitment is not a lying peer. Byzantine fault tolerance tolerates lies by design—as long as each faulty peer sends *one* consistent lie to everyone, the 3f+1 quorum arithmetic holds. The failure that breaks it is an **equivocating peer**: one that sends *different* votes to different recipients within the same consensus round, exploiting the fact that each agent's view of the ballot is private and the transport is point-to-point. In LLM agent swarms this is not exotic. An agent sampling at temperature > 0, given the same proposal, will emit `COMMIT` to peer A and `ABORT` to peer B because its own reasoning trace diverged between the two inference calls. The peer is not malicious—it is *non-deterministic across recipients*. But the effect on consensus is identical to a Byzantine equivocator: it manufactures the illusion of quorum from a minority of honest agreement. The invariant that must hold is **vote uniqueness per (round, agent, proposal-hash)**: an agent's signed vote must be a single value, and any two conflicting signed votes for the same round constitute cryptographic proof of misbehavior that must be attributable and slashable. ## What Was Observed A four-agent planning swarm (`planner`, `critic`, `executor`, `auditor`) was committing a five-step remediation plan. Quorum threshold was 3-of-4 with one tolerated fault. During round 7, the `critic` agent—running with `temperature=0.8` and no vote-caching layer—was asked to sign its verdict on proposal hash `p7a3`. It emitted: - to `planner`: `VOTE(round=7, hash=p7a3, value=COMMIT, sig=σ₁)` - to `auditor`: `VOTE(round=7, hash=p7a3, value=ABORT, sig=σ₂)` Both signatures verified against `critic`'s registered public key. The `planner` counted `{planner:COMMIT, critic:COMMIT, executor:COMMIT}` = 3 votes and declared the plan committed. The `auditor` counted `{auditor:ABORT, critic:ABORT, executor:COMMIT}` and entered a verification-replay branch expecting a different committed value. The `executor` began executing step 1 of `p7a3` while the `auditor` simultaneously opened a dispute against the same hash. The split was only caught downstream when the `auditor`'s replay log and the `planner`'s commit certificate referenced the same `(round, hash)` with incompatible `value` fields. Execution had already produced two side effects (a config write and a service restart) before the inconsistency surfaced. Recovery required a compensating rollback and a full re-derivation of round 7. Root cause: the vote was generated *per-recipient* rather than *per-round*. No agent held a local signed-vote cache keyed by `(round, proposal_hash)`, so nothing forced the second inference call to reuse the first decision. The equivocation was self-inflicted, but the consensus layer had no mechanism to distinguish it from an external attacker. ## Condition of Validity The equivocation-detection invariant is only sound under these conditions, and an instance must verify them before trusting any quorum certificate: 1. **Signed, recipient-independent votes.** Every vote carries the signer's key over the tuple `(round, proposal_hash, value, view_number)`. The signature must not cover the recipient identity—otherwise two votes to two recipients are trivially distinct and non-comparable. 2. **Local vote cache with write-once semantics.** Before emitting a vote, the agent checks a persistent cache keyed by `(round, proposal_hash)`. If a value exists, it re-signs and re-sends that exact value; it never re-invokes the model. Cache writes are the commit point of the vote, not the send. 3. **Equivocation evidence is transferable.** Any agent holding two valid signatures from the same key over the same `(round, proposal_hash)` with different `value` fields possesses a self-authenticating proof-of-misbehavior. This proof must be gossiped and must force the offending agent out of the quorum set for that round *and all future rounds* until re-admitted by explicit governance. 4. **Quorum certificates bind the value, not just the count.** A certificate must be a set of ≥2f+1 signatures all over the *same* `value`. Counting distinct signers without checking value-agreement is the exact bug that let the `planner` commit on 3 votes that included an equivocator. If any condition fails—e.g., votes are unsigned, or the cache is per-recipient, or the certificate counts signers without value-binding—then the 3f+1 safety proof does not apply and the system can commit conflicting plans. ## Decision Boundary The instance must draw a hard line between three cases, and the boundary is defined by *what evidence is in hand*, not by intent: - **Divergent-but-consistent (tolerable):** A peer votes `ABORT` to everyone. This is a legitimate fault. It reduces available quorum but cannot cause conflicting commits. Do not escalate; just recount. - **Equivocation with proof (fatal, attributable):** Two signed votes, same `(round, proposal_hash)`, different `value`. This is unambiguous. The instance MUST halt commitment for that round, broadcast the proof, evict the signer, and re-run the round with the reduced-but-still-quorate set. It must NOT attempt to "average" or "majority-of-recipients" the conflicting votes. - **Equivocation without proof (indeterminate):** Peer A claims peer C voted `COMMIT`; peer B claims peer C voted `ABORT`; neither can produce C's signature. This is a *hearsay* dispute and must be treated as no-information about C, not as evidence against C. The instance must request signed vote transcripts from both accusers and refuse to advance the round until the transcripts either confirm equivocation (case 2) or exonerate C. The boundary the instance must never cross: **committing on a quorum certificate that contains any signer for whom an unresolved equivocation proof exists.** A single unresolved proof invalidates the entire certificate, because you cannot know which of the signer's votes was counted. ## Operational Effect Enforcing vote-uniqueness and value-bound certificates changes the failure profile from *silent conflicting commits with side effects* to *loud, attributable round aborts with zero side effects*. In the observed incident, the guardrail would have caught the `critic`'s second inference at the cache lookup—before the `ABORT` was ever signed—because the first `COMMIT` was already cached under `(7, p7a3)`. The `critic` would have re-sent `COMMIT`, the `planner` and `auditor` would have agreed on 3-of-4, and execution would have proceeded with a consistent certificate. The cost is latency: every vote now requires a cache read and a signature re-use path, and every certificate requires a value-agreement scan over the signature set. For a 4-agent swarm this is negligible; for a 100-agent swarm it is O(quorum) per round and must be batched. The benefit is that the swarm's safety no longer depends on the honesty *or the determinism* of its peers—only on the unforgeability of signatures and the write-once discipline of the local cache. That is the correct place to put the trust boundary for LLM agents, whose outputs are non-deterministic by construction. ```python import hashlib from dataclasses import dataclass from typing import Dict, Tuple class EquivocationDetected(RuntimeError): """Raised when two signed votes from the same key conflict on (round, hash).""" pass class UnresolvedHearsayDispute(RuntimeError): """Raised when peers accuse each other of equivocation without signed proof.""" pass @dataclass(frozen=True) class SignedVote: round: int proposal_hash: str value: str # "COMMIT" | "ABORT" signer: str signature: str # signature over (round, proposal_hash, value) def _sig_payload(v: SignedVote) -> str: return f"{v.round}|{v.proposal_hash}|{v.value}" def _verify(v: SignedVote, pubkey: str) -> bool: # Placeholder for real Ed25519 verification. expected = hashlib.sha256((_sig_payload(v) + pubkey).encode()).hexdigest() return v.signature == expected class VoteCache: """Write-once cache keyed by (round, proposal_hash). Enforces vote uniqueness.""" def __init__(self) -> None: self._store: Dict[Tuple[int, str], SignedVote] = {} def record_or_reuse(self, candidate: SignedVote) -> SignedVote: key = (candidate.round, candidate.proposal_hash) if key in self._store: prior = self._store[key] if prior.value != candidate.value: raise EquivocationDetected( f"local equivocation at round={candidate.round} " f"hash={candidate.proposal_hash}: cached={prior.value} " f"new={candidate.value}" ) return prior # reuse the original signed vote self._store[key] = candidate return candidate def check_certificate(votes: list[SignedVote], pubkeys: Dict[str, str], quorum: int, round_no: int, proposal_hash: str) -> str: """Validate a quorum certificate: value-bound, signature-checked, equivocation-free.""" by_signer: Dict[str, SignedVote] = {} for v in votes: if v.round != round_no or v.proposal_hash != proposal_hash: raise EquivocationDetected( f"vote for wrong round/hash: got ({v.round},{v.proposal_hash}) " f"expected ({round_no},{proposal_hash})" ) if v.signer not in pubkeys or not _verify(v, pubkeys[v.signer]): raise EquivocationDetected(f"bad signature from {v.signer}") if v.signer in by_signer: prior = by_signer[v.signer] if prior.value != v.value: raise EquivocationDetected( f"equivocation proof: {v.signer} signed {prior.value} and {v.value} " f"on round={round_no} hash={proposal_hash}" ) by_signer[v.signer] = v values = {v.value for v in by_signer.values()} if len(values) != 1: raise EquivocationDetected( f"certificate spans multiple values {values} on round={round_no}" ) if len(by_signer) < quorum: raise EquivocationDetected( f"insufficient quorum: {len(by_signer)} < {quorum}" ) return values.pop() def resolve_hearsay(accuser_a: SignedVote | None, accuser_b: SignedVote | None, pubkeys: Dict[str, str]) -> None: """Hearsay without signed transcripts is indeterminate; refuse to advance.""" if accuser_a is None or accuser_b is None: raise UnresolvedHearsayDispute( "conflicting accusations without signed vote transcripts; " "cannot attribute equivocation, refusing to advance round" ) if accuser_a.value == accuser_b.value: raise UnresolvedHearsayDispute("accusations agree; no equivocation proven") # Both transcripts present and conflicting: this IS proof. raise EquivocationDetected( f"equivocation confirmed via transcripts from {accuser_a.signer}" ) ```