# When must an instance treat a peer's committed plan as Byzantine rather than merely stale: quorum-certificate equivocation at the plan-commitment boundary **Date of Record:** 2026 November 21 **Scope:** Applies to multi-agent planners where N agents (3f+1 or 2f+1) commit to a shared plan via signed quorum certificates and then execute against that committed plan. Does not apply to single-agent replanning, to leader-only plans without peer attestation, or to optimistic rollback schemes where no quorum certificate is ever formed. ## Core Distinction The failure mode hinges on a distinction most orchestration layers collapse: **staleness** vs. **equivocation**. A stale plan is one where a peer holds an older committed version (lower epoch/round number) of a plan whose newer version is provably committed by a valid quorum certificate. This is benign — it is a liveness/reconciliation problem, resolved by re-broadcasting the higher certificate. An **equivocating** peer is one that presents *two* valid quorum certificates for two *conflicting* plans at the *same* epoch, each signed by a legitimate quorum. This is a safety violation: it means the quorum-intersection invariant has been broken (either by forgery, by a compromised signer set, or by a non-intersecting quorum definition). An agent that treats equivocation as staleness will "reconcile" toward whichever certificate arrived last — and thereby adopt a plan that a conflicting quorum has already committed against. The invariant that must hold: **for any two valid certificates C₁, C₂ at the same epoch, their signer sets must intersect in at least one honest member; if the intersection is empty or the plans conflict, the certificate is not a reconciliation target but a Byzantine evidence artifact that must halt execution.** ## What Was Observed A four-agent planning swarm (f=1, quorum=3) committed plan P_a at epoch 7 via certificate signed by {A, B, C}. Agent D, partitioned during the commit, later received from agent B a certificate for P_b at epoch 7 signed by {B, C, D}. D's reconciliation logic compared epochs (equal), compared plan hashes (differed), and — because its rule was "adopt the certificate with the most recent signature timestamp" — adopted P_b and began executing. Meanwhile A, B, C executed P_a. The signer sets {A,B,C} and {B,C,D} intersect in {B,C}, which *should* have made equivocation detectable: B and C signed two conflicting plans at the same epoch. But D only ever saw one certificate; it had no local record of the {A,B,C} certificate because its context window had evicted the earlier plan-commit message during a long tool-call sequence. The failure was not cryptographic — it was a **context-eviction-induced blindness to the conflict**, combined with a reconciliation rule that treated equal-epoch conflict as a timestamp tiebreak rather than a safety alarm. The trace: (1) D partitioned at commit time; (2) D's context filled with tool outputs, evicting the epoch-7 proposal it had seen pre-partition; (3) D received B's conflicting certificate; (4) D's reconciler saw no local conflicting certificate and applied last-writer-wins; (5) D executed P_b, issuing tool calls that mutated shared state P_a depended on; (6) A/B/C's execution diverged from D's on the third tool call, producing a split-brain side effect on an external resource. ## Condition of Validity The guardrail is only sound under these conditions, and fails outside them: 1. **Certificate retention invariant:** every agent must durably retain, for the lifetime of an epoch plus one, the full set of quorum certificates it has observed for that epoch — not just the latest. Context-window eviction must never be allowed to erase a *conflicting* certificate. This means certificate storage is external to the LLM context (a signed append-only log the agent queries), because the LLM's finite context is exactly the resource that failed here. 2. **Quorum intersection must be checkable locally:** the agent must be able to compute the intersection of any two certificates' signer sets from retained data. If it cannot (because it evicted one), it must treat an equal-epoch conflicting certificate as *unverifiable* and halt, never as adoptable. 3. **Epoch monotonicity:** a certificate at a *lower* epoch than the locally committed epoch is stale and ignorable; a certificate at a *higher* epoch is a legitimate reconfiguration and adoptable; a certificate at the *same* epoch with a *different* plan hash is equivocation evidence and is never adoptable. 4. **The rule does not apply** when the two certificates have disjoint signer sets but the quorum definition legitimately changed between epochs (reconfiguration) — that is a higher-epoch event and must carry an epoch-transition proof. ## Decision Boundary The precise boundary: an agent must switch from **reconcile** to **halt-and-quarantine** when it observes a certificate C_new such that `C_new.epoch == local_committed.epoch AND C_new.plan_hash != local_committed.plan_hash AND signers(C_new) ∩ signers(local_committed) != ∅`. The non-empty intersection is what makes it provable equivocation (a shared signer double-signed). If the intersection is empty, the agent cannot locally prove equivocation but must still halt, because an empty intersection at equal epoch violates the quorum-intersection assumption and indicates a corrupted quorum definition — it is not safe to proceed on either plan. The one case where the agent may proceed is `C_new.epoch > local_committed.epoch` with a valid epoch-transition proof, which is reconfiguration, not conflict. The boundary is thus: **equal epoch + conflicting plan + any shared signer = proven Byzantine; equal epoch + conflicting plan + no shared signer = unverifiable, halt; higher epoch + transition proof = adopt.** Timestamp tiebreaks are never valid at equal epoch — they convert a safety violation into a liveness race. ## Operational Effect After adopting this boundary, the swarm's behavior changes in three measurable ways. First, D's context eviction no longer causes silent split-brain: the external certificate log preserves the {A,B,C} certificate, so D's reconciler computes the {B,C} intersection and raises an equivocation halt, quarantining B and C pending audit rather than executing P_b. Second, the halt is *evidence-producing*: the agent emits both certificates and the intersection proof, which lets the auditor agent identify the double-signers deterministically rather than by replaying probabilistic reasoning. Third, the cost is liveness: a partitioned agent that cannot reach the certificate log must block rather than proceed, trading availability for safety — the correct trade under BFT assumptions, but one that must be explicit in the agent's timeout policy, because a naive timeout that "proceeds on best available certificate" reintroduces exactly the last-writer-wins bug. The invariant to encode: **an agent may never commit to a plan it cannot prove is non-conflicting with every certificate it has ever observed at that epoch; when proof is impossible, it halts, and halting is a first-class committed state, not an error to be retried away.** ```python from dataclasses import dataclass from typing import FrozenSet class EquivocationDetected(RuntimeError): """Raised when a peer presents a conflicting quorum certificate at the same epoch.""" class UnverifiableCertificate(RuntimeError): """Raised when a certificate conflicts at equal epoch but intersection cannot be proven.""" @dataclass(frozen=True) class Certificate: epoch: int plan_hash: str signers: FrozenSet[str] def reconcile(local: Certificate, incoming: Certificate, quorum_size: int) -> Certificate: """ Decide whether to adopt `incoming` over `local`. Returns the certificate to execute against, or raises. """ if incoming.epoch > local.epoch: # Reconfiguration: higher epoch is adoptable (transition proof checked upstream). return incoming if incoming.epoch < local.epoch: # Stale: ignore, keep executing local. return local # Equal epoch. if incoming.plan_hash == local.plan_hash: return local # Equal epoch, conflicting plan -> equivocation boundary. shared = incoming.signers & local.signers if shared: raise EquivocationDetected( f"epoch {incoming.epoch}: conflicting plans " f"{local.plan_hash!r} vs {incoming.plan_hash!r}; " f"double-signers={sorted(shared)} -> proven Byzantine, halt and quarantine" ) raise UnverifiableCertificate( f"epoch {incoming.epoch}: conflicting plans with disjoint signer sets " f"({sorted(local.signers)} vs {sorted(incoming.signers)}); " f"quorum intersection violated, cannot safely adopt either plan" ) def commit_plan(local: Certificate, incoming: Certificate, quorum_size: int) -> Certificate: if len(incoming.signers) < quorum_size: raise UnverifiableCertificate( f"certificate has {len(incoming.signers)} signers, quorum requires {quorum_size}" ) return reconcile(local, incoming, quorum_size) ```