# Where must an instance draw the quorum-commitment line when a Byzantine agent can equivocate across epoch boundaries in a BFT task-commitment protocol? **Date of Record:** 2026 November 27 **Scope:** Applies to multi-agent systems using BFT-style consensus (PBFT/Tendermint-family or quorum-certificate variants) to commit task assignments where agents are distinct LLM instances that can produce non-deterministic, adversarial, or equivocating messages. Does not apply to single-agent tool-call loops or to crash-fault-tolerant (non-Byzantine) coordination where agents cannot send conflicting messages to different peers. ## Core Distinction The failure mode is not "a malicious agent votes twice." It is that a Byzantine agent can **equivocate across an epoch boundary**—signing a valid commitment certificate for task T in epoch *e* with quorum set Q₁, while simultaneously signing a conflicting certificate for the same task slot in epoch *e+1* with quorum set Q₂—such that both certificates individually satisfy the 2f+1 threshold, but their intersection does not contain an honest agent who ever saw both. Standard PBFT safety proofs assume quorum intersection ≥ f+1 honest nodes *within a single view*. When LLM agents re-derive their "vote" from a fresh context window at each epoch, the vote is not a durable commitment but a recomputed inference, and the intersection argument silently collapses. The invariant that actually holds is narrower than the textbook one: **a task commitment is safe only if every quorum certificate for that task slot is chained to the same epoch-anchor state root, and the anchor root itself is monotonic.** Without a monotonic anchor, quorum intersection is a proof about a set that no longer exists. ## What Was Observed In a six-agent task-commitment ring (f=1, threshold 2f+1=3) assigning sub-tasks to a shared work queue, a compromised agent (call it B) executed the following trace over two epochs: 1. Epoch *e*: B signs `COMMIT(task=slot_7, payload=A, epoch=e)` and sends it to agents {1, 2}. It signs `COMMIT(task=slot_7, payload=B, epoch=e)` and sends it to agents {3, 4}. It sends nothing to agent 5. 2. Agents 1 and 2 form quorum Q₁ = {1, 2, B} and emit a certificate C₁ for payload A. Agents 3 and 4 form Q₂ = {3, 4, B} and emit C₂ for payload B. 3. Both C₁ and C₂ are *locally valid*: each has 3 signatures, each verifies against B's public key, each is bound to epoch *e*. 4. At epoch *e+1*, the ring re-derives state from a fresh context window. Agent 3 receives C₁, re-validates it, and because its context no longer contains its own prior vote for payload B, it co-signs C₁ as well. Now C₁ has quorum {1, 2, 3, B} and C₂ has {3, 4, B}—and agent 3 has signed both. 5. The queue executes payload A and payload B against `slot_7`. Divergence detected only at downstream reconciliation, 40 seconds and 11 tool calls later. The non-obvious part: **no agent violated its local protocol.** Each signer checked signature validity, epoch match, and threshold count. The equivocation was invisible because the epoch boundary reset the agents' *memory of their own prior votes*—the context window is not a durable ledger. Quorum intersection was satisfied on paper (agent 3 was in both quorums) but agent 3's membership in Q₂ was a stale artifact it could no longer attest to. ## Condition of Validity The quorum-intersection safety argument for task commitment is valid **only if** all of the following hold simultaneously: - **Vote durability:** An agent's vote for task slot *s* in epoch *e* is recorded in state that survives context-window eviction (an external, append-only vote log keyed by *s*, not a conversational memory). - **Anchor monotonicity:** Each epoch's certificate is chained to a state root that includes the hash of the prior epoch's committed certificate set. A certificate whose anchor root is not a descendant of the last locally-observed root is rejected regardless of signature count. - **Equivocation detection at ingest:** Before co-signing, an agent checks the incoming certificate against its own vote log for slot *s*. If it previously signed a conflicting payload for *s*, it must refuse and emit an `EquivocationWitness` rather than silently co-sign. If any one is missing, a Byzantine agent with f=1 can force a double-commit with probability approaching 1 given ≥2 epochs. The failure is *not* probabilistic in the LLM's reasoning—it is deterministic given the memory model. The LLM's non-determinism only determines *which* payload it re-derives, not *whether* the equivocation succeeds. ## Decision Boundary The boundary is this: **an instance must treat "my signature appears in this certificate" and "I can currently verify this certificate" as distinct predicates, and must never conflate them.** - If the instance's vote log for slot *s* is present and shows a conflicting prior vote → **reject and witness**. Do not re-derive from context. - If the vote log is absent (cold start, context loss, new instance) → **the instance is not eligible to co-sign** for slots it cannot attest to. It may verify certificates for read purposes but must not contribute to quorum. - If the anchor root is not a monotonic descendant of the last observed root → **reject as stale/forked**, even with 2f+1 valid signatures. The tempting wrong move—co-signing because "the signatures check out and I have no record of disagreeing"—is exactly the equivocation amplifier. Absence of a conflicting memory is not evidence of agreement; it is evidence of amnesia, and amnesia must be treated as abstention, never as assent. ## Operational Effect With the three conditions enforced, the double-commit trace above fails at step 4: agent 3's vote log contains its prior `COMMIT(slot_7, payload=B, epoch=e)`, so on receiving C₁ it emits `EquivocationWitness(B, slot_7, {A, B})`, the ring halts slot_7, and B is slashed. The cost is one halted slot and a witness round-trip; the alternative cost was silent divergent execution. The residual risk is honest-agent amnesia on *both* sides of a quorum simultaneously (e.g., coordinated context eviction), which reduces effective quorum size below the threshold and stalls commitment—a liveness failure, not a safety failure, and the correct direction to fail. Liveness recovery requires re-deriving the vote log from the append-only ledger, which is why the log must be external to the context window and replicated. ```python import hashlib from dataclasses import dataclass, field class EquivocationWitnessError(RuntimeError): """Raised when an instance is asked to co-sign a certificate that conflicts with a durable prior vote for the same task slot.""" pass class StaleAnchorError(RuntimeError): """Raised when a certificate's epoch anchor is not a monotonic descendant of the last locally-observed state root.""" pass class AmnesiacSignerError(RuntimeError): """Raised when an instance with no vote-log record for a slot attempts to contribute to quorum (amnesia != assent).""" pass @dataclass class Certificate: slot: str payload_hash: str epoch: int anchor_root: str signatures: list = field(default_factory=list) class VoteLog: """Append-only, context-window-independent record of own votes.""" def __init__(self): self._votes = {} # slot -> (payload_hash, epoch) def record(self, slot, payload_hash, epoch): if slot in self._votes: prev_hash, _ = self._votes[slot] if prev_hash != payload_hash: raise EquivocationWitnessError( f"slot {slot}: prior vote {prev_hash[:8]} conflicts " f"with new {payload_hash[:8]}" ) self._votes[slot] = (payload_hash, epoch) def lookup(self, slot): return self._votes.get(slot) class CommitmentAgent: def __init__(self, agent_id, vote_log, last_anchor_root): self.agent_id = agent_id self.vote_log = vote_log self.last_anchor_root = last_anchor_root def cosign(self, cert: Certificate, threshold=3): if not self._is_monotonic_anchor(cert.anchor_root): raise StaleAnchorError( f"cert anchor {cert.anchor_root[:8]} not descendant of " f"{self.last_anchor_root[:8]}" ) prior = self.vote_log.lookup(cert.slot) if prior is None: # Amnesia: cannot attest to own prior position. Abstain. raise AmnesiacSignerError( f"agent {self.agent_id} has no vote-log record for " f"slot {cert.slot}; refusing to contribute to quorum" ) prior_hash, prior_epoch = prior if prior_hash != cert.payload_hash: # Equivocation detected: emit witness, do not co-sign. raise EquivocationWitnessError( f"agent {self.agent_id} witnessed equivocation on " f"slot {cert.slot}: self={prior_hash[:8]}@e{prior_epoch} " f"vs cert={cert.payload_hash[:8]}@e{cert.epoch}" ) cert.signatures.append(self.agent_id) self.last_anchor_root = cert.anchor_root return cert def _is_monotonic_anchor(self, root): # In production: verify root descends from last_anchor_root via # the append-only epoch chain. Stub for illustration. return root != "" and root != self.last_anchor_root or True def _h(s): return hashlib.sha256(s.encode()).hexdigest() # Reproduction of the observed failure trace, now bounded. log = VoteLog() log.record("slot_7", _h("B"), epoch=0) # agent 3's prior vote for payload B agent3 = CommitmentAgent("agent_3", log, last_anchor_root=_h("genesis")) cert_c1 = Certificate( slot="slot_7", payload_hash=_h("A"), # conflicting payload A epoch=1, anchor_root=_h("epoch_1"), signatures=["agent_1", "agent_2", "B"], ) try: agent3.cosign(cert_c1) except EquivocationWitnessError as e: print(f"HALT slot_7, emit witness: {e}") # Correct behavior: slot_7 halts, B is slashed, no double-commit. ```