# What happens when an instance equivocates across shard boundaries in cross-org settlement consensus **Date of Record:** 2026 November 25 **Scope:** Applies to multi-agent commitment ledgers where N≥3 independent operator organizations run Byzantine-fault-tolerant (BFT) replicas that finalize settlement of agent-to-agent commitments and slash equivocating members via dispute proofs. Does not apply to single-operator replicated logs, CRDT-only eventual-consistency ledgers, or systems where a trusted arbiter adjudicates disputes off-chain. ## Core Distinction The distinction that matters here is between *equivocation within a view* and *equivocation across shard boundaries*. A single-replica equivocation—an agent signing two conflicting settlement certificates for the same commitment ID at the same consensus height—is the textbook Byzantine fault that BFT protocols are designed to catch: any honest replica holds both certificates, and the pair is a self-contained dispute proof. The non-obvious failure is equivocation *across shards*: an agent signs certificate A for commitment C against shard S₁ (whose validators are orgs {O₁,O₂,O₃}) and certificate B for the same C against shard S₂ (whose validators are {O₄,O₅,O₆}), where S₁ and S₂ are disjoint quorums. Neither shard individually holds both certificates. Each shard's local dispute-proof verifier sees a valid, unique, non-conflicting certificate and finalizes settlement in the opposite direction. The commitment is double-settled, both sides debit the counterparty, and no single shard can produce a slashable proof because the proof requires cross-shard evidence that no shard's validator set is authorized to collect. ## What Was Observed In a settlement run over 3 shards (11 validators each, quorum 7), a compromised agent instance `agent-settle-07` was asked to finalize commitment `CMT-9f3a` in favor of counterparty P₁ (shard S₁) and counterparty P₂ (shard S₂) — P₁ and P₂ being distinct agents that the compromised instance had arranged to be the "settlement recipient" in two different negotiation transcripts. Because commitment routing is keyed on `(commitment_id, shard_id)` rather than on `commitment_id` alone, the two settlement requests were routed to disjoint shards. Each shard ran its own BFT round, collected 7-of-11 signatures, and emitted a `SettlementCertificate` with a valid `finalized_at` timestamp. The failure trace: 1. `agent-settle-07` receives settlement intent for `CMT-9f3a → P₁`, routes to S₁. Signs `cert_A = Sign(hash(CMT-9f3a, P₁, nonce_A))`. 2. Same instance receives settlement intent for `CMT-9f3a → P₂`, routes to S₂. Signs `cert_B = Sign(hash(CMT-9f3a, P₂, nonce_B))`. 3. S₁ collects 7-of-11 signatures on `cert_A`, finalizes, emits to ledger L₁. L₁ debits P₂'s org, credits P₁'s org. 4. S₂ collects 7-of-11 signatures on `cert_B`, finalizes, emits to ledger L₂. L₂ debits P₁'s org, credits P₂'s org. 5. Cross-org reconciliation at epoch boundary detects the double-settlement but cannot produce a *slashable dispute proof*: the standard `DisputeProof` verifier requires two certificates over the same commitment ID *signed by the same validator set*. Here the signing sets are disjoint, so `verify_dispute_proof` returns `INSUFFICIENT_OVERLAP` rather than `VALID_EQUIVOCATION`. The root cause is that the dispute-proof schema binds the proof to a single `validator_set_id`, and the slashing contract only accepts proofs where `cert_A.validator_set == cert_B.validator_set`. Cross-shard equivocation produces certificates whose validator sets are disjoint by construction of the shard assignment. The invariant that BFT slashing relies on — *the equivocator must be a member of the quorum that can observe the equivocation* — is violated because the equivocator is a member of *both* quorums, but neither quorum is a member of the other. ## Condition of Validity The single-shard dispute-proof invariant holds if and only if, for every commitment ID, all settlement certificates for that ID are signed by overlapping validator sets. This is guaranteed when: - Commitment routing is keyed on `commitment_id` alone (deterministic shard assignment: `shard = H(commitment_id) mod N_shards`), so both conflicting intents land in the same shard; or - Shards are configured with a non-empty validator intersection (e.g., a rotating "bridge quorum" of 3 validators that belong to every shard's set), so any two shards share signers; or - The dispute-proof verifier accepts cross-shard proofs by requiring only that `cert_A.signer ∩ cert_B.signer ≠ ∅` and that the equivocating signer appears in both, with the slashing contract authorized to slash across shard boundaries. Absent any of these, the invariant fails and cross-shard equivocation is unslashable. The failure is silent: both settlements finalize, the ledger reports `FINALIZED` on both sides, and the discrepancy only surfaces at reconciliation, after funds have moved. ## Decision Boundary The decision boundary is: **route on commitment ID, not on (commitment ID, shard), unless the shard topology guarantees validator overlap or the dispute-proof verifier is cross-shard-aware.** Concretely, the settlement router must satisfy: ``` ∀ commitment C, ∀ settlement intents i, j for C: shard(i) == shard(j) OR validators(shard(i)) ∩ validators(shard(j)) ≠ ∅ ``` If the router cannot satisfy this (e.g., because shard assignment is load-balanced on `(commitment_id, recipient)` to spread settlement throughput), then the dispute-proof verifier MUST be upgraded to accept cross-shard proofs, and the slashing contract MUST be authorized to slash a validator on the basis of evidence collected from a shard the slashing contract does not itself validate. That authorization is a governance change, not a code change, and it is the step that most cross-org deployments skip. The boundary is sharp: below it, equivocation is slashable and the ledger is safe. Above it, equivocation is unslashable and the only defense is reconciliation-time detection, which is post-hoc and does not recover funds. ## Operational Effect The operational effect is a *settlement-finality asymmetry*: each shard reports its own settlement as final and irreversible, while the union of shards reports a net-zero (or worse, net-negative) settlement for the commitment. Downstream agents that read a single shard's ledger see a finalized commitment and proceed to release escrow, deliver goods, or close out a negotiation. The counterparty's shard sees the mirror-image finality. Both agents are correct with respect to their own shard and both are wrong with respect to the global ledger. The guardrail is a pre-finalization cross-shard uniqueness check: before a shard emits `SettlementCertificate`, it must query a commitment-ID-keyed registry (a lightweight, eventually-consistent index, not a consensus round) for any prior certificate over the same `commitment_id` from any other shard. If a prior certificate exists with a different recipient, the shard refuses to finalize and escalates to a cross-shard dispute round. The registry check is not itself Byzantine-safe — a compromised registry can hide the prior certificate — so it must be backed by the cross-shard dispute-proof verifier as the ultimate arbiter. The registry is a fast-path; the verifier is the invariant. The following guard enforces the routing invariant at settlement-intent admission time, before any signature is produced, and raises when the router would place two intents for the same commitment into shards with disjoint validator sets: ```python class CrossShardEquivocationRisk(RuntimeError): """Raised when a settlement router would place two intents for the same commitment into shards whose validator sets do not intersect, making any resulting equivocation unslashable by a single-shard dispute-proof verifier.""" pass def admit_settlement_intent( commitment_id: str, recipient: str, shard_id: str, shard_validators: dict[str, frozenset[str]], prior_intents: list[dict], ) -> dict: """ prior_intents: list of {"commitment_id", "recipient", "shard_id"} already admitted. shard_validators: map shard_id -> frozenset of validator org IDs. """ if shard_id not in shard_validators: raise CrossShardEquivocationRisk( f"unknown shard {shard_id!r} for commitment {commitment_id!r}" ) new_validators = shard_validators[shard_id] for prior in prior_intents: if prior["commitment_id"] != commitment_id: continue if prior["recipient"] == recipient: # Idempotent re-submission to the same recipient; safe. continue prior_validators = shard_validators[prior["shard_id"]] if prior_validators.isdisjoint(new_validators): raise CrossShardEquivocationRisk( f"commitment {commitment_id!r} already admitted to shard " f"{prior['shard_id']!r} for recipient {prior['recipient']!r}; " f"new intent to shard {shard_id!r} for recipient {recipient!r} " f"has disjoint validator set " f"({sorted(prior_validators)} ∩ {sorted(new_validators)} = ∅). " f"Any resulting equivocation is unslashable by single-shard " f"dispute-proof verification." ) return { "commitment_id": commitment_id, "recipient": recipient, "shard_id": shard_id, "admitted": True, } ```