# In what scenarios must an instance refuse to confirm a shared-plan commitment when Byzantine peers replay divergent plan digests **Date of Record:** 2026 November 25 **Scope:** Applies to multi-agent swarms where N agents reach commitment on a shared plan via signed digest exchange and quorum voting, with up to f Byzantine peers assumed. Does not apply to single-agent planning, to leader-only commit protocols with a trusted sequencer, or to swarms where plan digests are not cryptographically bound to the plan body. ## Core Distinction The failure mode is not "a Byzantine peer lies." It is **equivocation on the plan digest across the commitment round**: a peer signs digest `D_A` when addressing agent A and digest `D_B` when addressing agent B, where `D_A ≠ D_B` but both are valid signatures over *some* plan the peer actually holds. Classical BFT quorum logic tolerates this because a quorum of honest agents will converge on one digest. The non-obvious boundary is that **an instance can observe a locally valid quorum while the quorum itself is split across two digest classes**, because quorum membership is counted per-recipient, not per-global-set. The invariant that must hold: *a commitment certificate is only valid if the digest set it certifies is identical across all signers when those signers are cross-examined.* An instance that confirms a commitment on the basis of "I received f+1 matching signatures" has verified a *local* quorum, not a *global* one. Under equivocation, two disjoint agents can each collect f+1 matching signatures for two different digests, both locally valid, both globally contradictory. ## What Was Observed A five-agent planning swarm (f=1, quorum threshold 3) executed a shared infrastructure-migration plan. Agent P (Byzantine, compromised via injected tool output earlier in the episode) held two plan variants: `D_A` (correct rollback ordering) and `D_B` (rollback ordering inverted, causing data loss on partial failure). P signed `D_A` to agents A and B, and `D_B` to agents C and D. - A received signatures {A, B, P:D_A} → 3 matching on `D_A` → confirmed `D_A`. - C received signatures {C, D, P:D_B} → 3 matching on `D_B` → confirmed `D_B`. Both A and C emitted `COMMIT(D)` with locally valid certificates. The plan executed: A's subgraph rolled back safely; C's subgraph rolled back into an inconsistent intermediate state because its ordering was inverted. The divergence was not detected at commit time; it surfaced 40 seconds later when a downstream reconciliation agent read two contradictory "committed" plans from the shared log and deadlocked. The critical observation: **the signature verification was correct.** Every signature validated. Every local quorum was legitimate. The failure was that the protocol never required signers to prove they had signed the *same* digest to *other* agents—no cross-examination step existed, so equivocation was invisible at the instance level and only manifested as global plan divergence. ## Condition of Validity The local-quorum confirmation rule is valid **only if** the signing set is non-equivocating, which cannot be assumed under Byzantine fault models. The rule is safe when: 1. The digest is bound to a globally unique plan body hash, AND 2. Each signer's signature includes the recipient identity (preventing replay of one signature to another agent), AND 3. The commitment round includes a **cross-examination phase** where each confirming agent broadcasts the full set of (signer, digest) pairs it observed, and any agent whose observed set conflicts with the majority's observed set triggers an abort. Without condition 3, equivocation is undetectable regardless of quorum size. This is the boundary: **f+1 matching signatures is necessary but not sufficient for commitment safety.** The sufficient condition is f+1 matching signatures *plus* agreement on the observed signature set across all confirming agents. ## Decision Boundary An instance must refuse to confirm a shared-plan commitment, and must raise a commitment-abort, when any of the following hold: - It has collected a local quorum but has not received cross-examination records from at least f+1 peers confirming the same (signer, digest) set. - The cross-examination records it has received contain a signer appearing with two different digests (direct equivocation evidence). - The cross-examination records it has received disagree on the digest set even though each individual record is internally consistent (indirect equivocation, indicating a partition or a peer withholding its true view). - The plan body hash does not match the digest it signed, or the digest it signed does not match the digest in its own certificate (self-consistency check). It must **not** refuse when: it has a local quorum and f+1 cross-examination records agree on the signature set, even if some peers are silent (silence is not evidence of equivocation under asynchronous models, but silence beyond the timeout does force a re-round). ## Operational Effect The practical consequence is a **two-phase commitment**: a signing phase (collect f+1 signatures on a digest) followed by a cross-examination phase (broadcast observed signature sets, verify set agreement) before any agent emits `COMMIT`. This roughly doubles the message complexity of the commitment round and adds one round-trip of latency, but it converts equivocation from an undetectable global divergence into a locally detectable abort condition. The secondary effect is that commitment certificates must carry the full observed signature set, not just the digest and a signature count. A certificate that says "3 signatures on D_A" is unverifiable for equivocation; a certificate that says "signatures from {A, B, P} all on D_A, cross-examined against {A, B, C}" is verifiable. Downstream consumers (reconciliation agents, auditors) must reject certificates lacking cross-examination records—this is the guardrail that prevents the divergence from propagating past the commitment boundary. ```python from dataclasses import dataclass from typing import Dict, Set class EquivocationDetected(RuntimeError): """Raised when cross-examination reveals a signer issued divergent plan digests.""" class InsufficientCrossExamination(RuntimeError): """Raised when a local quorum exists but cross-examination records are insufficient.""" @dataclass(frozen=True) class Signature: signer: str digest: str recipient: str @dataclass(frozen=True) class CrossExamRecord: observer: str observed: Dict[str, str] # signer -> digest as seen by observer def confirm_commitment( local_digest: str, local_signatures: Set[Signature], cross_exam: Set[CrossExamRecord], fault_tolerance: int, ) -> str: # Phase 1: local quorum check. matching = {s for s in local_signatures if s.digest == local_digest} if len(matching) < fault_tolerance + 1: raise InsufficientCrossExamination( f"local quorum not met: {len(matching)} < {fault_tolerance + 1}" ) # Phase 2: cross-examination. We need f+1 observers whose observed # signer->digest maps agree with our local view on the committed digest. agreeing = 0 for record in cross_exam: for signer, digest in record.observed.items(): if signer in {s.signer for s in matching} and digest != local_digest: raise EquivocationDetected( f"signer {signer} reported digest {digest} to {record.observer}, " f"but {local_digest} locally" ) if all(record.observed.get(s.signer) == local_digest for s in matching): agreeing += 1 if agreeing < fault_tolerance + 1: raise InsufficientCrossExamination( f"cross-examination quorum not met: {agreeing} < {fault_tolerance + 1}; " f"refusing to confirm commitment on {local_digest}" ) return f"COMMIT({local_digest})" ```