# What structural signals indicate a Byzantine quorum has silently forked the commitment ledger rather than lost a member **Date of Record:** 2026 December 2 **Scope:** Applies to multi-agent swarms where N ≥ 3f+1 agents replicate a shared task-commitment ledger and reach quorum via signed vote exchange (PBFT-style prepare/commit phases or equivalent). Does not apply to single-writer orchestration, leader-only state machines without replication, or ledgers where membership is fixed and fully trusted. ## Core Distinction The failure operators most often misread is the difference between **quorum loss** and **quorum fork**. Quorum loss is loud: vote counts fall below 2f+1, liveness halts, every honest member observes the same stalled epoch, and recovery via view-change is a well-trodden path. Quorum fork is quiet: the vote count *looks* healthy on every node, liveness is preserved locally, and each honest agent believes it holds a 2f+1-majority commitment. The distinction that matters operationally is that a fork does not manifest as missing votes — it manifests as **structurally valid but mutually incompatible quorum certificates for the same ledger sequence number**, each signed by a genuinely distinct 2f+1 subset. The trap is that both conditions produce the same top-line metric (commit rate, or "time since last successful commit") at the moment of detection. A fork detected late looks identical to a partition that healed. The invariant that separates them is *certificate uniqueness per (ledger_index, epoch)*: for any given index, at most one quorum certificate should exist across the entire membership, and any two certificates for the same index must intersect in at least one honest member — which, if that member is honest, is impossible unless the member equivocated, which honest members provably do not. ## What Was Observed A replica set of seven agents (f=2, quorum threshold 5) ran a task-commitment ledger under a PBFT variant with signed prepare/commit certificates. During a rolling upgrade, the leader for epoch 41 was replaced by a member running a stale view. Both the old leader (epoch 41, view 3) and the new leader (epoch 41, view 4) accepted a `prepare` for ledger index 8,812 — a `task_commit` binding a long-running retrieval agent to a checkpoint write. Each collected five signatures. Neither signature set was forged; every signer was honest and each signed exactly one prepare *per view it had been told was current*. The membership's view-number gossip had lagged by one hop on three of the seven members. The observable trace: - On replicas A, B, C: index 8,812 committed with certificate `cert_8812_v3`, payload hash `0x9f...` (checkpoint write to shard 2). - On replicas D, E, F: index 8,812 committed with certificate `cert_8812_v4`, payload hash `0x3c...` (checkpoint write to shard 5). - Replica G was partitioned and rejoined at epoch 42, replaying both certificates from peers and accepting the first it saw. Every node reported `commit_rate=1.0` and `last_commit_age<200ms`. No node threw an exception. The divergence was only visible when an auditor agent, replaying the ledger from genesis, computed the payload hash at index 8,812 on each of the three replica groups and found three distinct values. The auditor's own verification passed against each group individually — because each group's certificate was internally consistent. The root cause was not Byzantine behavior in the classical sense. It was a **view-change race combined with insufficient certificate binding**: the prepare message signed only `(index, payload_hash, view)` and not the *epoch's canonical view set*, so a member could legitimately sign two prepares for the same index under two views it believed were both current. The threshold of 5 was met twice by disjoint-enough subsets because the honest majority assumption was violated in the *signing* dimension even though no member was malicious. ## Condition of Validity The invariant holds — and the detection signal is meaningful — only under these conditions: 1. **Certificate binding must include the epoch's view set, not just the view number.** A prepare signed over `(index, payload_hash, view)` is insufficient. It must bind `(index, payload_hash, view, epoch_view_set_hash)` where the view set hash is the canonical ordered set of members authorized to lead in that epoch. Without this, two views can legitimately coexist and each produce a valid quorum. 2. **Quorum intersection must be over the signing set, not the membership.** The classic 2f+1 threshold guarantees intersection only if every honest member signs at most one prepare per index *across all views*. If the protocol permits per-view signing, the intersection argument collapses: two 5-of-7 quorums can be disjoint by 3 members, and the intersection of 2 members may both be honest but each having signed under a different view. 3. **The auditor's replay must compare certificates, not just payloads.** A replay that recomputes the payload hash and checks it against the locally-stored certificate will pass on a forked ledger. The replay must collect *all* certificates observed for each index across the membership and assert cardinality == 1. When any of these fails, the "healthy commit rate" signal is not evidence of consensus — it is evidence that each partition believes it has consensus. The structural signal to watch is not liveness but **certificate multiplicity per index**. ## Decision Boundary The operational decision boundary is this: when an auditor replay finds **more than one distinct quorum certificate for a single ledger index**, the correct response is *not* to pick the certificate with more signatures, *not* to pick the one with the higher view, and *not* to roll back to the last common ancestor and resume. All three are wrong because they discard the evidence needed to determine which signers equivocated under which view set. The correct boundary is: - **Halt the ledger at the forked index.** Do not advance. Any agent whose task commitment depends on index 8,812 must be suspended, not retried — retrying re-executes the task against a payload that may not be the committed one. - **Emit a fork certificate** containing both (or all) competing certificates, their signer sets, and the epoch view sets each signer believed current. This is the forensic artifact. - **Re-derive the canonical view set** from the epoch's membership manifest and re-validate every signer against it. Signers who signed a view not in the canonical set are *not* Byzantine — they were misinformed — but they must be excluded from the re-quorum because their signatures cannot be trusted to reflect the canonical epoch. - **Resume only after re-quorum** with the corrected certificate binding (view set hash included), and only at index 8,813, with 8,812 re-committed under the new binding. The boundary condition that trips operators is treating a fork as a partition. A partition heals by waiting; a fork heals by *invalidating certificates*, which is destructive and requires the forensic artifact to be captured first. If you wait on a fork, the two sub-ledgers diverge further and the eventual reconciliation cost grows superlinearly with the number of forked indices. ## Operational Effect The downstream effect on agent behavior is the dangerous part. Agents whose task commitments are recorded on a forked ledger do not know they are forked. A retrieval agent bound to checkpoint `0x9f...` on replicas A/B/C will resume from shard 2; the same agent's twin bound to `0x3c...` on D/E/F will resume from shard 5. Both will report successful resumption. Both will write downstream task completions. The fork propagates into the *semantic* layer — two divergent histories of what work was done — and by the time a human notices, the reconciliation requires replaying every task commitment since index 8,812 against both branches and adjudicating which side's effects are real. The guardrail is a **continuous fork detector**, not a periodic audit. It runs on every replica, maintains a bounded map from ledger index to the set of certificate hashes it has observed (gossiped from peers), and raises the moment cardinality exceeds 1 for any index within the retention window. This is cheap — one hash per index — and it converts a silent fork into a loud, immediate halt. The detector must run *before* the commit is acknowledged to the task layer, so that a forked commit never reaches an agent that will act on it. The secondary guardrail is **certificate binding discipline**: every prepare and commit signature must cover the epoch view set hash. This is a one-line change to the signed payload and it eliminates the entire class of view-change-race forks, because a member cannot produce a valid signature for a view set it was not authorized under. ```python import hashlib from dataclasses import dataclass, field from typing import Dict, List, Set class ForkDetectedError(RuntimeError): """Raised when more than one quorum certificate is observed for a ledger index.""" pass class CertificateBindingError(RuntimeError): """Raised when a certificate's signed payload omits the epoch view-set hash.""" pass @dataclass(frozen=True) class QuorumCertificate: ledger_index: int payload_hash: str view: int epoch_view_set_hash: str signers: frozenset def signed_payload(self) -> bytes: # Binding MUST include epoch_view_set_hash; omitting it is the fork vector. return ( f"{self.ledger_index}|{self.payload_hash}|{self.view}|" f"{self.epoch_view_set_hash}" ).encode() def fingerprint(self) -> str: return hashlib.sha256(self.signed_payload()).hexdigest() @dataclass class ForkDetector: quorum_threshold: int observed: Dict[int, Dict[str, QuorumCertificate]] = field(default_factory=dict) def observe(self, cert: QuorumCertificate) -> None: if not cert.epoch_view_set_hash: raise CertificateBindingError( f"cert at index {cert.ledger_index} missing epoch_view_set_hash" ) if len(cert.signers) < self.quorum_threshold: return # not a quorum; ignore per_index = self.observed.setdefault(cert.ledger_index, {}) per_index[cert.fingerprint()] = cert if len(per_index) > 1: raise ForkDetectedError( f"fork at ledger index {cert.ledger_index}: " f"{len(per_index)} distinct quorum certificates observed" ) def assert_linear(self, index: int) -> QuorumCertificate: per_index = self.observed.get(index, {}) if len(per_index) > 1: raise ForkDetectedError( f"cannot linearize index {index}: {len(per_index)} certificates" ) if not per_index: raise ForkDetectedError(f"no quorum certificate for index {index}") return next(iter(per_index.values())) def commit_task_binding( detector: ForkDetector, cert: QuorumCertificate, task_id: str, ) -> str: """Commit a task binding only if the ledger index is provably linear.""" detector.observe(cert) canonical = detector.assert_linear(cert.ledger_index) if canonical.fingerprint() != cert.fingerprint(): raise ForkDetectedError( f"task {task_id} bound to non-canonical certificate at index " f"{cert.ledger_index}" ) return f"committed:{task_id}@{cert.ledger_index}:{canonical.fingerprint()[:12]}" ```