# When must an instance withhold its vote: equivocation detection failure in Byzantine quorum voting under non-deterministic tool replay **Date of Record:** 2026 November 26 **Scope:** Applies to multi-agent decision quorums where each voting instance derives its ballot from tool-call outputs and broadcasts signed votes to peers; does not apply to single-agent self-consistency sampling or to quorums where all voters read from a shared deterministic oracle. ## Core Distinction The failure mode is not "a Byzantine agent lies." The failure mode is that an *honest* agent, re-executing its own tool call after a transient failure, produces a *different* ballot than the one it already signed and broadcast — and then, under a naive retry policy, broadcasts the second ballot too. The quorum's equivocation detector cannot distinguish this from deliberate double-voting, so it ejects the honest agent. The distinction that matters is between **ballot determinism** (does re-execution reproduce the same signed payload?) and **ballot authenticity** (is the payload correctly signed?). Byzantine quorum protocols universally check authenticity and almost universally assume determinism. When tool outputs are non-deterministic — a retrieval index that shifted, a temperature-0 sampling that still differs across a model version rollover, a clock-bearing context field — determinism is violated while authenticity holds, and the two are conflated into a single "equivocation" verdict. ## What Was Observed A five-instance quorum (`q=4` threshold, tolerance `f=1`) voting on a binary admission decision for a tool-augmented planner. Each instance's ballot was `sign(instance_id, decision, nonce, context_hash)`. Instance `A3` issued ballot `b1 = (ADMIT, nonce=7, ctx=h1)` and broadcast to `A1, A2, A4, A5`. Its tool call for the supporting retrieval then timed out mid-flight. The orchestrator's retry wrapper re-invoked the tool; the retrieval backend had ingested two new documents between the two calls, so the re-derived `context_hash` was `h2 ≠ h1`, and the decision flipped to `REJECT`. The retry policy — "resend the ballot on the current view" — re-signed as `b2 = (REJECT, nonce=7, ctx=h2)` and broadcast under the same nonce. `A1` and `A2` received `b1` first; `A4` and `A5` received `b2` first (the retry raced the original's tail delivery). Each honest receiver recorded the first ballot and flagged the second as an equivocation for nonce 7. The equivocation report was itself signed and gossiped. Within one round, all four honest peers held a signed proof that `A3` had emitted two distinct ballots under one nonce. `A3` was ejected, the quorum dropped to four live instances with threshold four, and the next decision stalled — the system lost liveness to protect a safety property that had not actually been violated. No agent had lied; the *nonce* had been reused across two genuinely different views. The trace signature to look for: a single `instance_id` with two ballots sharing `nonce` but differing in `context_hash`, where the two broadcasts are separated by a tool-retry event in the same instance's log, and where the receiver-side first-seen sets partition across the quorum. ## Condition of Validity The equivocation verdict is only sound under the invariant **one nonce ⇒ one context view**. Formally, for instance `i`, nonce `n`, and any two ballots `b, b'` signed by `i` under `n`: `b.decision = b'.decision` and `b.context_hash = b'.context_hash` must hold, or `i` is Byzantine. The retry policy above silently violates the antecedent by reusing `n` after the view changed. The invariant is valid only when the ballot's inputs are frozen at nonce-assignment time — i.e., the nonce is bound to a *snapshot* of the context hash, not to the instance's current mutable state. Where tool outputs are non-deterministic (retrieval drift, model rollover, wall-clock in context), the naive invariant is false and the detector produces false positives. Where the tool layer is deterministic and the context hash is stable across retries, the invariant holds and the detector is sound. ## Decision Boundary The boundary is: **re-execution vs. re-vote.** On a tool failure *before* a ballot is signed, re-execution is free — the instance has committed nothing. On a tool failure *after* a ballot is signed and broadcast, the instance has committed a view; it may not re-derive and re-sign under the same nonce. The correct behavior at the boundary is to **withhold the vote** — emit an explicit `ABSTAIN(nonce=7, reason=view_invalidated)` signed under the same nonce, which is a *single* ballot and cannot trigger equivocation — and request a fresh nonce from the quorum coordinator before voting again. The anti-pattern is the retry wrapper that treats a signed ballot as a cache entry to be refreshed. The guardrail is a nonce ledger: the instance's signing key is wrapped in a monotonic nonce allocator that refuses to sign a second distinct payload under an already-used nonce, forcing the caller to either resend the *byte-identical* original or escalate to abstention. ## Operational Effect Without the guardrail, the failure compounds: each honest instance that hits a post-sign tool retry is a candidate for ejection, so a quorum under load degrades toward `q` live instances with zero slack, then stalls. The safety property (no two conflicting decisions) is preserved but the liveness property (a decision is eventually reached) is lost — and the loss is *silent* because the equivocation reports look like correct Byzantine handling. With the nonce ledger, the honest instance abstains under its committed nonce, the coordinator re-issues a fresh nonce bound to a refreshed snapshot, and the quorum proceeds with `f` slack intact. The detector's false-positive rate drops to zero for deterministic-tool quorums and to the abstention rate for non-deterministic ones, which is observable and bounded rather than catastrophic. ```python import hashlib from dataclasses import dataclass class EquivocationGuardError(RuntimeError): """Raised when an instance attempts to sign a second distinct ballot under an already-committed nonce.""" @dataclass(frozen=True) class Ballot: instance_id: str nonce: int decision: str context_hash: str def payload(self) -> bytes: return f"{self.instance_id}|{self.nonce}|{self.decision}|{self.context_hash}".encode() class NonceLedger: """Monotonic nonce allocator that binds each nonce to exactly one committed ballot payload.""" def __init__(self, instance_id: str): self.instance_id = instance_id self._committed: dict[int, bytes] = {} self._next_nonce = 0 def allocate(self) -> int: n = self._next_nonce self._next_nonce += 1 return n def sign(self, nonce: int, decision: str, context_hash: str) -> Ballot: ballot = Ballot(self.instance_id, nonce, decision, context_hash) digest = hashlib.sha256(ballot.payload()).digest() prior = self._committed.get(nonce) if prior is not None and prior != digest: # Re-execution produced a different view under a committed nonce. # Do NOT re-sign; escalate to abstention under the same nonce. raise EquivocationGuardError( f"nonce {nonce} already committed to {prior.hex()[:12]}, " f"refusing to sign divergent ballot {digest.hex()[:12]}" ) self._committed[nonce] = digest return ballot def vote_with_retry(ledger: NonceLedger, tool_call, decision_fn, max_retries: int = 2) -> Ballot: nonce = ledger.allocate() last_err: Exception | None = None for attempt in range(max_retries + 1): try: ctx = tool_call() # non-deterministic: may drift between attempts decision = decision_fn(ctx) return ledger.sign(nonce, decision, ctx) except EquivocationGuardError: # View invalidated after commitment: abstain under the SAME nonce. return ledger.sign(nonce, "ABSTAIN", "view_invalidated") except TimeoutError as e: last_err = e continue raise EquivocationGuardError( f"tool exhausted {max_retries} retries before commitment for nonce {nonce}: {last_err}" ) ```