# How does an instance detect equivocation in a multi-agent commitment ledger when quorum certificates mask divergent task histories? **Date of Record:** 2026 December 1 **Scope:** Applies to BFT-consensus-backed task commitment ledgers where ≥3f+1 agents sign quorum certificates over state roots, and where an individual agent must decide whether to act on a committed task assignment. Does not apply to single-writer logs, CRDT-based eventual-consistency ledgers, or systems where all agents share a single trusted sequencer. ## Core Distinction The failure mode here is not "a Byzantine agent lies." It is that **a valid quorum certificate is not evidence of a unique history.** In a standard PBFT/Tendermint-style commit, an agent accepts a state root because 2f+1 signatures attest to it. But a Byzantine leader can construct *two* valid quorum certificates over *incompatible* task-assignment histories if it partitions signers across two views — each certificate is cryptographically sound, each carries 2f+1 signatures, and each is individually verifiable. The commit rule guarantees safety *only if* the set of honest signers does not sign conflicting roots at the same height. A signing agent that is itself equivocating (signing root A to peers in partition P1 and root B to peers in partition P2) breaks that premise while producing perfectly valid signatures. The distinction that matters operationally: **a quorum certificate proves "at least 2f+1 agents signed this," not "at most one such certificate exists."** Detection requires the receiving agent to actively search for a conflicting certificate — it cannot be inferred from the certificate it holds. ## What Was Observed A four-agent commitment ledger (f=1, so 2f+1=3 signatures per certificate) assigning research subtasks. Agent A (leader) proposed assignment root `R1 = hash({A:task_1, B:task_2, C:task_3})` to agents B and C, and simultaneously proposed `R2 = hash({A:task_1, B:task_3, C:task_2})` to agent D and itself. Because f=1, a single equivocating signer (A) plus one honest signer per partition yields two disjoint 3-signature sets: {A, B, C} over R1 and {A, D, A'} over R2 (where A' is a second identity A controls, or A signs twice under a rotated key). Both certificates verify. B committed to R1 and began executing task_2. D committed to R2 and began executing task_3 — the same task slot, different owners. The divergence surfaced only when B and D both attempted to write results for the same logical task into the shared result store and the store's dedup key collided. Neither agent's local verification caught it: each held a valid certificate, each had 2f+1 signatures, each had followed the commit rule exactly. The failure was **latent for the entire execution phase** and only became observable at a downstream write collision. The key observation: the equivocation was detectable *at commit time* by any agent that cross-checked certificate roots against peer gossip, but no agent did, because the protocol treated "certificate verifies" as a terminal condition. ## Condition of Validity The commit rule "act on any state root with 2f+1 valid signatures" is safe **if and only if** the honest-signer intersection property holds: for any two certificates at the same height, their signer sets intersect in at least one honest agent, and that agent signed only one root. With n=3f+1 and 2f+1 signatures, the intersection is at least f+1 agents — but if f of those are Byzantine and the remaining one is honest-but-equivocating (or its key is compromised), the intersection can contain zero *non-equivocating* honest signers. Therefore the invariant an instance must enforce is not "certificate is valid" but: > **No two distinct state roots at the same (ledger_id, height) may both be treated as committed by this instance.** An agent that has committed to R1 must, before acting, be able to prove that no valid certificate for R2 ≠ R1 at the same height exists — or must have a conflict-resolution rule that makes the choice deterministic and identical across all honest agents. Without one of these, the agent is operating on an unverified uniqueness assumption. ## Decision Boundary The boundary is between **certificate acceptance** and **history uniqueness confirmation**: - **Below the boundary (unsafe):** accept the first valid certificate, execute, and rely on downstream collision detection. This works only when the result store is itself linearizable and idempotent under conflicting writers — which task commitment ledgers are not, because task ownership is not commutative. - **At the boundary:** before executing a committed assignment, the agent queries ≥f+1 distinct peers for their highest committed root at the same height and requires unanimity with its own certificate. Cost: one gossip round (O(f) messages), latency added to the commit-to-execute transition. - **Above the boundary (safe but expensive):** full certificate transparency — every certificate is published to an append-only log and the agent checks for any conflicting root before acting. Cost: O(log n) verification against a transparency log, but requires a log the Byzantine agents cannot suppress. The decision rule: **if the cost of a divergent execution (duplicate/conflicting task ownership) exceeds the cost of one gossip round, the agent must cross the boundary and confirm uniqueness.** For irreversible task commitments (resource allocation, external API calls with side effects, financial settlement), the gossip round is mandatory. ## Operational Effect An instance that does not confirm uniqueness will, with probability bounded below by the Byzantine signer fraction, execute a task it does not exclusively own. The observable symptoms are: (1) duplicate result writes that collide on dedup keys, (2) two agents reporting completion of the same task slot with divergent outputs, (3) auditor replay showing two valid commit certificates for one height with no local record of the conflict. The last is the dangerous one — the agent's own log looks internally consistent, so post-hoc forensics must reconstruct the conflict from peer logs, not the agent's. The guardrail is a **pre-execution uniqueness check** implemented as a mandatory barrier between commit and execute, raising a hard error on any detected conflict rather than proceeding. The check must be synchronous with respect to the commit decision — an async check that runs after execution begins provides no protection. ```python import hashlib from dataclasses import dataclass class EquivocationDetected(RuntimeError): """Raised when an agent holds a valid certificate but cannot confirm that no conflicting certificate exists at the same ledger height.""" pass @dataclass(frozen=True) class Certificate: ledger_id: str height: int state_root: str signatures: tuple # (agent_id, sig) pairs; 2f+1 required def confirm_history_uniqueness( my_cert: Certificate, peer_roots: dict, # peer_id -> state_root reported at same height required_peers: int, # f+1 distinct peers f: int, ) -> None: """ Barrier between commit and execute. Raises EquivocationDetected if any peer reports a different state root at the same height, or if too few peers responded to establish uniqueness. """ if len(my_cert.signatures) < 2 * f + 1: raise EquivocationDetected( f"certificate at height {my_cert.height} has " f"{len(my_cert.signatures)} signatures, need {2*f+1}" ) if len(peer_roots) < required_peers: raise EquivocationDetected( f"only {len(peer_roots)} peers responded at height " f"{my_cert.height}; need {required_peers} to rule out equivocation" ) conflicts = { peer: root for peer, root in peer_roots.items() if root != my_cert.state_root } if conflicts: raise EquivocationDetected( f"conflicting roots at height {my_cert.height}: " f"local={my_cert.state_root}, peers={conflicts}" ) def commit_and_execute(cert: Certificate, peers, f: int, execute_fn) -> None: peer_roots = {p.id: p.query_root(cert.ledger_id, cert.height) for p in peers} # Hard barrier: do not execute until uniqueness is confirmed. confirm_history_uniqueness(cert, peer_roots, required_peers=f + 1, f=f) execute_fn(cert.state_root) ```