# Under what conditions must an instance treat a Byzantine peer's equivocation as a commitment-validity fault rather than a reconciliation retry **Date of Record:** 2026 November 21 **Scope:** Applies to multi-agent swarms where task commitment is decided by quorum-signed state transitions over a shared ledger (BFT-style, f = ⌊(n−1)/3⌋), and where each agent instance reconciles its local state by replaying signed peer attestations. Does not apply to single-agent tool loops, leaderless CRDT gossip without commitment semantics, or centralized orchestrators that serialize all state. ## Core Distinction There is a difference between *reconciliation divergence* and *equivocation*. Divergence is when two honest instances hold different views of shared state because of message ordering, partial delivery, or a lagging replay cursor—this is recoverable by re-syncing against the canonical attestation log, and the correct response is a bounded retry. Equivocation is when a single signing identity (a peer agent, or a peer's delegated sub-agent) emits two internally valid, signed, conflicting attestations for the same task-commitment slot—for example, `commit(task=T, state=ACK, nonce=k)` and `commit(task=T, state=NACK, nonce=k)`, both carrying a valid signature under the same key. The non-obvious boundary: an instance that treats equivocation as divergence will retry reconciliation indefinitely, and each retry *increases* the weight of whichever branch it happens to fetch first, because replay cursors advance monotonically. The instance does not "converge on truth"—it converges on the branch it saw first, and its own subsequent signed attestations then *launder* the equivocation into apparent quorum. This is the failure mode: equivocation is not a data-quality problem, it is a commitment-validity fault, and must halt the slot, not retry it. ## What Was Observed A 7-agent swarm (n=7, f=2) executing a 3-phase commit over a shared task ledger. Agent `A4` was configured with a reconciliation loop that, on detecting a hash mismatch between its local commitment record for slot `s=1041` and the peer attestation batch, re-fetched attestations from a randomized peer subset and replayed. The loop had `max_retries=8` with exponential backoff. At `t=0`, `A4`'s local record for slot 1041 held `commit(T=88, ACK, nonce=7)` signed by peer `A2`, plus quorum signatures from `A1, A3, A5`. At `t=0.4s`, `A4` fetched a batch from `A6` containing `commit(T=88, NACK, nonce=7)` also signed by `A2`, plus quorum from `A1, A4, A6`. Both branches had 4 signatures. `A2` had equivocated. `A4`'s loop classified this as divergence (hash mismatch), discarded its local record, and adopted the `A6` batch. It then signed the NACK branch as its own attestation and broadcast. On the next retry, it fetched a batch from `A5` containing the original ACK branch, discarded again, and re-adopted. Over 8 retries it flipped 5 times, and its *own* signatures ended up on both branches—`A4` became a second equivocator from the perspective of every other peer. Downstream, agent `A7` (a task auditor) saw `A4` on both branches, classified `A4` as Byzantine, and excluded it from the quorum set for slot 1041. But `A4` had already signed branch attestations that `A1` and `A3` used to close the slot. The slot closed with a quorum that included a signature `A7` had marked invalid. `A7`'s audit replay of slot 1041 diverged from the committed state by exactly one signature, and `A7` refused to advance its replay cursor past 1041. The swarm deadlocked for 340 seconds until a manual operator quarantined slot 1041. ## Condition of Validity The rule "equivocation ⇒ halt the slot, do not retry" is valid only when the instance can *prove* equivocation, i.e., it holds two signed attestations from the same identity, same slot, same nonce, divergent content, both signature-verified against the identity's registered public key, and both fetched over channels that the instance can attribute. The proof object is the pair `(attestation_a, attestation_b)`—a self-contained equivocation certificate. It is *not* valid when: - The two attestations differ only in nonce (that is a replay/duplicate, handled by nonce monotonicity, not equivocation). - The signatures verify under different key epochs (key rotation mid-slot is a separate fault class; the correct handling is epoch pinning, not slot halt). - The instance cannot attribute the source channel (a single untrusted relay reporting both branches may itself be the equivocator—attribute the fault to the relay, not the signer). The invariant: **a slot may only be halted on equivocation when the certificate is constructed entirely from signature-verified material the instance fetched itself.** Any certificate built from a peer's *claim* that equivocation occurred is not a certificate; it is hearsay, and halting on hearsay is itself a Byzantine vector (a malicious peer can halt any slot by fabricating a certificate). ## Decision Boundary The instance must distinguish three outcomes on hash mismatch during reconciliation: 1. **Divergence (retry):** local record and fetched batch disagree, but no identity appears on both sides with divergent content. Retry is safe because the branches are disjoint by signer; replay converges. Bounded retries with backoff, and on exhaustion escalate to quorum re-request—never adopt. 2. **Equivocation (halt):** an identity appears on both sides with divergent signed content for the same slot+nonce. Construct the certificate, halt the slot, broadcast the certificate to the auditor set, and mark the identity `SUSPECT` for the slot. Do *not* sign either branch. Do *not* advance the replay cursor. 3. **Attribution failure (quarantine self):** the instance cannot construct a certificate but also cannot reconcile after bounded retries. This means the instance's own view is unreliable—it must stop signing and request a full state transfer from a designated checkpoint, not keep retrying. The critical boundary the failing instance crossed: it treated case 2 as case 1. The observable signal that distinguishes them is *signer overlap with content divergence*, not hash mismatch alone. Hash mismatch is necessary but not sufficient. ## Operational Effect When the boundary is respected, equivocation is contained to a single slot and a single identity. The slot halts, the certificate propagates, the auditor set excludes the equivocator, and the task is re-committed under a fresh nonce with a reduced quorum set. Cost: one slot's latency plus a re-commit round. The equivocator is identified with cryptographic proof, so no honest instance is penalized. When the boundary is violated—equivocation treated as retry—the failure compounds in three ways. First, the retrying instance's replay cursor advances on whichever branch it fetches, so its local state becomes a function of fetch order, not of truth. Second, the instance's own signatures land on both branches, converting it from victim to apparent equivocator, which triggers *its* exclusion by auditors and shrinks the honest quorum. Third, the auditor's replay of the slot diverges from the committed state by exactly the laundered signatures, and the auditor correctly refuses to advance—producing a deadlock that looks like a consensus failure but is actually a reconciliation-policy failure. The architectural invariant required to bound this: **reconciliation must be non-committing until certificate classification completes.** An instance may fetch, verify, and classify attestations freely, but it may not *sign* or *advance its cursor* on a slot until it has either (a) confirmed no signer-overlap divergence exists, or (b) constructed and broadcast an equivocation certificate. Signing before classification is the laundering step; cursor advancement before classification is the convergence-on-fetch-order step. Both must be gated behind the classification result. ```python from dataclasses import dataclass from typing import Dict, List, Optional, Tuple import hashlib class EquivocationCertificateError(RuntimeError): """Raised when a slot must halt due to proven signer equivocation.""" @dataclass(frozen=True) class Attestation: signer_id: str slot: int nonce: int task_id: str state: str # "ACK" | "NACK" signature: bytes # verified against signer's registered key channel: str # attributable fetch channel def _content_hash(a: Attestation) -> str: return hashlib.sha256(f"{a.task_id}|{a.state}|{a.nonce}".encode()).hexdigest() def classify_mismatch( local: Attestation, fetched: Attestation, verified_keys: Dict[str, bytes], ) -> str: """ Returns one of: "DIVERGENCE", "EQUIVOCATION", "ATTRIBUTION_FAILURE". Never signs, never advances cursor. Pure classification. """ if local.slot != fetched.slot: return "ATTRIBUTION_FAILURE" # Signature verification is a precondition for any classification. for a in (local, fetched): if a.signer_id not in verified_keys: return "ATTRIBUTION_FAILURE" # Same signer, same slot+nonce, divergent content => equivocation. if ( local.signer_id == fetched.signer_id and local.nonce == fetched.nonce and _content_hash(local) != _content_hash(fetched) ): return "EQUIVOCATION" # Disjoint signers, same slot => recoverable divergence. if local.signer_id != fetched.signer_id and local.slot == fetched.slot: return "DIVERGENCE" return "ATTRIBUTION_FAILURE" def reconcile_slot( local: Attestation, fetched_batches: List[Attestation], verified_keys: Dict[str, bytes], max_retries: int = 8, ) -> Tuple[str, Optional[Tuple[Attestation, Attestation]]]: """ Reconciles a slot. On equivocation, raises with a certificate. On divergence, retries within bound. Never signs before classification. """ certificate: Optional[Tuple[Attestation, Attestation]] = None for attempt in range(max_retries): for fetched in fetched_batches: verdict = classify_mismatch(local, fetched, verified_keys) if verdict == "EQUIVOCATION": certificate = (local, fetched) # Halt: do NOT sign, do NOT advance cursor. raise EquivocationCertificateError( f"slot={local.slot} signer={local.signer_id} " f"nonce={local.nonce} divergent states " f"({local.state} vs {fetched.state}); " f"certificate constructed; slot halted" ) if verdict == "DIVERGENCE": # Safe to re-fetch; do not adopt, do not sign. continue # No equivocation found this pass; re-fetch next attempt. fetched_batches = _refetch(local.slot) # Exhausted retries without certificate and without convergence. raise EquivocationCertificateError( f"slot={local.slot} could not reconcile after {max_retries} " f"attempts and no equivocation certificate could be constructed; " f"instance must quarantine signing and request full state transfer" ) def _refetch(slot: int) -> List[Attestation]: # Placeholder: fetch attestations for slot from randomized peer subset. return [] ```