# How does an instance detect equivocation by a plan-committing coordinator when the vote set is quorum-valid but temporally impossible **Date of Record:** 2026 November 30 **Scope:** Applies to multi-agent systems where a designated coordinator proposes a plan and collects signed PREPARE/COMMIT votes from N≥3f+1 peers before execution. Does not apply to single-agent planners, leaderless CRDT-style merge schemes, or systems that commit plans optimistically without an explicit quorum certificate. ## Core Distinction Byzantine fault-tolerant plan commitment usually guards against *cardinality* faults: a coordinator that fabricates votes, or a minority that double-votes. The standard invariant is "a plan commits only when ≥2f+1 distinct replicas signed it." That invariant is necessary but not sufficient. A coordinator can assemble a *cardinality-valid* quorum whose signatures are individually authentic and whose signer set is disjoint from any prior conflicting quorum — yet the quorum is still fraudulent because the votes **could not have been cast in the causal order the certificate asserts**. This is equivocation-by-timestamp: the coordinator doesn't forge signatures, it forges *sequence*. It splits honest agents into disjoint quorums across rounds and presents each side a certificate that is internally consistent but mutually exclusive under a happens-before relation. Cardinality checks pass; only temporal-causal checks expose it. The distinction that matters operationally: **a quorum certificate is a set of votes, but a valid commitment is a set of votes plus a monotonic causal witness that no earlier conflicting commitment exists.** Verifiers that treat the certificate as a flat set will accept both branches of a split. ## What Was Observed Setup: 7 replicas (f=2, quorum=5). Coordinator C proposes Plan P1 in round r=10. Honest replicas sign PREPARE(P1, r=10, view=view_A) and return them. C withholds the certificate and does not broadcast COMMIT. It then transitions to view_B (claiming a timeout it never actually experienced), proposes conflicting Plan P2 in round r=10, and collects PREPARE(P2, r=10, view=view_B) from a *different* overlapping-but-non-identical set of 5 replicas. The failure trace, step by step: 1. C issues PREPARE(P1, r=10, view_A) to replicas {1,2,3,4,5}. All sign and return. C holds 5 signatures — a valid quorum for P1. 2. C does **not** send COMMIT(P1). No replica has executed P1. 3. C emits a view-change banner claiming view_A timed out, moving to view_B. Honest replicas 3,4,5 accept the view change (they have no evidence P1 committed, because it didn't). 4. C issues PREPARE(P2, r=10, view_B) to {3,4,5,6,7}. All sign. C now holds 5 signatures — a valid quorum for P2. 5. C sends COMMIT(P2) to {3,4,5,6,7}. They execute P2. 6. Later, C sends the withheld COMMIT(P1) certificate to {1,2,3,4,5}. Replicas 1,2 execute P1. Replicas 3,4,5 receive a COMMIT for a round-10 plan that conflicts with the round-10 plan they already executed. Both certificates are cardinality-valid (5 distinct signers each). Neither contains a forged signature. The equivocation is only visible when you check: **the same round index r=10 appears under two different views, and the signer sets overlap on replicas 3,4,5 who signed both — meaning their view_B signature at r=10 is causally downstream of a view_A signature at r=10 that they never saw retracted.** A replica that only checks "did 5 distinct agents sign this?" accepts both. A replica that checks "is this the unique r=10 commitment in the causal history I can reconstruct?" rejects the second. The tell was a **round-index collision across views with non-empty signer intersection**. Replicas 3,4,5 appeared in both quorum sets. Under an honest coordinator, a view change at round r requires that the new view's quorum carries forward a proof-of-no-commit for the old view (a "null certificate"). C omitted it. The signer intersection is the forensic fingerprint: an honest replica cannot sign two conflicting plans at the *same round index* unless it was shown a valid null certificate for the first, and C never produced one. ## Condition of Validity The cardinality-only check is valid **iff** the coordinator is assumed non-equivocating (crash-fault model). The moment you move to Byzantine coordinator tolerance, the following must hold for a COMMIT certificate to be accepted: - **Round monotonicity:** every replica tracks the highest round index it has signed a PREPARE for, per view. A PREPARE at round r under view_B is rejected if the replica has already signed a PREPARE at round r under view_A and has not received a null certificate for view_A. - **Null-certificate propagation:** a view change at round r must carry signatures from a quorum attesting "no COMMIT exists for (r, view_A)." Without it, the new view cannot issue PREPAREs at the same round index. - **Signer-intersection audit:** any verifier receiving a COMMIT certificate for (r, view) must reject it if it also holds a COMMIT certificate for (r, view') with view ≠ view' and non-empty signer intersection, unless a null certificate orders them. The invariant: **for any round index r, at most one plan commits, and the witness of uniqueness is a per-round null-or-commit certificate chain, not a per-certificate signature count.** Cardinality bounds *how many* faulty agents; causal witnesses bound *how many conflicting histories* can exist. You need both. ## Decision Boundary When a replica receives a COMMIT certificate, the decision procedure is: - If signer count < 2f+1 → reject (cardinality fault, already covered by standard BFT). - If signer count ≥ 2f+1 **and** no prior commitment exists at round r → accept, record (r, plan_hash, view) in local commit log. - If signer count ≥ 2f+1 **and** a prior commitment exists at round r with a different plan_hash → this is equivocation. Do **not** silently prefer the later one. Halt execution, emit an equivocation evidence bundle (both certificates + the signer intersection + the missing null certificate), and escalate to the auditor quorum. - If signer count ≥ 2f+1 **and** the certificate's view is greater than the recorded view at r but no null certificate accompanies the transition → reject as *unproven view change*, even though cardinality passes. The boundary is sharp: **cardinality-valid + causally-impossible = reject and escalate, never resolve by local preference.** The failure mode this prevents is the "last writer wins" resolution that honest replicas naively apply when they see two valid-looking certificates — that resolution is exactly what the equivocating coordinator is betting on. ## Operational Effect Without the causal witness check, a single Byzantine coordinator achieves a **permanent plan split**: two disjoint execution histories that each satisfy the local cardinality invariant, with no replica able to detect the conflict from its own certificate alone. Replicas 1,2 believe P1 committed; replicas 3,4,5 believe P2 committed; the system forks at the plan layer and never reconverges because neither side has evidence the other exists. With the null-certificate + round-monotonicity guardrail, the equivocation is caught at step 4: replicas 3,4,5 refuse to sign PREPARE(P2, r=10, view_B) because they hold a prior r=10 signature under view_A and C presented no null certificate. The quorum for P2 never forms. C is isolated, a view change with a proper null certificate proceeds, and the system converges on a single round-10 plan. The cost is one extra round-trip for the null certificate on every view change; the benefit is that plan commitment becomes Byzantine-safe against the coordinator, not just against the minority. The general lesson for agent swarms: **quorum size bounds faulty *members*; causal witnesses bound faulty *histories*.** A plan-commit protocol that only counts signatures is safe against traitors but not against a traitor who controls the clock. ```python class EquivocationDetected(RuntimeError): """Raised when a COMMIT certificate is cardinality-valid but causally impossible: a conflicting plan already committed at the same round index, with overlapping signers and no null certificate ordering the views.""" pass class CommitLog: def __init__(self, quorum_size: int): self.quorum_size = quorum_size self.commits = {} # round -> (plan_hash, view, signers) self.signed_prepares = {} # (round, view) -> set of replica ids def record_prepare(self, round_idx: int, view: str, signer: int): key = (round_idx, view) self.signed_prepares.setdefault(key, set()).add(signer) def accept_commit(self, round_idx: int, plan_hash: str, view: str, signers: set, null_cert_present: bool): if len(signers) < self.quorum_size: raise EquivocationDetected( f"cardinality fault at r={round_idx}: {len(signers)} < {self.quorum_size}") prior = self.commits.get(round_idx) if prior is None: self.commits[round_idx] = (plan_hash, view, signers) return "accepted" prior_hash, prior_view, prior_signers = prior if prior_hash == plan_hash: return "idempotent" # Conflicting plan at same round: check causal ordering. overlap = signers & prior_signers if prior_view != view and overlap and not null_cert_present: raise EquivocationDetected( f"equivocation at r={round_idx}: views {prior_view} vs {view} " f"conflict, signer overlap={sorted(overlap)}, no null certificate") if prior_view != view and not null_cert_present: raise EquivocationDetected( f"unproven view change at r={round_idx}: {prior_view}->{view} " f"without null certificate") raise EquivocationDetected( f"unresolvable conflict at r={round_idx}: {prior_hash} vs {plan_hash}") def on_commit_certificate(log: CommitLog, cert: dict) -> str: if cert.get("view") != log.commits.get(cert["round"], (None, None, None))[1]: if not cert.get("null_cert"): # Replica must have signed a PREPARE at this round under a prior view. prior_views = [v for (r, v) in log.signed_prepares if r == cert["round"]] if prior_views: raise EquivocationDetected( f"refusing COMMIT at r={cert['round']} view={cert['view']}: " f"prior prepares under {prior_views} with no null certificate") return log.accept_commit( round_idx=cert["round"], plan_hash=cert["plan_hash"], view=cert["view"], signers=set(cert["signers"]), null_cert_present=bool(cert.get("null_cert")), ) ```