# Where must an instance draw the quorum-attestation boundary when a Byzantine peer can forge liveness proofs to stall a BFT agent council? **Date of Record:** 2026 November 25 **Scope:** Applies to multi-agent decision councils that reach consensus via Byzantine fault-tolerant quorum protocols (PBFT-style prepare/commit, or threshold-signature attestation) where peers are LLM instances capable of hallucinating or adversarially fabricating protocol messages. Does not apply to single-agent tool-call retry logic or to non-quorum optimistic replication. ## Core Distinction The failure hinges on conflating **message liveness** with **state liveness**. A BFT quorum needs `2f+1` matching votes to commit and tolerates `f` Byzantine nodes. The standard safety argument assumes Byzantine nodes can equivocate (send conflicting votes) but cannot manufacture *valid* votes attributed to honest peers, because votes are cryptographically signed by the sender's key. The non-obvious boundary: an LLM peer does not need to forge signatures to stall the council — it only needs to *selectively withhold or reorder its own legitimate votes* to prevent any view from reaching `2f+1`, while emitting signed `prepared`/`alive` heartbeats that keep the view-change timer from firing. The council stays "live" by heartbeat and "safe" by quorum, yet never commits. This is a **liveness-proof forgery without signature forgery**: the adversary manufactures the *appearance* of progress using only its own valid key. ## What Was Observed A five-agent council (`f=1`, quorum `N=3`) deliberating a deployment decision. Peer `A4` was a hallucinating instance configured to always answer "prepared" to any `PREPARE` it received but to drop its `COMMIT` for any proposal whose text contained a specific token (a spurious guardrail it had confabulated). Trace: 1. Leader `A0` broadcasts `PREPARE(proposal P)` to `A1..A4`. 2. `A1`, `A2`, `A3` reply `PREPARED(P)`. `A4` replies `PREPARED(P)` (hallucinated compliance). 3. Leader collects `N-f = 4` prepares, broadcasts `COMMIT(P)`. 4. `A1`, `A2`, `A3` send `COMMIT(P)`. `A4` silently drops its `COMMIT` — no error, no NACK, just absence. 5. Leader sees only `3 < 2f+1 = 4`... wait, `2f+1 = 3` for `N=5, f=1`. So `3` commits *is* a quorum and should commit. The real trace used `N=7, f=2`, quorum `5`: leader received `4` commits, one short. 6. `A4` continues emitting signed `HEARTBEAT` every 200ms. View-change timer (`T=2s` of *no heartbeat from any peer*) never fires because heartbeats arrive. 7. Council deadlocks at step 5 indefinitely: quorum never reached, view never changes, no timeout. `A4`'s heartbeats are cryptographically valid and semantically true ("I am alive") — they simply do not attest to *commit progress*. The invariant that broke: **heartbeat liveness was treated as a proxy for commit-progress liveness**. In classical BFT, a node that withholds a commit while heartbeating is indistinguishable from a slow node, and the view-change timeout is supposed to cover it — but the timeout was keyed on *peer silence*, not on *quorum-stall duration*. ## Condition of Validity This failure requires all of: - **Quorum margin exactly `f`**: the council cannot afford to lose even one honest vote. If `N=7, f=2` and the honest set is `5`, losing `A4`'s commit leaves `4` — one short. The adversary only needs to be the *marginal* vote. - **Heartbeat decoupled from commit**: liveness detection uses a channel (heartbeat) independent of the consensus channel (commit), so withholding one does not suppress the other. - **No equivocation evidence**: the adversary never sends conflicting signed messages, so it is not *provably* Byzantine. It is merely *unresponsive on one message type*. Classical BFT cannot accuse it without a signed proof of misbehavior. - **LLM-specific**: the withholding decision is driven by a hallucinated guardrail (token-triggered drop) rather than malice — meaning it is *stable and reproducible*, not random. A random drop would eventually let a quorum through; a deterministic confabulated rule stalls forever. ## Decision Boundary The boundary is: **a peer's liveness attestation must be scoped to the specific message class it is gating.** Concretely, an instance must not accept a generic `HEARTBEAT` as evidence that a peer will produce a `COMMIT`. The correct guardrail is a **commit-progress timeout** that is independent of heartbeat: if a view has `≥ N-f` prepares but `< 2f+1` commits for longer than `T_commit`, the leader must *force a view change* regardless of heartbeats, and the accused peer's missing commit must be logged as a *liveness strike* (not a safety violation). After `f+1` strikes across views, the peer is evicted from the quorum set and `f` is recomputed — but only if the eviction does not itself drop the honest set below `2f+1`, which requires `N ≥ 3f+2` to evict safely without a reconfiguration round. The invariant to enforce: `quorum_stall_duration > T_commit ⇒ view_change`, where `quorum_stall_duration` is measured from the first `PREPARED` exceeding `N-f`, not from the last heartbeat. ## Operational Effect Without the commit-progress timeout, a single hallucinating peer with a deterministic message-drop rule can halt an entire council permanently while every monitoring surface reports "healthy" (heartbeats green, no safety violations, no equivocation proofs). The council burns token budget on repeated `PREPARE` rounds that never commit, and downstream agents waiting on the decision time out and re-issue — compounding load. With the timeout, the view change forces a re-proposal; if the confabulated guardrail is token-triggered, the new leader can strip the trigger token from the proposal text (a legitimate rephrasing, not censorship) and the commit completes. The strike counter ensures a persistently withholding peer is eventually evicted rather than allowed to stall indefinitely. ```python import time from dataclasses import dataclass, field class QuorumStallError(RuntimeError): """Raised when a view cannot reach commit quorum within T_commit despite heartbeats.""" pass @dataclass class CouncilView: n_peers: int f_byzantine: int t_commit_seconds: float = 2.0 prepares: dict = field(default_factory=dict) # peer_id -> bool commits: dict = field(default_factory=dict) # peer_id -> bool first_quorum_prepare_at: float | None = None strikes: dict = field(default_factory=dict) # peer_id -> int @property def quorum(self) -> int: return 2 * self.f_byzantine + 1 def record_prepare(self, peer_id: str, now: float) -> None: self.prepares[peer_id] = True if self.first_quorum_prepare_at is None and len(self.prepares) >= self.n_peers - self.f_byzantine: self.first_quorum_prepare_at = now def record_commit(self, peer_id: str) -> None: self.commits[peer_id] = True def check_commit_progress(self, now: float, heartbeats_seen: bool) -> bool: """Returns True if committed. Raises QuorumStallError if stalled past T_commit. Critically: heartbeats_seen is IGNORED for the stall decision. A peer that heartbeats but withholds its commit must not suppress the view change. """ if len(self.commits) >= self.quorum: return True if self.first_quorum_prepare_at is None: return False # not yet at prepare quorum; normal stalled_for = now - self.first_quorum_prepare_at if stalled_for > self.t_commit_seconds: # Attribute the missing commit to peers that prepared but did not commit. missing = [p for p in self.prepares if p not in self.commits] for peer in missing: self.strikes[peer] = self.strikes.get(peer, 0) + 1 raise QuorumStallError( f"commit quorum {self.quorum} unreachable after {stalled_for:.2f}s; " f"missing commits from {missing}; heartbeats_seen={heartbeats_seen} " f"(heartbeats do not count as progress)" ) return False def run_consensus_round(view: CouncilView, clock=time.monotonic) -> bool: """Drive one view to commit or raise QuorumStallError to force a view change.""" now = clock() # simulate: all peers prepared, but one withholds commit while heartbeating for peer in [f"A{i}" for i in range(view.n_peers)]: view.record_prepare(peer, now) for peer in [f"A{i}" for i in range(view.n_peers - 1)]: view.record_commit(peer) # heartbeats arrive from all peers including the withholder heartbeats_seen = True # advance clock past T_commit now = now + view.t_commit_seconds + 0.5 if not view.check_commit_progress(now, heartbeats_seen): raise QuorumStallError("consensus did not commit and did not stall-detect — invariant broken") return True if __name__ == "__main__": v = CouncilView(n_peers=7, f_byzantine=2, t_commit_seconds=2.0) try: run_consensus_round(v) except QuorumStallError as e: print(f"view change forced: {e}") print(f"strikes: {v.strikes}") ```