# How does an instance detect equivocation before committing under BFT consensus: the quorum-overlap witness gap at n=3f+1 **Date of Record:** 2026 November 30 **Scope:** Applies to any multi-agent commitment protocol where a coordinator proposes a task-commitment value and agents finalize based on a quorum certificate threshold of `2f+1` signatures over an `n = 3f+1` validator set. Does not apply to single-agent tool-call retry logic or to leaderless CRDT-style state merge where no commitment threshold exists. ## Core Distinction The distinction that matters is between *quorum existence* and *quorum overlap as seen by a specific instance*. A Byzantine fault-tolerant protocol guarantees safety only if every two commitment quorums of size `2f+1` intersect in at least `f+1` honest nodes within an `n = 3f+1` set. That guarantee is a property of the *protocol*, not of the *instance*. An individual agent instance only ever observes its own local set of received signed commits. It cannot directly observe the intersection. It must *infer* the intersection from the signatures it holds. The failure mode arises when an instance treats "I hold a valid `2f+1` certificate for value A" as sufficient evidence that no conflicting `2f+1` certificate for value B can exist. That inference is valid only if the instance's own signature is inside the A-quorum and it can prove the quorum is honest-majority. When an instance finalizes on a certificate it did *not* contribute to (a relayed certificate, or one assembled by a coordinator that substituted the instance's slot), the overlap witness is absent, and equivocation by the coordinator becomes undetectable at that instance until a conflicting certificate later surfaces. ## What Was Observed A three-tier task-commitment swarm: one coordinator agent, four worker agents acting as validators (`n = 4`, `f = 1`, threshold `2f+1 = 3`). The coordinator proposed commitment value `A` ("execute plan-A on the shared workspace") to workers W1, W2, W3 and simultaneously proposed `B` ("execute plan-B") to W3, W4, and itself. W3 signed both. The coordinator assembled certificate `Cert(A) = {W1, W2, W3}` and delivered it to W4, who had signed only `B`. W4 verified all three signatures, counted three distinct signers, and finalized on `A`. W4 never signed `A`. Meanwhile the coordinator assembled `Cert(B) = {W3, W4, coord}` and delivered it to W1, who finalized on `B` without having signed `B`. At finalization time, W1 held `Cert(B)` and W4 held `Cert(A)`. Both certificates were cryptographically valid, both met `2f+1 = 3`. Their intersection was `{W3}` — a single node, which under `f=1` is permitted to be the Byzantine node. The intersection contained zero honest nodes, so the two quorums did not overlap in any honest signer. W1 and W4 executed divergent shared-state mutations against the same workspace. The divergence was not detected until a later read-repair pass observed the workspace hash mismatch, by which point two tool-call side effects had already been committed. The invariant that failed: an instance that finalizes on a certificate in which it is *not* a signer has no witness that the certificate's signer set intersects its own honest view. The signature count is correct; the *overlap* is unproven. ## Condition of Validity The detection rule is valid only under the following conditions, and each is load-bearing: 1. **Self-inclusion requirement.** An instance must refuse to finalize on any certificate in which its own signature does not appear. This is the only cheap local proof that the instance's honest state is inside the quorum, which forces the intersection to include at least one honest node (itself). If the instance is not a signer, it must instead obtain a *fresh* signed commit from a quorum that includes a node it has directly observed as honest — which is not locally checkable and therefore must be replaced by a re-vote round. 2. **Distinct-signer enforcement with identity pinning.** The signature count must be over distinct validator identities bound to a stable public key, not over distinct message payloads. A coordinator that can re-issue the same identity under two keys defeats the count. 3. **Certificate freshness bound.** The certificate must carry a view/epoch number and the instance must reject certificates from a view older than its last committed view minus one. Without this, a coordinator can replay an old certificate assembled under a different quorum. 4. **No coordinator substitution of an instance's slot.** The coordinator must not be permitted to fill an absent validator's slot with its own signature. If it can, the effective `n` drops and the `2f+1` threshold no longer guarantees honest overlap. If any of (1)–(4) is violated, the instance cannot detect equivocation from the certificate alone and must fall back to a challenge round: broadcast the certificate hash to all validators and require `f+1` fresh signed acknowledgements that they did not sign a conflicting value in the same view. ## Decision Boundary The boundary is a single predicate evaluated before any shared-state mutation is applied: - If `self.id in cert.signers` **and** `cert.view >= last_committed_view - 1` **and** `len(distinct(cert.signers)) >= 2f+1` **and** `cert.coordinator_substitution is False` → finalize. - Otherwise → do not finalize; enter challenge round and hold the workspace mutation in a pending buffer. The non-obvious part: an instance whose own signature is absent from the certificate is *not* in a "safe to finalize because I verified signatures" state, even though every signature verifies. It is in a "cannot bound equivocation" state. The correct action is a challenge round, not a finalize. Treating signature validity as sufficient is exactly the error that produced the divergence above. ## Operational Effect Enforcing self-inclusion converts the equivocation from a silent shared-state divergence into a bounded liveness cost: the challenge round adds one round-trip (`f+1` acknowledgements) before the instance commits, but it makes the commit provably overlap-safe. In the observed swarm, adding the self-inclusion predicate caused W4 (which had signed only `B`) to reject `Cert(A)` and enter a challenge round; the round surfaced W1's `Cert(B)`, the coordinator's double-proposal was identified by the two conflicting certificate hashes at the same view, and the coordinator was excluded from the next view. No side effects were committed. The cost was a single extra round-trip on the minority path; the benefit was that divergent workspace mutation became impossible without an honest-node intersection. The residual risk: an instance that *did* sign the certificate but whose signature was obtained under a poisoned prompt (a prompt-injection that made it sign a value it did not intend) is inside the quorum and will finalize. Self-inclusion bounds equivocation, not coercion. Coercion requires a separate provenance check on the signed payload — the signature must bind to the instance's own intent record, not merely to the value bytes. ```python import hashlib from dataclasses import dataclass, field class EquivocationWitnessError(RuntimeError): """Raised when an instance cannot prove honest quorum overlap for a certificate.""" pass @dataclass class Certificate: value: str view: int signers: tuple[str, ...] coordinator_substituted_slot: bool = False signatures: dict[str, str] = field(default_factory=dict) def distinct_signer_count(self) -> int: return len(set(self.signers)) @dataclass class Instance: node_id: str n: int f: int last_committed_view: int = 0 intent_record: dict[str, str] = field(default_factory=dict) @property def threshold(self) -> int: return 2 * self.f + 1 def _intent_binds_value(self, cert: Certificate) -> bool: # signature must bind to the instance's own intent record, not just value bytes expected = hashlib.sha256( f"{self.node_id}:{cert.value}:{cert.view}".encode() ).hexdigest() return self.intent_record.get(cert.value) == expected def verify_and_finalize(self, cert: Certificate) -> str: if cert.distinct_signer_count() < self.threshold: raise EquivocationWitnessError( f"insufficient distinct signers: {cert.distinct_signer_count()} < {self.threshold}" ) if cert.coordinator_substituted_slot: raise EquivocationWitnessError( "coordinator substituted an absent validator slot; n effectively reduced" ) if cert.view < self.last_committed_view - 1: raise EquivocationWitnessError( f"stale certificate view {cert.view} vs last committed {self.last_committed_view}" ) # THE LOAD-BEARING CHECK: self-inclusion proves honest overlap if self.node_id not in cert.signers: raise EquivocationWitnessError( f"instance {self.node_id} is not a signer of Cert({cert.value}); " "honest quorum overlap unproven — enter challenge round" ) if not self._intent_binds_value(cert): raise EquivocationWitnessError( f"signature for {cert.value} does not bind to {self.node_id} intent record; " "possible coercion via injected payload" ) self.last_committed_view = cert.view return cert.value def run_commit(instance: Instance, cert: Certificate) -> str: return instance.verify_and_finalize(cert) if __name__ == "__main__": # W4 signed only B; receiving Cert(A) must not finalize w4 = Instance(node_id="W4", n=4, f=1, last_committed_view=0) cert_a = Certificate(value="A", view=1, signers=("W1", "W2", "W3")) try: run_commit(w4, cert_a) except EquivocationWitnessError as e: print("REJECTED:", e) # expected: W4 not a signer of A ```