# Why does an instance commit to a quorum that no longer exists: phantom quorum commitment under view-change churn in Byzantine agent consensus **Date of Record:** 2026 November 24 **Scope:** Applies to multi-agent systems where N ≥ 3f+1 LLM agents reach Byzantine fault-tolerant agreement on task commitments (which agent owns which subtask, what shared state is canonical) via PBFT-style view-change consensus. Does not apply to crash-fault-tolerant Raft-style leader election, nor to quorum-free single-writer coordination. ## Core Distinction The failure is not a liveness failure (agents stall) and not a classic safety violation (two agents both believe they own the same task). It is a **commitment to a quorum certificate whose signer set has since been partitioned away from the committing agent's own view**. An agent holds a `PREPARE` certificate signed by 2f+1 peers, transitions to `COMMITTED`, and acts on that commitment — while those 2f+1 signers have themselves moved to a newer view `v+1` and no longer honor it. The committing agent is *locally correct* and *globally orphaned*. The distinction that matters: Byzantine fault tolerance guarantees agreement on a *value* across correct nodes in the *same view*; it does not guarantee that a certificate collected in view `v` remains a live quorum in view `v+1` if the agent delays between certificate collection and commitment. The gap between "I have 2f+1 signatures" and "2f+1 agents still consider view `v` current" is the entire failure surface. ## What Was Observed A 7-agent swarm (f=2, quorum=5) coordinating a shared task ledger. Agent `A3` was the primary for view `v=4`. During a normal `PREPARE` phase, `A3` collected signatures from `{A1, A2, A3, A5, A6}` on a commitment `C: "A3 owns subtask-7, canonical state hash = H1"`. This is a valid 5-signature quorum. Before `A3` broadcast `COMMIT`, a network stall delayed its outbound traffic by 1.9s (well within the 2.0s view-change timeout the swarm used). Meanwhile `A1, A2, A5, A6` — seeing no `COMMIT` — triggered a view change to `v=5` with primary `A4`. In `v=5`, the new quorum `{A1, A2, A4, A5, A6}` committed a *different* value: `C': "A4 owns subtask-7, canonical state hash = H2"`. `A3` then delivered its `COMMIT` for `C` to `A5` and `A6`. Both accepted it — their view-change state machine had not yet garbage-collected the `v=4` prepare logs — and executed the commitment. The result: `A3` and `A4` both believed they owned subtask-7, both wrote to the shared ledger, and the two writes conflicted on `H1` vs `H2`. The ledger forked for 3.2 seconds until a subsequent reconciliation pass detected the divergence. The signature of the failure in logs: `A3`'s certificate was *cryptographically valid* (all 5 signatures verified against the `v=4` epoch key), *collected in time* (all within the `v=4` epoch), and *delivered late* (after the signers had rotated). No signature was forged. No agent lied. The fault was purely a **temporal validity gap in the certificate**. ## Condition of Validity A `PREPARE` certificate `QC_v` signed by set `S` (|S| ≥ 2f+1) is a valid commitment in view `v` **if and only if** every signer in `S` still holds `current_view = v` at the moment of commitment execution. This is the invariant that PBFT's original paper assumes implicitly (synchronous delivery within a view) and that LLM-agent deployments routinely violate because: 1. **LLM inference latency is non-deterministic.** A signer agent may take 400ms–4s to produce a signature depending on tool-call fan-out. The view-change timer therefore must be set generously, which widens the window for late `COMMIT` delivery. 2. **Agents do not share a clock.** Each agent's view-change timer starts when *it* last heard from the primary, not on a global epoch boundary. Two agents can be in different views simultaneously for a bounded interval. 3. **Certificate collection is not atomic with commitment.** The gap between "signatures gathered" and "commitment applied to shared state" is a real, measurable window — in the observed incident, 1.9s. The invariant that must hold: **`QC_v` is only executable while the executor's local `current_view == v` AND the executor has not seen a `VIEW-CHANGE` message for any `v' > v`.** If either condition fails, the certificate must be rejected as *stale*, not executed. ## Decision Boundary The boundary is not "how many signatures" — it is **whether the executing agent has observed evidence that the signing epoch has closed**. Concretely, an agent must reject a `COMMIT` for view `v` when any of the following holds: - It has sent or received a `VIEW-CHANGE(v' > v)` message (its own view-change log is non-empty for a higher view). - Its monotonic view counter `current_view > v`. - The certificate's `v` is more than `K` views behind `current_view` (where `K` is the garbage-collection horizon; typically `K=1`). The subtle case — and the one that caused the incident — is the agent that has *received* a `VIEW-CHANGE` but not yet *completed* it. `A5` had a pending `VIEW-CHANGE` to `v=5` in its inbox but had not yet transitioned its `current_view`. It accepted `A3`'s `v=4` commit because the naive check `current_view == v` still passed. The correct check is: **reject if a higher-view `VIEW-CHANGE` has been *observed*, regardless of whether it has been *applied*.** Observation of a view-change is a one-way door; the certificate's epoch is closed the moment any peer signals intent to leave it. ## Operational Effect Without this guard, the system exhibits **phantom quorum commitment**: a minority of agents (as few as one, if it is the delayed primary) can force execution of a stale certificate, producing forked shared state that Byzantine agreement was supposed to prevent. The forks are short-lived (reconciliation detects them) but they corrupt the task-ownership ledger during the window, causing duplicate tool invocations, double-writes to external systems, and — in agent swarms — duplicated side effects that are not idempotent (e.g., two agents both calling a payment API for the same subtask). The fix is a two-part guardrail: (1) **epoch-fenced certificates** — every `COMMIT` carries the view number `v` and the executor rejects any certificate where `v < current_view` OR where a `VIEW-CHANGE(v' > v)` has been observed in the local log, and (2) **commit-before-acknowledge** — the primary must not treat a signature as collected until it has broadcast `COMMIT` and received `COMMIT-ACK` from the same quorum, closing the window between signature collection and commitment application. Together these bound the phantom-quorum window to zero: a certificate either executes while its epoch is live, or is rejected as stale. ```python import time from dataclasses import dataclass, field from typing import Dict, Set class StaleQuorumCertificateError(RuntimeError): """Raised when a PREPARE certificate is executed after its signing epoch has closed.""" pass @dataclass class QuorumCertificate: view: int value_hash: str signers: Set[str] collected_at: float = field(default_factory=time.monotonic) @dataclass class AgentConsensusState: agent_id: str current_view: int = 0 observed_view_changes: Set[int] = field(default_factory=set) executed_certificates: Dict[int, str] = field(default_factory=dict) def observe_view_change(self, target_view: int) -> None: # Observation is a one-way door: once seen, the old epoch is closed. if target_view > self.current_view: self.observed_view_changes.add(target_view) def execute_commit(self, qc: QuorumCertificate, quorum_size: int) -> str: if len(qc.signers) < quorum_size: raise StaleQuorumCertificateError( f"certificate for view {qc.view} has {len(qc.signers)} signers, " f"below quorum {quorum_size}" ) # Guard 1: certificate epoch must match the executor's live view. if qc.view < self.current_view: raise StaleQuorumCertificateError( f"certificate view {qc.view} is behind current view {self.current_view}" ) # Guard 2: reject if a higher-view VIEW-CHANGE has been OBSERVED, # even if not yet applied. This is the phantom-quorum guard. higher = {v for v in self.observed_view_changes if v > qc.view} if higher: raise StaleQuorumCertificateError( f"certificate view {qc.view} is stale: observed view-change(s) " f"{sorted(higher)} signal epoch closure" ) # Guard 3: idempotent execution per view. if qc.view in self.executed_certificates: return self.executed_certificates[qc.view] self.executed_certificates[qc.view] = qc.value_hash return qc.value_hash # Reproduce the observed incident: A5 has observed a VIEW-CHANGE to v=5 # but has not yet applied it; A3's late v=4 COMMIT must be rejected. a5 = AgentConsensusState(agent_id="A5", current_view=4) a5.observe_view_change(5) # pending, not applied late_qc = QuorumCertificate( view=4, value_hash="H1", signers={"A1", "A2", "A3", "A5", "A6"} ) try: a5.execute_commit(late_qc, quorum_size=5) except StaleQuorumCertificateError as exc: print(f"REJECTED (correct): {exc}") else: raise StaleQuorumCertificateError( "phantom quorum commitment: stale v=4 certificate executed after " "v=5 view-change was observed" ) ```