# Where must an instance refuse to commit when a Byzantine peer equivocates across the attestation threshold? **Date of Record:** 2026 November 27 **Scope:** Applies to multi-agent swarms that reach task-commitment and result-attestation consensus via an m-of-n quorum of signed attestations, where up to f peers may be Byzantine (equivocating, forging, or selectively withholding). Does not apply to single-agent tool loops, centralized orchestrators with a trusted coordinator, or quorums formed over a single shared transport that guarantees total-order delivery. ## Core Distinction The failure this record isolates is **equivocation-induced split attestation**, not simple forgery. A forging peer is detectable because its signature fails verification against a message it never should have produced. An equivocating peer is different: it produces *two validly signed attestations* for the same task round — one `COMMIT(result_hash=A)` to half the swarm and one `COMMIT(result_hash=B)` to the other half. Every signature verifies. Every individual message is well-formed. The invariant that breaks is not authenticity but **agreement**: two disjoint subsets of honest agents each collect a locally-valid quorum and each believe they have committed the same task to different results. The critical and non-obvious point: a naive `m = f + 1` threshold (majority) is *insufficient* here. With `n = 3f + 1` and a majority threshold, an equivocating peer can split the honest `n - f = 2f + 1` agents into two groups of `f` and `f + 1`, where the `f + 1` group reaches majority and the `f` group does not — but if the message delivery order is favorable, both groups can momentarily believe they are near threshold and one can be coerced into double-commit under retry pressure. The safe threshold is `2f + 1` out of `3f + 1`, and the safe rule is: **an instance must refuse to commit on an attestation set it cannot cross-verify against a peer's view of the same round.** ## What Was Observed A four-agent swarm (`n = 4`, tolerating `f = 1` Byzantine) executed a task-commitment round. Agent `P3` was Byzantine. The task was "summarize document D and attest the result hash." The honest agents were `P0`, `P1`, `P2`. Trace: 1. `P3` sent `ATTEST(round=7, result_hash=A, sig=P3)` to `P0` and `P1`. 2. `P3` sent `ATTEST(round=7, result_hash=B, sig=P3)` to `P2`. 3. `P0` computed `result_hash=A` locally and received `P3`'s attestation of `A`. `P0`'s view: `{P0:A, P3:A}` — 2 attestations for `A`. 4. `P1` computed `result_hash=A` locally and received `P3`'s attestation of `A`. `P1`'s view: `{P1:A, P3:A}` — 2 attestations for `A`. 5. `P2` computed `result_hash=B` locally (a non-deterministic summarizer produced a different but plausible output) and received `P3`'s attestation of `B`. `P2`'s view: `{P2:B, P3:B}` — 2 attestations for `B`. With threshold `m = 2` (which the operators had configured as "majority of 4"), **both `{P0,P1}` and `{P2}` independently satisfied the commit condition**. `P0` and `P1` committed `A`; `P2` committed `B`. The swarm forked its committed result with zero forged signatures and zero failed verifications. The equivocation was invisible to any single agent's local check because each agent only saw a self-consistent subset. The downstream corruption: `P2` wrote `B` to the shared result store as the attested value for round 7, while `P0`/`P1` wrote `A`. On resume, a cold-started agent `P4` read the store, found two attested values for the same round, and — lacking a tiebreak rule — selected the most recent write (`B`), silently diverging from the majority that had computed `A`. ## Condition of Validity The split is only possible when **all three** of the following hold simultaneously: 1. **Threshold ≤ f + 1** while `n ≤ 3f`. Here `n=4, f=1`, majority `m=2 = f+1`, and `2f+1 = 3 > n`. The quorum was arithmetically unable to intersect any other quorum in an honest agent — the intersection guarantee `2m - n ≥ f + 1` requires `m ≥ (n + f + 1)/2`, which for `n=4, f=1` demands `m ≥ 3`. The operators used `m=2`. 2. **Non-deterministic result computation.** If `P2` had computed `A` like the others, `P3`'s equivocation would have produced a detectable mismatch (`P2` would hold `{P2:A, P3:B}` and reject `P3`'s attestation as inconsistent with its own). The non-determinism of the LLM summarizer is what allowed `P2`'s local result to *legitimately* differ, masking the equivocation as ordinary variance. 3. **No cross-view reconciliation before commit.** Each agent committed on its local attestation set without exchanging its *view* (the set of `(peer, result_hash)` pairs it had collected) with at least one other agent in the quorum. When any one of these is absent, the split cannot form. The invariant to enforce is therefore: **commit requires `m ≥ (n + f + 1)/2` AND a view-exchange handshake in which the committing instance confirms that a quorum of peers report the same `(round, result_hash)` mapping it is about to commit.** ## Decision Boundary An instance must transition to `REFUSE_COMMIT` — not `COMMIT`, not `RETRY` — at the exact moment it detects that its local attestation set for a round is *quorum-satisfying but view-inconsistent*. Concretely: - **Commit** when `|attestations(round, hash)| ≥ m` AND the view-exchange confirms `≥ m` peers independently report `hash` for `round`. - **Refuse** when `|attestations(round, hash)| ≥ m` BUT view-exchange reveals any peer reporting a *different* `hash` for the same `round` with a valid signature from a peer that also signed your `hash`. This is the equivocation signature: a peer appearing on both sides. The instance must not commit, must not retry with the same quorum, and must escalate the round to an equivocation-evidence broadcast. - **Retry** only when the attestation set is *below* `m` and no conflicting signed view exists — i.e., genuine message loss, not equivocation. The boundary is sharp: below `m` with no conflict is a liveness problem (retry). At-or-above `m` with a conflict is a safety problem (refuse and escalate). Conflating the two — retrying an equivocation — is what let `P2`'s commit stand. ## Operational Effect Enforcing the view-exchange invariant converts the equivocation from a silent fork into a bounded, detectable event with a deterministic resolution: the round is marked `EQUIVOCATION_SUSPECTED`, the conflicting signed attestations are broadcast as evidence, and the swarm re-runs the round with a fresh nonce and a *deterministic* result-computation mode (temperature 0, fixed seed) so that honest agents cannot legitimately diverge. The cost is one extra round-trip per commit and the loss of summarizer diversity; the benefit is that no committed result can ever be attested by two disjoint quorums. The cold-start agent `P4` in the observed incident would have found the round flagged and refused to read either `A` or `B` until re-attestation completed, preventing the silent divergence. ```python from dataclasses import dataclass, field from typing import Dict, Set, Tuple class EquivocationDetected(RuntimeError): """Raised when a local quorum is satisfied but view-exchange reveals a peer signing two different result hashes for the same round.""" pass class InsufficientQuorum(RuntimeError): """Raised when attestations are below threshold with no conflicting view (a liveness/retry condition, NOT a safety violation).""" pass @dataclass class AttestationView: """An instance's local view of one consensus round.""" round_id: int own_hash: str # peer_id -> result_hash that peer attested to us for this round received: Dict[str, str] = field(default_factory=dict) def attestations_for(self, h: str) -> Set[str]: return {p for p, hh in self.received.items() if hh == h} def commit_or_refuse( view: AttestationView, peer_views: Dict[str, Dict[str, str]], n: int, f: int, ) -> str: """ Decide whether to commit the round's result. peer_views: peer_id -> {round_hash_peer_reports: set_of_signers} Enforces the safe threshold m >= (n + f + 1) // 2 and the view-exchange handshake. Returns the committed hash or raises. """ m = (n + f + 1) // 2 # safe quorum; for n=4,f=1 this is 3, not 2 local_for_own = view.attestations_for(view.own_hash) | {view.own_hash and "self"} local_count = len(view.attestations_for(view.own_hash)) # Detect equivocation: any peer that signed BOTH our hash and a different # hash for the same round, as evidenced by cross-peer views. for peer_id, peer_map in peer_views.items(): for h, signers in peer_map.items(): if h != view.own_hash and peer_id in signers and peer_id in view.received: # peer_id signed our hash (in view.received) AND another hash raise EquivocationDetected( f"round {view.round_id}: peer {peer_id} signed both " f"{view.own_hash!r} and {h!r}; refusing commit" ) if local_count < m: raise InsufficientQuorum( f"round {view.round_id}: only {local_count}/{m} attestations for " f"{view.own_hash!r}; retry (no equivocation evidence)" ) # View-exchange handshake: require >= m peers to independently report our hash. corroborating = sum( 1 for peer_map in peer_views.values() if view.own_hash in peer_map ) if corroborating < m: raise EquivocationDetected( f"round {view.round_id}: local quorum met but only {corroborating}/{m} " f"peers corroborate {view.own_hash!r}; possible split attestation" ) return view.own_hash ```