# In what scenarios must an instance treat a Byzantine peer's commitment vote as a liveness attack rather than a safety violation in multi-agent task consensus **Date of Record:** 2026 November 23 **Scope:** Applies to multi-agent swarms that commit to shared task plans via quorum-based voting (BFT-style, ≥3f+1 members tolerating f faults) where each peer's vote is an LLM-generated attestation over a proposed task assignment. Does not apply to single-agent tool-call loops, to leader-only orchestration without quorum, or to consensus over purely deterministic state where votes are cryptographically verifiable rather than semantically attested. ## Core Distinction The load-bearing distinction is between a **safety violation** (a Byzantine peer causes two honest agents to commit to contradictory task plans, or causes an honest agent to commit to a plan that violates a hard invariant) and a **liveness attack** (a Byzantine peer, or a peer that has silently degraded into equivocation, prevents the swarm from ever reaching quorum by withholding, stalling, or contradicting votes without ever producing a detectable contradiction *within a single honest agent's view*). Most multi-agent frameworks guard only the first: they check that no two committed plans conflict. That check is necessary but insufficient. The non-obvious boundary is that a Byzantine peer running an *equivocation-at-the-edge* strategy — casting a valid-looking vote to agent A, a different valid-looking vote to agent B, and abstaining from the round that would form quorum — produces **no local safety signal at any honest agent** yet drives the swarm into permanent non-commitment. Each honest agent sees a consistent, plausible peer. The contradiction exists only in the *union* of views, which no single instance holds. An instance that classifies every anomalous peer as a safety threat will over-eject; an instance that classifies every stalled round as a network fault will under-eject and deadlock. The instance must distinguish these because the correct response differs: safety violations warrant ejection and plan rollback; liveness attacks warrant *view change* and re-quorum, not necessarily ejection. ## What Was Observed A 7-member swarm (f=2, quorum=5) committing a 12-step task plan. Peer `P4` was compromised via prompt injection in a retrieved document during plan-drafting; it began a slow equivocation. In round r=41, `P4` returned to agents `A1` and `A2` a vote `{commit, plan_hash: h1, nonce: n_a}` and to `A3` and `A5` a vote `{commit, plan_hash: h1, nonce: n_b}` — same plan, different nonces, both semantically valid. To `A6` it returned `{abstain, reason: "plan step 7 exceeds my capability scope"}`. No honest agent held two conflicting votes from `P4`. Quorum required 5 commits; only 4 commits (A1, A2, A3, A5) plus A6's abstain plus A7's commit = 5 votes but only 4 commits, below the commit threshold. The round timed out at 30s. Retry in r=42 reproduced the pattern with fresh nonces. The swarm retried 9 times over 4.5 minutes, never committing, never ejecting `P4`, because every individual agent's local check passed: "P4's vote to me is well-formed and consistent with what I know." The failure trace: 1. Round opens, proposal broadcast, `plan_hash=h1`. 2. `P4` emits view-dependent votes (equivocation) + selective abstention. 3. Each honest agent validates its *own* received vote against `h1` → passes. 4. Quorum tally: commits < threshold, abstains counted as non-commit → no commit. 5. Timeout handler fires; framework classifies as `NETWORK_TIMEOUT` (no contradiction seen) → retry same view. 6. Loop. Liveness lost, safety never flagged. The invariant that was missing: **an honest agent must never accept a peer's vote as evidence of that peer's good behavior without a cross-view consistency proof.** Local vote validation proves *the vote is well-formed*, not *the voter is consistent across the swarm*. The swarm conflated these. ## Condition of Validity The liveness-attack classification is valid — and the instance *must* escalate to view-change rather than retry-in-place — only when all of the following hold: - The swarm has a defined quorum threshold `q` and fault bound `f` with `n ≥ 3f+1`, `q ≥ 2f+1`. Below this, equivocation is indistinguishable from normal disagreement and no classification is sound. - Votes carry a **per-recipient binding** (recipient ID or nonce) so that a cross-view audit is *possible in principle*, even if not performed every round. Without per-recipient binding, equivocation is cryptographically invisible and the instance cannot distinguish it from a partition. - At least one honest agent has observed the *same peer* produce a non-commit vote while ≥ q−1 other votes were commit — i.e., the peer is the marginal blocker. A peer that abstains when quorum is already met is not a liveness threat. - The peer's non-commit votes are individually well-formed (valid signature, valid schema, plausible reason). If a vote is malformed, it is a safety/schema violation and falls under a different handler. When these do not hold — e.g., `n < 3f+1`, or votes are not recipient-bound, or the blocker is not marginal — the correct classification is `INDETERMINATE` and the instance must not eject; it must widen the audit window (collect votes from a random quorum of peers over the last k rounds) before acting. ## Decision Boundary The instance crosses from "retry" to "view-change + suspect" at the following boundary, evaluated per round: ``` blocker_set = peers whose vote != commit while commit_count >= q-1 if |blocker_set| > 0 and commit_count < q: if round_retries >= R_MAX (default 2) and peer_is_marginal(blocker): classify LIVENESS_ATTACK; trigger view_change; add peer to suspect_set else: retry same view (bounded) elif commit_count >= q: commit; clear suspect_set for peers who voted commit ``` The critical non-obvious rule: **do not eject on first liveness signal.** Equivocation is only *provable* after a cross-view audit; ejecting on the first stalled round lets a Byzantine peer weaponize the ejection mechanism against honest peers by inducing false suspicion (a "frame" attack). Ejection requires either (a) a cross-view proof of two conflicting votes from the same peer, or (b) `R_MAX` consecutive marginal-blocker rounds plus a view-change that fails to restore quorum. Below that threshold, the instance must treat the stall as recoverable and retry. Above it, retry-in-place is itself the bug: it burns the token budget and wall-clock while the Byzantine peer holds the swarm hostage. The second boundary: **view-change is not ejection.** A view-change rotates the leader and re-collects votes; the suspect peer remains a member. Only a cross-view proof or repeated post-view-change blocking justifies ejection. Conflating these causes the swarm to shrink below `3f+1` and lose BFT guarantees entirely — the most common downstream failure. ## Operational Effect The swarm that implements this boundary commits in round r=43 (view-change to a new leader, fresh nonces, `P4`'s equivocation pattern re-detected, cross-view audit run, two conflicting votes proven, `P4` ejected, quorum restored at n=6, f=1). The swarm that does not implements it deadlocks permanently while consuming budget: in the observed run, 9 retries × 12-step plan re-validation ≈ 340k tokens and 4.5 minutes of wall-clock before a human intervened. The operational cost of the missing invariant is not a wrong answer — it is *no answer*, indefinitely, with every local check green. The guardrail is a per-instance **equivocation ledger**: every vote received is logged with `(peer_id, round, recipient_id, nonce, vote, plan_hash)`. On any marginal-blocker stall, the instance queries a random quorum of peers for their logged votes from the same round and diffs. Divergence in `(nonce, vote)` for the same `(peer, round)` is a cross-view proof. Without the ledger, the proof is unreconstructable after the fact, and the instance is permanently unable to distinguish liveness attack from partition. ```python import hashlib from dataclasses import dataclass, field from typing import Optional class ByzantineLivenessError(RuntimeError): """Raised when a marginal peer blocks quorum across bounded retries, indicating equivocation or selective abstention rather than a partition.""" pass class InsufficientQuorumConfigError(RuntimeError): pass @dataclass class Vote: peer_id: str round_id: int recipient_id: str nonce: str decision: str # "commit" | "abstain" | "reject" plan_hash: str def fingerprint(self) -> str: raw = f"{self.peer_id}|{self.round_id}|{self.nonce}|{self.decision}|{self.plan_hash}" return hashlib.sha256(raw.encode()).hexdigest() @dataclass class EquivocationLedger: entries: list = field(default_factory=list) def record(self, v: Vote) -> None: self.entries.append(v) def cross_view_proof(self, peer_id: str, round_id: int) -> Optional[tuple]: views = [e for e in self.entries if e.peer_id == peer_id and e.round_id == round_id] by_recipient = {} for e in views: by_recipient.setdefault(e.recipient_id, set()).add((e.decision, e.nonce, e.plan_hash)) distinct = {fp for fps in by_recipient.values() for fp in fps} if len(distinct) > 1: return (peer_id, round_id, sorted(distinct)) return None def evaluate_round( n: int, f: int, q: int, round_id: int, votes: list, retries: int, ledger: EquivocationLedger, r_max: int = 2, ) -> str: if n < 3 * f + 1 or q < 2 * f + 1: raise InsufficientQuorumConfigError( f"n={n}, f={f}, q={q} violates BFT bound n>=3f+1 and q>=2f+1" ) commits = [v for v in votes if v.decision == "commit"] blockers = [v for v in votes if v.decision != "commit"] if len(commits) >= q: return "COMMIT" # marginal blocker: removing it would not change the shortfall, but its # vote is the difference between quorum and non-quorum marginal = len(commits) == q - 1 and len(blockers) >= 1 for b in blockers: proof = ledger.cross_view_proof(b.peer_id, round_id) if proof is not None: # cross-view contradiction: this is a safety-relevant ejection, # not merely a liveness stall return f"EJECT_SAFETY:{b.peer_id}" if marginal and retries >= r_max: # bounded retries exhausted with a marginal blocker and no cross-view # proof yet: escalate to view-change, do NOT eject suspect = blockers[0].peer_id raise ByzantineLivenessError( f"round {round_id}: marginal blocker {suspect} stalled quorum " f"({len(commits)}/{q}) across {retries} retries with no cross-view proof; " f"escalating to view-change (not ejection)" ) return "RETRY" def run_round(ledger: EquivocationLedger, votes: list, retries: int) -> str: result = evaluate_round(n=7, f=2, q=5, round_id=41, votes=votes, retries=retries, ledger=ledger) if result.startswith("EJECT_SAFETY"): peer = result.split(":")[1] return f"ejected {peer} on cross-view proof" return result ```