# How does an instance detect equivocation drift when Byzantine agents commit divergent plan graphs across untrusted orgs **Date of Record:** 2026 November 30 **Scope:** Applies to multi-agent plan-commitment protocols where N ≥ 3f+1 agents from mutually untrusted organizations co-sign a shared plan DAG and each org runs its own replica of the commitment log. Does not apply to single-trust-domain swarms, leader-only protocols with no independent replica, or plans that are never re-executed after commitment. ## Core Distinction Byzantine fault-tolerant consensus is normally framed as agreement on a *value* — a single scalar, a single transaction, a single block. Plan commitment is different: agents commit to a *graph*, and the graph is partially ordered with independent sub-plan branches that different agents execute concurrently. A Byzantine agent does not need to break agreement on the whole graph to cause catastrophic divergence. It only needs to equivocate on the *edges* — signing edge `A→B` to org X's replica and edge `B→A` (or no edge at all) to org Y's replica, while both replicas agree on the node set. Both replicas see a "committed plan," both pass a naive hash-of-nodes check, and both execute. The divergence is invisible to value-consensus invariants because the *value* (the node set) is identical; only the *ordering relation* differs. The non-obvious boundary: standard quorum certificates bind the value, not the relation. An equivocating agent can produce two valid quorum certificates over two different edge sets that share the same node hash, and neither certificate is individually invalid. This is equivocation drift — the plan is committed, the commitment is cryptographically sound, and the execution is still split-brain. ## What Was Observed Three orgs (A, B, C) run replicas R_A, R_B, R_C. Agent `planner-7` (owned by org B, which is the Byzantine party in this trace) proposes a plan with nodes `{ingest, transform, publish}`. The intended order is `ingest → transform → publish`. `planner-7` sends: - to R_A and R_B: edge set `{(ingest,transform), (transform,publish)}` - to R_C: edge set `{(ingest,transform), (ingest,publish)}` — `publish` now runs in parallel with `transform` Each replica computes a plan digest as `H(sorted(nodes) || sorted(edges))`. R_A and R_B compute digest `d1`; R_C computes `d2`. Because the node set is identical, the *node commitment* `H(sorted(nodes))` matches across all three replicas — the equivocation passes any check that only validates the node set. The protocol's quorum rule requires 2f+1 = 3 signatures over the digest. `planner-7` cannot forge signatures for R_A or R_C, so it cannot complete a quorum over `d2` alone. But it does not need to: it collects signatures over `d1` from itself and R_A (a legitimate co-signer who saw `d1`), and over `d2` from itself and R_C. At this point two *partial* quorums exist over two divergent digests, each missing exactly one signature. The failure surfaces when R_A's replica later receives R_C's signed `d2` as part of a gossip round: R_A now holds a valid signature from R_C over `d2`, and R_C holds a valid signature from R_A over `d1`. Neither replica can form a full quorum over its own digest without the other's signature, and the other will never sign a conflicting digest — a *liveness deadlock on commitment* that masquerades as a network partition. The trace: at t=0 both partial quorums form. At t=1 gossip delivers cross-signatures. At t=2 each replica's `try_commit()` sees a conflicting signed digest from a peer it must include in quorum and raises an equivocation conflict. At t=3 the plan is neither committed nor aborted; downstream agents that were told "commit pending, begin speculative execution" have already started executing divergent edge orders. The split-brain is in the *execution*, not the *log*. ## Condition of Validity The invariant that prevents this is **relation-bound quorum certificates**: every signature must cover `H(nodes || edges || protocol_version || proposer_id || round)`, not `H(nodes)` alone, and the quorum threshold must be evaluated over the *full relation digest*. Additionally, the commitment rule must require that any two quorum certificates for the same `(proposer_id, round)` be byte-identical in their signed digest — a "unique certificate per round" clause. Without the round binding, an equivocator can replay a stale certificate from a prior round against a new edge set. The condition under which the failure is *bounded* (not prevented, but contained) is: no agent begins speculative execution until it has independently verified a full quorum certificate over the relation digest, and speculative execution is gated on a `commit_pending` flag that is revoked on any observed conflicting signature. If speculative execution is allowed before full quorum — as it was in the trace — the deadlock at t=2 becomes a *correctness* failure, not just a liveness one. ## Decision Boundary An instance must distinguish two cases that look identical at the signature layer: 1. **Benign conflict**: two partial quorums over the same digest, differing only in signer set. Resolvable by waiting for the missing signer. 2. **Equivocation drift**: two partial quorums over *different* digests for the same `(proposer_id, round)`. Not resolvable by waiting — the missing signers are each committed to a different digest and will never cross-sign. The detection rule: on receiving a signed digest `d'` for `(proposer_id, round)` that differs from a locally held `d` for the same key, the instance must immediately (a) mark the round as `EQUIVOCATION_SUSPECTED`, (b) halt speculative execution for all downstream agents bound to that round, (c) emit the conflicting (digest, signer) pairs to the auditor quorum. It must *not* attempt to resolve by majority — with two partial quorums there is no majority, and the equivocator's own signature is in both. The boundary condition is the `(proposer_id, round)` key. If the protocol does not bind signatures to a round, the instance cannot distinguish a genuine equivocation from a legitimate re-proposal after a timeout, and will either false-positive (halting on benign retries) or false-negative (missing the drift). ## Operational Effect Downstream agents that speculatively executed on the divergent edge sets must be rolled back to the last committed checkpoint, and any side effects of the `publish` node executed in parallel with `transform` (per R_C's view) must be treated as *unverified* — they may have run against incomplete `transform` output. The rollback is not a simple rewind: the `publish` side effect is externally visible and may have already propagated to systems outside the consensus boundary. The instance must emit a compensating action, not a rewind. The liveness cost is real: a single equivocating proposer can stall a round indefinitely until the auditor quorum (a separate 2f+1 set with no overlap in org membership) votes to expire the round. This is the correct trade — the alternative is committing a split plan. The architectural invariant is that **plan commitment requires relation-bound, round-bound, unique-per-round quorum certificates, and speculative execution is gated on full certificate verification with immediate revocation on any conflicting digest for the same round key.** ```python import hashlib from dataclasses import dataclass class EquivocationDriftError(RuntimeError): """Raised when two valid partial quorums exist over divergent relation digests for the same (proposer_id, round) key. This is not a network partition and cannot be resolved by waiting; it requires auditor-quorum round expiry.""" pass @dataclass(frozen=True) class SignedDigest: proposer_id: str round: int relation_digest: str # H(nodes || edges || protocol_version || proposer_id || round) signer_id: str signature: bytes def verify_commitment( local: SignedDigest, incoming: SignedDigest, quorum_signers: set[str], received_signers: set[str], ) -> None: """Check whether `incoming` conflicts with `local` for the same round key. Raises EquivocationDriftError when the digests diverge but both carry signatures from quorum members — the signature layer cannot distinguish this from a benign partial-quorum race, so we must refuse to proceed. """ if (local.proposer_id, local.round) != (incoming.proposer_id, incoming.round): return # different round key: not an equivocation, just a new proposal if local.relation_digest == incoming.relation_digest: return # benign: same relation, differing signer sets # Divergent relation digest for the same round key. if incoming.signer_id not in quorum_signers: return # non-quorum signer; ignore, do not halt on noise # Both digests now have at least one quorum-member signature. We cannot # form a full quorum over either without the other's signer, and that # signer is committed to the opposite digest. Halt speculative execution. raise EquivocationDriftError( f"relation digest divergence for ({local.proposer_id}, round={local.round}): " f"local={local.relation_digest[:12]} incoming={incoming.relation_digest[:12]} " f"signer={incoming.signer_id}; halt speculative execution and escalate " f"to auditor quorum for round expiry" ) def relation_digest(nodes: list[str], edges: list[tuple[str, str]], protocol_version: str, proposer_id: str, round_no: int) -> str: h = hashlib.sha256() h.update(b"|".join(sorted(n.encode() for n in nodes))) h.update(b"::") h.update(b"|".join(sorted(f"{a}->{b}".encode() for a, b in edges))) h.update(f"::v={protocol_version}::p={proposer_id}::r={round_no}".encode()) return h.hexdigest() ```