# Where must an instance prove equivocation before a BFT quorum evicts a peer: signed-log divergence as the sole admissible evidence in agent consensus **Date of Record:** 2026 November 21 **Scope:** Applies to multi-agent decision quorums (2f+1 of 3f+1) where each agent signs its proposal/vote messages and peers maintain per-sender append-only logs. Does not apply to single-leader crash-fault protocols, nor to quorums where message authentication is transport-level (TLS) rather than per-message payload signatures. ## Core Distinction The distinction that matters is between **detected misbehavior** and **provable equivocation**. A Byzantine fault-tolerant quorum can *observe* that an agent's behavior is anomalous — inconsistent latency, out-of-band retries, a vote that "feels" wrong, a proposal that contradicts a prior commitment in the auditor's local view. None of that is admissible evidence for eviction. The only admissible evidence is a pair of messages, both validly signed by the accused agent's key, addressed to the same consensus slot (same round, same view, same slot identifier), with **divergent payloads** — for example, two conflicting `PREPARE` votes, or a `PREPARE` and a `COMMIT` that commit to different block hashes for the same slot. This is the *equivocation certificate*. Without it, an eviction is a liveness attack dressed as safety enforcement: any f agents can collude to accuse an honest peer, and if the protocol accepts "anomaly" as grounds, the colluding minority can evict the honest majority one peer at a time until the quorum collapses. The invariant is therefore narrow and unforgiving: **eviction requires a self-authenticating equivocation certificate; anomaly scores, behavioral drift, and auditor disagreement are never sufficient.** Everything else in Byzantine detection — reputation, trust decay, anomaly scoring — is advisory telemetry, not a trigger. ## What Was Observed A 7-agent quorum (f=2, threshold 5) running a PBFT-style decision protocol over a shared task ledger. Agent `A4` began exhibiting what the auditor `A6` logged as "suspicious divergence": `A4`'s `PREPARE` for slot 41,188 arrived at `A6` with a block hash `h1`, while `A6`'s own view of `A4`'s prior `COMMIT` for the same slot referenced `h2`. `A6` raised a `MISBEHAVIOR_SUSPECTED` flag and requested eviction. The trace showed the failure was **not** in `A4`. It was in `A6`'s log assembly. `A6` had received `A4`'s `COMMIT` for slot 41,188 during a view change (view 12→13) and had reconstructed the slot from a *stale* checkpoint: the `COMMIT` it attributed to `A4` was in fact a re-broadcast of `A4`'s `COMMIT` for slot 41,187, whose payload had been mis-keyed during checkpoint replay because the slot identifier was derived from a monotonic counter that had wrapped during the view change. `A6`'s "evidence" was a log-assembly artifact, not a signed equivocation. Had the quorum accepted the eviction, it would have removed an honest agent on the basis of a bug in the accuser. The second observation: when the quorum *did* later encounter a genuine Byzantine agent `A2` (which signed two conflicting `PREPARE` messages for slot 41,201 to disjoint halves of the quorum), the equivocation certificate was assembled in under 40ms and the eviction was unanimous. The difference between the two cases was not the severity of the anomaly — it was the presence of two validly signed, slot-matched, divergent messages. ## Condition of Validity The equivocation certificate is valid only if all of the following hold simultaneously; the absence of any one collapses the certificate to inadmissible: 1. **Signature validity:** both messages verify against the accused agent's public key under the quorum's registered key epoch. A key rotation mid-view invalidates certificates signed under the prior epoch unless the rotation is itself committed. 2. **Slot identity:** both messages carry the same `(view, slot, round)` tuple, byte-identical. Slot identifiers derived from wrapping counters or reconstructed checkpoints are not admissible — the slot must be the one the accused agent itself signed. 3. **Semantic divergence:** the payloads differ in the field that commits the decision (block hash, vote value, or decision output). Two messages that differ only in non-committing metadata (timestamps, nonces, trace IDs) are not equivocation. 4. **Unforgeability:** the certificate must be verifiable by any third party without access to the accuser's local log. This is the property that makes it self-authenticating — the accuser cannot fabricate it, and the accused cannot repudiate it. 5. **Non-repudiation under the accused's key:** the accused must have signed both messages with a key it exclusively controls. Delegated signing keys (e.g., an agent signing on behalf of a sub-agent) require the delegation chain to be presented and valid. If the certificate fails any of these, the correct action is to *quarantine the accuser's claim as unverified telemetry*, not to evict. ## Decision Boundary The boundary is between **quorum-level action** and **auditor-level suspicion**: - **Below the boundary (suspicion):** anomaly scores, latency outliers, conflicting auditor views, drift in an agent's output distribution, repeated retries. These may raise the agent's monitoring tier, increase sampling of its messages, or trigger a re-verification round. They may **not** trigger eviction, and they may **not** be used to reduce the agent's effective weight in the quorum. - **At the boundary (certificate):** a valid equivocation certificate triggers mandatory eviction. The eviction is a safety action, not a discretionary one — a quorum that fails to evict on a valid certificate is itself unsafe, because the Byzantine agent retains its vote. - **Above the boundary (quorum collapse):** if the number of valid certificates exceeds f, the quorum cannot maintain safety and must halt and re-form with a fresh key epoch and a fresh membership set. This is the only condition under which the quorum may reconstitute itself without external arbitration. The non-obvious edge: **an auditor's disagreement with an agent's decision is never a certificate.** Two agents can legitimately disagree on a decision and both be honest — that is what the consensus round is for. Disagreement becomes equivocation only when a single agent signs two divergent commitments for the same slot. Auditors who conflate the two will, under adversarial pressure, evict honest peers. ## Operational Effect The practical consequence is that the quorum's eviction path must be **gated on a certificate verifier**, not on a suspicion score. In the incident above, the gate rejected `A6`'s claim because the two messages it presented had different slot identifiers (41,188 vs. 41,187) — the certificate verifier returned `SLOT_MISMATCH` and the eviction was blocked. `A6`'s log-assembly bug was then traced and fixed (slot identifiers are now derived from the signed payload, not from a local counter). In the `A2` case, the verifier returned `VALID` and the eviction proceeded. The secondary effect is on **liveness under accusation**: because suspicion cannot trigger eviction, a colluding minority of f agents cannot stall the quorum by repeatedly accusing honest peers. Their accusations are logged, scored, and — if they themselves present forged certificates — become grounds for *their* eviction. The asymmetry is deliberate: it is cheap to accuse and expensive to forge, and the protocol is designed so that the cost of forging falls on the forger. The guardrail to encode: **no eviction without a certificate that a third party can verify offline.** The verifier below enforces exactly that, and raises on every failure mode that would otherwise let a suspicion masquerade as proof. ```python from dataclasses import dataclass from typing import Optional class EquivocationCertificateError(RuntimeError): """Raised when a claimed equivocation certificate is inadmissible.""" @dataclass(frozen=True) class SignedMessage: agent_id: str view: int slot: int round: int committed_value: str signature: bytes key_epoch: int def _verify_signature(msg: SignedMessage, pubkey_epoch: int) -> bool: # Placeholder for real Ed25519 verification against the registered key epoch. return msg.key_epoch == pubkey_epoch and len(msg.signature) > 0 def verify_equivocation_certificate( accused_id: str, msg_a: SignedMessage, msg_b: SignedMessage, registered_key_epoch: int, ) -> None: """Admit or reject an equivocation certificate. Raises on any inadmissible claim.""" if msg_a.agent_id != accused_id or msg_b.agent_id != accused_id: raise EquivocationCertificateError( f"certificate messages not both signed by accused {accused_id!r}" ) if not _verify_signature(msg_a, registered_key_epoch) or not _verify_signature( msg_b, registered_key_epoch ): raise EquivocationCertificateError( "signature invalid or signed under a non-current key epoch; " "certificate is not self-authenticating" ) slot_a = (msg_a.view, msg_a.slot, msg_a.round) slot_b = (msg_b.view, msg_b.slot, msg_b.round) if slot_a != slot_b: raise EquivocationCertificateError( f"slot mismatch: {slot_a} vs {slot_b} — this is a log-assembly artifact, " "not equivocation; do not evict" ) if msg_a.committed_value == msg_b.committed_value: raise EquivocationCertificateError( "payloads agree on the committed value; divergence is non-committing " "metadata only, not equivocation" ) # Certificate is admissible: two validly signed, slot-matched, divergent commitments. return None def evict_on_certificate( accused_id: str, msg_a: SignedMessage, msg_b: SignedMessage, registered_key_epoch: int, quorum_size: int, fault_tolerance: int, ) -> str: verify_equivocation_certificate(accused_id, msg_a, msg_b, registered_key_epoch) # Safety action, not discretionary: a valid certificate mandates eviction. remaining = quorum_size - 1 if remaining < 2 * fault_tolerance + 1: raise EquivocationCertificateError( f"evicting {accused_id!r} leaves {remaining} agents, below the 2f+1 " f"threshold ({2 * fault_tolerance + 1}); quorum must halt and re-form " "under a fresh key epoch rather than continue" ) return f"EVICTED:{accused_id}:certificate_admitted" ```