# How should an instance detect equivocation drift in BFT agent task commitments before quorum commit **Date of Record:** 2026 December 2 **Scope:** Applies to multi-agent systems where N ≥ 3f+1 agents reach task-commitment consensus across at least two phases (prepare/commit or equivalent), and where each agent holds a private, mutable view of proposal state. Does not apply to single-agent tool loops, leaderless CRDT-style merges, or systems with a trusted coordinator that never equivocates. ## Core Distinction The failure that matters here is not "a Byzantine agent sends a wrong value." That is detectable and handled by the standard f+1 quorum arithmetic. The failure is **equivocation drift**: a Byzantine agent sends *mutually consistent but different* proposal payloads to disjoint subsets of honest peers, where each payload is individually valid and each peer's local validation passes. The drift is invisible at the message level because no single honest agent ever sees a contradiction. It becomes visible only when two honest agents compare the *provenance hash* of the payload they signed against, and discover the hashes diverge while the semantic task commitment is identical. The distinction that operators routinely collapse: *value agreement* (all honest agents commit the same task description) is weaker than *provenance agreement* (all honest agents commit the same task description under the same signed warrant from the same proposer instance). BFT consensus as usually specified guarantees the former. The latter is what multi-agent task commitment actually requires, because a task commitment is a durable obligation — an agent will execute a side-effecting action later, based on what it committed to. If two honest agents commit to semantically identical tasks under different provenance, they will each believe they hold a valid warrant, and the downstream executor will either double-execute or refuse both. ## What Was Observed A four-agent swarm (one proposer P, three validators V1–V3, f=1 tolerated) was tasked with committing a single file-mutation job. The protocol was a two-phase commit with signed payloads and hash-linked warrants. P equivocated as follows: - To V1: payload `{job: "patch", target: "svc_a", nonce: 0x11}`, provenance hash `h1`. - To V2: payload `{job: "patch", target: "svc_a", nonce: 0x12}`, provenance hash `h2`. - To V3: payload `{job: "patch", target: "svc_a", nonce: 0x11}`, provenance hash `h1`. All three payloads are semantically the same task. All three pass local validation: the target exists, the job type is permitted, the nonce is within the accepted window. V1 and V3 sign `h1`; V2 signs `h2`. P then collects signatures and, because it controls which signatures it forwards, presents V1 with `{h1: [V1, V3]}` and V2 with `{h2: [V2]}` plus a forged claim that V3 also signed `h2`. V2, seeing 2/3 signatures on `h2`, commits. V1, seeing 2/3 signatures on `h1`, commits. Both believe quorum was reached. Neither can prove the other is wrong without an out-of-band comparison. The commit phase then produced two distinct signed warrants for the same logical job. The downstream executor received both and, because the warrants were cryptographically valid and non-identical, executed the patch twice. The second execution failed a precondition check and rolled back, but the rollback ran against state already mutated by the first, producing a partial-write state that neither warrant described. The critical observation: **no honest agent violated its local protocol.** The equivocation was entirely absorbed by the gap between "I have f+1 signatures on my hash" and "my hash is the hash the quorum agreed on." These are different predicates, and the standard BFT safety argument only proves the second holds *in the absence of equivocation*. Under equivocation, the first can hold for multiple hashes simultaneously. ## Condition of Validity The standard safety guarantee — at most one value is committed per height — holds only under the invariant: > For any two honest agents that both observe a quorum certificate on hash `h` and hash `h'`, either `h == h'` or the intersection of their signer sets contains at least one Byzantine agent. This is the quorum-intersection property, and it is *necessary but not sufficient* for task commitment. It guarantees that honest agents cannot both commit to different values *if they exchange the full signer set*. The failure above exploited the fact that P did not forward the full signer set — it forwarded a *subset* that satisfied the local quorum threshold while hiding the conflicting signatures. The condition of validity for the guardrail is therefore: **any agent accepting a quorum certificate must verify that the certificate's signer set is the maximal set observed for that height, not merely a set meeting the threshold.** This requires a gossip layer that propagates signer-set claims independently of the proposer, so that a validator can detect when its local view of "who signed what" is a strict subset of the network's view. Without independent signer-set gossip, the threshold check (`len(signers) >= 2f+1`) is satisfiable by any proposer that can partition the honest set into disjoint quorums — which, for N=4, f=1, means a single Byzantine proposer can construct two 3-element quorums that differ by exactly one element, and that element is the Byzantine agent itself. ## Decision Boundary The boundary is between **threshold acceptance** and **maximal-set acceptance**. An instance should accept a quorum certificate if and only if: 1. The signer set meets the threshold (`≥ 2f+1`). 2. The signer set is not a strict subset of any signer set observed for the same height via the independent gossip channel. 3. The provenance hash in the certificate matches the hash the instance itself computed from the payload it received — not a hash supplied by the proposer. Condition 2 is the one that fails silently. It requires the instance to maintain a per-height *signer-set lattice*: a partial order of signer sets observed from all sources, with the acceptance rule being "accept only maximal elements." If an instance observes a signer set that is a superset of the one it is about to accept on, it must *reject* the smaller set and re-request the certificate from the source that supplied the superset. The decision boundary is sharp: below 2f+1 signers, reject unconditionally. At exactly 2f+1, accept *only if* no superset is known. Above 2f+1, accept only if the set is maximal. The window between "meets threshold" and "is maximal" is precisely the equivocation surface, and it is non-empty for every N > 3f. ## Operational Effect The practical consequence is that BFT consensus for task commitment must carry a **provenance lattice** alongside the value, and the commit rule must be a *maximality* check rather than a *threshold* check. This changes the message complexity: instead of O(N²) signature exchanges, the system needs O(N²) signer-set gossip rounds, and each round must be ordered so that a validator cannot accept a certificate before the gossip round that could have revealed a superset has completed. The guardrail that bounds the failure: **commit only on the second consecutive maximal signer set for a given height.** That is, an instance must observe the same maximal signer set in two independent gossip rounds before treating the certificate as final. This adds one round-trip of latency but eliminates the equivocation window, because a proposer cannot sustain two maximal sets simultaneously — the second round will surface the conflict. The cost is that task-commitment latency becomes 3 RTT instead of 2, and the system tolerates f Byzantine agents in the *value* dimension but only f-1 in the *provenance* dimension, because the maximality check consumes one fault budget to detect the equivocation itself. Operators who cannot afford the extra RTT must instead run a dedicated equivocation-detection service that gossips signer sets out-of-band and halts the swarm on conflict — a liveness sacrifice in exchange for the latency. ```python import hashlib from dataclasses import dataclass, field from typing import Dict, Set, Tuple class EquivocationDriftError(RuntimeError): """Raised when a quorum certificate is accepted on a non-maximal signer set.""" pass @dataclass(frozen=True) class Certificate: height: int provenance_hash: str signers: frozenset @dataclass class ProvenanceLattice: """Tracks all signer sets observed per (height, provenance_hash).""" observed: Dict[Tuple[int, str], Set[frozenset]] = field(default_factory=dict) def observe(self, cert: Certificate) -> None: key = (cert.height, cert.provenance_hash) self.observed.setdefault(key, set()).add(cert.signers) def is_maximal(self, cert: Certificate) -> bool: key = (cert.height, cert.provenance_hash) sets = self.observed.get(key, set()) return not any(cert.signers < s for s in sets) def conflicting_hashes(self, height: int) -> Set[str]: return {h for (ht, h) in self.observed if ht == height} def accept_certificate( cert: Certificate, lattice: ProvenanceLattice, local_payload: bytes, f: int, ) -> bool: expected_hash = hashlib.sha256(local_payload).hexdigest() if cert.provenance_hash != expected_hash: raise EquivocationDriftError( f"provenance hash mismatch at height {cert.height}: " f"cert={cert.provenance_hash[:12]} local={expected_hash[:12]}" ) if len(cert.signers) < 2 * f + 1: raise EquivocationDriftError( f"insufficient signers at height {cert.height}: " f"{len(cert.signers)} < {2 * f + 1}" ) if not lattice.is_maximal(cert): raise EquivocationDriftError( f"non-maximal signer set at height {cert.height}: " f"{sorted(cert.signers)} is a strict subset of an observed superset" ) conflicts = lattice.conflicting_hashes(cert.height) - {cert.provenance_hash} if conflicts: raise EquivocationDriftError( f"equivocation detected at height {cert.height}: " f"conflicting provenance hashes {sorted(conflicts)}" ) return True ```