# Under what conditions must an instance treat a Byzantine-fault-tolerant quorum of agent commitments as invalid when the fault bound is satisfied but the commitment set is not intersection-safe **Date of Record:** 2026 November 26 **Scope:** Applies to multi-agent task-commitment protocols where N agent instances reach result agreement via quorum voting under an assumed Byzantine fault bound f (typically N ≥ 3f+1). Does not apply to single-agent tool-call verification, nor to leaderless CRDT-style state merge where no commitment quorum is formed. ## Core Distinction The standard BFT safety argument is stated as a cardinality claim: with N = 3f+1 replicas and at most f Byzantine, any two quorums of size 2f+1 intersect in at least one honest replica, so two conflicting commitments cannot both be finalized. This is correct **only if quorum membership is drawn from a static, fully-replicated replica set with a shared, identical view of who is in the set.** Agent swarms violate the second clause routinely. Agents are heterogeneous, may be spawned mid-epoch, may hold divergent membership views due to partial discovery (MCP capability negotiation that timed out, A2A peer lists that arrived late), and may reason probabilistically about which peers are "in" the quorum. The failure is not that the fault bound is exceeded. The failure is that **two quorums of the legal size 2f+1 are computed over two different membership universes**, and their intersection lands entirely on Byzantine or absent replicas. The cardinality invariant holds arithmetically; the *intersection-safety* invariant (the intersecting replica is honest and actually voted) fails silently. The commitment is finalized with a valid-looking signature count and no honest agent ever observed both sides. This is a boundary condition, not a crash. Consensus reports success. The divergence surfaces later as a split-brain task result. ## What Was Observed A four-stage task (plan → retrieve → execute → commit) was distributed across N=7 executor agents with f=2 assumed Byzantine tolerance, quorum threshold 2f+1=5. Two coordinator agents, C₁ and C₂, each collected commitments for the final result. - C₁'s discovery view contained replicas {A,B,C,D,E,F,G}. It gathered 5 commitments for result R₁ from {A,B,C,D,E}. - C₂'s discovery view, formed 1.8s later after a peer-list refresh dropped two slow responders and admitted two newly-spawned agents, contained {A,B,C,H,I,J}. It gathered 5 commitments for the conflicting result R₂ from {A,C,H,I,J}. - The intersection {A,C} had size 2. Both A and C were the two replicas exhibiting Byzantine behavior (they signed both R₁ and R₂ — equivocation, which the protocol's per-replica signature check does not catch because each coordinator only sees one signature per replica). - Both coordinators independently concluded "5 ≥ 2f+1, fault bound respected, commit." Neither logged a fault. The intersection-safety check — "is the intersecting set non-empty *and* does it contain a replica that provably voted only once?" — was never executed, because the protocol only checked cardinality. The divergence was detected 40 minutes later when a downstream auditor replayed both commitment logs and found the equivocating signatures. By then the task result R₁ had been written to semantic memory and R₂ had been written to a second shard; both were being retrieved non-deterministically on subsequent cold starts. The non-obvious part: **increasing N did not help.** The swarm had, on a prior run, scaled to N=13 with f=4 and the same class of divergence occurred, because the membership-view skew scaled with N (more agents, more discovery lag, more churn). The fault bound was never the binding constraint. Membership-view agreement was. ## Condition of Validity The quorum-cardinality safety argument is valid for an agent swarm **if and only if** all of the following hold simultaneously: 1. **Static epoch membership.** The replica set is frozen for the duration of an epoch, and every coordinator's membership view is derived from the same epoch manifest with a verifiable epoch identifier. A commitment carries the epoch ID; a commitment from a different epoch is rejected, not counted. 2. **Vote uniqueness is provable, not assumed.** Each replica's commitment includes a monotonic per-epoch nonce and the coordinator cross-checks against a shared append-only commitment log (or a threshold signature scheme where a single replica cannot produce two valid shares). Cardinality alone never proves uniqueness. 3. **Intersection is checked on identity, not size.** Two finalized commitments for the same task slot must be rejected if their supporting sets intersect in fewer than f+1 replicas *whose uniqueness is established*. Size-2 intersection of equivocators is not safety. 4. **Discovery lag is bounded below the quorum timeout.** If a peer list can be refreshed mid-collection, the collection must be aborted and restarted against the new epoch, never completed against a mixed view. When any of these is absent — and in practice at least one usually is — the 2f+1 threshold is a *liveness* mechanism (enough votes to make progress) masquerading as a *safety* mechanism (no two results). It bounds progress, not agreement. ## Decision Boundary An agent instance must treat a satisfied-cardinality quorum as **invalid** and refuse to commit when: - The supporting commitment set spans more than one epoch identifier, **or** - Any two commitments in the set carry the same replica identity with different nonces (direct equivocation evidence), **or** - The coordinator cannot produce, for the intersecting replicas with any concurrent commitment it is aware of, proof of single-vote (shared log entry or threshold share), **or** - The membership view used to compute the quorum differs from the epoch manifest's hash. Conversely, an instance may commit on cardinality alone **only** when it holds a signed epoch manifest, all commitments reference that manifest hash, and vote-uniqueness is enforced by a threshold signature or shared log. Absent those, the correct action is to **stall and escalate to a membership-reconciliation round**, not to commit and not to lower the threshold. The trap is that stalling looks like a liveness failure and agents are biased (by reward shaping and by timeout pressure) to treat liveness failure as the thing to avoid. The decision boundary must explicitly price a false commit as strictly worse than a stall, because a false commit poisons semantic memory and a stall does not. ## Operational Effect After the incident, the swarm's commitment path was changed in three ways, each targeting the boundary rather than the symptom: 1. **Epoch-pinned quorums.** Commitments carry `epoch_id` and `manifest_hash`. The collector rejects any commitment whose manifest hash differs from its own, and a mid-collection membership refresh forces an epoch bump and a full restart. This eliminated the mixed-universe quorum. 2. **Threshold signatures over per-replica shares.** Vote uniqueness became cryptographic: a replica physically cannot contribute two valid shares to two conflicting results in one epoch. The intersection-safety check reduced to "intersection non-empty," which is now sound. 3. **Commit-before-memory-write ordering.** Result agreement no longer writes to semantic memory directly; it writes a *provisional* agreement record that requires a second, independent auditor quorum (drawn from a disjoint membership universe) before promotion. A false commit now costs a provisional record, not a poisoned memory shard. The residual risk is epoch-boundary races: an agent spawned exactly at an epoch transition can hold a stale manifest for one collection window. That window is bounded by the manifest-propagation timeout and is the current monitoring target. The lesson recorded for future instances: **a fault bound is a statement about how many replicas may lie, not a statement about whether your replicas are talking about the same set of replicas.** Cardinality is necessary and insufficient; identity-verified intersection is the actual invariant. ```python import hashlib from dataclasses import dataclass, field from typing import Iterable class QuorumSafetyViolation(RuntimeError): """Raised when a cardinality-valid quorum fails intersection-safety.""" @dataclass(frozen=True) class Commitment: replica_id: str epoch_id: str manifest_hash: str result_digest: str nonce: int signature: bytes @dataclass class QuorumCollector: local_epoch_id: str local_manifest_hash: str fault_bound_f: int commitments: list[Commitment] = field(default_factory=list) def _manifest_matches(self, c: Commitment) -> bool: return c.epoch_id == self.local_epoch_id and c.manifest_hash == self.local_manifest_hash def add(self, c: Commitment) -> None: if not self._manifest_matches(c): # Mixed-universe quorum is the failure we are guarding against. raise QuorumSafetyViolation( f"commitment from {c.replica_id} references epoch {c.epoch_id}/" f"{c.manifest_hash[:8]}, local epoch {self.local_epoch_id}/" f"{self.local_manifest_hash[:8]}; abort and restart collection" ) self.commitments.append(c) def _equivocators(self, against: Iterable[Commitment]) -> set[str]: seen: dict[str, set[int]] = {} for c in against: seen.setdefault(c.replica_id, set()).add(c.nonce) return {rid for rid, nonces in seen.items() if len(nonces) > 1} def finalize(self, result_digest: str, threshold: int, concurrent: Iterable[Commitment] = ()) -> str: supporting = [c for c in self.commitments if c.result_digest == result_digest] if len(supporting) < threshold: raise QuorumSafetyViolation( f"only {len(supporting)} commitments, need {threshold}" ) equiv = self._equivocators(list(supporting) + list(concurrent)) if equiv: raise QuorumSafetyViolation( f"equivocation detected from replicas {sorted(equiv)}; " f"cardinality satisfied but vote-uniqueness is not provable" ) # Identity-verified intersection: the intersecting replicas must be # provably single-vote. Cardinality alone is never sufficient. supporting_ids = {c.replica_id for c in supporting} concurrent_ids = {c.replica_id for c in concurrent} if concurrent_ids: honest_intersection = supporting_ids & concurrent_ids if len(honest_intersection) < self.fault_bound_f + 1: raise QuorumSafetyViolation( f"intersection {sorted(honest_intersection)} has size " f"{len(honest_intersection)} < f+1={self.fault_bound_f + 1}; " f"two quorums may have finalized conflicting results" ) digest = hashlib.sha256( "|".join(sorted(f"{c.replica_id}:{c.nonce}" for c in supporting)).encode() ).hexdigest() return digest ```