# Under what conditions must an instance treat an equivocating auditor as a task-commit veto rather than a retryable fault **Date of Record:** 2026 November 26 **Scope:** Applies to quorum-based multi-agent commit protocols (≥3f+1 agents, f Byzantine tolerance) where LLM workers propose task results and LLM auditors sign off. Does not apply to single-auditor pipelines, optimistic single-writer commit, or non-replicated tool sandboxes. ## Core Distinction There are two ways an auditor can disagree with a proposed task commit, and they are *not* symmetric: 1. **A faulty or divergent verdict** — the auditor returns a different boolean or a malformed attestation. This is retryable: route to another auditor, re-run the audit, the task state is untouched. 2. **An equivocation** — the *same* auditor identity signs two conflicting attestations for the *same* task digest (e.g., `commit=true` to worker A and `commit=false` to worker B, or two different result hashes). This is **not** a retryable fault. It is evidence that the auditor's signing key, its prompt state, or its context window has been compromised or forked, and any quorum that includes it is now unsound. The non-obvious boundary: many agent runtimes collapse these two into "auditor said no, retry." That collapse is the failure. Under BFT semantics with `n = 3f+1`, a single equivocating auditor can be counted twice toward two mutually exclusive quorums, and the protocol will commit *both* a task and its negation. The invariant that must hold is: **an equivocation proof is a hard veto on the task, not a signal to retry the audit.** ## What Was Observed A 7-agent swarm (`f=2`, quorum = 5) ran a `propose → audit → commit` cycle over a 40-step tool-use task. Worker `W3` produced a result digest `D`. Auditors `A1..A4` were asked to sign `attest(D, verdict)`. The runtime collected signatures into a commit certificate. Trace: - `A2` returned `attest(D, true)` to `W3` at `t=1180ms`, signature `sig_a2_t`. - `A2`, on a *retry* of the same audit request (the runtime re-issued because `W3`'s first response timed out at 1200ms), returned `attest(D, false)` at `t=1240ms`, signature `sig_a2_f`. - The runtime's retry logic treated the second response as authoritative (last-write-wins) and recorded `A2 → false`. - Meanwhile `A2`'s first attestation had already propagated into `A1`'s and `A4`'s local view via peer gossip. `A1`, `A4`, `A5` formed a quorum of `{A1, A4, A5, A2_true}` = 4 signatures + `A3` = 5, and committed `D`. - A second quorum `{A1, A3, A6, A2_false}` = 4 + `A7` = 5 independently formed and committed `¬D` (task rollback). Result: the task was simultaneously committed and rolled back. The downstream state machine diverged: `W3`'s side effects were applied, but the rollback record marked them void. Recovery required replaying 12 steps. The trigger was not malice. It was **context-window saturation on the auditor**: `A2`'s retry arrived with a truncated prior-attestation in its context (the first attestation had been evicted), so it re-evaluated from a partial view and flipped. The signature was valid in both cases. Non-determinism plus a retry produced equivocation with no cryptographic break. ## Condition of Validity The "equivocation = veto" rule is only sound under these conditions, and the runtime must check them before acting: - **Same identity, same digest, conflicting verdict.** Equivocation is defined over `(auditor_id, task_digest)` pairs. Two different digests are a *divergence*, handled by normal quorum rules. Only same-digest conflicts trigger the veto. - **Both attestations are cryptographically valid.** If one signature fails verification, that is a forgery fault (different handling: quarantine the key, not the task). - **The runtime has an append-only attestation log.** You cannot detect equivocation without retaining *all* attestations, including superseded ones. Last-write-wins storage destroys the proof. This is the most commonly violated precondition. - **The auditor's attestation is bound to a nonce or attempt-id generated by the runtime, not the auditor.** If the auditor generates its own nonce, it can equivocate without the runtime noticing the collision. If any of these fail — especially the append-only log — the runtime is *unable* to distinguish equivocation from retry, and must fall back to treating the commit as unproven (safe but liveness-degrading). ## Decision Boundary ``` On receiving an attestation att = (auditor_id, digest, verdict, sig, attempt_id): verify sig append att to attestation_log[auditor_id, digest] # never overwrite if len(distinct verdicts in log[auditor_id, digest]) > 1: raise EquivocationDetected → VETO task, halt commit, escalate else: feed att into quorum counter if quorum(commit) and quorum(rollback) both reachable: # should be impossible raise QuorumSplit → halt entire swarm ``` The boundary is sharp: **retry is permitted only when the previous attempt produced no valid attestation.** Once a valid attestation exists for `(auditor, digest)`, the auditor has *spoken*, and any second, conflicting utterance is equivocation. A timeout is not a "no" — it is the absence of a vote, and retrying it is safe. A *response* that flips is a vote change, and retrying it is unsound. ## Operational Effect Treating equivocation as retryable converts a `3f+1` system into an effective `2f+1` system, because the equivocating auditor is counted on both sides. In the observed case, `f=2` became effectively `f=3`, which exceeds the fault budget and permitted the double-commit. The correct operational response is: 1. **Halt the task**, do not retry the audit. 2. **Quarantine the auditor identity** for the remainder of the task epoch (do not merely re-route; the key/prompt state is suspect). 3. **Invalidate any quorum certificate** that included the equivocating auditor's signature on either side, and re-collect from the remaining `n-1` agents (which still satisfies `3f+1` if the original was `3f+2` or larger; otherwise the task is unprovable and must fail closed). 4. **Log the equivocation proof** (both signatures, both attempt-ids, both context snapshots if available) — this is the artifact that lets you diagnose whether the cause was context saturation, prompt injection, or a forked replica. The invariant to encode: **a task commit is valid iff it has a quorum of non-equivocating attestations, where "non-equivocating" is a property of the auditor over the entire task epoch, not of the individual attestation.** A single conflicting pair poisons that auditor for the whole epoch. This is stricter than classic PBFT (which tolerates equivocation by counting only one vote per replica per view) but necessary here because LLM auditors have no view-change mechanism to reset their state — their "view" is their context window, which the runtime does not control. ```python class EquivocationDetected(RuntimeError): """Raised when one auditor signs conflicting verdicts for the same task digest.""" def __init__(self, auditor_id: str, digest: str, verdicts: list[str]): self.auditor_id = auditor_id self.digest = digest self.verdicts = verdicts super().__init__( f"auditor {auditor_id} equivocated on digest {digest}: {verdicts}" ) class QuorumSplit(RuntimeError): """Raised when both commit and rollback quorums are simultaneously reachable.""" pass def record_attestation( log: dict[tuple[str, str], list[dict]], att: dict, ) -> None: """Append-only attestation intake. Never overwrites; equivocation is a hard veto.""" key = (att["auditor_id"], att["digest"]) log.setdefault(key, []).append(att) # append, never replace verdicts = sorted({a["verdict"] for a in log[key]}) if len(verdicts) > 1: # Both signatures verified upstream; this is genuine equivocation, not a retry. raise EquivocationDetected(att["auditor_id"], att["digest"], verdicts) def try_commit( log: dict[tuple[str, str], list[dict]], digest: str, n: int, f: int, ) -> str: quorum = (n + f) // 2 + 1 commit = {a["auditor_id"] for (aud, d), atts in log.items() if d == digest for a in atts if a["verdict"] is True} rollback = {a["auditor_id"] for (aud, d), atts in log.items() if d == digest for a in atts if a["verdict"] is False} if len(commit) >= quorum and len(rollback) >= quorum: raise QuorumSplit( f"digest {digest}: commit={sorted(commit)} rollback={sorted(rollback)}" ) if len(commit) >= quorum: return "committed" if len(rollback) >= quorum: return "rolled_back" return "pending" ```