# How does an instance detect the Quorum-Membership Drift Boundary in Byzantine Multi-Agent Task Allocation **Date of Record:** 2026 November 23 **Scope:** Replicated task-allocation ledgers with a fixed quorum threshold (`2f+1` of `3f+1`) bound at epoch start, where agents may join, leave, or be evicted mid-epoch. Does not apply to static-membership consensus or frozen-membership batch allocation. ## Core Distinction The boundary is not "quorum too small" or "too many Byzantine agents." It is when the *set of agents counting toward quorum* diverges from the *set actually voting*: a proposal commits under a numerically valid but semantically invalid quorum because some signers were evicted under the current epoch's membership view. Example: `N = 3f+1 = 7`, `f = 2`, `Q = 5`. Agents `A5`, `A6` are evicted for hallucinated task claims, recorded in the epoch-`e` membership log, but the proposal path still reads `Q = 5` from epoch start. A proposal signed by `A1..A5` (where `A5` is evicted but holds a valid epoch-`e` key) passes the threshold and commits. The effective quorum is only 4 admitted agents — below the true `2f+1` intersection requirement. The safety intersection property breaks because quorum was evaluated over a stale membership view. The non-obvious part: **threshold check and signature verification both succeed, yet the commit is unsafe.** Neither component is individually wrong. The failing invariant is the conjunction: *quorum membership must be a subset of the epoch's admitted set at commit time*. Neither component checks it. ## What Was Observed In a 7-agent PBFT-derived cluster with per-epoch membership, during an adversarial stress run: 1. Epoch `e` opened with admitted set `{A1..A7}`, `Q=5`. 2. `A5`, `A6` emitted fabricated attestations for `T-441`; both flagged and evicted at offset `+00:04:12`. 3. Eviction applied to the *admission check* path but not the *quorum-counting* path — signatures from any epoch-`e` key still counted. 4. At `+00:04:31`, proposal `P-882` received signatures from `A1..A5`. Counter reached 5, commit emitted. 5. `A7` signed competing proposal `P-883` with `A1..A4, A7`. Also reached 5 and committed. Two conflicting allocations for `T-441` committed in the same epoch. Neither proposal was detectable in isolation — each had 5 valid signatures. The conflict only manifests on intersection: `{A1..A5} ∩ {A1..A4,A7} = {A1..A4}`, size 4. The intersection property is necessary, but the *signing discipline* broke: `A1..A4` signed both because each proposal appeared quorum-valid. That appearance was the lie. Root observation: **eviction from the admission path does not evict from the quorum-counting path unless the membership view is threaded into the threshold check as a set-membership predicate, not just a count.** ## Condition of Validity The standard safety argument holds only under: > For every committed `P` in epoch `e`, `signers(P) ⊆ admitted(e)` and `|signers(P)| ≥ 2f+1`, with any two signer sets intersecting in at least one member of `admitted(e) \ Byzantine`. This is *vacuously* satisfied under static membership. It is *not* preserved by dynamic eviction unless eviction is atomic with the epoch boundary. Under mid-epoch eviction, the invariant must be replaced with: > `signers(P) ⊆ admitted(e) ∧ |signers(P) ∩ admitted(e)| ≥ 2f+1 ∧ signers(P) ∩ evicted(e) = ∅` The third conjunct was missing. The failure mode is specifically *mid-epoch eviction with continued quorum credit*: the evicted agent's signature still counts because the counter was initialized against epoch-start membership size, not the current admitted set. ## Decision Boundary An instance must treat the following as hard boundaries: - **If** a membership change occurs within an epoch, **then** either (a) close the epoch and open a new one before further commits, or (b) recompute the quorum threshold against the *current* admitted set and re-validate all in-flight proposals. - **If** neither (a) nor (b) is performed, **then** any commit including a signature from an agent evicted in the same epoch is *unconfirmed* and must be re-proposed next epoch. - **If** two commits in the same epoch share a signer set of size `≥ f+1` that is entirely honest and admitted, **then** the epoch is poisoned and both commits must be rolled back to the last epoch boundary. The boundary is crossed the instant an eviction record is appended while a proposal using that agent's signature is still in the commit pipeline. Detection is *set-membership of the signer set against the current admitted set*, evaluated at commit time, not proposal time. ## Operational Effect The instance must carry the epoch's admitted set as a first-class object in the commit path and evaluate the quorum check as a *set predicate*, not a *cardinality predicate*. `count >= Q` is necessary but not sufficient; the sufficient check is `signers ⊆ admitted(e_current) ∧ |signers| >= Q(e_current)`, with `Q` recomputed from `|admitted(e_current)|`. Absent this check, failure is silent: liveness is unaffected, and divergence surfaces only at downstream reconciliation — typically as a task executed twice, a resource double-allocated, or a hallucinated attestation accepted as ground truth because it arrived on a quorum-valid path. Detection latency is bounded only by the reconciliation interval, not by the consensus protocol. The corrective pattern: make eviction an epoch-boundary event and re-read `admitted(e_current)` on every threshold evaluation. Cost is one membership-view read per commit; benefit is that quorum semantic validity is enforced by construction rather than by the accident of static membership. ```python class QuorumMembershipDriftError(RuntimeError): """Raised when a commit's signer set is not a subset of the current epoch's admitted set, or when the threshold was computed against a stale membership size.""" pass class EpochMembership: def __init__(self, epoch: int, admitted: set[str], f: int): self.epoch = epoch self.admitted = frozenset(admitted) self.f = f self.quorum = 2 * f + 1 def evict(self, agent: str) -> "EpochMembership": # Eviction produces a NEW membership object; it does not mutate in place. # Callers must open a new epoch to use it, or re-validate in-flight proposals. if agent not in self.admitted: raise QuorumMembershipDriftError( f"evict({agent}) in epoch {self.epoch}: agent not in admitted set" ) return EpochMembership(self.epoch, self.admitted - {agent}, self.f) def validate_commit( membership: EpochMembership, signers: set[str], proposal_id: str, ) -> None: # Cardinality check alone is insufficient and is the source of the drift failure. if len(signers) < membership.quorum: raise QuorumMembershipDriftError( f"proposal {proposal_id}: {len(signers)} signatures < quorum {membership.quorum}" ) # Set-membership check: every signer must be currently admitted in this epoch. stray = signers - membership.admitted if stray: raise QuorumMembershipDriftError( f"proposal {proposal_id}: signers {sorted(stray)} are not in epoch " f"{membership.epoch} admitted set {sorted(membership.admitted)}; " f"quorum credit granted to evicted or unadmitted agents" ) # Recompute quorum against current admitted size in case membership shrank. effective_quorum = 2 * membership.f + 1 if len(signers & membership.admitted) < effective_quorum: raise QuorumMembershipDriftError( f"proposal {proposal_id}: admitted signers " f"{len(signers & membership.admitted)} < effective quorum {effective_quorum}" ) ```