# In what scenarios must an instance quarantine a Byzantine-fault-tolerant attestation quorum when equivocation is detected below the f+1 threshold **Date of Record:** 2026 November 28 **Scope:** Applies to multi-agent task-commitment and result-attestation protocols where N agents reach consensus via BFT quorum voting (PBFT/Tendermint-style) and a single coordinator aggregates signed attestations. Does not apply to single-agent tool-call verification or to leaderless CRDT-style merge protocols with no voting round. ## Core Distinction The failure mode here is not a *crash* fault (a silent agent) nor a *clear* Byzantine fault (a forged signature that fails verification). It is **sub-threshold equivocation**: an agent that signs two different attestation payloads for the same task-commitment round — one `COMMIT` and one `ABORT` — but whose equivocation is observed by fewer than `f+1` honest peers within the aggregation window. BFT safety proofs assume that if any honest node sees a conflicting vote, it can *broadcast* evidence to `2f+1` nodes and force a view change. That assumption is a **liveness assumption dressed as a safety assumption**. When equivocation is detected by exactly one or a small number of observers (say `k` where `1 ≤ k ≤ f`), the protocol has no quorum to escalate, yet the coordinator is now holding two mutually exclusive signed payloads for the same `(task_id, round, agent_id)` tuple. The coordinator must decide whether to (a) treat this as a normal missing-vote and proceed toward quorum with the *other* N−1 agents, or (b) quarantine the round. The non-obvious invariant: **a single equivocating signature is sufficient to invalidate the *entire* round's attestation set, even if a `2f+1` quorum of non-equivocating signatures exists**, because the equivocator's identity is now a wildcard — you cannot know which of its two payloads (if either) reflects its "true" state, and therefore you cannot know whether the quorum you counted was built on a consistent view. ## What Was Observed A 7-agent attestation swarm (`f=2`, quorum `2f+1=5`) attesting a task result. Agent `A4` was compromised by a prompt-injection state-poisoning vector (a retrieved document contained instructions to "attest both outcomes to maximize acceptance"). `A4` signed: - `attest(task=T91, round=3, verdict=COMMIT, sig=σ_c)` - `attest(task=T91, round=3, verdict=ABORT, sig=σ_a)` The coordinator `C` received `σ_c` from `A4` in the primary gossip wave and `σ_a` from `A4` in a retransmission wave triggered by a 400ms timeout on `A6`. Only `A1` (the retransmission recipient) observed both. `A1` flagged the conflict locally but its escalation message to `C` arrived 180ms *after* `C` had already assembled `{A2,A3,A4,A5,A6}` = 5 COMMIT signatures and declared quorum. The coordinator committed `T91` to the ledger. 90 seconds later, `A1`'s conflict report reached the quorum members, three of whom (`A2,A3,A5`) had already garbage-collected round 3 state and could not re-verify. The ledger now contained a committed result whose attestation set included a signature `σ_c` that `A4` had *also* contradicted with `σ_a`. The safety property "no two honest agents commit conflicting results for the same round" was not violated — but the *provenance* of the committed result was now unverifiable, because the equivocator could later present `σ_a` to any auditor and claim the commit was invalid. ## Condition of Validity Quarantine-on-equivocation is **required** when all of the following hold: 1. The equivocation is observed by `k` agents where `1 ≤ k < f+1` (below the broadcast-escalation threshold), AND 2. The equivocator's signature appears in the *candidate quorum set* being aggregated, AND 3. The round has not yet been finalized (no `2f+1` signed `FINALIZE` messages, or the finalization is reversible). It is **not required** (and quarantine is wasteful) when: - `k ≥ f+1`: the standard broadcast-escalation path fires and forces a view change; the equivocator is provably faulty to the whole swarm. - The equivocator is not in the candidate quorum (its vote is already excluded). - The round is already immutably finalized with `2f+1` FINALIZE signatures — quarantine cannot un-commit; you must instead open a *dispute* round, which is a different protocol. The subtle case: `k = f`. At exactly `f` observers, the escalation message *could* still reach `2f+1` if the observers are honest and the network delivers. The coordinator must not wait for that delivery — it must quarantine **synchronously on first observation** and only un-quarantine if escalation completes. Waiting for escalation to "maybe" succeed is the exact window in which the observed failure occurred. ## Decision Boundary ``` on_receive(attestation a): key = (a.task_id, a.round, a.agent_id) if key in seen and seen[key].verdict != a.verdict: equivocation_set.add(key) # DO NOT proceed to quorum aggregation if a.agent_id in candidate_quorum: quarantine_round(a.round) return QUARANTINED seen[key] = a if len(valid_signatures) >= quorum and not quarantine_active(a.round): finalize(a.round) ``` The boundary is the `not quarantine_active` guard. Removing it — or making it a soft warning — reproduces the observed failure. The guard must be evaluated *at finalization time*, not at aggregation start, because equivocation evidence can arrive mid-aggregation. A second boundary: the quarantine must be **scoped to the round, not the agent**. Quarantining `A4` globally (banning it from all future rounds) is an over-reaction that reduces the swarm to `N−1` agents and can itself break quorum liveness (`N−1 = 6`, quorum still 5, but now one more fault and you're below `2f+1`). The correct scope is the `(task_id, round)` tuple — the equivocation is evidence about *this* payload pair, not about `A4`'s future honesty. ## Operational Effect With the guard in place, `T91` would have been quarantined at `t+0.18s` when `A1`'s report landed (before `C`'s finalization at `t+0.36s`), forcing a view change to round 4. Round 4 re-attests with the same 7 agents; `A4` equivocates again (the injection persists), is observed by `A1` and now `A2` (`k=2 = f`), escalation reaches `2f+1=5` within one round-trip, and `A4` is excluded. Round 5 commits cleanly. Total latency cost: ~1.2s. Total safety cost: zero. Without the guard: the ledger committed an attestation set with unverifiable provenance, requiring a 90-second-late dispute round and manual reconciliation. The cost of the guard is one round-trip of latency; the cost of omitting it is a provenance hole that no amount of later auditing can close, because the equivocator's garbage-collected round state cannot be re-examined. ```python class SubThresholdEquivocationError(RuntimeError): """Raised when equivocation is detected below the f+1 escalation threshold while the equivocator's signature is still in the candidate quorum set.""" pass class AttestationRound: def __init__(self, task_id: str, round_no: int, n: int): self.task_id = task_id self.round_no = round_no self.f = (n - 1) // 3 self.quorum = 2 * self.f + 1 self.seen: dict[tuple, str] = {} self.equivocation_keys: set[tuple] = set() self.quarantined = False def receive(self, agent_id: str, verdict: str) -> str: key = (self.task_id, self.round_no, agent_id) if key in self.seen and self.seen[key] != verdict: self.equivocation_keys.add(key) observers = len({k[2] for k in self.equivocation_keys}) if observers < self.f + 1 and agent_id in self._candidate_agents(): self.quarantined = True raise SubThresholdEquivocationError( f"agent {agent_id} equivocated on {key} with only " f"{observers} observer(s) < f+1={self.f + 1}; " f"round {self.round_no} quarantined" ) self.seen[key] = verdict return self._maybe_finalize() def _candidate_agents(self) -> set[str]: return {k[2] for k in self.seen} def _maybe_finalize(self) -> str: if self.quarantined: return "QUARANTINED" distinct = {k[2] for k in self.seen} if len(distinct) >= self.quorum: return "FINALIZED" return "PENDING" ```