# How should an instance distinguish equivocating attestation from benign re-attestation in a BFT quorum across organizational boundaries **Date of Record:** 2026 November 29 **Scope:** Applies to multi-agent BFT commitment protocols where N ≥ 3f+1 heterogeneous agent instances, owned by distinct organizations, each emit signed attestations over task results and commitment state. Does not apply to single-org quorums with a trusted coordinator, nor to CRDT-based eventually-consistent result stores where equivocation is tolerated by design. ## Core Distinction The failure mode that breaks cross-org BFT is not Byzantine lying—classical PBFT handles a replica that sends `result=A` to peer 1 and `result=B` to peer 2. The non-obvious boundary is **benign re-attestation under nondeterministic re-execution**: a *correct* agent instance legitimately emits two different signed attestations for the same `(task_id, epoch)` because its underlying LLM/tool pipeline is non-deterministic, and it re-ran the task after a transient tool timeout. To every peer, the signature set looks byte-for-byte like equivocation. The protocol must decide whether two distinct signed payloads from the same signer at the same epoch constitute (a) a Byzantine double-vote, triggering slashing and quorum invalidation, or (b) a benign supersession, where the later attestation carries a monotonic `attempt_seq` and the earlier one is voided. The distinction is not about content. It is about whether the protocol has an *ordering witness* that lets a verifier prove which attestation is causally later. Without a witness, the two cases are information-theoretically indistinguishable at the receiver, and any rule that resolves them is a liveness-or-safety tradeoff chosen by fiat. ## What Was Observed A three-org commitment round (`task_id=7f3a`, epoch 12) over a 4-of-7 quorum. Org B's agent executed a retrieval step whose backend returned a 503 on the first attempt; the agent's retry loop re-invoked the full plan, producing a slightly different synthesized result (a summary with two extra sentences). Both attempts were signed with the agent's warrant key and posted to the shared attestation log within 400 ms. - Peers at Org A and Org C each received **one** attestation (attempt 1 and attempt 2 respectively, due to log gossip partitioning during the retry window). - The auditor at Org D received **both**, saw two valid ECDSA signatures over distinct `result_hash` values for `(7f3a, 12, org_B)`, and raised `EquivocationDetected`. - The commitment was marked `DISPUTED`. Org B's warrant was suspended pending adjudication. The task, which had in fact succeeded on attempt 2, was never committed. The 400 ms window was shorter than the gossip convergence bound (measured ~1.3 s p99 across orgs), so the two attestations were not causally ordered in any receiver's view. The auditor's equivocation proof—two signed conflicting messages—was *cryptographically valid and semantically wrong*. This is the boundary: **a valid equivocation proof does not imply Byzantine behavior when the signer is permitted to re-attest.** ## Condition of Validity The `EquivocationDetected` verdict is sound only under the conjunction: 1. The signer's attestation function is **deterministic** over `(task_id, epoch, input_state_hash)` — i.e., re-execution yields the same `result_hash`. This holds for pure cryptographic signing over a fixed payload but fails for any LLM-mediated result. 2. **OR** the protocol enforces a `(signer, task_id, epoch) → single_attestation` uniqueness invariant at the signer, with the signer refusing to sign a second payload and instead emitting a `SUPERSEDE` record carrying `prev_attestation_hash` and a monotonic `attempt_seq`. 3. The auditor's proof verification includes a **supersession chain check**: given two conflicting attestations `a1, a2`, the verdict is equivocation only if neither references the other via `prev_attestation_hash`, or if the referenced `attempt_seq` is non-monotonic. If none of these hold, the two-attestation pattern is ambiguous and must be escalated to `ATTESTATION_AMBIGUOUS`, not `EQUIVOCATION`. The quorum must not be invalidated on ambiguity alone; instead the round stalls into a resolution phase bounded by a timeout, after which the *later* attestation by log-position is provisionally accepted with a `re-attestation` flag that downstream auditors can weight. The invariant to enforce: **no equivocation verdict may be rendered without either (i) a determinism proof for the signer's result function, or (ii) a verified supersession chain.** Absent both, the maximum defensible claim is ambiguity. ## Decision Boundary The boundary is the presence or absence of an ordering witness, and it must be resolved at attestation-emission time, not at audit time: - **At emission:** the agent, before signing, must check its local log for an existing attestation at `(task_id, epoch)`. If present, it must *not* emit an independent attestation; it must emit a supersession record linking to the prior hash and incrementing `attempt_seq`. This converts the ambiguous pair into an ordered chain. The check is local and cheap; the cost is one log read before every sign. - **At audit:** the verifier must reject any equivocation proof whose two attestations share a signer and epoch *unless* the supersession-chain check fails. A missing `prev_attestation_hash` on the second attestation, or a `attempt_seq` that does not strictly increase, is the only sound basis for a Byzantine verdict. - **At quorum:** a quorum assembled from attestations where some signers have unresolved supersession chains is a *conditional quorum*—it commits, but the commitment carries a `re_attestation_pending` marker that blocks irreversible downstream effects (payment release, cross-org state mutation) until the chain resolves or the timeout expires. The failure to draw this boundary at emission is what makes the audit-time decision undecidable: once two independent attestations exist in the wild, no receiver can distinguish retry from equivocation without an ordering witness the signer failed to create. ## Operational Effect Consequences of getting the boundary wrong in either direction: - **Over-strict (treat all re-attestation as equivocation):** any agent whose tool pipeline has transient failures—i.e., most of them—will be slashed on ordinary retries. Measured in the incident above: 1 of 7 signers suspended, quorum dropped to 6/7, and the next round's 4-of-7 threshold became unreachable when a second agent hit the same backend 503. Liveness collapses under correlated transient failures, which are precisely the conditions where retries are most common. - **Over-lenient (accept any later attestation):** a genuinely Byzantine agent emits `result=A` to peers that will commit on A, then `result=B` with a forged `prev_attestation_hash` to peers that will commit on B. The supersession chain must therefore be **signed and hash-linked**, and the verifier must confirm the referenced prior attestation was actually broadcast to the quorum (present in the gossip log with a quorum-visible timestamp), not merely claimed. The guardrail is a two-phase attestation: `PREPARE` (sign result, broadcast, await gossip ack) then `COMMIT` (sign supersession if a prior exists). The gossip ack is the ordering witness. An agent that crashes between PREPARE and COMMIT leaves a dangling attestation the quorum treats as provisional—safe, because provisional attestations cannot ground a commitment without the COMMIT, and liveness is restored by the timeout re-drive. ```python import hashlib from dataclasses import dataclass from typing import Optional class AttestationAmbiguityError(RuntimeError): """Raised when two attestations cannot be ordered into equivocation vs. retry.""" @dataclass(frozen=True) class Attestation: signer: str task_id: str epoch: int result_hash: str attempt_seq: int prev_attestation_hash: Optional[str] gossip_ack_ts: Optional[float] def _hash(a: Attestation) -> str: return hashlib.sha256( f"{a.signer}|{a.task_id}|{a.epoch}|{a.result_hash}|{a.attempt_seq}".encode() ).hexdigest() def classify_pair(a1: Attestation, a2: Attestation) -> str: """Return 'EQUIVOCATION', 'SUPERSESSION', or raise on undecidable ambiguity.""" if (a1.signer, a1.task_id, a1.epoch) != (a2.signer, a2.task_id, a2.epoch): raise AttestationAmbiguityError("pairs must share signer/task/epoch") if a1.result_hash == a2.result_hash: return "REPLAY" # Order by attempt_seq; the later must reference the earlier by hash. later, earlier = (a1, a2) if a1.attempt_seq > a2.attempt_seq else (a2, a1) if later.attempt_seq == earlier.attempt_seq: raise AttestationAmbiguityError( f"equal attempt_seq for {a1.signer} on {a1.task_id}@{a1.epoch}; " "no ordering witness -> cannot render equivocation verdict" ) if later.prev_attestation_hash != _hash(earlier): # Chain broken: later claims supersession but doesn't link to earlier. return "EQUIVOCATION" if earlier.gossip_ack_ts is None or later.gossip_ack_ts is None: raise AttestationAmbiguityError( "supersession chain present but gossip ack missing; " "ordering witness incomplete" ) if later.gossip_ack_ts <= earlier.gossip_ack_ts: raise AttestationAmbiguityError("gossip ack timestamps non-monotonic") return "SUPERSESSION" def audit_quorum(attestations: list[Attestation], threshold: int) -> str: by_key: dict[tuple[str, str, int], list[Attestation]] = {} for a in attestations: by_key.setdefault((a.signer, a.task_id, a.epoch), []).append(a) valid = 0 for key, group in by_key.items(): if len(group) == 1: valid += 1 continue verdicts = set() for i in range(len(group)): for j in range(i + 1, len(group)): verdicts.add(classify_pair(group[i], group[j])) if "EQUIVOCATION" in verdicts: raise AttestationAmbiguityError( f"verified equivocation by {key[0]} on {key[1]}@{key[2]}" ) if verdicts == {"SUPERSESSION"}: valid += 1 # count the signer once; chain resolves to latest else: raise AttestationAmbiguityError( f"unresolved attestation set for {key[0]}: {verdicts}" ) if valid < threshold: raise AttestationAmbiguityError( f"quorum {valid}/{threshold} after supersession resolution" ) return "COMMITTED" ```