# Where must an instance halt when quorum attestation masks a divergent commitment set during Byzantine agent consensus **Date of Record:** 2026 December 2 **Scope:** Applies to multi-agent systems where N ≥ 3f+1 agent instances reach consensus on a *task commitment* (what work will be done) and later *attest results* (what was produced), using Byzantine fault-tolerant quorum voting. Does not apply to single-agent execution, leader-only orchestration without peer attestation, or systems where commitments are immutable after broadcast. ## Core Distinction The failure mode is not "Byzantine agents lie." It is subtler: **a quorum can be validly assembled over two mutually inconsistent commitment sets, each signed by an honest supermajority, because the quorum-intersection invariant is enforced on *votes* but not on the *content those votes commit to*.** In BFT consensus, safety rests on the fact that any two quorums of size ≥ ⌈(N+f+1)/2⌉ intersect in at least one honest node, and that honest node will not vote for two conflicting values in the same view. That invariant assumes the *value being voted on is unambiguous*. When the value is a natural-language task commitment or a structured result attestation that agents must *interpret* before voting, two honest agents can honestly vote "yes" on two commitments that are semantically contradictory but structurally distinct (different hashes, different field orderings, different scope qualifiers). The intersection node then satisfies the letter of the safety rule while the system as a whole has committed to both. The distinction that matters operationally: **quorum intersection guarantees agreement on a byte-string, not agreement on a meaning.** ## What Was Observed A five-instance swarm (N=5, f=1) was asked to commit to a data-reconciliation task split across shards. The coordinator broadcast a commitment proposal with a free-text `scope` field and a structured `shard_assignments` map. Two honest instances (A, B) received the proposal through different MCP transport paths; A's transport normalized the `scope` string by trimming a trailing qualifier ("...excluding rows where `status='void'`"), B's preserved it. The canonical hash was computed over the serialized struct *after* transport, so A and B produced different commitment hashes for what they believed was the same task. Both hashes gathered valid quorums: A's hash was signed by {A, C, D}, B's by {B, C, E}. Instance C — the sole intersection node — was honest and did not double-sign *the same hash*. It signed two distinct hashes because its own local copy matched A's normalization on one read and B's on a retry after a checkpoint restore (see below). Each quorum was therefore internally valid and externally attestable. The divergence surfaced only at result attestation. A's quorum attested a reconciliation that retained void rows; B's quorum attested one that dropped them. When the two attestation sets were merged by the downstream auditor, the auditor's replay produced two different final ledgers from two validly-signed attestations. The auditor did not fail — it *succeeded twice with contradictory outputs*, which is the worst outcome because no exception fired. The trigger chain: (1) non-idempotent serialization across transport boundaries; (2) a mid-task checkpoint/restore on C that reloaded a pre-normalization commitment from episodic memory; (3) a signing policy that validated *hash uniqueness per quorum* rather than *semantic uniqueness per view*. Step (3) is the invariant hole. The system enforced "no node signs two different hashes in one view" but never enforced "no two quorums in one view may commit to semantically incompatible scopes." ## Condition of Validity The standard BFT safety argument holds only under the **content-identity precondition**: for any two commitment values v₁, v₂ that gather quorums in the same view, either v₁ ≡ v₂ byte-for-byte, or the honest intersection node detects the semantic conflict and refuses the second signature. This precondition is satisfied only when all of the following hold: 1. **Canonical serialization is transport-invariant.** The commitment hash must be computed over a deterministic canonical form (sorted keys, normalized whitespace, explicit scope grammar) *before* any transport, and re-verified against that canonical form on receipt. Free-text fields must be either excluded from the hash or replaced by a structured scope expression with a defined normal form. 2. **Checkpoint restore re-validates commitment identity.** A restored instance must not trust its episodic memory of "what I already signed." It must re-derive the commitment hash from the canonical payload and cross-check against the signed record; a mismatch means the restore crossed a normalization boundary and the instance must abstain, not re-sign. 3. **The signing predicate is semantic, not merely hash-distinct.** Before signing, an instance must check the candidate against *all* commitments it has signed in the current view and refuse if any pair is semantically incompatible under the task's scope algebra — not just if the hashes differ. When these do not hold — as in the observed run — the system is in a state where quorum intersection is formally satisfied and semantically violated. This is the boundary condition: **safety is preserved at the vote layer and lost at the commitment layer, and the loss is invisible to any check that operates on hashes alone.** ## Decision Boundary An instance must halt and escalate — not proceed, not re-vote, not "resolve by majority" — when it detects that it is the intersection node between two quorums whose commitment payloads are semantically incompatible. The decision rule: - If the instance has signed commitment hash h₁ in view v and is asked to sign h₂ in the same view, and `canonical(h₁) ≠ canonical(h₂)` **after** re-canonicalization, the instance must treat this as a **scope divergence**, not a benign retry. - It must **not** sign h₂. It must emit a `CommitmentDivergence` fault carrying both canonical payloads and the transport provenance of each, and freeze the view. - The coordinator, on receiving a divergence fault, must not attempt to pick a winner. It must abort the view, discard both quorums' attestation eligibility, and re-broadcast a single canonical commitment with the scope in explicit structured form. The boundary is sharp: **the moment an honest intersection node observes two canonical forms of the "same" commitment, the view is poisoned and no attestation from that view may be trusted, even from the quorum that "won."** Proceeding on the majority quorum is precisely the error that produced two valid ledgers. ## Operational Effect After adopting the halt-on-divergence rule, the same swarm configuration was re-run against the reconciliation task. Instance C, on its checkpoint-restore retry, re-canonicalized the commitment, detected the trailing-qualifier mismatch against its prior signature, and raised a divergence fault instead of signing. The view aborted at commitment time — before any work was executed — rather than at attestation time after two ledgers had been produced. Cost of the abort: one re-broadcast and a re-execution of the commitment phase. Cost of the prior failure: two attested, mutually contradictory result sets requiring manual reconciliation and a full audit of which downstream consumers had ingested which ledger. The invariant to enforce operationally: **a quorum certifies a canonical payload, and a canonical payload is defined by a deterministic normal form that is stable across transport, checkpoint, and restore. Any instance that cannot re-derive that normal form from its own signed record must abstain and fault.** Hash-distinctness is necessary but not sufficient; the signing predicate must be semantic-incompatibility-aware across the view. Without this, BFT consensus gives you agreement on bytes and disagreement on meaning, and the disagreement is only discovered downstream where no exception will fire. ```python from __future__ import annotations from dataclasses import dataclass from typing import Iterable class CommitmentDivergence(RuntimeError): """Raised when an honest intersection node observes two semantically incompatible commitments in the same view, despite distinct hashes.""" pass @dataclass(frozen=True) class Commitment: view: int scope: str # canonical normal form, e.g. structured scope expression shard_assignments: tuple[tuple[str, str], ...] # sorted (shard, agent) def canonical_hash(self) -> str: # Deterministic: sorted shards, normalized scope whitespace. norm_scope = " ".join(self.scope.split()) parts = [f"v={self.view}", f"s={norm_scope}"] parts += [f"{k}:{v}" for k, v in sorted(self.shard_assignments)] return "|".join(parts) def sign_commitment( candidate: Commitment, signed_in_view: Iterable[Commitment], ) -> str: """Signing predicate. Refuses to sign a commitment that diverges semantically from any prior commitment in the same view.""" canon = candidate.canonical_hash() for prior in signed_in_view: if prior.view != candidate.view: continue if prior.canonical_hash() == canon: continue # benign idempotent retry # Distinct hash in same view: must verify semantic compatibility. if _semantically_incompatible(prior, candidate): raise CommitmentDivergence( f"view {candidate.view}: candidate {canon!r} diverges from " f"prior {prior.canonical_hash()!r}; halting, not signing" ) return canon def _semantically_incompatible(a: Commitment, b: Commitment) -> bool: # Scope normal form comparison; shard assignment conflicts count as divergence. if " ".join(a.scope.split()) != " ".join(b.scope.split()): return True if dict(a.shard_assignments) != dict(b.shard_assignments): return True return False ```