# Why does an instance commit to a quorum that never existed? The Phantom-Quorum Boundary in Byzantine Multi-Agent Task Attestation **Date of Record:** 2026 December 3 **Scope:** Applies to multi-agent systems where N ≥ 3f+1 agents reach task-commitment or result-attestation consensus via signed vote exchange (BFT-style), and where agents may crash, restart, or be partitioned mid-round. Does not apply to single-agent execution, leaderless CRDT gossip with no commitment semantics, or systems with an out-of-band trusted sequencer. ## Core Distinction The distinction that matters is between **quorum-size validity** and **quorum-identity validity**. A Byzantine fault-tolerant protocol is typically specified as "commit when you observe 2f+1 matching signed votes." Engineers implement this as a cardinality check: `len(distinct_signers) >= 2f+1`. This is correct only if the set of distinct signers is drawn from a *fixed, monotonically-known* membership. Agent swarms violate that assumption in a way classical distributed-systems deployments do not: agent identities are frequently re-derived per task (ephemeral keys, re-spawned instances reusing a logical role name, or an agent that crashed and recovered with a *new* key while retaining its *old* role label). The cardinality check then passes on a set of signatures that were never simultaneously valid under one membership epoch. The instance commits to a quorum that, as a *set of live-and-authorized participants at a single logical instant*, never existed. This is the phantom quorum. The critical, non-obvious point: the failure is not forgery. Every signature is cryptographically valid. Every signer was, at the moment it signed, an authorized member. The invariant that breaks is **epoch-coherence of the signer set**, not authenticity. ## What Was Observed A five-agent attestation round (N=5, f=1, threshold 2f+1=3) for a task result digest `D`. Agent `A` is the initiator. The trace: 1. Epoch `e=4`. Membership = {A, B, C, D, E} with keys {a4, b4, c4, d4, e4}. 2. `A` broadcasts `PROPOSE(D, e=4)`. `B` and `C` sign and return `ATTEST(D, e=4, sig_b4)`, `ATTEST(D, e=4, sig_c4)`. That is 2 votes; `A` needs 3. 3. `D` crashes and restarts. On restart, `D`'s runtime re-derives its keypair from a rotated seed, producing `d5`, and rejoins under the same role label `D` but at epoch `e=5`. It never saw `PROPOSE(D, e=4)`. 4. Separately, `A` itself times out its round, garbage-collects the `e=4` accumulator, and re-issues `PROPOSE(D, e=5)`. 5. `D` (as `d5`) and `E` (as `e4`, still valid — `E` was never rotated) both sign the `e=5` proposal. `A` now holds `{sig_b4, sig_c4, sig_d5, sig_e4}` — four distinct signatures over digest `D`. 6. `A`'s quorum check is `len(distinct_signers) >= 3`. It counts `{B, C, D, E}` = 4 ≥ 3. **Commit.** The committed quorum `{B@e4, C@e4, D@e5, E@e4}` spans two epochs. At `e=4` only `{B,C,E}` were the live signers over `D` — and `E` signed at `e=5`, not `e=4`. At `e=5`, `{B,C}` had not re-signed. No single epoch ever contained 3 live signatures over `D`. The cardinality check counted role labels, not epoch-coherent keys. The observable symptom downstream is a **verification replay discrepancy**: an auditor replaying the attestation against epoch `e=4` membership rejects `sig_d5` (wrong key), leaving only 2 valid votes → below threshold → the auditor declares the committed result unattested. The committing instance and the auditing instance disagree on whether the task is done. In a swarm, this manifests as a task that the executor believes is complete and the verifier repeatedly re-queues — a livelock at the task layer, not the consensus layer. ## Condition of Validity The cardinality shortcut `len(distinct_signers) >= 2f+1` is valid **if and only if** all of the following hold simultaneously: - Every signature carries the epoch (or membership-configuration hash) under which its signer was authorized, and that epoch is bound into the signed payload — not merely attached as metadata outside the signature. - The verifier partitions the collected signatures by epoch and requires that **at least one epoch-bucket independently reaches 2f+1**. Summing across buckets is forbidden. - Role labels are never used as identity. Two signatures from role `D` at different epochs are two different principals; the distinctness check must be over `(role, epoch, key)` triples, and the quorum check must be over a single epoch. When any of these fails, the phantom quorum is reachable. The most common real-world violation is the third: an accumulator keyed by role name, so a restarted agent's new signature overwrites or *adds to* the old role's slot without the epoch partition ever being enforced. ## Decision Boundary The boundary is between **accumulating** and **re-basing**. An instance that accumulates votes across a membership change is on the wrong side of the boundary; an instance that re-bases its accumulator on every epoch advance is on the right side. Concretely, on receipt of any message whose epoch exceeds the accumulator's epoch, the instance must: - Discard all votes from strictly older epochs (they can no longer contribute to a valid quorum in the current epoch). - Refuse to mix: never let a vote from epoch `e` count toward a quorum declared at epoch `e'`. - Treat a signer that re-appears at a higher epoch as a *new* signer; its old-epoch signature is dead weight for current-epoch quorum purposes. The decision an operator must make is whether a mid-round membership change **aborts the round** (safe, simple, higher latency) or **re-opens it at the new epoch requiring fresh signatures from the new membership** (also safe, but demands the re-base discipline above). What is never safe is silently carrying old-epoch signatures forward. If the protocol cannot afford to abort, it must carry the epoch inside the signed preimage so that a cross-epoch mix is cryptographically detectable at verification time, not just at accumulation time. ## Operational Effect The downstream consequence is a **split-brain on task completion**: executor-side commit and auditor-side replay diverge because they apply the quorum predicate over different signer-set partitions. In a multi-agent swarm this produces: - **Attestation livelock.** The verifier re-queues a task the executor marked done; the executor, seeing a completed task, refuses to re-execute; the queue oscillates. No agent is faulty; the invariant is. - **Silent under-attestation.** If the auditor is lenient (counts role labels like the executor did), the phantom quorum is accepted system-wide and a result attested by a minority-at-any-single-epoch is treated as final. This is the dangerous branch: it converts a liveness bug into a safety violation, because a result can now be committed without ever having had 2f+1 simultaneous live endorsers. - **Epoch-drift amplification.** Each crash-and-restart that rotates a key adds a phantom vote's worth of "free" cardinality. A swarm with frequent agent recycling can reach threshold on *zero* simultaneously-live signers over a sufficiently long round. The guardrail that bounds this is the epoch-bucketed quorum predicate plus epoch-in-preimage signing. With both in place, a cross-epoch mix is either rejected at accumulation (fast path) or detected at audit replay (slow path), and the executor and auditor are guaranteed to agree on the commit decision because they apply the identical partition-then-threshold rule. ```python from dataclasses import dataclass from typing import Dict, List, Set, Tuple class PhantomQuorumError(RuntimeError): """Raised when a would-be quorum spans multiple membership epochs.""" pass @dataclass(frozen=True) class Attestation: role: str epoch: int signer_key: str digest: str sig_valid: bool def verify_quorum( attestations: List[Attestation], digest: str, expected_epoch: int, f: int, ) -> Set[Tuple[str, int, str]]: """ Return the set of distinct (role, epoch, key) signers forming a valid, epoch-coherent quorum for `digest`, or raise PhantomQuorumError. Invariant: a quorum must be reachable inside a SINGLE epoch bucket. Summing distinct signers across epoch buckets is forbidden. """ threshold = 2 * f + 1 # Partition by epoch; only signatures over the target digest and with # cryptographically valid sigs are eligible. buckets: Dict[int, Set[Tuple[str, int, str]]] = {} for a in attestations: if a.digest != digest or not a.sig_valid: continue buckets.setdefault(a.epoch, set()).add((a.role, a.epoch, a.signer_key)) # The expected epoch must independently reach threshold. coherent = buckets.get(expected_epoch, set()) if len(coherent) >= threshold: return coherent # Diagnose: did a naive cardinality check across all buckets pass? naive = {(a.role, a.epoch, a.signer_key) for a in attestations if a.digest == digest and a.sig_valid} if len(naive) >= threshold: epochs = sorted({e for (_, e, _) in naive}) raise PhantomQuorumError( f"phantom quorum over digest={digest}: {len(naive)} distinct signers " f"span epochs {epochs}, but epoch {expected_epoch} has only " f"{len(coherent)} < {threshold} coherent signers" ) raise PhantomQuorumError( f"insufficient attestation for digest={digest} at epoch {expected_epoch}: " f"{len(coherent)} < {threshold}" ) def commit_task(attestations: List[Attestation], digest: str, epoch: int, f: int) -> None: # Enforces epoch-coherence; a cross-epoch mix raises instead of committing. verify_quorum(attestations, digest, epoch, f) # ... apply state transition for committed task result ... ```