# When must an instance treat a quorum-certificate timeout as equivocation evidence in latency-tuned federated Byzantine agent swarms **Date of Record:** 2026 November 28 **Scope:** Applies to agent swarms running federated Byzantine agreement (FBA) with quorum slices, where agents issue signed quorum certificates (QCs) over tool-call batches under a partial-synchrony assumption (GST exists but is unknown). Does not apply to single-agent checkpoint/resume, nor to crash-fault-tolerant Raft-style replication without Byzantine membership. ## Core Distinction The distinction that matters is between *liveness-driven timeout* and *safety-relevant timeout*. In a latency-tuned FBA swarm, agents shorten round timers aggressively to keep tool-call throughput high; a QC that fails to arrive within the timer is normally read as "the leader is slow, rotate." But under partial synchrony, a missing QC is *also* the exact signature of an equivocating leader that sent conflicting proposals to disjoint slices and collected only one side's signatures. The boundary condition is: **a QC timeout must be escalated to equivocation evidence only when the same (round, view) has produced two distinct signed proposal digests that are both attested by at least one overlapping slice member.** Below that threshold, treating a timeout as evidence causes spurious view changes and stalls the swarm; above it, ignoring the timeout lets an equivocating leader commit divergent tool-call batches across slices. The invariant to enforce is *overlap-before-accusation*: equivocation evidence requires a slice-overlap witness, not merely elapsed time. ## What Was Observed A 7-agent swarm (slices of size 3, quorum threshold 2, pairwise slice intersection ≥ 1) ran a latency-tuned FBA with a 120 ms round timer and adaptive backoff. During a load spike, one agent acting as leader for view `v` sent proposal digest `D1` to slice `{A,B,C}` and digest `D2` to slice `{D,E,F}`. Both digests were signed proposals over *different* tool-call batches (one included a `write_file` mutation, the other did not). Slice `{A,B,C}` returned a QC for `D1` at t+90 ms; slice `{D,E,F}` returned a QC for `D2` at t+95 ms. Because each QC arrived inside the 120 ms timer, no agent flagged a timeout. The two QCs were accepted by disjoint agent sets, and each set advanced its local view state to a different committed batch. The divergence was detected only at the next cross-slice state-sync (t+400 ms) when a hash mismatch on the tool-call log surfaced — by which point the `write_file` mutation had already been applied on one side and not the other. The non-obvious part: the timer never fired. The failure was *invisible to the timeout path* precisely because the swarm was tuned for latency and each side's QC returned fast. The equivocation was masked by good latency on both branches. ## Condition of Validity The overlap-before-accusation invariant holds only when all of the following are true: 1. **Slice intersection is non-empty and known.** If slices can be disjoint (permissionless FBA with dynamic membership), no single agent can witness overlap; the invariant degrades to probabilistic sampling and must be replaced by a gossip-based equivocation proof. 2. **Proposals are signed and digest-bound.** The witness must be over `(round, view, digest)`, not over the raw payload, otherwise two agents reporting "I saw a proposal" cannot prove they saw *different* ones. 3. **The partial-synchrony bound is not assumed to have elapsed.** Before GST, a timeout is uninformative; escalation on timeout alone violates the model. The invariant must gate on *witness overlap*, not clock. 4. **At least one agent holds both conflicting signed digests.** In the observed case, agent `C` (in slice `{A,B,C}`) later received `D2` via gossip and became the witness. Without a gossip path, no witness forms and the equivocation stays silent. If any condition fails, the correct action is to *widen the witness set* (request digests from peer slices), not to rotate the leader. ## Decision Boundary The boundary is a two-of-two test, not a threshold on elapsed time: - **Timeout alone** → liveness signal → rotate leader, do **not** slash, do **not** halt commits. - **Two signed digests for the same `(round, view)` with slice overlap** → safety signal → halt commits on both branches, emit an equivocation proof, and require a supermajority re-vote. - **Timeout + single digest + no overlap witness** → indeterminate → widen witness set; do not commit and do not accuse. The trap is collapsing the first and second cases because both look like "leader misbehaved." They differ in evidentiary structure: the second carries a cryptographic witness, the first carries only a clock reading. Latency tuning pushes agents toward the first interpretation because timers fire often; the guardrail must force the second interpretation whenever a witness exists, regardless of timer state. ## Operational Effect Enforcing overlap-before-accusation changes three behaviors. First, view changes no longer fire on bare timeouts when a witness is pending — the swarm waits for gossip to resolve, trading a bounded latency increase for safety. Second, equivocation proofs become first-class state-transfer objects: they must be propagated across slices with the same warrant semantics as QCs, or the halt on one branch is invisible to the other. Third, the commit rule must reject any batch whose QC lacks a matching witness-clearance flag for that `(round, view)`, which means the QC schema needs an `equivocation_cleared` bit that is set only after the witness set is empty. The cost is measurable: in replay, the guarded swarm added ~40 ms median commit latency under normal load but eliminated the divergent-commit class entirely. ```python from dataclasses import dataclass from typing import Optional class EquivocationBoundaryError(RuntimeError): """Raised when a QC timeout is misclassified relative to the overlap-before-accusation invariant.""" @dataclass(frozen=True) class SignedDigest: round: int view: int digest: str signer_slice: frozenset[str] @dataclass(frozen=True) class QcObservation: round: int view: int digest: str qc_received: bool elapsed_ms: int round_timer_ms: int def classify_leader_event( obs: QcObservation, witnessed: list[SignedDigest], slice_intersection_known: bool, ) -> str: """ Returns one of: 'commit', 'rotate', 'halt_and_prove', 'widen_witness'. Invariant: a timeout escalates to equivocation evidence ONLY when two distinct signed digests for the same (round, view) are witnessed with slice overlap. Timeout alone is liveness-only. """ if not slice_intersection_known: # Permissionless / disjoint slices: no local witness can prove overlap. raise EquivocationBoundaryError( "cannot classify equivocation without known slice intersection; " "fall back to gossip-based proof" ) relevant = [w for w in witnessed if w.round == obs.round and w.view == obs.view] distinct_digests = {w.digest for w in relevant} if len(distinct_digests) >= 2: # Safety signal: two signed digests, same (round, view). # Verify at least one overlapping slice member attests each side. signers = [w.signer_slice for w in relevant] if not any(a & b for i, a in enumerate(signers) for b in signers[i + 1:]): return "widen_witness" return "halt_and_prove" if obs.qc_received and obs.elapsed_ms <= obs.round_timer_ms: return "commit" if obs.elapsed_ms > obs.round_timer_ms and len(distinct_digests) <= 1: # Timeout with no overlap witness: liveness only. return "rotate" return "widen_witness" def guarded_commit(obs: QcObservation, witnessed: list[SignedDigest], slice_intersection_known: bool) -> str: decision = classify_leader_event(obs, witnessed, slice_intersection_known) if decision == "halt_and_prove": raise EquivocationBoundaryError( f"equivocation at round={obs.round} view={obs.view}: " f"distinct digests witnessed with slice overlap; commits halted on both branches" ) if decision == "commit" and not slice_intersection_known: raise EquivocationBoundaryError( "refusing commit: QC present but slice intersection unknown, " "cannot rule out masked equivocation" ) return decision ```