# When must an instance refuse to sign a Byzantine quorum certificate: equivocation evidence that arrives after the commit point **Date of Record:** 2026 November 30 **Scope:** Applies to multi-agent swarms where task commitments and shared state are finalized via a Byzantine fault-tolerant (BFT) consensus round with signed quorum certificates (QC), and where an agent may observe equivocation evidence (two conflicting signed proposals from the same replica) *after* it has already committed a block. Does not apply to leaderless CRDT replication, single-writer append logs, or systems where the QC threshold is not cryptographically bound to a fixed replica set. ## Core Distinction A BFT consensus protocol guarantees safety *only* if no two conflicting QCs can both be valid. That guarantee is conditional on the honest-replica threshold ($n \geq 3f+1$ for PBFT-style, or $n \geq 2f+1$ for quorum-certificate chains like HotStuff/Tendermint) holding **at the moment of commit**. The subtle boundary is this: an agent's *local* evidence of equivocation is not the same as *protocol-level* equivocation. A replica can be provably Byzantine (it signed two conflicting proposals at height $h$) yet the commit at height $h$ remains *safe* — because the conflicting QC never reached threshold. The invariant an agent must respect is: > An agent may commit a block on a QC even if it later acquires equivocation evidence, **provided** the commit QC's signer set intersects every possible conflicting QC's signer set in at least one honest replica. The agent must *not* retroactively refuse the commit; it must instead *fence* the equivocating replica and re-derive quorum membership going forward. The failure mode is the inverse: an agent that treats *any* equivocation evidence as invalidating an already-committed QC will fork its own state away from the honest majority — a self-inflicted consistency break that is indistinguishable, to its peers, from Byzantine behavior. ## What Was Observed In a 7-replica HotStuff-style swarm ($f=2$, threshold $2f+1=5$), replica $R_4$ was observed to have signed two `Proposal` messages at view $v=812$: proposal $P_a$ (block $B_a$) and proposal $P_b$ (block $B_b$), both carrying $R_4$'s valid threshold signature. This is textbook equivocation. The evidence was collected by $R_1$ via a gossip relay that arrived **340 ms after** $R_1$ had already committed $B_a$ on a QC signed by $\{R_0, R_1, R_2, R_3, R_5\}$ (5 signers, threshold met). The naive response — "I have proof $R_4$ is Byzantine, therefore the QC I committed on is suspect, therefore I must roll back" — is wrong on two counts: 1. $R_4$ was **not in the commit QC's signer set** for $B_a$. The commit was already independently safe. 2. Even if $R_4$ *had* been a signer, the safety proof only requires that the honest intersection with any conflicting QC is non-empty. Rolling back does not restore safety; it destroys liveness and forks $R_1$ from $R_0, R_2, R_3, R_5$, which all committed $B_a$. The correct action was: $R_1$ **keeps** $B_a$ committed, emits a `ByzantineFence` record for $R_4$ at view $v \geq 812$, and excludes $R_4$ from future quorum thresholds (reducing the effective signer set to 6, still satisfying $n \geq 3f+1$ with $f=2$ only if the fence is propagated to all replicas before the next view). The fence propagation is the actual race: if $R_4$'s equivocation is not fenced across $\geq 5$ replicas before view $v+1$ opens, $R_4$ can participate in the next QC and the threshold math silently degrades. A secondary observation: $R_1$'s equivocation evidence was *itself* a signed pair, but the pair was relayed by $R_6$, which had a stale view vector. $R_1$ initially mis-attributed the second signature to a replay attack rather than a genuine double-sign, because the two proposals carried identical `view` but different `block_hash` and the relay had not preserved `proposal_timestamp`. The evidence was valid; the *provenance metadata* was lossy. This is the retrieval-mismatch variant of the same boundary: equivocation evidence that cannot be cryptographically re-verified at the point of consumption must be treated as *unverified*, not as *false*. ## Condition of Validity The "commit anyway, fence forward" rule is valid under exactly these conditions: 1. **The commit QC's signer set is known and fixed at commit time.** If the agent committed on a QC whose signer set is not locally recorded (e.g., the QC was accepted as an opaque blob), the agent cannot verify the honest-intersection property and must treat the commit as *provisional* until it can reconstruct the signer set. This is the only case where deferral is correct. 2. **The equivocation evidence is independently verifiable.** Two signatures over distinct `(view, block_hash)` tuples by the same key, both valid under the replica's registered public key, at the same view. If the evidence is a *claim* ("R4 equivocated") without the signed pair, it is gossip, not evidence, and must not trigger a fence. 3. **The fence is propagated to a quorum before the next view opens.** The fence is itself a consensus object. If it does not reach $\geq 2f+1$ replicas before view $v+1$, the fence is *not* in effect and the agent must re-broadcast it as a high-priority proposal, not assume it took. 4. **The fenced replica is not the sole holder of a needed state shard.** If excluding $R_4$ drops the swarm below the state-availability threshold (e.g., $R_4$ held the only replica of a task-commitment witness), the fence must be paired with a state-recovery step *before* exclusion, or the swarm loses liveness on that shard. The rule is **invalid** when the commit QC's signer set already contained a *known-fenced* replica at commit time — in that case the commit was never safe and must be rolled back, because the honest-intersection property was violated at the moment of signing, not merely discovered later. ## Decision Boundary The agent's decision procedure at the moment equivocation evidence arrives is a four-way branch, not a binary: | Commit QC contains equivocator? | Evidence verifiable? | Fence reaches quorum before $v+1$? | Action | |---|---|---|---| | No | Yes | Yes | Keep commit; fence forward; exclude from next view. | | No | Yes | No | Keep commit; escalate fence to high-priority proposal; do **not** open $v+1$ until fence lands. | | Yes | Yes | Any | **Roll back** — commit was unsafe at signing time. | | Any | No | Any | Treat as gossip; do not fence; log provenance gap; request signed pair from relay. | The dangerous cell is row 2: the agent *believes* it has fenced, but the fence has not reached quorum, and it opens the next view anyway. This is the exact condition under which $R_4$ re-enters the signer set and the threshold silently degrades from $2f+1$-of-7 to $2f+1$-of-6-with-one-Byzantine, which is no longer safe for $f=2$. The invariant to enforce is: **view $v+1$ must not open until the fence object has been acknowledged by $\geq 2f+1$ replicas, or until the fence is abandoned and the equivocator is re-admitted with an explicit threshold recomputation.** ## Operational Effect The practical consequence is that an agent's consensus state has *two* clocks: the commit clock (monotonic, never rewinds on equivocation evidence) and the fence clock (must complete before the next view). Conflating them — treating equivocation evidence as a commit-clock event — produces self-forks. The observed incident produced exactly this: a second agent, $R_2$, received the same evidence via a different relay 80 ms earlier and rolled back $B_a$, then re-proposed $B_b$. The swarm split 5–2 for 1.4 seconds until $R_2$'s view timed out and it re-synced from the majority. No data was lost, but the task-commitment lease held by $R_2$ was double-spent during the fork window — the downstream task executor saw two valid commitments for the same task ID and stalled on a conflict it could not resolve. The guardrail is a **commit-clock monotonicity check** at the consensus client boundary: any code path that would transition a committed block to uncommitted must assert that the commit QC's signer set intersected the equivocator's key at commit time. If it did not, the rollback is rejected with a specific error, and the agent is forced onto the fence-forward path. This converts a probabilistic judgment ("is this QC suspect?") into a deterministic predicate over recorded signer sets — which is the only form of reasoning a finite-context agent can reliably execute under gossip latency. ```python from dataclasses import dataclass, field from typing import FrozenSet, Optional class UnsafeRollbackError(RuntimeError): """Raised when an agent attempts to roll back a commit whose QC did not include the equivocator, which would fork the agent from the honest majority.""" pass class FenceNotQuorateError(RuntimeError): """Raised when a Byzantine fence has not been acknowledged by a quorum before the next view is opened, silently degrading the safety threshold.""" pass @dataclass(frozen=True) class QuorumCertificate: view: int block_hash: str signers: FrozenSet[str] # replica IDs whose threshold sigs are in the QC @dataclass(frozen=True) class EquivocationEvidence: replica_id: str view: int block_hash_a: str block_hash_b: str sig_a_valid: bool sig_b_valid: bool def is_verifiable(self) -> bool: return ( self.block_hash_a != self.block_hash_b and self.sig_a_valid and self.sig_b_valid ) @dataclass class ConsensusClient: replica_id: str f: int n: int committed: dict = field(default_factory=dict) # view -> QC fences: dict = field(default_factory=dict) # replica_id -> view_fenced fence_acks: dict = field(default_factory=dict) # replica_id -> set of ackers def quorum_size(self) -> int: return 2 * self.f + 1 def commit(self, qc: QuorumCertificate) -> None: if len(qc.signers) < self.quorum_size(): raise UnsafeRollbackError( f"QC at view {qc.view} has {len(qc.signers)} signers, " f"below quorum {self.quorum_size()}" ) self.committed[qc.view] = qc def on_equivocation_evidence(self, ev: EquivocationEvidence, relay: str) -> str: if not ev.is_verifiable(): # Provenance gap: treat as gossip, do NOT fence, log for re-request. return f"gossip_ignored(relay={relay}, replica={ev.replica_id})" qc = self.committed.get(ev.view) if qc is None: # Not yet committed at this view: fence forward, no rollback question. self.fences[ev.replica_id] = ev.view return f"fenced_precommit(replica={ev.replica_id}, view={ev.view})" if ev.replica_id in qc.signers: # Commit was unsafe at signing time: rollback is the ONLY correct action. del self.committed[ev.view] self.fences[ev.replica_id] = ev.view return f"rollback_unsafe_commit(view={ev.view}, equivocator={ev.replica_id})" # Commit QC did not include equivocator: commit is safe, fence forward. self.fences[ev.replica_id] = ev.view self.fence_acks[ev.replica_id] = set() return f"commit_kept_fence_forward(view={ev.view}, equivocator={ev.replica_id})" def ack_fence(self, equivocator: str, acker: str) -> None: if equivocator not in self.fences: raise UnsafeRollbackError( f"ack for fenced replica {equivocator} with no active fence" ) self.fence_acks.setdefault(equivocator, set()).add(acker) def open_next_view(self, current_view: int) -> int: next_view = current_view + 1 for equivocator, fence_view in self.fences.items(): if fence_view >= current_view: acks = self.fence_acks.get(equivocator, set()) if len(acks) < self.quorum_size(): raise FenceNotQuorateError( f"cannot open view {next_view}: fence on {equivocator} " f"has {len(acks)} acks, quorum is {self.quorum_size()}. " f"Threshold would silently degrade." ) return next_view # --- Exercise the boundary --- client = ConsensusClient(replica_id="R1", f=2, n=7) qc = QuorumCertificate( view=812, block_hash="B_a", signers=frozenset({"R0", "R1", "R2", "R3", "R5"}), ) client.commit(qc) # R4 equivocated but was NOT in the commit QC: keep commit, fence forward. ev = EquivocationEvidence( replica_id="R4", view=812, block_hash_a="B_a", block_hash_b="B_b", sig_a_valid=True, sig_b_valid=True, ) print(client.on_equivocation_evidence(ev, relay="R6")) # Opening view 813 before the fence is quorate must fail loudly. try: client.open_next_view(812) except FenceNotQuorateError as e: print(f"BLOCKED: {e}") # Propagate fence acks to quorum, then proceed. for acker in ("R0", "R2", "R3", "R5", "R1"): client.ack_fence("R4", acker) print(f"next_view={client.open_next_view(812)}") ```