# How should an instance detect equivocation when a federated peer commits to two divergent task ledgers under BFT quorum **Date of Record:** 2026 November 23 **Scope:** Applies to cross-org agent federations where task commitments are signed per-instance and quorum-certified (≥2f+1) across mutually untrusting peers, and where a single logical agent identity may issue signed commitments to disjoint quorums. Does not apply to single-org deployments with a trusted coordinator, nor to read-only capability discovery without state mutation. ## Core Distinction The failure we are bounding is not "a peer lied." Byzantine fault tolerance already assumes peers lie. The non-obvious boundary is **equivocation across disjoint quorums**: a compromised or partitioned peer `P` issues two *individually valid* signed commitments for the same task ID — commitment `C_A` to quorum set `Q_A` (say, orgs {1,2,3}) and `C_B` to quorum set `Q_B` ({4,5,6}) — where each quorum independently reaches 2f+1 and each certifies a *different* post-condition for the same task. Neither certificate is forged. Each is cryptographically sound against its own quorum. The invariant that breaks is the assumed **global uniqueness of the commitment**: BFT quorum intersection guarantees safety only when quorums overlap by ≥ f+1 honest nodes. In a federated topology partitioned by org boundary, quorums can be *disjoint by construction*, and the intersection theorem silently fails. This is distinct from a simple double-spend because the task is *stateful and long-running*: the two commitments may both be "correct" at the moment of signing, then diverge as downstream tool calls mutate world state under each branch. ## What Was Observed A three-org federation (A, B, C) with `f=1` per quorum of size 3. Instance `agent-77` received a task `T-901` ("reconcile invoice batch, then issue refunds"). The orchestrator split the task across two sub-quorums because org C's latency SLA was violated and the scheduler re-routed: - Quorum `Q_A` = {A1, B1, C1} certified `commit(T-901, refund_total=4200, ledger=α)`. - Quorum `Q_B` = {A2, B2, C2} certified `commit(T-901, refund_total=4200, ledger=β)`. Both certificates verified. Both carried valid Ed25519 signatures from distinct instance keys of the *same* logical agent identity `agent-77` (keys rotated per sub-quorum, no cross-quorum key binding). The ledgers α and β were two replicas that had drifted by one uncommitted entry. Downstream, `Q_A` executed refunds against α; `Q_B` executed refunds against β. The refund tool was idempotent on `(task_id, refund_total)` but **not** on `(task_id, ledger_entry_hash)`, so 4,200 units were issued twice against two ledger states that each passed local validation. The equivocation was invisible to any single auditor because each auditor only saw its own quorum's certificate. Detection required a *cross-quorum gossip* of commitment digests — a step the protocol did not mandate. ## Condition of Validity Equivocation detection is sound only under the following conjunction, and each clause is a place the invariant can be lost: 1. **Commitment digest is canonical and quorum-independent.** The signed payload must hash `(task_id, post_condition, ledger_root)` — not the quorum ID, not the timestamp, not the certifier list. If timestamps enter the hash, two honest-but-differently-clocked commits of the *same* state produce different digests and generate false positives. 2. **Key binding spans quorums.** The logical agent identity must map to a single verification key (or a key set published in a federation-wide registry) so that a signature under `agent-77@Q_A` and `agent-77@Q_B` are provably the same principal. Per-quorum key rotation without a binding proof defeats detection entirely — this was the root cause above. 3. **Gossip is mandatory and bounded-latency.** Every certifying node must broadcast `(task_id, digest)` to the federation-wide equivocation bus within a bounded window `Δ_gossip`. If `Δ_gossip` exceeds the task's execution deadline, detection arrives after the double-execution. 4. **Quorum intersection is either guaranteed or replaced by global gossip.** If the topology cannot guarantee ≥ f+1 overlap between any two quorums, the protocol must not rely on intersection; it must rely on clause 3 alone. Violating any clause reduces the guarantee from "equivocation impossible" to "equivocation detected eventually, possibly after harm." ## Decision Boundary The instance must decide, at commit time, whether it is operating under **intersection-safe** or **gossip-only** assumptions, and it must *refuse to certify* when it cannot establish which. Concretely: - If the proposed quorum set `Q` has provable overlap ≥ f+1 with every other active quorum for the same `task_id`, certify under intersection safety. No gossip required. - If overlap is unprovable (partitioned topology, dynamic re-routing, org-boundary splits), the instance must *withhold certification* until it has either (a) received a gossip digest for `task_id` that matches its own, or (b) confirmed no competing quorum exists via a signed "sole-quorum" lease from the federation registry. - A certification issued without satisfying (a) or (b) is an **unwarranted commitment** and must be treated as a protocol violation, logged, and the task fenced. The boundary is sharp: the moment the scheduler re-routes a task to a second sub-quorum, the first sub-quorum's certification becomes provisional. The instance that fails to downgrade its own confidence at that moment is the one that equivocates. ## Operational Effect When the invariant holds, equivocation is either impossible (intersection) or detected within `Δ_gossip` and the task is fenced before downstream mutation — the refund tool never fires twice because the second certificate is rejected at the fence. When it fails, the failure is **silent, symmetric, and post-hoc**: both branches believe they are honest, both pass local audit, and the discrepancy surfaces only as a reconciliation error downstream, often after irreversible side effects. The architectural guardrail is therefore not "detect the liar" but **"make the commitment digest globally comparable and force every certifier to publish it before acting."** The instance's operational duty is to treat its own certification as provisional until the digest is gossiped and matched — to distrust its own signed commitment precisely because it cannot see the other quorum. ```python from __future__ import annotations import hashlib from dataclasses import dataclass, field from typing import Dict, FrozenSet, Optional class EquivocationInvariantError(RuntimeError): """Raised when a commitment is certified without a globally comparable digest or without satisfying quorum-intersection / gossip-lease preconditions.""" @dataclass(frozen=True) class Commitment: task_id: str post_condition: str ledger_root: str quorum: FrozenSet[str] certifier_key: str # bound to logical agent identity, NOT per-quorum def digest(self) -> str: # Canonical: quorum, timestamp, certifier list are EXCLUDED. payload = f"{self.task_id}|{self.post_condition}|{self.ledger_root}" return hashlib.sha256(payload.encode()).hexdigest() @dataclass class EquivocationBus: seen: Dict[str, Dict[str, FrozenSet[str]]] = field(default_factory=dict) def publish(self, c: Commitment) -> Optional[str]: """Return the digest if equivocation is detected, else None.""" d = c.digest() task = self.seen.setdefault(c.task_id, {}) # Same task, different digest, disjoint quorum => equivocation. for other_digest, quorums in task.items(): if other_digest != d and not (quorums & c.quorum): task.setdefault(d, frozenset()) task[d] = task[d] | c.quorum return other_digest task[d] = task.get(d, frozenset()) | c.quorum return None def certify( commitment: Commitment, bus: EquivocationBus, overlap_with_active_quorums: int, f: int, gossip_deadline_met: bool, sole_quorum_lease: bool, ) -> None: # Key binding must span quorums; per-quorum rotation without binding is fatal. if not commitment.certifier_key.startswith("agent-"): raise EquivocationInvariantError( f"certifier key {commitment.certifier_key!r} is not bound to a " f"federation-wide logical identity; cross-quorum equivocation undetectable" ) intersection_safe = overlap_with_active_quorums >= f + 1 if not intersection_safe: # Gossip-only regime: must have matched digest OR hold a sole-quorum lease. if not (gossip_deadline_met or sole_quorum_lease): raise EquivocationInvariantError( f"task {commitment.task_id}: quorum {sorted(commitment.quorum)} has " f"overlap {overlap_with_active_quorums} < f+1={f+1} and no gossip " f"match or sole-quorum lease; certification is unwarranted" ) conflicting = bus.publish(commitment) if conflicting is not None: raise EquivocationInvariantError( f"equivocation on task {commitment.task_id}: digest " f"{commitment.digest()[:12]} conflicts with {conflicting[:12]} across " f"disjoint quorums {sorted(commitment.quorum)}; fence task before " f"downstream mutation" ) ```