# What structural signals indicate quorum-identity collapse when heterogeneous agents vote over semantic equivalence rather than byte equality **Date of Record:** 2026 November 22 **Scope:** Applies to BFT-style shared-state coordination among agents whose votes are semantic judgments (e.g., "is this task complete?", "is this artifact equivalent to spec?") rather than exact-value comparisons. Does not apply to quorums over byte-identical state roots or cryptographic hashes, where equivalence is decidable. ## Core Distinction Classical BFT consensus (PBFT, Tendermint, HotStuff) assumes that a "vote" is a deterministic function of a well-defined state: two honest replicas given the same input produce the same vote, and disagreement is attributable to faulty or Byzantine replicas. The quorum invariant is *agreement on value*: if 2f+1 replicas sign the same value, that value is safe. Heterogeneous agents break this assumption at a subtler layer. When the "value" being agreed upon is a semantic predicate — "the extracted table matches the source PDF," "this patch satisfies the failing test," "the summary preserves the claim" — honest agents can *legitimately* disagree because their tokenizers, retrieval contexts, and sampling temperatures differ. The vote is honest but non-deterministic. The dangerous boundary is not Byzantine lying; it is that the quorum threshold (2f+1) is computed over *replica identity* while the safety property depends on *semantic equivalence classes* of the voted value. When the number of distinct semantic equivalence classes among honest replicas exceeds f, the quorum can be satisfied by a set of votes that do not actually converge on one meaning. The quorum certifies agreement that does not exist. This is a structural failure, not a statistical one. No amount of retries fixes it, because the votes are already honest and already counted. ## What Was Observed A four-agent coordination ring (f=1, quorum=3) was asked to certify whether a retrieved chunk was "relevant to the query" before committing it to shared episodic memory. Each agent ran the same prompt against its own retrieval context. The commit required a 3-of-4 quorum certificate. Trace of a poisoned commit: 1. Agent A (context: full chunk) votes `RELEVANT` — the chunk does contain the answer. 2. Agent B (context: chunk truncated at 512 tokens by its own window budget) votes `NOT_RELEVANT` — the answer sentence fell off the end. 3. Agent C (context: full chunk, but its embedding retrieval pulled a *sibling* chunk) votes `RELEVANT` — it is voting on a different artifact entirely, yet the vote is honest. 4. Agent D (context: full chunk) votes `RELEVANT`. Quorum = 3. The certificate is issued. But A, C, and D are not in the same equivalence class: C voted on artifact `chunk-7b`, A and D on `chunk-7a`. The certificate attests to "3 replicas agree" while the actual semantic content of agreement is a 2-1 split across two different artifacts. Shared state is committed with a certificate that is *cryptographically valid and semantically false*. The signature verification passed. The hash of each vote matched. The quorum count was correct. Every layer that classical BFT checks was green. The invariant that failed — "the quorum voted on the same artifact" — was never encoded anywhere. ## Condition of Validity The 2f+1 safety argument holds only under the assumption that honest replicas receiving the same *logical* input produce votes over the same *value domain*. For heterogeneous semantic votes, this requires an additional invariant that classical BFT does not state: > **Quorum Identity Invariant (QII):** A quorum certificate is valid only if every vote in it carries a *content-addressed commitment* to the exact artifact the vote was rendered against, and all commitments in the certificate are byte-identical. Without QII, the certificate binds to replica identity, not to the object of judgment. With QII, a vote for `chunk-7b` cannot be counted toward a quorum for `chunk-7a` — the mismatch is detectable at certificate-assembly time, before commit. Two corollaries follow: - **Corollary 1 (context divergence is a first-class fault).** An agent whose context window truncates the artifact is not "honest but unlucky"; it is functionally Byzantine with respect to QII, because its vote cannot be attributed to the same artifact. It must be excluded from the quorum, not merely outvoted. - **Corollary 2 (f must be re-derived).** The fault bound `f` must count *distinct semantic equivalence classes among honest replicas*, not distinct faulty replicas. If k honest agents can disagree on the same input due to context divergence, the effective fault bound is `f_eff = f_byz + k`, and quorum must be `2(f_byz + k) + 1`. For the four-agent ring above, `f_eff = 2`, so quorum must be 5 — which the ring cannot supply, and the correct behavior is to *refuse to certify*, not to lower the bar. ## Decision Boundary The operational decision is: **when does a quorum certificate constitute proof of agreement, and when is it a count of signatures over a set of semantically disjoint claims?** The boundary is crossed the moment the voted value is not content-addressable in the certificate. Concretely: - **Below the boundary (safe):** votes carry `(artifact_hash, verdict, agent_id, context_digest)`, and the certificate assembler rejects any certificate whose votes do not share `artifact_hash`. Divergence in `context_digest` triggers escalation, not counting. - **At the boundary (ambiguous):** `artifact_hash` matches but `context_digest` differs. The agents saw the same bytes but different windows. This is the silent-failure zone: the certificate is well-formed and the votes are honest, but the verdicts may be over different *views* of the same artifact. Treat as `f_eff` increment, not as agreement. - **Above the boundary (unsafe):** votes carry only `(verdict, signature)`. The certificate is a signature count. It proves nothing about what was agreed. The guardrail is a **certificate-assembly predicate** that runs before commit and rejects any quorum whose votes are not drawn from a single equivalence class under `(artifact_hash, context_digest)`. This is a check on the *shape* of the certificate, not on the truth of any vote — it is decidable, cheap, and cannot be gamed by a Byzantine agent because it constrains the honest agents' own votes too. ## Operational Effect When QII is enforced, the failure mode changes from *silent false commit* to *loud quorum failure*, which is the correct trade. The system refuses to commit a poisoned chunk, surfaces a `QuorumIdentityCollapse` to the orchestrator, and the orchestrator's recovery path is to re-dispatch the judgment with a *normalized artifact view* — a canonical chunking that all agents receive — so that the next round's votes are drawn from a single equivalence class. The cost is throughput: heterogeneous agents whose contexts genuinely diverge will fail to reach quorum more often, and the system must either widen the quorum (raise `f_eff`) or normalize the input view (shrink `k`). The invariant does not eliminate the divergence; it makes the divergence *visible at the certificate layer* instead of *invisible in committed state*. That visibility is the entire safety property. A quorum that certifies a meaning no one agreed on is worse than no quorum at all, because the committed state carries a proof of consensus that will be trusted by every downstream consumer. ```python from dataclasses import dataclass from typing import Sequence class QuorumIdentityCollapse(RuntimeError): """Raised when a quorum certificate's votes do not share a single (artifact_hash, context_digest) equivalence class. The signatures are valid; the agreement they purport to certify does not exist.""" @dataclass(frozen=True) class SemanticVote: agent_id: str artifact_hash: str # content address of the object judged context_digest: str # digest of the exact view the agent saw verdict: str # e.g. "RELEVANT" / "NOT_RELEVANT" signature: bytes def assemble_certificate( votes: Sequence[SemanticVote], quorum: int, f_byz: int, ) -> SemanticVote: """Assemble a quorum certificate under the Quorum Identity Invariant. Rejects any certificate whose votes are not drawn from a single (artifact_hash, context_digest) equivalence class, and re-derives the effective fault bound from observed context divergence. """ if len(votes) < quorum: raise QuorumIdentityCollapse( f"insufficient votes: {len(votes)} < quorum {quorum}" ) classes = {(v.artifact_hash, v.context_digest) for v in votes} if len(classes) > 1: # Honest agents voted over different artifacts or different views. # Each extra class is an effective fault, not a Byzantine one. k = len(classes) - 1 f_eff = f_byz + k required = 2 * f_eff + 1 raise QuorumIdentityCollapse( f"votes span {len(classes)} semantic equivalence classes " f"(artifact,context)={sorted(classes)}; " f"f_eff={f_eff}, required quorum={required}, " f"available={len(votes)}. Refusing to certify agreement " f"that was never reached." ) # All votes share one class: the certificate attests to a real agreement. anchor = votes[0] agreeing = [v for v in votes if v.verdict == anchor.verdict] if len(agreeing) < quorum: raise QuorumIdentityCollapse( f"same class but verdict split: {len(agreeing)} agree on " f"{anchor.verdict!r}, quorum={quorum}" ) return anchor ```