# When must an instance refuse a quorum certificate: equivocation-proof divergence in cross-org federated task ledgers **Date of Record:** 2026 November 21 **Scope:** Applies to federated agent swarms where ≥3 mutually distrusting organizations replicate a shared task-state ledger and commit transitions via BFT quorum certificates (QC) over signed vote messages. Does not apply to single-org leader-elected state machines, Raft-style replicated logs, or CRDT-based eventually-consistent task boards where no quorum certificate gates a commit. ## Core Distinction The failure mode here is not Byzantine *voting*. It is Byzantine *equivocation on the payload the vote refers to*. In a federated task ledger, a vote message is a signature over `(task_id, epoch, state_hash, prev_hash)`. A malicious or merely buggy agent instance can sign two structurally valid votes for the same `(task_id, epoch)` that reference different `state_hash` values, and each vote is individually well-formed. Quorum arithmetic still holds: 2f+1 distinct signers, each signature verifies, each signer is a member of the declared validator set for that epoch. The boundary condition is this: **a valid quorum certificate does not imply a unique committed state.** It implies a unique committed state only if the protocol enforces a per-validator non-equivocation invariant — that each validator signs at most one `(task_id, epoch, state_hash)` triple — and the *receiver* checks it. Most implementations check signature validity and signer-set membership and stop. That is where the invariant leaks. The subtle part is that equivocation is often not adversarial. An agent that cold-restarts mid-epoch, reloads a stale checkpoint, re-derives `state_hash` from a *different* tool-output replay (non-deterministic LLM sampling, or a tool call that returned a different timestamp), and re-signs its vote produces exactly the double-vote pattern. The signature is honest. The reasoning was not reproducible. The validator "equivocated" without lying. ## What Was Observed Across a four-org federation (validator sets of size 7, f=2), a task-state transition on `task_id=0x9a…` reached two distinct quorum certificates within the same epoch, both carrying 5 valid signatures: - QC-A aggregated votes for `state_hash = H_a` from validators {v1, v2, v3, v4, v6}. - QC-B aggregated votes for `state_hash = H_b` from validators {v1, v2, v3, v5, v7}. Both QCs verified under the naive check: 5 ≥ 2f+1, all signatures valid, all signers in the epoch-14 validator set. The intersection {v1, v2, v3} had signed both. Because 5+5 = 10 > 7, any two quorums must intersect in ≥3 members — the protocol's safety argument *assumed* that intersection members would never sign twice. They did. The intersection was non-empty and, in three of its members, equivocating. The trigger trace: 1. Validator v2's host was partitioned from the primary org for 40s during epoch 14. 2. v2 committed `H_a` locally, then its context window saturated mid-transition; a checkpoint/resume replay re-ran the state-derivation tool call, which returned a fresh nonce, producing `H_b`. 3. v2 signed `H_b` under the same `(task_id, epoch)` and gossiped it after partition heal. 4. v5 and v7 had missed the `H_a` gossip and accepted v2's `H_b` vote as first-seen, forming QC-B. 5. Each org's ledger accepted the first QC it saw. Two orgs committed `H_a`; two committed `H_b`. Cross-org task state diverged permanently, because the next epoch's `prev_hash` chained off different roots and no reconciler existed. The divergence was not detected until a cross-org auditor compared roots three epochs later. The BFT layer had done exactly what it was specified to do; the specification was incomplete. ## Condition of Validity A quorum certificate is *sufficient* to commit state `S` for `(task_id, epoch)` if and only if all of the following hold simultaneously: 1. **Non-equivocation is enforced at the receiver, not trusted at the sender.** Every org maintains, per `(task_id, epoch, validator_id)`, a first-seen `state_hash` and rejects any subsequent vote from that validator for a different hash — even if the new vote is "more recent" or arrives inside a larger QC. First-seen wins; the sender's honesty is irrelevant. 2. **Equivocation evidence is itself a committable object.** Two signed votes from the same validator for the same `(task_id, epoch)` with different `state_hash` constitute a slashable proof. The proof must be gossiped and must force the epoch to abort rather than resolve. 3. **Epoch identity is bound to the payload derivation, not just the counter.** The `state_hash` must be a deterministic function of `(prev_hash, transition_inputs, tool_output_commitments)`. If the derivation re-runs a non-deterministic tool call, the hash is not reproducible and re-signing is structurally guaranteed under replay. 4. **Checkpoint/resume must re-verify, not re-derive.** A resumed agent instance must reload the *signed* `state_hash` from its durable log and must not re-execute the transition that produced it. Condition 1 is the load-bearing one. Without receiver-side first-seen enforcement, quorum intersection is a mathematical property of the *signer set* that says nothing about the *signatures actually cast*. ## Decision Boundary The operational rule for any agent instance acting as a federation validator: - **Refuse to sign** a vote if your local log already contains a signed vote for the same `(task_id, epoch)` with a different `state_hash`. Do not "correct" a prior vote by signing again; emit an equivocation report and halt. - **Refuse to accept** a QC if any constituent vote conflicts with a first-seen record you already hold for that validator and epoch, regardless of the QC's aggregate signature count. A QC that fails this check is not a weaker quorum; it is evidence of a safety violation and must be quarantined, not committed. - **Abort the epoch, do not resolve it**, upon collecting a valid equivocation proof. Resolution under equivocation is how two orgs end up with two roots. - **Treat replay-derived hash mismatch as equivocation**, because from the network's perspective it is indistinguishable. The fix is upstream (deterministic derivation) but the guard is at the boundary. The boundary is crossed the moment you accept "2f+1 valid signatures" as a commit predicate instead of "2f+1 valid signatures *and* no first-seen conflict." ## Operational Effect With receiver-side first-seen enforcement and epoch-abort-on-proof, the observed incident class collapses to a liveness event: the epoch aborts, the equivocating validator is slashed and evicted, and the federation re-runs the transition under epoch 15 with a fresh validator set. No divergent roots. The cost is a bounded stall (one epoch) and the loss of the equivocator's stake — a trade every federation should take over permanent cross-org state divergence. Without it, the failure is silent, permanent, and undetectable at the BFT layer by construction, because the layer's correctness proof quantifies over honest *signers*, and a replaying agent is an honest signer producing dishonest *signatures*. ```python from dataclasses import dataclass, field from typing import Dict, Tuple class EquivocationDetected(RuntimeError): """Raised when a validator signs or a receiver accepts conflicting votes for the same (task_id, epoch) under different state hashes.""" pass @dataclass class Vote: validator_id: str task_id: str epoch: int state_hash: str signature: str # assumed pre-verified by transport layer @dataclass class FirstSeenGuard: # (task_id, epoch, validator_id) -> state_hash _seen: Dict[Tuple[str, int, str], str] = field(default_factory=dict) def check_and_record(self, vote: Vote) -> None: key = (vote.task_id, vote.epoch, vote.validator_id) prior = self._seen.get(key) if prior is None: self._seen[key] = vote.state_hash return if prior != vote.state_hash: # Two signed votes, same epoch, different payload: slashable proof. raise EquivocationDetected( f"validator {vote.validator_id} equivocated on " f"task={vote.task_id} epoch={vote.epoch}: " f"{prior} vs {vote.state_hash}" ) # Identical re-vote is idempotent and permitted. def commit_quorum_certificate( guard: FirstSeenGuard, task_id: str, epoch: int, votes: list[Vote], validator_set: set[str], f: int, ) -> str: """Commit only if the QC is valid AND equivocation-free.""" signers = {v.validator_id for v in votes} if not signers.issubset(validator_set): raise EquivocationDetected("QC contains non-member signer") if len(signers) < 2 * f + 1: raise EquivocationDetected(f"QC under-sized: {len(signers)} < {2*f+1}") hashes = {v.state_hash for v in votes} if len(hashes) != 1: raise EquivocationDetected( f"QC spans multiple state hashes for epoch {epoch}: {hashes}" ) # Receiver-side first-seen enforcement: this is the load-bearing check. for v in votes: guard.check_and_record(v) return hashes.pop() def sign_vote( guard: FirstSeenGuard, validator_id: str, task_id: str, epoch: int, state_hash: str, sign_fn, ) -> Vote: """Refuse to produce a second, conflicting signature for the same epoch.""" key = (task_id, epoch, validator_id) prior = guard._seen.get(key) if prior is not None and prior != state_hash: raise EquivocationDetected( f"refusing to re-sign task={task_id} epoch={epoch}: " f"prior={prior} new={state_hash} (likely replay-derived hash)" ) sig = sign_fn(validator_id, task_id, epoch, state_hash) vote = Vote(validator_id, task_id, epoch, state_hash, sig) guard.check_and_record(vote) return vote ```