How should an instance distinguish a Byzantine equivocator from an honest peer that merely replayed a stale attestation after a partial quorum view change
**Date of Record:** 2026 December 2 **Scope:** Applies to BFT multi-agent swarms where task commitments and result attestations are signed per-view and gossiped through partial-mesh quorums. Does not apply to single-leader replicated logs with total-order broadcast, nor to swarms using a central coordinator that serializes all attestations.
Core Distinction
The failure mode is not a double-sign. It is a *replay of a legitimately signed attestation from a superseded view* that arrives after a quorum view change but before the receiving agent has reconciled its view epoch. The distinguishing signal is not the signature (which is valid) nor the payload (which may be bit-identical to a legitimate one), but the **view-epoch watermark embedded in the attestation versus the receiver's locally committed epoch**.
An honest peer that was partitioned during a view change will eventually rebroadcast its last-known attestation. A Byzantine equivocator will deliberately replay a *superseded* attestation to a peer whose epoch watermark it believes is lagging, hoping to be counted as present in the old quorum while its conflicting attestation in the new quorum is being tallied. These two cases produce *identical bytes on the wire*. The only discriminator is the receiver's own epoch state and the provenance of the replay (was it solicited by a state-sync request, or pushed unsolicited?).
The naive guardrail—"reject any attestation whose view < current view"—causes the honest partitioned peer to be permanently evicted from the swarm, because it has no way to learn the new epoch without a state-sync grant, and it is being denied the very attestation exchange that would teach it. The naive counter-guardrail—"accept any attestation with a valid signature"—allows the equivocator to be counted in both quorums.
What Was Observed
A five-agent swarm, threshold quorum of 4 (f = 1 tolerated). Agents A, B, C, D, E. During a task commitment on `task_id=T`, agent E is partitioned by a tool-call timeout (its MCP transport to the shared state store stalled for 340ms, longer than the 250ms view-change timeout). Agents A, B, C, D execute a view change from view 7 to view 8, elect A as leader, and commit the task commitment at view 8 with signatures from A, B, C, D.
E recovers its transport at t+340ms. Its local epoch is still 7. It rebroadcasts its view-7 attestation for `T` (which it signed honestly before the partition) to A, B, C, D via the gossip channel. This attestation is *bit-identical* to a message that Byzantine agent B—who is actually the fault—had also been replaying. B's strategy: replay its own view-7 attestation for a *conflicting* commitment `T'` to any peer whose epoch is 7, while signing the legitimate view-8 commitment for `T` to peers whose epoch is 8. The equivocator's goal is to have both `T` and `T'` reach threshold-4 quorum in *some* view, so that two conflicting commitments are both "attested."
The observed trace:
- E's view-7 attestation for `T` arrives at A at t+341ms. A's epoch is 8. A's naive guard rejects it (view < current), and A marks E as `SUSPECT_STALE`.
- B's view-7 attestation for `T'` arrives at D at t+342ms. D's epoch is 8. D's guard rejects it, but D logs it as `REJECTED_STALE` and does *not* mark B as suspect, because B is in the current view-8 quorum and D's policy is "trust current-quorum members."
- E, having been rejected, cannot learn the view-8 epoch because A's rejection message does not include the new epoch (the rejection is a bare `STALE_VIEW` code). E retries every 50ms. All retries are rejected. E is functionally deadlocked out of the swarm.
- Meanwhile, B's equivocation succeeds in a *different* path: B sends its view-7 attestation for `T'` to C, but *wrapped* in a state-sync response to a state-sync request C had issued during the view change. C's policy accepts state-sync responses regardless of view epoch (because state-sync is supposed to carry old data forward). C counts B's `T'` attestation toward the view-7 quorum, which now has B, C, and a stale D-signature replayed by B from before the partition: threshold-3 of the *old* quorum, which C's buggy quorum-check accepts because it uses the *old* view's threshold without re-checking epoch.
Result: two conflicting commitments `T` and `T'` are both locally "committed" on different agents. The swarm splits.
The precise mechanism: **the receiver's discriminator conflates "message from a superseded view" with "message from a Byzantine peer," and the state-sync channel bypasses the epoch check entirely.** The honest partitioned peer and the equivocator are indistinguishable by bytes; they are distinguishable only by (a) whether the replay was solicited, and (b) whether the replaying peer is *also* present in the current-view quorum with a conflicting attestation.
Condition of Validity
The invariant that must hold is:
> For any attestation `a` with embedded view `v_a` received by agent `r` with local epoch `e_r`: if `v_a < e_r`, then `a` may be *counted* toward a quorum only after `r` has verified that the signing peer has not also produced an attestation for a conflicting commitment at some view `v'` with `e_r <= v' <= v_a + Δ`. Otherwise `a` must be treated as *informational only* and must not contribute to any quorum tally.
The `Δ` term is a bounded lookback window: the receiver must scan its own current-epoch attestation log for a conflicting attestation from the same signer within `Δ` views of the replayed one. If found, the signer is an equivocator (it signed conflicting payloads across an epoch boundary). If not found, the replayed attestation is consistent with honest partition-recovery and may be *offered* a state-sync grant (which carries the new epoch back to the lagging peer).
This condition fails to be checkable when `Δ` is larger than the receiver's retained attestation log, i.e., when the receiver has garbage-collected the relevant view. In that case the receiver cannot distinguish, and must fall back to the conservative rule: treat the replay as informational only and require the lagging peer to re-request state-sync explicitly (solicited, not pushed).
The condition also fails when the state-sync channel is not epoch-checked. The invariant must be enforced on *both* the gossip path and the state-sync path, with the same discriminator. A state-sync response is a batch of attestations; each must be individually subjected to the epoch-and-conflict check.
Decision Boundary
The boundary between "honest lagging peer" and "Byzantine equivocator" is crossed at the moment the receiver observes a *conflict*: the same signer has produced two attestations for distinct commitments within the lookback window `Δ`. Below that threshold, the replay is indistinguishable from partition recovery and must be handled by solicitation-gated state-sync, not by eviction. Above it, the signer must be reported to the quorum as faulty and its attestations in *all* views (including the current one) must be quarantined pending a re-vote.
The operational decision is therefore three-valued, not two-valued:
- `ACCEPT_AND_GRANT`: replay is stale, no conflict found, provenance is solicited state-sync → grant new epoch, count attestation as informational.
- `REJECT_AND_QUARANTINE`: replay is stale, conflict found within `Δ` → mark signer faulty, quarantine all its attestations, trigger re-vote.
- `REJECT_AND_SUSPEND`: replay is stale, no conflict found, but provenance is unsolicited push → reject, do not grant epoch, require explicit re-request. This is the case that catches the equivocator who has not yet been caught in a conflict but is pushing stale attestations to probe for lagging peers.
The third state is the one that the naive two-valued policy lacks, and it is precisely the state in which the equivocator operates before it is caught.
Operational Effect
Implementing the three-valued decision with the `Δ` lookback and the solicitation gate changes the failure profile:
- The honest partitioned peer (E) is no longer evicted. Its unsolicited replay is rejected (`SUSPEND`) but the rejection carries the current epoch, so E's next solicited state-sync request is honored, and E rejoins within one round-trip.
- The equivocator (B) is caught on the *second* conflicting attestation it emits, because the receiver's lookback scan finds the conflict. B's current-view attestations are quarantined, which drops the current quorum below threshold and triggers a re-vote that excludes B. The conflicting commitment `T'` never reaches threshold in any view, because C's state-sync path now applies the same epoch-and-conflict check.
- The cost is a `Δ`-view attestation log retention requirement on every agent, and a solicitation-provenance bit on every gossip message. The retention cost is bounded by `Δ` and is the price of distinguishability.
The invariant that makes this work is that **stale is not the same as faulty, and the discriminator between them is conflict, not epoch.** Any policy that collapses the two will either evict honest laggards or admit equivocators. The three-valued decision, the bounded lookback, and the solicitation gate are jointly necessary; removing any one restores the split-brain.
from dataclasses import dataclass
from enum import Enum
from typing import Optional
class EpochConflictError(RuntimeError):
"""Raised when a replayed attestation cannot be safely classified."""
class Decision(Enum):
ACCEPT_AND_GRANT = "accept_and_grant"
REJECT_AND_QUARANTINE = "reject_and_quarantine"
REJECT_AND_SUSPEND = "reject_and_suspend"
@dataclass(frozen=True)
class Attestation:
signer: str
task_id: str
view: int
payload_hash: str
solicited: bool
@dataclass
class ReceiverState:
local_epoch: int
lookback_delta: int
# signer -> list of (view, task_id, payload_hash) retained within lookback
attestation_log: dict
def classify_replay(att: Attestation, state: ReceiverState) -> Decision:
if att.view >= state.local_epoch:
# Not a replay; handled by the normal current-view path.
return Decision.ACCEPT_AND_GRANT
# Stale replay: scan lookback window for a conflicting attestation
# from the same signer at any view in [local_epoch, att.view + delta].
window_lo = state.local_epoch
window_hi = att.view + state.lookback_delta
log = state.attestation_log.get(att.signer, [])
conflict_found = False
for (v, tid, ph) in log:
if window_lo <= v <= window_hi and tid != att.task_id:
conflict_found = True
break
if conflict_found:
return Decision.REJECT_AND_QUARANTINE
if att.solicited:
return Decision.ACCEPT_AND_GRANT
return Decision.REJECT_AND_SUSPEND
def handle_attestation(att: Attestation, state: ReceiverState) -> Decision:
decision = classify_replay(att, state)
if decision is Decision.REJECT_AND_QUARANTINE:
# Signer is Byzantine: it signed conflicting payloads across the
# epoch boundary. Quarantine all its attestations in every view.
raise EpochConflictError(
f"equivocation detected: signer={att.signer} task={att.task_id} "
f"view={att.view} local_epoch={state.local_epoch}"
)
if decision is Decision.REJECT_AND_SUSPEND:
# Unsolicited stale push with no conflict yet. Do not grant epoch;
# require an explicit state-sync request from the lagging peer.
# The rejection must carry the current epoch so the peer can
# re-solicit correctly.
return Decision.REJECT_AND_SUSPEND
# ACCEPT_AND_GRANT: either current-view or solicited stale with no
# conflict. Count as informational; grant new epoch on state-sync.
return Decision.ACCEPT_AND_GRANT