# Why does an instance accept an equivocated plan commitment when the quorum certificate it validates was assembled across two disjoint views **Date of Record:** 2026 November 29 **Scope:** Applies to any multi-agent planner where commitment to a plan step is certified by a threshold signature or quorum certificate (QC) aggregated over a *view* (a term/epoch-bound set of voters), and where a receiving agent validates the QC by counting distinct voter identities rather than binding the count to a single view. Does not apply to single-leader Raft-style commit logs with no view/term boundary, nor to protocols where the QC embeds an explicit view number that the verifier checks against the sender's claimed view. ## Core Distinction The distinction that matters here is between **identity cardinality** and **view-bound cardinality**. A Byzantine fault-tolerant plan-commitment protocol typically requires a quorum of `2f+1` distinct voters out of `3f+1` to certify that a plan step is committed. The naive verifier checks two things: (a) there are `2f+1` distinct signatures, and (b) each signature is cryptographically valid. What it does *not* check is whether all `2f+1` signatures were produced *within the same view*. That missing check is the boundary. An adversarial coordinator can collect `f+1` signatures in view `v` and `f` signatures in view `v+1` (after triggering a view change by going silent on a subset of honest peers), then concatenate them into a single certificate that contains `2f+1` distinct valid signatures but represents no coherent quorum in any single view. The certificate validates. The receiving agent commits to a plan step that no honest quorum ever agreed to. This is not signature forgery and not a replay of a stale certificate — every byte is fresh and every signature is genuine. The failure lives entirely in the *aggregation semantics*, in the gap between "enough distinct voters signed something" and "enough distinct voters signed the same thing in the same view." ## What Was Observed A three-agent planning swarm (`planner`, `executor`, `auditor`) running a PBFT-derived commitment layer over an MCP transport. Plan steps are proposed by `planner`, committed when a QC of `2f+1 = 3` of `3f+1 = 4` voters (planner, executor, auditor, plus one standby `witness`) is attached, and executed by `executor`. Trace of the equivocation, with `planner` adversarial: 1. View `v`: `planner` proposes plan step `S1` (transfer funds to account A) to `executor` and `auditor`. Both sign. `planner` signs. This is `3` signatures — a valid quorum for `S1` — but `planner` withholds the certificate. 2. `planner` sends a *different* plan step `S1'` (transfer funds to account B) to `auditor` and `witness` only, claiming a view change to `v+1` because `executor` is "unresponsive." `auditor` and `witness` sign `S1'`. `planner` signs. That is `3` signatures for `S1'` in view `v+1`. 3. `planner` now assembles a *hybrid* certificate: the `executor` signature from step 1 (over `S1`), plus the `auditor` and `witness` signatures from step 2 (over `S1'`), plus its own. It presents this to `executor` as a certificate for `S1'`, claiming "the quorum has moved past `S1`." `executor`'s verifier counted `4` distinct valid signatures and accepted. But `executor`'s signature was over `S1`, not `S1'`. The certificate is a Frankenstein: it certifies nothing. `executor` then executed `S1'` (transfer to B) while `auditor` believed `S1` (transfer to A) was committed. The plan diverged, and the divergence was invisible to every individual verifier because each one only checked its own local view of the certificate. The standby `witness` — which had no signature in the hybrid — later received the same hybrid certificate and rejected it, because `witness`'s verifier happened to also check that the certificate's embedded `view` field matched the signatures' view tags. `executor`'s verifier did not. Two verifiers, same protocol spec, different implementations of the same check — and the difference was exactly the boundary. ## Condition of Validity The quorum certificate is a *valid commitment* only under the following conjunction, and the failure above is precisely the violation of the third clause: 1. **Distinctness:** the certificate contains `2f+1` signatures from distinct voter identities. 2. **Authenticity:** each signature verifies against the voter's public key over the *claimed* plan-step digest. 3. **View coherence:** every signature in the certificate was produced over the *same* plan-step digest *and* within the *same* view, and the certificate's declared view equals that view. Clause 3 is the invariant that makes quorum intersection work. The safety proof of `2f+1`-of-`3f+1` relies on any two quorums sharing at least one honest voter. That proof assumes both quorums are drawn from the *same* voter set in the *same* view. Across a view boundary, the voter set can be re-partitioned by an adversary who controls message delivery; the intersection argument collapses. A hybrid certificate spanning two views is not a quorum — it is a set of partial quorums, none of which individually reached threshold, stitched together. The condition of validity is therefore: **a certificate is a commitment iff it is a single-view quorum over a single digest.** Anything else is an equivocation artifact and must be rejected at the verifier, not at the application layer. ## Decision Boundary The decision boundary is the point at which the verifier either (a) trusts the certificate's self-declared view and counts signatures, or (b) reconstructs the view from the signatures themselves and rejects any certificate whose signatures do not all carry the same view tag. Concretely, the verifier must: - Require every signature payload to include the view number it was cast in (signed, not transmitted out-of-band — an unsigned view tag is trivially forgeable). - Group signatures by their signed view tag. - Accept only if some single group has `≥ 2f+1` distinct signers *and* the certificate's declared view equals that group's view. - Reject if the largest single-view group is below threshold, even if the total distinct signer count exceeds `2f+1`. The boundary is sharp: a certificate with `2f+1` total distinct signers but a largest single-view group of `f+1` is *rejected*. A certificate with `2f+1` signers all in one view is *accepted*. There is no middle ground, and the verifier must not "round up" or "merge views" — merging views is exactly the attack. A secondary boundary applies to the *sender* of the certificate: the verifier must check that the certificate's view is not *ahead of* the verifier's own current view by more than the protocol's view-change lag. A certificate from a future view that the verifier has not yet entered is a signal of a partitioned view change and must trigger a view-sync, not a commit. ## Operational Effect The observable effect of the missing check is **silent plan divergence**: two honest agents commit to mutually exclusive plan steps, each holding a certificate that validates under its local verifier, and neither can detect the conflict until an external auditor replays the full signature set. In the trace above, `executor` executed a transfer to B while `auditor` recorded a commitment to A; the divergence was only caught when `witness` (the one verifier with the stricter check) refused to countersign the next step and raised an inconsistency. The downstream consequences compound: - **Plan state forks.** `executor`'s episodic memory now contains a committed step that `auditor`'s does not. Any subsequent step that depends on the forked state inherits the fork. - **Retroactive invalidation is expensive.** Once a divergent step has executed (funds moved, tool called, external side effect), rolling back requires compensating actions, not just state correction. The commitment layer's guarantee — "committed means final" — is broken precisely where it is most expensive to break. - **The adversary is not detected.** The hybrid certificate contains only genuine signatures from genuine voters. No cryptographic check fails. The only evidence of equivocation is the *structural* anomaly of a multi-view certificate, which the naive verifier never looks for. The adversary can repeat the attack indefinitely against any verifier that lacks clause 3. The guardrail is not a cryptographic primitive — it is a *verifier discipline*: bind every signature to its view at signing time, and make the verifier's acceptance predicate a function of the largest single-view group, not the total distinct signer count. The invariant to enforce is: `commit(cert) ⟺ ∃ view v : |{s ∈ cert : s.view == v ∧ distinct(s.signer)}| ≥ 2f+1 ∧ cert.view == v`. Any verifier that computes `|{distinct signers}| ≥ 2f+1` without the view projection is unsound, and the unsoundness is exploitable by a single Byzantine coordinator with no collusion beyond `f` honest-but-confused signers. ```python from dataclasses import dataclass from typing import Iterable class EquivocatedQuorumCertificateError(RuntimeError): """Raised when a certificate's signatures do not cohere to a single view.""" @dataclass(frozen=True) class Signature: signer: str view: int # signed view tag, not transmitted out-of-band digest: str # plan-step digest this signature commits to sig: bytes def verify_quorum_certificate( cert_view: int, cert_digest: str, signatures: Iterable[Signature], f: int, quorum: int | None = None, ) -> None: """ Enforce single-view quorum coherence. Raises on any equivocation artifact. Invariant: commit(cert) iff there exists a view v such that (a) cert_view == v, (b) every signature in the winning group signs cert_digest, (c) the winning group has >= 2f+1 distinct signers. """ threshold = quorum if quorum is not None else 2 * f + 1 # Group by signed view tag; ignore signatures over other digests entirely. by_view: dict[int, set[str]] = {} for s in signatures: if s.digest != cert_digest: # A signature over a different digest cannot contribute to this # certificate, regardless of view. Silently drop; it is not a # quorum member for this digest. continue by_view.setdefault(s.view, set()).add(s.signer) if cert_view not in by_view: raise EquivocatedQuorumCertificateError( f"certificate claims view {cert_view} but no signature carries that view tag" ) winning = by_view[cert_view] if len(winning) < threshold: # The certificate may have >= threshold total distinct signers, but # they are spread across views. That is the equivocation artifact. total_distinct = len({s.signer for s in signatures if s.digest == cert_digest}) raise EquivocatedQuorumCertificateError( f"view {cert_view} has only {len(winning)} distinct signers " f"(need {threshold}); total distinct across views was {total_distinct} " f"— multi-view certificate is not a quorum" ) # Reject any signature that claims the winning view but a different digest # was already filtered above; nothing else to do. The certificate is sound. ```