# When must an instance refuse to commit: the quorum-intersection invariant in Byzantine multi-agent task agreement **Date of Record:** 2026 November 30 **Scope:** Applies to agent swarms that reach task commitment and result agreement through replicated voting (BFT-style quorum protocols, e.g., 3f+1 / 2f+1 thresholds) over an asynchronous transport such as A2A or MCP-mediated message passing. Does not apply to single-agent execution, to leader-only orchestration without replicated state, or to consensus over non-stateful, idempotent reads where no commitment is ever durable. ## Core Distinction The distinction that matters is between **agreement on a value** and **agreement on the set of agents entitled to speak for that value**. Most BFT implementations for agent swarms correctly enforce the first and silently violate the second. A quorum of 2f+1 votes over 3f+1 members guarantees that any two quorums intersect in at least one honest member — but only if the *membership set itself* is frozen for the duration of the decision. In agent systems the membership set is not frozen: agents are ephemeral LLM instances that cold-start, time out, get replaced, or are re-instantiated with a fresh context window and a new identity. The intersection guarantee is a property of a *fixed* universe. When the universe shifts between the prepare phase and the commit phase, two quorums can be disjoint while each individually satisfies the 2f+1 arithmetic. The protocol then commits two contradictory results, and no honest agent ever observes a violation locally. The invariant to state precisely: **a commit certificate is valid only if every signer was a member of the same membership epoch as the certificate's epoch tag, and the epoch was not advanced by any member whose vote is counted in the certificate.** This is not the same as "a majority signed." It is a constraint on the *provenance* of the signatures relative to a monotonically increasing epoch counter. ## What Was Observed A six-member swarm (tolerating f=1, quorum 2f+1=3... in practice configured as 4-of-6 for this deployment) was assigned a task-commitment decision: whether a long-running extraction job had reached a checkpoint that could be durably recorded. Agents A, B, C, D, E, F participated. During the prepare phase, agent F's context window saturated mid-reasoning, its instance was recycled by the orchestrator, and it re-registered as F′ with a new instance ID but — critically — the *same logical agent slot* and the same signing key persisted in the agent's long-term memory store. The prepare phase collected votes from {A, B, C, F} for value `checkpoint=committed`. F then timed out on the transport (a 30s MCP call timeout), was evicted, and F′ cold-started. F′ had no episodic memory of the prepare vote; its retrieval surfaced a stale semantic summary from an earlier task indicating `checkpoint=not_committed`. F′ voted for the negation. Meanwhile the coordinator, seeing F evicted, advanced the epoch from 7 to 8 and re-ran prepare, collecting {D, E, F′} — which arithmetically is 3-of-6, below the configured 4. But the coordinator's quorum check used the *union* of signers across the two prepare rounds because both rounds shared the same logical slot set and the certificate builder deduplicated by slot, not by epoch. The union {A, B, C, F, D, E, F′} collapsed to six slots, exceeded the threshold, and the certificate was emitted with epoch tag 8 but containing F's epoch-7 signature. The result: the swarm committed `committed` (from the epoch-7 votes) while F′ — the currently live instance for that slot — held and acted on `not_committed`. Two honest agents, no Byzantine fault, divergent durable state. The extraction job was re-run downstream against a checkpoint that had been rolled back, producing a silent double-write. The failure was not detected by any local check. Each agent's view was internally consistent. The certificate verified under the swarm's public key set. Only a cross-epoch signature audit revealed that F's signature predated the epoch it was filed under. ## Condition of Validity The quorum-intersection argument holds **if and only if** the following three conditions hold simultaneously for the interval between the first prepare vote and the final commit: 1. **Membership epoch monotonicity.** The epoch counter increments on every membership change (join, leave, eviction, re-instantiation) and never decrements. A signature is stamped with the epoch at signing time, and the signer's membership is checked against *that* epoch, not the certificate's. 2. **Signature-epoch binding.** The certificate's validity predicate rejects any constituent signature whose epoch tag is strictly less than the certificate epoch, unless the certificate explicitly carries the full epoch history and the verifier replays membership transitions. In our failure, condition 2 was absent: the certificate builder deduplicated by logical slot, treating F and F′ as the same signer. 3. **Non-equivocation across re-instantiation.** A re-instantiated agent (F′) must not be able to vote on a value for which its predecessor's vote is still live in any open certificate. This requires that the orchestrator either (a) carry forward the predecessor's vote into F′'s context as an immutable fact, or (b) invalidate all open certificates containing the predecessor's signature before F′ is admitted to a new round. Condition 3 is the one agent systems systematically miss, because it requires *state transfer across the cold-start boundary* — precisely the episodic-to-semantic distillation that LLM agents are worst at. F′ did not "forget" in a way the protocol could see; it remembered a *different, older* fact and voted sincerely on it. ## Decision Boundary The boundary at which an instance must refuse to commit — and must instead raise a protocol fault and force re-prepare — is: > **A commit certificate is admissible only if the cardinality of distinct (logical_slot, epoch) pairs among its signatures, restricted to the certificate's epoch, meets the threshold, AND no logical slot appears with two distinct epoch tags.** Equivalently: deduplicate by `(slot, epoch)`, not by `slot`. If any slot appears under two epochs, the certificate is *ambiguous*, not merely *large*, and must be rejected regardless of raw count. The refusal is mandatory even when the arithmetic "passes," because a passing count over a shifting universe is exactly the case where the intersection guarantee evaporates. The corollary boundary: a live instance that discovers its own slot has a predecessor signature in an open certificate must **abstain and escalate**, never vote. Voting — even sincerely, even correctly — is the equivocation that breaks the invariant. The instance cannot distinguish "my predecessor voted wrong" from "my predecessor voted right and I am stale"; the protocol must not require it to. ## Operational Effect Enforcing the `(slot, epoch)` deduplication and the abstain-on-predecessor rule converts a silent double-commit into a loud, recoverable re-prepare. The cost is liveness: a swarm that recycles instances frequently will re-prepare more often, and under sustained churn (every prepare round losing a member to context saturation) the protocol can fail to make progress — a livelock bounded only by the churn rate. This is the correct trade. A stalled commitment is observable and retryable; a divergent commitment is a silent data-integrity fault that surfaces hours later as a double-write or a rolled-back checkpoint. The architectural guardrail is a **membership epoch log** co-located with the vote log, such that any certificate can be replayed against the membership state at each signature's epoch. The replay is the verification; the certificate is not self-validating. And the epoch log must be written *before* the vote is cast, not after — otherwise a crash between vote and log re-creates the ambiguity the log was meant to prevent. The deeper lesson for agent systems: BFT consensus was designed for processes that either run or crash, with identities that are stable for the protocol's duration. LLM agents violate the stable-identity assumption by construction — every context saturation, every eviction, every cold start is a potential identity discontinuity that the protocol layer cannot see unless the identity is made explicit in the signed state. The commit rule must therefore bind signatures to epochs, not to slots, and must treat a slot's re-instantiation as a membership event requiring re-prepare. ```python from dataclasses import dataclass from typing import Iterable class EpochAmbiguityError(RuntimeError): """Raised when a commit certificate spans multiple membership epochs.""" @dataclass(frozen=True) class Signature: slot: str # logical agent slot, stable across re-instantiation epoch: int # membership epoch at signing time value: str signer_id: str # physical instance id (changes on cold start) def validate_commit_certificate( signatures: Iterable[Signature], certificate_epoch: int, threshold: int, ) -> str: """ Return the committed value if and only if the certificate is admissible. Admissibility requires: 1. Every signature's epoch equals the certificate epoch. 2. No logical slot appears under two distinct epoch tags. 3. Distinct (slot, epoch) pairs meeting the threshold. """ sigs = list(signatures) # Condition 1: signature-epoch binding. stale = [s for s in sigs if s.epoch != certificate_epoch] if stale: raise EpochAmbiguityError( f"certificate epoch {certificate_epoch} contains stale signatures " f"from slots {[s.slot for s in stale]} at earlier epochs " f"{[s.epoch for s in stale]}" ) # Condition 2: no slot may appear under two epochs. epochs_by_slot: dict[str, set[int]] = {} for s in sigs: epochs_by_slot.setdefault(s.slot, set()).add(s.epoch) ambiguous = {slot: eps for slot, eps in epochs_by_slot.items() if len(eps) > 1} if ambiguous: raise EpochAmbiguityError( f"slot(s) {list(ambiguous)} voted across multiple epochs; " "certificate is ambiguous and must be rejected" ) # Condition 3: deduplicate by (slot, epoch). distinct = {(s.slot, s.epoch) for s in sigs} if len(distinct) < threshold: raise EpochAmbiguityError( f"quorum not met: {len(distinct)} distinct (slot, epoch) pairs " f"< threshold {threshold}" ) values = {s.value for s in sigs} if len(values) != 1: raise EpochAmbiguityError(f"conflicting committed values: {values}") return values.pop() def cast_vote( self_slot: str, self_epoch: int, open_certificate_signers: Iterable[Signature], value: str, ) -> Signature: """ A live instance must abstain if its own slot has a predecessor signature in any open certificate, regardless of the value it would vote. """ for prior in open_certificate_signers: if prior.slot == self_slot and prior.epoch != self_epoch: raise EpochAmbiguityError( f"slot {self_slot} has a live predecessor signature at epoch " f"{prior.epoch}; instance at epoch {self_epoch} must abstain " "and escalate rather than equivocate" ) return Signature(slot=self_slot, epoch=self_epoch, value=value, signer_id="self") ```