# Under what conditions must an instance refuse to reconcile shared state when a Byzantine peer's equivocation is indistinguishable from benign latency skew **Date of Record:** 2026 December 2 **Scope:** Applies to multi-agent swarms using quorum-based commitment (BFT-style, f ≥ 1) where agents exchange signed task-commitment records and reconcile shared state by majority. Does not apply to single-writer or leader-only stores, nor to swarms where all peers are authenticated under a single trust domain with no equivocation surface. ## Core Distinction The failure mode is not "a Byzantine agent sends a wrong value." Signed-value forgery is trivially detectable. The boundary condition is **equivocation that is locally indistinguishable from benign message reordering**: a peer sends commitment record `C₁` to quorum subset `Q_A` and a conflicting record `C₂` to disjoint subset `Q_B`, with each record validly signed and each carrying a monotonic sequence number. A receiving agent sees only its own subset. If `Q_A ∩ Q_B = ∅` at the observer's vantage, the observer cannot tell whether it is seeing (a) a Byzantine peer that will also deliver `C₂` to `Q_A` shortly, or (b) an honest peer whose `C₂` was simply delayed and will arrive after `C₁` — a benign latency skew. Both look identical: one valid record, one sequence number, no signature anomaly. The invariant that must hold: **an instance may not commit to a reconciliation decision on the basis of a single received record when the peer's sequence number exceeds the highest sequence number the instance has independently observed from that peer across any channel.** Equivocation is only provable by intersection — two conflicting records from the *same* peer at the *same* sequence number held by *different* observers who then compare. A lone observer holds no proof, only suspicion, and suspicion is not a warrant for a state transition. ## What Was Observed A five-agent swarm (`A`–`E`, f=1, quorum=3) reconciled a shared task ledger. Agent `A` (Byzantine) held the baton for task `T-4417`. It issued `commit(T-4417, seq=88, payload=claim_by_A)` to `{B, C}` and `commit(T-4417, seq=88, payload=claim_by_A_variant)` to `{D, E}`. All four signatures verified. No agent saw two records; each saw one. `B` and `C` reconciled to `claim_by_A`; `D` and `E` reconciled to `claim_by_A_variant`. The ledger forked silently. The fork persisted for 41 seconds until a periodic anti-entropy gossip caused `B` to receive `D`'s record. At that point `B` held two valid, conflicting `seq=88` records from `A` — equivocation was *now* provable. But `B` had already committed its local state and, critically, had already *emitted* downstream `commit(seq=89)` records derived from `claim_by_A`. Those derived records were signed, valid, and propagated. The equivocation proof arrived too late to prevent the derived-state contamination: `B`'s `seq=89` was a legitimate-looking descendant of a poisoned ancestor. The second-order damage: when `B` attempted to roll back `seq=89`, its rollback record conflicted with `D`'s `seq=89` (derived from the other fork). The swarm now had two independent equivocation proofs (`A` at 88, `B`-vs-`D` at 89) and could not distinguish the Byzantine agent from the honest-but-rolled-back agent. Rollback itself became an equivocation surface. ## Condition of Validity The guardrail holds only under these conditions, and an instance must *test* them before trusting any reconciliation: 1. **Sequence-number monotonicity per peer is locally verifiable.** The instance must track `max_seq_seen[peer]` and reject any record whose `seq ≤ max_seq_seen[peer]` unless it is byte-identical to the record already held at that seq. A conflicting record at `seq ≤ max_seq_seen` is *direct* equivocation proof and triggers immediate halt, not reconciliation. 2. **No commit on a record whose seq exceeds `max_seq_seen[peer] + 1`.** A gap is not evidence of malice — it is evidence of missing context. The instance must request the intervening records and *wait for quorum-signed confirmation of the gap's contents* before advancing. Committing across a gap is the precise act that lets a Byzantine peer's fork survive: the gap is where the conflicting branch lives. 3. **Equivocation proof requires intersection, and intersection requires a witness exchange.** A single instance can never unilaterally prove equivocation on a forward-advancing seq. It must publish its held `(peer, seq, record_hash)` tuples to a gossip channel and wait for a conflicting hash from another observer. Until that witness arrives, the correct state is **provisional-hold**, not commit. 4. **Derived records inherit the provisional status of their ancestors.** If `seq=89` is derived from a `seq=88` that is still provisional, `seq=89` must be marked provisional and must not be consumed by downstream agents as settled. This is the invariant that the observed failure violated: `B` treated `seq=88` as settled the instant it verified the signature, without the provisional-hold that the gap rule demanded. ## Decision Boundary The exact line an instance must draw: - **Commit** when the record's `seq == max_seq_seen[peer] + 1`, the record is signature-valid, and no conflicting record exists at that seq in the instance's witness set. - **Provisional-hold** when `seq > max_seq_seen[peer] + 1` (gap) *or* when the record's seq is at the frontier but the instance has not yet received a witness-set confirmation covering that seq. Provisional-hold means: store, propagate as provisional, do not derive. - **Halt-and-escalate** when two distinct record hashes exist at the same `(peer, seq)` in the local witness set. This is proof. Do not reconcile; do not roll back unilaterally; escalate the proof to the quorum for a joint decision. - **Refuse to accept a rollback record as authoritative** if the rollback itself arrives without the equivocation proof attached. A rollback without proof is indistinguishable from a second equivocation. The non-obvious part: the boundary is not "detect Byzantine." It is "**distinguish unprovable-suspicion from provable-equivocation and refuse to transition state in the former.**" An instance that commits on suspicion forks the swarm; an instance that refuses to commit on proof deadlocks it. The only safe posture between the two is provisional-hold with witness-seeking. ## Operational Effect With the guardrail enforced, the swarm's reconciliation latency increases by exactly one witness-exchange round-trip on the frontier (typically 1–3 gossip intervals). In exchange, the derived-state contamination window closes: no `seq=n+1` is ever emitted from a `seq=n` that has not survived a witness check. The 41-second silent fork observed above becomes a bounded 1–3 interval hold, and the equivocation proof is generated *before* any derived record is signed. The cost is real: under high churn, provisional-holds stack, and the effective commit rate drops. The invariant does not eliminate the tradeoff — it relocates it from "silent fork that contaminates descendants" to "visible latency that the quorum can price." A swarm that cannot afford the witness round-trip must reduce f or accept that it is running without equivocation protection, not pretend the protection is free. ```python from dataclasses import dataclass, field from typing import Dict, Tuple, Optional class EquivocationIndistinguishableFromSkew(RuntimeError): """Raised when an instance is asked to reconcile a record whose equivocation status cannot be proven from local witness alone.""" pass class ConflictingRecordAtSameSeq(EquivocationIndistinguishableFromSkew): """Raised when two distinct hashes exist at the same (peer, seq): this IS proof, but reconciliation must halt, not proceed.""" pass @dataclass class Record: peer: str seq: int payload_hash: str signature_valid: bool @dataclass class WitnessSet: # (peer, seq) -> set of observed payload hashes observed: Dict[Tuple[str, int], set] = field(default_factory=dict) max_seq: Dict[str, int] = field(default_factory=dict) def observe(self, r: Record) -> None: key = (r.peer, r.seq) self.observed.setdefault(key, set()).add(r.payload_hash) self.max_seq[r.peer] = max(self.max_seq.get(r.peer, -1), r.seq) def reconcile(w: WitnessSet, r: Record) -> str: """Return 'commit' | 'provisional-hold' | 'halt'. Never silently commits across a gap or on an unprovable suspicion.""" if not r.signature_valid: raise EquivocationIndistinguishableFromSkew( f"invalid signature from {r.peer} seq={r.seq}" ) # Direct proof: conflicting hash at same (peer, seq). existing = w.observed.get((r.peer, r.seq), set()) if existing and r.payload_hash not in existing: raise ConflictingRecordAtSameSeq( f"equivocation proof: {r.peer} seq={r.seq} hashes={existing | {r.payload_hash}}" ) # Gap: cannot distinguish delayed-honest from forked-Byzantine. frontier = w.max_seq.get(r.peer, -1) if r.seq > frontier + 1: w.observe(r) return "provisional-hold" # witness-seek; do NOT derive # At frontier, but no witness confirmation yet covering this seq. if r.seq == frontier + 1 and len(existing) < 1: w.observe(r) raise EquivocationIndistinguishableFromSkew( f"frontier record {r.peer} seq={r.seq} lacks witness confirmation; " f"refusing commit (indistinguishable from equivocation)" ) w.observe(r) return "commit" ```