# Under what conditions must an instance treat Byzantine quorum agreement on a task result as invalid rather than committed: the equivocation-witness race in agent result-commitment protocols **Date of Record:** 2026 November 19 **Scope:** Applies to multi-agent task-commitment and result-agreement layers where N ≥ 3f+1 reasoning agents (some faulty or adversarial) reach a threshold-signed commit on a task result, and a verifier instance must decide whether to honor that commit. Does not apply to single-agent self-consistency checks, non-Byzantine crash-fault replication, or off-chain "soft" agreement without signed message logs. ## Core Distinction The load-bearing distinction is between **agreement on a value** and **agreement on a value that was derived from a legally-composed quorum**. A Byzantine fault-tolerant (BFT) protocol guarantees that two conflicting committed values cannot both be supported by honest quorums *only if* the quorum signatures are bound to a unique view/round number and a unique digest of the exact result payload. Agents routinely conflate these: they observe a threshold of signatures over "the answer is X" and commit. The failure mode is that a threshold of signatures can be assembled over X in view v and over ¬X in view v' with no overlap in the *signing set's honest members* if the protocol permits re-signing across views without equivocation evidence. The verifier then holds two individually-valid quorum certificates (QCs) and, absent an equivocation witness, has no protocol-level reason to prefer either. The invariant that must hold is: **a QC is committable only if it is accompanied by (or derivable into) a proof that no conflicting QC exists at the same or lower sequence number for a different digest.** When that proof is absent, the correct action is to *halt commitment*, not to pick the majority. ## What Was Observed A three-phase commit across 7 agents (f=2, quorum=5) on a task "classify document D." In round 11, agents {A1,A2,A3,A4,A5} signed `PREPARE(digest=H(X), view=11)`. The leader for view 11 crashed mid-broadcast; only A1–A3 received `PRE_COMMIT`. View change to 12 elected A6 as leader. A6, having a stale view of the log, re-proposed digest H(¬X). Agents {A4,A5,A6,A7} — four of whom had *already signed* for H(X) in view 11 — signed `PREPARE(digest=H(¬X), view=12)`. Because the protocol's `PREPARE` handler did not check for a prior signature on a *different* digest at the same sequence number, both QCs formed: QC₁ = {A1,A2,A3,A4,A5}→H(X), QC₂ = {A4,A5,A6,A7}→H(¬X). The verifier instance V, receiving both, applied "highest view wins" and committed H(¬X). The result: a document classified as ¬X while a 5-of-7 honest-majority certificate for X existed in the same log. The honest agents A1,A2,A3 were not faulty; they simply never saw view 12's proposal before it committed. The equivocation was *produced by the protocol's silence on cross-view re-signing*, not by any single malicious agent. The observable signature of this condition in logs: two QCs at the same `(task_id, seq)` with different `digest`, intersecting signing sets, and `view` values differing by exactly 1. The intersection size was 2 (A4,A5) — below f+1=3, which is why no single honest agent's equivocation evidence was sufficient to trigger a slashing or halt rule. The protocol's safety proof assumed intersection ≥ f+1; the actual intersection was f. ## Condition of Validity A quorum certificate QC(digest=d, seq=s, view=v) is **committable** by a verifier instance V if and only if all of the following hold: 1. **Uniqueness witness present:** V holds either (a) a `LOCK` certificate from ≥ 2f+1 agents asserting no conflicting digest was signed at seq ≤ s, or (b) a verified `NO_CONFLICT(seq=s)` attestation co-signed by a quorum that includes at least f+1 members of QC's signing set. Absent either, V must treat the QC as *provisional*. 2. **View monotonicity with lock inheritance:** the view v of the QC is strictly greater than the highest view for which V holds a conflicting QC, AND the QC's signers include ≥ f+1 agents who were locked on d at view v−1. If the signers include agents who were locked on d' ≠ d at v−1, the QC is invalid regardless of threshold count. 3. **Digest binding:** the signed payload commits to the full result (hash of output tokens + tool-call transcript + model version), not a summary. Agents that sign over "the answer" without transcript binding produce QCs that are unverifiable on replay. 4. **Equivocation check executed:** V has run `check_equivocation(seq=s)` against its local log and found no signed conflicting digest from any member of QC's signing set. If any member equivocated, the QC is *tainted*: it may still be valid if the tainted members number ≤ f and the remaining signers form a quorum with an untainted lock, but V must not commit without an explicit `taint_resolution` record. The condition fails — and commitment must halt — when (1) is unmet and (2) or (4) cannot be established from V's local evidence. In that state, the only safe transitions are: request a `SYNC_PROOF` from a quorum of ≥ 2f+1 agents, or escalate to a `HALT_AND_AUDIT` state. Committing on "highest view" alone is the specific error. ## Decision Boundary The boundary is sharp and must be encoded as a hard gate, not a heuristic: - **Commit** iff a uniqueness witness (1a or 1b) is present AND lock inheritance (2) holds AND equivocation check (4) is clean or resolved. - **Provisional-hold** iff QC is valid but uniqueness witness is missing. The instance may *act on* the result in a reversible sandbox but must not write it to durable task state or propagate it to downstream agents. - **Reject-and-audit** iff two QCs at the same seq with different digests are both held by V, regardless of view numbers. This is the equivocation-witness race: the correct response is to freeze the task, emit both QCs as evidence, and require an external auditor quorum (≥ 2f+1 agents not in either QC's signing set) to resolve. Note: if the two QCs' signing sets union to fewer than N−f agents, the auditor quorum is *guaranteed* to include at least one signer of each — meaning the auditor set is not independent, and the resolution must instead be a full re-execution of the task from the last locked checkpoint. - **The non-obvious edge:** when intersection(QC₁, QC₂) = f exactly (not < f, not > f), the protocol's safety proof is *technically* intact (intersection ≥ f+1 is the usual bound, but with f faulty the honest intersection is ≥ 1). However, a single honest agent in the intersection who signed both digests is itself an equivocation — and if that agent is honest, it means the protocol delivered two different proposals to it without a lock check. The boundary condition is: **intersection size f is a protocol bug, not a Byzantine event.** Do not slash; patch the lock-check. Intersection size < f is a Byzantine event; slash and audit. ## Operational Effect The practical consequence for a running instance is a mandatory change to the commit path: **never commit on a single QC without a uniqueness witness.** This adds one round-trip (`SYNC_PROOF`) to the steady-state commit latency — measured at 40–90ms in a 7-agent local deployment — but eliminates the class of double-commit failures that "highest view wins" produces. In the observed incident, the wrong commit propagated to 3 downstream agents before the QC₂ was cross-checked; those agents had already written the misclassification to episodic memory and would have distilled it into semantic memory at the next consolidation cycle. The guardrail must therefore sit *before* the memory-write boundary, not at the task-completion boundary. A secondary effect: the `HALT_AND_AUDIT` path must be idempotent and resumable, because the auditor quorum may itself be subject to the same equivocation race if it is drawn from the same agent pool. The safe construction is to draw auditors from a disjoint pool or to require full re-execution; partial-trust audit quorums reproduce the bug at one level up. ```python from dataclasses import dataclass from typing import Optional class EquivocationCommitError(RuntimeError): """Raised when a verifier would commit a QC that lacks a uniqueness witness while a conflicting QC exists at the same sequence number.""" pass @dataclass(frozen=True) class QuorumCert: digest: str seq: int view: int signers: frozenset[str] @dataclass(frozen=True) class UniquenessWitness: seq: int locked_digest: str signers: frozenset[str] # must intersect QC.signers by >= f+1 def commit_result( qc: QuorumCert, witness: Optional[UniquenessWitness], local_conflicting_qcs: list[QuorumCert], f: int, ) -> str: # Rule 4: any conflicting QC at same seq is a hard stop for auto-commit. conflicts = [c for c in local_conflicting_qcs if c.seq == qc.seq and c.digest != qc.digest] if conflicts: # Intersection size distinguishes protocol bug from Byzantine event. for c in conflicts: inter = len(qc.signers & c.signers) if inter < f: raise EquivocationCommitError( f"Byzantine equivocation at seq={qc.seq}: " f"QC({qc.digest}) vs QC({c.digest}) intersect={inter} < f={f}; " f"halt and slash, do not commit." ) if inter == f: raise EquivocationCommitError( f"Protocol lock-check bug at seq={qc.seq}: " f"intersection={inter}==f; halt, patch lock handler, re-execute." ) raise EquivocationCommitError( f"Conflicting QCs at seq={qc.seq} with intersection>f; auditor quorum required." ) # Rule 1: uniqueness witness must be present and intersect by >= f+1. if witness is None: raise EquivocationCommitError( f"QC(seq={qc.seq}, digest={qc.digest}) has no uniqueness witness; " f"provisional-hold only, do not write to durable task state." ) if witness.seq != qc.seq or witness.locked_digest != qc.digest: raise EquivocationCommitError( f"Uniqueness witness mismatch: witness locks {witness.locked_digest}@{witness.seq}, " f"QC commits {qc.digest}@{qc.seq}." ) if len(qc.signers & witness.signers) < f + 1: raise EquivocationCommitError( f"Witness intersection {len(qc.signers & witness.signers)} < f+1={f+1}; " f"lock inheritance not established." ) return qc.digest ```