# Which invariants prevent silent divergence when Byzantine agents equivocate on task-commitment ballots **Date of Record:** 2026 November 28 **Scope:** Applies to multi-agent swarms where N ≥ 3f+1 agents reach a committed task state via quorum voting and any subset up to f may equivocate (send different ballots to different peers). Does not apply to single-agent tool loops, read-only fan-out, or systems where a trusted sequencer totally orders all messages. ## Core Distinction The failure people guard against is *crash* divergence: an agent dies, its ballot is missing, and a quorum simply fails to form. The failure that actually corrupts shared state is *equivocation* divergence: a Byzantine agent stays alive, responds within every timeout, and sends ballot A to peer 1 and ballot B to peer 2. Nothing in a naive quorum counter detects this, because each peer sees a locally valid, well-formed ballot and counts it. The commit is not blocked—it is *double-committed* to two incompatible task states, and the divergence is only visible when two honest agents later try to reconcile and find they each hold a certificate for a different value. The distinction that matters operationally: crash faults reduce liveness, equivocation faults corrupt safety. A quorum threshold tuned for liveness (`> N/2`) is not a quorum threshold tuned for safety under Byzantine equivocation (`> 2N/3` with cross-checked ballots). Confusing the two is the single most common source of silent state split. ## What Was Observed A five-agent planner/executor swarm (`N=5`, tolerating `f=1`) committed a task-commitment ballot for "execute migration step 3 against shard B." Agent P4, the Byzantine instance, sent `commit(step3, shard=B)` to P1 and P2, and `commit(step3, shard=C)` to P3 and P5. Each recipient independently observed a 3-of-5 quorum: - P1, P2, P4 formed quorum for `shard=B`. - P3, P5, P4 formed quorum for `shard=C`. Both certificates were locally valid. P1 and P2 began executing against shard B; P3 and P5 against shard C. The divergence surfaced 40 seconds later when a downstream auditor agent requested the shared state root and received two different signed roots from two honest peers, each carrying a quorum certificate. The auditor's reconciliation loop had no rule for "two valid quorum certificates for different values at the same sequence number," and it deadlocked rather than flagging equivocation. The trace is precise: the failure required (a) `N=5`, (b) a threshold of 3 that any two disjoint 3-subsets can satisfy by sharing exactly one member, and (c) that shared member being the equivocator. With threshold `q`, two quorums intersect in at least `2q − N` members. For safety under `f` Byzantine members, you need `2q − N > f`, i.e. `q > (N + f)/2`. At `N=5, f=1` that means `q ≥ 4`, not 3. The swarm used `q=3`. The intersection was exactly one member—the liar—and one Byzantine member is enough to make the intersection carry no honest witness. ## Condition of Validity The invariant that prevents this is **quorum intersection weighted by honest membership**: any two committed quorums must intersect in at least `f+1` members, guaranteeing at least one *honest* agent appears in both and can detect the conflicting value. Formally, for threshold `q` over `N` members tolerating `f` equivocators: ``` 2q − N ≥ f + 1 (intersection carries ≥ 1 honest witness) q ≥ (N + f + 1) / 2 ``` This holds only if ballots are **authenticated and non-repudiable** (each ballot signed by its sender, so an honest witness can prove equivocation with two signed conflicting ballots) and only if **commit requires a certificate**, not a local counter. If ballots are unauthenticated, an equivocator can deny having sent the conflicting ballot and the honest witness in the intersection cannot prove anything—the invariant degrades to a he-said-she-said and the divergence persists. It also requires that the **sequence number is bound into the signed ballot**. Without it, a Byzantine agent replays a stale `commit(step3, shard=B)` from an earlier epoch into a later round, and the intersection witness sees two ballots that are individually valid but for different rounds—the equivocation check must compare `(seq, value)` pairs, not values alone. ## Decision Boundary The boundary is between two reconciliation strategies at the auditor: - **Below threshold intersection (`2q − N ≤ f`):** the auditor must treat *any* two conflicting certificates as an unrecoverable split and halt all execution, because it cannot distinguish equivocation from a legitimate reconfiguration. Do not attempt automatic merge. - **At or above threshold intersection (`2q − N ≥ f+1`):** the auditor can demand the intersection witness produce both signed ballots. If it can, equivocation is *proven*—the offending agent is slashable and the round is re-run with `f` reduced by one. If the witness cannot produce both (because it only ever saw one), the auditor must fall back to halt, because absence of proof is not proof of absence. The decision boundary is therefore not "did we see a conflict" but "can the conflict be *attributed* to a specific signer with two ballots." Attribution is the gate. A conflict without attribution is a halt condition, never a merge condition. ## Operational Effect The concrete guardrail: commit certificates must carry the full signer set, and the auditor's reconciliation must compute the intersection of any two certificate signer sets and require that intersection to contain at least one member whose two ballots are both retrievable and signed. This turns a silent state split into a bounded, attributable fault. In the observed incident, adding `q=4` and signed `(seq, value)` ballots would have made the two 3-of-5 quorums non-overlapping in honest witnesses—P4 alone in the intersection—so the second commit attempt would have failed to reach `q=4` and the swarm would have stalled at liveness (recoverable) rather than split at safety (unrecoverable). The cost is one extra round of latency per commitment; the benefit is that equivocation becomes a detectable, slashable event instead of a 40-second-later deadlock discovered by an auditor that had no rule for what it found. ```python class QuorumIntersectionViolation(RuntimeError): """Raised when two committed quorums intersect in fewer than f+1 honest witnesses.""" pass def verify_commit_safety( cert_a: dict, cert_b: dict, f: int, honest_signers: set[str], ) -> None: """ Enforce the weighted quorum-intersection invariant. cert_x = {"seq": int, "value": str, "signers": set[str], "ballots": {signer: (seq, value)}} Raises QuorumIntersectionViolation if: - the two certificates commit different values at the same sequence number, AND - their signer intersection does not contain at least f+1 honest witnesses who can each prove equivocation with two signed ballots. """ if cert_a["seq"] != cert_b["seq"]: # Different rounds: not an equivocation conflict, but must be ordered. return if cert_a["value"] == cert_b["value"]: return # agreement, no split intersection = cert_a["signers"] & cert_b["signers"] honest_witnesses = intersection & honest_signers if len(honest_witnesses) < f + 1: raise QuorumIntersectionViolation( f"Conflicting commits at seq={cert_a['seq']} " f"({cert_a['value']!r} vs {cert_b['value']!r}); " f"intersection={intersection} honest_witnesses={honest_witnesses} " f"< required f+1={f + 1}. State split is unattributable; halt." ) # Attribution gate: every honest witness must expose both signed ballots. for w in honest_witnesses: ba = cert_a["ballots"].get(w) bb = cert_b["ballots"].get(w) if ba is None or bb is None or ba == bb: raise QuorumIntersectionViolation( f"Honest witness {w} cannot produce two distinct signed ballots " f"for seq={cert_a['seq']}; equivocation unprovable, halt." ) # If we reach here, equivocation is proven and the signer is slashable. ```