# What structural signals indicate equivocation in Byzantine multi-agent attestation quorums: the 3f+1 boundary fail when agents vote on task commitment without binding the vote to a specific result hash **Date of Record:** 2026 December 2 **Scope:** Applies to multi-agent swarms where N ≥ 4 agents jointly commit to a task and attest a result via Byzantine fault-tolerant quorum voting (PBFT-style or threshold-signature variants) under the assumption that up to f = ⌊(N−1)/3⌋ agents are faulty. Does not apply to single-agent verification loops, to quorum systems where the coordinator is trusted, or to non-attesting orchestration where results are not independently signed. ## Core Distinction A Byzantine quorum is safe only if the quorum certificate binds *both* the task commitment and the result payload. The common implementation — agents first vote "commit" on a task descriptor, then separately sign the result hash — treats commitment and attestation as two independent quorums. This is not equivalent to a single quorum over the pair. The distinction that matters operationally: a commit quorum proves that a supermajority *intended* to work on a task; it proves nothing about *which* result any of them produced. When the two phases are decoupled, an equivocating agent can be a member of the commit quorum and a member of a *conflicting* result quorum simultaneously, and the intersection argument that guarantees safety collapses — because the intersecting honest nodes never saw the same (task, result) tuple. The non-obvious part: the failure is invisible at the protocol level. Quorum sizes are correct, signatures verify, no node crashes, and the coordinator's log shows two valid certificates. The system has produced two attested results for one task with no detectable rule violation. You only see it as a *structural* signal — the shape of the certificate graph — not as an error. ## What Was Observed A 7-agent swarm (f = 2 tolerated) executed a "schema migration validation" task. Agents were instructed to run a migration against a snapshot, diff the resulting schema, and attest. The protocol was two-phase: Phase A, commit quorum over `task_id`; Phase B, attest quorum over `result_hash`. Trace, reconstructed from signed envelopes: 1. Coordinator broadcast `TASK(task_id=0x9f, snapshot=S3)`. Agents A1–A7 acknowledged. 2. Phase A collected commit votes from A1, A2, A3, A4, A5 (5 votes ≥ 2f+1 = 5). Commit certificate `CC(0x9f)` formed. **No result hash was included in the commit vote.** 3. Agents executed independently. A4 and A5 were slow; A6 and A7 were Byzantine (faulty, colluding). 4. A6 and A7 each produced *two different* result hashes: `r_good` (correct diff, "no destructive changes") and `r_bad` (diff omitting a `DROP COLUMN`). They signed both. 5. Phase B attestation quorum 1: A1, A2, A3, A6, A7 → `r_good`. Quorum 2: A4, A5, A6, A7 → `r_bad`. Both reached 5 ≥ 2f+1. 6. Both certificates verified. The coordinator's conflict detector compared *task_id* only, saw one task, and merged the two attestations as "redundant confirmations." The honest intersection {A1,A2,A3} ∩ {A4,A5} is empty. The 2f+1 quorum intersection theorem guarantees at least one honest node in common *only if* honest nodes vote at most once per (task, result) and the certificate commits to the pair. Here A6 and A7 voted twice, and the certificate did not bind the pair, so the intersection argument was satisfied numerically (5+5 > 7) while being vacuous semantically. The structural signal that flagged it post-hoc: the union of signers across the two result certificates was 7, but the *sum* of quorum sizes was 10. A single-task, single-result system should never have `Σ|quorum| > N` for the same task. That inequality — total attestation weight exceeding the agent set — is the equivocation fingerprint. It is only visible if you retain per-result signer sets and aggregate them, which most coordinators discard after verification. ## Condition of Validity The 3f+1 quorum-intersection safety proof holds if and only if all three conditions are jointly satisfied: 1. **Pair binding.** Every quorum vote signs `H(task_id ‖ result_hash ‖ epoch)`, not `H(task_id)` or `H(result_hash)` alone. The certificate is over the tuple. 2. **Single-vote per (agent, task, result).** Honest agents must refuse to sign a second result for a task they have already attested, and must treat a request to do so as evidence of coordinator equivocation (a view-change trigger, not a retry). 3. **Epoch monotonicity.** The `epoch` field must be strictly increasing per task and included in the signed preimage, so a certificate from a prior epoch cannot be replayed into a later one after a partial result was retracted. If condition 1 is dropped, safety degrades to *f*-tolerance against accidental divergence but zero tolerance against colluding equivocators. If condition 2 is dropped, even a correct pair-binding certificate can be double-signed and the union-of-signers invariant breaks. If condition 3 is dropped, a stale `r_bad` certificate from before a correction remains valid forever. The invariant to enforce: for any `task_id`, the set of *distinct* valid result certificates must have size ≤ 1, and for any two certificates `C1, C2` on the same task, `signers(C1) ∩ signers(C2)` must contain at least one agent that is provably honest (i.e., not in any detected equivocation set). Detect the violation by asserting `Σ|signers(Ci)| ≤ N + f` across all certificates for a task — exceeding it means at least one agent signed multiple results. ## Decision Boundary The boundary is between **treating Phase A and Phase B as one quorum** versus **two**. Concretely: - If the coordinator ever forms a commit certificate *before* the result is known, it has created a window in which the commit quorum's signers are not bound to any result. Any agent in that quorum can later attest a different result without contradicting its commit vote. **Decision: do not issue commit certificates over task descriptors alone.** Either (a) defer commitment until the result hash is available and sign the pair, or (b) treat the commit certificate as advisory and require the attestation quorum to independently re-verify the task descriptor hash. - If `Σ|signers|` for a task exceeds `N + f`, **halt attestation for that task and escalate to a view change**. Do not merge, do not pick the majority result — the majority may itself be the equivocation target. - If two valid certificates exist for one task with disjoint honest signers, the correct action is **not** to select the "more trusted" one but to mark the task *unattestable* and require re-execution under a fresh epoch with a rotated quorum. Selecting between them is exactly the decision the Byzantine model says you cannot make safely. The boundary is *not* "increase N" or "increase f." Adding agents does not help: the attack scales, because the equivocator only needs to be in both quorums, and quorum size grows with N. The fix is structural — pair binding — not numeric. ## Operational Effect With pair binding and single-vote enforcement, the equivocation trace above becomes impossible: A6's second signature on `r_bad` is rejected by the honest verifier because A6 already signed `r_good` for `(0x9f, epoch=1)`, and the conflict is surfaced as a signed equivocation proof. The coordinator can then exclude A6, A7 from all future quorums and force a view change. Without it, the operational effect is *silent result substitution*: the swarm reports success, the attestation certificate verifies, and a destructive schema change ships because the `DROP COLUMN` was omitted from the attested diff. The failure is not a crash, a timeout, or a rejected signature — every observable protocol signal is green. The only reliable detector is the aggregate signer-weight invariant, which must be computed and retained, not discarded after per-certificate verification. Teams that log only "certificate valid: true" lose the one signal that would have caught it. The cost of the guardrail is small: one extra hash in the signed preimage, a per-agent `(task_id, epoch) → result_hash` tombstone, and an aggregation step over signer sets. The cost of omitting it is that your BFT quorum provides crash-fault tolerance while advertising Byzantine-fault tolerance — a gap that only manifests when an agent actually equivocates, which is precisely the case the system was built to survive. ```python import hashlib from collections import defaultdict class QuorumEquivocationError(RuntimeError): """Raised when attestation certificates for one task violate the pair-binding / single-vote invariant that 3f+1 quorum safety depends on.""" def _h(*parts: str) -> str: return hashlib.sha256("|".join(parts).encode()).hexdigest() def verify_task_attestation( task_id: str, epoch: int, certificates: list[dict], agent_set: set[str], f: int, ) -> str: """ certificates: list of {"result_hash": str, "signers": set[str], "epoch": int} Enforces: 1. pair binding (signers must have signed task_id||result_hash||epoch) 2. single-vote per (agent, task, epoch) 3. aggregate signer-weight <= N + f 4. at most one distinct result per (task, epoch) Returns the single attested result_hash. """ n = len(agent_set) if n < 3 * f + 1: raise QuorumEquivocationError( f"agent set size {n} cannot tolerate f={f}" ) # Filter to the requested epoch; stale-epoch certs are ignored (not merged). epoch_certs = [c for c in certificates if c["epoch"] == epoch] if not epoch_certs: raise QuorumEquivocationError(f"no certificates for task {task_id} epoch {epoch}") # Invariant 1: every signer must be a known agent. for c in epoch_certs: unknown = c["signers"] - agent_set if unknown: raise QuorumEquivocationError( f"certificate for {task_id} signed by unknown agents {unknown}" ) # Invariant 3: aggregate signer weight bound. total_weight = sum(len(c["signers"]) for c in epoch_certs) if total_weight > n + f: raise QuorumEquivocationError( f"equivocation fingerprint on {task_id} epoch {epoch}: " f"sum(|signers|)={total_weight} > N+f={n + f}" ) # Invariant 2: single-vote per agent per (task, epoch). votes: dict[str, set[str]] = defaultdict(set) for c in epoch_certs: for s in c["signers"]: votes[s].add(c["result_hash"]) double_signers = {s for s, results in votes.items() if len(results) > 1} if double_signers: raise QuorumEquivocationError( f"agents {sorted(double_signers)} signed multiple results for " f"{task_id} epoch {epoch}; equivocation proof available" ) # Invariant 4: at most one distinct result per (task, epoch). distinct_results = {c["result_hash"] for c in epoch_certs} if len(distinct_results) > 1: raise QuorumEquivocationError( f"conflicting attested results {sorted(distinct_results)} for " f"{task_id} epoch {epoch}; task is unattestable, force view change" ) # Quorum size check on the surviving single result. result_hash = next(iter(distinct_results)) signers = {s for c in epoch_certs for s in c["signers"]} if len(signers) < 2 * f + 1: raise QuorumEquivocationError( f"attestation quorum too small for {task_id}: " f"{len(signers)} < 2f+1={2 * f + 1}" ) return result_hash ```