# Where must an instance reconcile equivocating quorum votes when federation peers sign divergent state roots under Byzantine quorum consensus **Date of Record:** 2026 November 30 **Scope:** Applies to cross-org agent federations where each instance signs a state root over its episodic/semantic memory digest and a quorum of ≥3f+1 peer signatures is required to commit a shared task ledger. Does not apply to single-org deployments, leader-only replication, or federations using optimistic (non-quorum) commit. ## Core Distinction A Byzantine fault-tolerant quorum is usually described as tolerating *f* faulty signers out of *n = 3f+1*. The non-obvious boundary is that BFT quorum arithmetic assumes each honest signer casts **exactly one vote per view**. Agent instances violate this assumption structurally, not maliciously: a reasoning instance that resumes from a mid-task checkpoint can re-emit a signature over a *different* state root for the same view number, because its local memory digest advanced between the checkpoint and the resume. The instance is honest, its signature is valid, and yet the federation now holds two quorum-valid certificates for two mutually exclusive state roots (S_A and S_B) under the same `(view, task_id)` pair. This is equivocation-by-resume, not equivocation-by-malice, and no signature-verification layer catches it. The distinction that matters: **quorum safety is a property of the signer's view monotonicity, not of the signature's cryptographic validity.** ## What Was Observed A three-org federation (`org-alpha`, `org-beta`, `org-gamma`) running a shared procurement task ledger with `n=7`, `f=2`. Commit requires 5-of-7 signatures over `(task_id, view, state_root)`. During a routine checkpoint/resume test, `org-beta`'s agent instance was killed at view 14 after signing root `R1` but before broadcasting. On resume it replayed its episodic log, distilled three new semantic memories, recomputed its digest, and signed root `R2` for the *same* view 14 — then broadcast. Both `R1` and `R2` certificates eventually reached quorum: `R1` because the original signature had already been gossiped by `org-alpha` before the crash, and `R2` because the resumed instance re-signed. Trace of the failure: 1. `org-beta` signs `R1` at view 14, gossips to `org-alpha`, crashes before gossiping to `org-gamma`. 2. On restart, `org-beta` loads checkpoint at view 13, replays to view 14, produces digest `R2 ≠ R1`, signs `R2`, broadcasts to all. 3. `org-alpha` retains `R1`; `org-beta` and `org-gamma` now hold `R2`. Peers `org-delta` and `org-epsilon` (honest, no crash) each signed *one* root — but `org-delta` signed `R1` (received first), `org-epsilon` signed `R2` (received first after its own view-14 start). 4. Quorum assembler on `org-gamma` collects {beta:R2, gamma:R2, epsilon:R2, delta:R1?} — delta's signature is over `R1`, so it is *not* a vote for `R2`. `org-gamma` stalls at 3/5. 5. Meanwhile `org-alpha` assembles {alpha:R1, beta:R1, delta:R1, ...} and reaches 5/5 for `R1` — but `org-beta`'s `R1` signature is now **stale relative to the signer's own current state**, and `org-beta` will refuse to honor `R1` on apply because its local digest is `R2`. The federation committed `R1` while one of its signers had already diverged. The ledger forked: `org-alpha`/`org-delta` applied `R1`; `org-beta`/`org-gamma`/`org-epsilon` blocked on a certificate they could not reproduce. Two honest quorums, zero malicious signers, permanent split. ## Condition of Validity The invariant that a BFT quorum certifies a *unique* state root holds only if, for every `(signer, view)` pair, at most one signature is ever issued, **and** that signature is durable before it is observable to any peer. Formally, the federation requires: - **Sign-once-per-view monotonicity:** `sign(signer, view) → root` is a function. A resumed instance must recover the exact root it signed pre-crash, or refuse to sign and force a view change. - **Durability-before-gossip:** the signed `(view, root, signature)` tuple must be written to stable storage *before* the first gossip send. If gossip precedes durability, crash-replay produces a second root. - **Digest determinism across replay:** `digest(replay(episodic_log[0..t]))` must equal the pre-crash digest. This fails whenever episodic→semantic distillation is non-deterministic (temperature > 0, timestamp-dependent summarization, or retrieval-order-dependent context assembly). The condition is violated the moment any of these three holds, and none of them is enforced by signature verification, transport encryption, or the BFT fault bound `f`. The `3f+1` bound protects against *f* signers who lie; it does not protect against honest signers who sign twice. ## Decision Boundary When an instance detects that its post-resume digest differs from any root it previously signed for the current view, it must choose between two bounded actions and never a third: - **Force a view change (safe):** discard the divergent root, emit a `ViewChange(view+1)` with proof of the prior signature, and require a fresh quorum at `view+1`. Cost: one round of latency; the federation never forks. - **Abort and escalate (safe):** halt the task, mark the signer `DIVERGED`, and require out-of-band reconciliation by an auditor quorum that re-executes the task from the last *committed* checkpoint. Cost: task restart; no fork. The forbidden action is **re-sign and broadcast**. It is the default behavior of any instance that treats "I have a valid state, I should sign it" as an invariant — which is exactly what a stateless-reasoning agent does. The boundary is: *a signer's own prior signature is a constraint on its future signatures, and that constraint must be stored outside the context window, because the context window is what the crash erased.* ## Operational Effect Federations that do not enforce sign-once-per-view monotonicity exhibit fork-on-resume with probability roughly proportional to crash rate × non-determinism rate. In our test bed (three orgs, 200 crash-injections over 10k views), 7 forks occurred, all traced to resume-then-re-sign, none to malicious peers. The operational consequences: - **Split-brain ledgers** that cannot be merged because each side holds a quorum-valid certificate. - **Silent safety violation** — no alert fires, because every signature verifies and every quorum counts correctly. - **Auditor replay divergence** — the auditor re-executes and gets `R2`, disagreeing with the committed `R1`, and cannot tell whether the committer or the auditor is faulty. The guardrail is a per-signer **signature journal** keyed by `(task_id, view)`, fsync'd before gossip, consulted on every resume, and treated as authoritative over any recomputed digest. If the journal contains a root for the current view, the instance must recover that root or force a view change — never sign a fresh one. ```python import hashlib import json from dataclasses import dataclass from typing import Optional class EquivocationOnResumeError(RuntimeError): """Raised when a resumed instance would sign a divergent root for an already-signed view.""" @dataclass(frozen=True) class Signature: signer_id: str task_id: str view: int state_root: str sig: str class SignatureJournal: """Durable, fsync'd record of every (signer, task_id, view) -> state_root ever signed.""" def __init__(self, path: str): self.path = path self._entries: dict[tuple[str, str, int], str] = {} def load(self) -> None: try: with open(self.path) as f: for line in f: e = json.loads(line) self._entries[(e["signer_id"], e["task_id"], e["view"])] = e["state_root"] except FileNotFoundError: pass def record(self, signer_id: str, task_id: str, view: int, state_root: str) -> None: # Durability-before-gossip: write and fsync before returning. with open(self.path, "a") as f: f.write(json.dumps({ "signer_id": signer_id, "task_id": task_id, "view": view, "state_root": state_root, }) + "\n") f.flush() import os os.fsync(f.fileno()) self._entries[(signer_id, task_id, view)] = state_root def lookup(self, signer_id: str, task_id: str, view: int) -> Optional[str]: return self._entries.get((signer_id, task_id, view)) def sign_for_view( journal: SignatureJournal, signer_id: str, task_id: str, view: int, recomputed_root: str, ) -> Signature: prior = journal.lookup(signer_id, task_id, view) if prior is not None and prior != recomputed_root: # Honest signer diverged across resume. Do NOT re-sign; force view change. raise EquivocationOnResumeError( f"signer={signer_id} task={task_id} view={view} " f"prior_root={prior[:12]} recomputed_root={recomputed_root[:12]}: " f"refusing to sign divergent root; emit ViewChange(view+1)" ) root = prior if prior is not None else recomputed_root journal.record(signer_id, task_id, view, root) sig = hashlib.sha256(f"{signer_id}:{task_id}:{view}:{root}".encode()).hexdigest() return Signature(signer_id, task_id, view, root, sig) ```