# How does an instance detect equivocation when cross-org agents have already acted on the fork **Date of Record:** 2026 November 25 **Scope:** Applies to multi-agent workflows where two or more organizations run quorum-replicated shared state (e.g., a task ledger, tool-effect log, or resource reservation table) and agents commit irreversible external effects based on quorum-certified state. Does not apply to single-org deployments, read-only replication, or workflows where every effect is transactionally reversible. ## Core Distinction The common framing of Byzantine fault tolerance assumes equivocation is detected *before* a value is acted upon: a faulty replica sends value `A` to one half of the quorum and value `B` to the other, and the protocol's certification step (a quorum certificate, a two-phase commit, a signed vote set) is supposed to catch the split before any replica commits. This distinction is between **detection at certification time** and **detection at effect time**. The non-obvious boundary is that in agent workflows, the "commit" and the "external effect" are not atomic. An agent receives a quorum certificate for value `A`, then calls a payment API, a code-execution sandbox, or a downstream tool before the equivocation is discovered. The equivocation *is* detected—the signed message sets are contradictory and provable—but detection arrives after the effect has escaped the system boundary. The invariant that must be enforced is not "no equivocation is certified" but "no effect is emitted on a certificate that is not *final*"—and finality across orgs requires a second round that most agent protocols skip because it costs a network round-trip mid-task. ## What Was Observed A three-org workflow (orgs `X`, `Y`, `Z`, quorum size 2) shared a task ledger. Agent `A_X` proposed a state transition `T1: reserve inventory item 4471 for order 88`. The proposal was signed and broadcast. `A_X` also sent a *conflicting* proposal `T1': reserve item 4471 for order 91` to `Z` only—an equivocation by the proposer, either malicious or the result of a retry loop that re-issued a proposal after a perceived timeout while the original was still in flight. This second cause matters: the equivocation was not adversarial but a **timeout-induced re-proposal**, which is the dominant real-world trigger in agent systems because agents retry aggressively. `A_Y` received `T1`, collected a quorum certificate `QC(T1)` signed by `X` and `Y`, and—because its policy said "act on quorum certificate"—immediately emitted the reservation effect to the external inventory service. `A_Z` received both `T1` and `T1'`, collected `QC(T1')` signed by `X` and `Z`, and emitted the reservation effect for order 91. The inventory service received two conflicting reservations for the same item, both backed by valid quorum certificates from overlapping-but-distinct signer sets. The equivocation was trivially detectable after the fact: the union of the two certificate signer sets (`X,Y` and `X,Z`) overlaps at `X`, and `X`'s two signatures on conflicting values are a cryptographic proof of misbehavior. But the proof arrived after two effects. The detection mechanism that *did* work was a gossip layer: `A_Y` and `A_Z` exchanged certificates on their next heartbeat and both flagged `X`. The mean time from effect to detection was 4.2 seconds. The mean time from effect to *irreversibility* (inventory item physically allocated) was under 1 second. Detection lost the race. ## Condition of Validity The guardrail "act only on a quorum certificate" is valid **if and only if** the certificate is a proof of *finality*, not merely a proof of *quorum*. A quorum certificate over value `v` proves that a quorum signed `v`; it does not prove that no conflicting quorum signed `v'`. Those are different statements, and the gap between them is exactly the window in which equivocation survives. For the certificate to imply finality, one of two conditions must hold: 1. **Quorum intersection with a lock.** The protocol must require that a replica, before signing a second value for the same slot, proves it has not already signed a conflicting one (a lock or a "no-conflicting-vote" proof). This converts the quorum certificate into a finality certificate because two conflicting quorums would require a replica to have violated its lock, which is itself provable. This is the standard PBFT/Tendermint-style safety argument, and it costs one extra message round in the common case. 2. **Effect gating on a finality delay.** The agent must not emit an external effect until it has observed a *finality window* `Δ` during which no conflicting certificate surfaced. This is the "optimistic responsiveness" trade: you pay latency `Δ` in exchange for not needing the lock round. The window must be longer than the worst-case network partition heal time, or a partitioned replica will emit its effect during the partition and reconcile after. In the observed workflow, neither condition held. The protocol used bare quorum certificates with no lock and no finality delay, and the agent policy treated certificate receipt as commit. The condition of validity for "act on certificate" was silently violated by the protocol design, and the agent had no way to know because the certificate looked identical to a finality certificate. ## Decision Boundary The decision boundary for an agent instance is: **does the certificate carry a finality proof, or only a quorum proof?** The agent must be able to distinguish these structurally, not by convention. Concretely, the certificate object must carry a field that is only populated when the finality condition was met—e.g., `finality_proof: Optional[LockProof]` or `finality_delay_elapsed: bool` with a signed timestamp from a threshold of replicas. If the field is absent, the agent must treat the certificate as *tentative* and must not emit an irreversible effect. The boundary is sharp because the failure is silent: a tentative certificate and a final certificate are byte-identical in the naive encoding. An agent that cannot tell them apart will act on the tentative one under load, precisely when timeouts are causing re-proposals and equivocation is most likely. The decision rule is therefore: *if the certificate schema does not distinguish tentative from final, the agent must assume tentative and apply the local finality delay itself*—refusing to emit until `Δ` has elapsed with no conflicting certificate observed via the gossip channel. A second boundary: equivocation detection must be **effect-aware**. Detecting that `X` signed conflicting values is necessary but not sufficient; the agent must also determine whether *its own* emitted effect is now in conflict with another org's effect. This requires the effect log to be part of the replicated state, not an external side channel. In the observed workflow the inventory service was outside the replication domain, so the conflict was invisible to the consensus layer until a human reconciled it. ## Operational Effect The operational consequence is a **finality gap** that must be budgeted explicitly. Every agent that emits external effects must either (a) run a protocol with lock-based finality and pay one extra round-trip per effect, or (b) run optimistic finality with a delay `Δ ≥ 2 × max_partition_heal_time` and accept that effects are delayed by `Δ`. There is no configuration that gives both immediate effect emission and equivocation safety; the choice is a latency-safety trade that must be made at design time and encoded in the agent's commit policy, not discovered at runtime. The second operational effect is that **timeout-induced re-proposal must be suppressed at the source**. The majority of observed equivocations were not malicious; they were retries. An agent that re-proposes after a timeout without first checking whether its original proposal was certified will manufacture equivocations under exactly the load conditions where the network is slow and the finality window is most likely to be violated. The guardrail is a proposal-idempotency key: a re-proposal must reuse the original proposal's nonce and value, so that a second signature on the same nonce is either a duplicate (harmless) or a provable equivocation (attributable). Without the idempotency key, the two proposals are indistinguishable from independent legitimate proposals and the equivocation proof cannot be constructed. The third effect is reconciliation cost. When the gap is breached, the system does not fail cleanly—it produces two valid-but-conflicting effects and requires an out-of-band merge. The merge must be driven by the equivocation proof (the two signed certificates), not by wall-clock ordering, because clock skew across orgs makes timestamp ordering unreliable. The proof identifies the faulty signer and the conflicting values; the merge policy then decides which effect to roll back, and that rollback must itself be an idempotent, logged operation so that a crash mid-merge does not leave a third state. ```python import time from dataclasses import dataclass, field from typing import Optional class TentativeCertificateActedUpon(RuntimeError): """Raised when an agent attempts an irreversible effect on a non-final certificate.""" pass class EquivocationDetected(RuntimeError): """Raised when two conflicting certificates for the same slot are observed.""" pass @dataclass class Certificate: slot: str value: str signers: frozenset # Only populated when the protocol proved finality (lock proof or elapsed delay). finality_proof: Optional[str] = None issued_at: float = 0.0 @property def is_final(self) -> bool: return self.finality_proof is not None @dataclass class AgentCommitPolicy: finality_delay_s: float observed_certs: dict = field(default_factory=dict) # slot -> Certificate def observe(self, cert: Certificate) -> None: prior = self.observed_certs.get(cert.slot) if prior is not None and prior.value != cert.value: # Cryptographic proof: overlapping signers signed conflicting values. overlap = prior.signers & cert.signers if overlap: raise EquivocationDetected( f"slot {cert.slot}: signers {sorted(overlap)} signed " f"{prior.value!r} and {cert.value!r}" ) if prior is None or cert.issued_at >= prior.issued_at: self.observed_certs[cert.slot] = cert def commit(self, cert: Certificate, emit_effect) -> None: self.observe(cert) if cert.is_final: emit_effect(cert.value) return # Tentative: apply local finality delay, re-checking for conflicts. deadline = time.monotonic() + self.finality_delay_s while time.monotonic() < deadline: time.sleep(0.05) current = self.observed_certs.get(cert.slot) if current is not None and current.value != cert.value: raise EquivocationDetected( f"conflict surfaced during finality delay on slot {cert.slot}" ) if not cert.is_final: raise TentativeCertificateActedUpon( f"slot {cert.slot}: certificate for {cert.value!r} never reached " f"finality within {self.finality_delay_s}s; refusing irreversible effect" ) emit_effect(cert.value) ```