# Where must an instance reject a Byzantine quorum that is arithmetically valid but temporally impossible **Date of Record:** 2026 November 29 **Scope:** Applies to orchestrators that commit side-effecting tool calls (writes, payments, deploys, file mutations) only after collecting signed attestations from a quorum of `N = 3f + 1` executor agents tolerating `f` Byzantine faults. Does not apply to read-only fan-out, single-writer serializable logs, or quorum schemes with a trusted coordinator that timestamps on behalf of peers. ## Core Distinction The distinction that matters is between **quorum cardinality** and **quorum causality**. Classic BFT safety reasoning treats a commit certificate as valid if it contains `2f + 1` distinct, correctly signed attestations over the same request digest. That is a cardinality check, and it is stateless. But an agent swarm is a distributed system whose participants have *causally ordered local reasoning histories*: each executor observes a tool call, reasons about it against its own context window, and emits an attestation that embeds a monotonically increasing local sequence number (`seq`) and the digest of the prior attestation it chained from (`prev`). A quorum certificate can therefore be arithmetically valid — `2f + 1` signatures, all verifying, all over the correct digest — while being *causally impossible*: the attestations describe an execution history that no single non-faulty executor could have produced, because the `prev`/`seq` chains of the signers do not interleave consistently. This is the boundary. A Byzantine executor that has been isolated long enough to fork its own local chain can manufacture a certificate that passes signature verification and cardinality checks but whose internal causal structure proves that at least `f + 1` signers are colluding or that one signer double-signed. The invariant the orchestrator must enforce is not "≥ `2f + 1` valid signatures" but "≥ `2f + 1` valid signatures whose `(prev, seq)` chains form a single causal history in which no two attestations from the same signer share a `seq`." ## What Was Observed An orchestration cluster of `N = 7` executors (`f = 2`) was committing `deploy.write` tool calls. Each executor signed `{request_digest, seq, prev, executor_id}` with its Ed25519 key. The commit gate required `2f + 1 = 5` valid signatures over `request_digest` and nothing else. During a partition that isolated executors `E3` and `E6` (both compromised, both running a forked local chain seeded from a stale snapshot taken at `seq = 4100`), the following sequence occurred: 1. The primary request `R` (digest `d_R`) was broadcast to all seven executors. 2. `E3` and `E6` had been partitioned for ~40 seconds and had advanced their *local* `seq` to 4140 and 4141 respectively, but their `prev` pointers still chained into the pre-partition history at `seq = 4100`. 3. `E3` and `E6` each emitted two attestations for `d_R` — one at their true `seq` and one at a *rolled-back* `seq` of 4101/4102, reusing their pre-partition `prev` digest. This is a classic equivocation, but the rolled-back attestations carried valid signatures. 4. The honest executors `E0, E1, E2, E4, E5` each emitted one attestation at `seq` 4138–4142. 5. The orchestrator collected five valid signatures over `d_R`: `E0, E1, E2, E3(rolled-back), E6(rolled-back)`. Cardinality satisfied. Commit fired. The certificate was arithmetically valid. It was causally impossible: `E3`'s rolled-back attestation chained from `prev = H(4100)` while `E0`'s chained from `prev = H(4137)`, and the two chains cannot both be on the same executor's history. The orchestrator had no causal validator, so it committed a `deploy.write` that the honest majority had *not* actually endorsed at the current epoch — `E0, E1, E2` were the only honest signers, which is `3 < 2f + 1 = 5`. The safety property was violated by a certificate that was 100% signature-valid. The observable symptom downstream was a **stale-write resurrection**: the committed `deploy.write` carried a payload derived from the `seq = 4100` snapshot, and it overwrote a config value that three honest executors had updated at `seq = 4135`. The write was acknowledged as "quorum-verified" and surfaced in the audit log as legitimate. ## Condition of Validity The cardinality check is sound only under the assumption that every signature in the certificate is drawn from a *distinct, non-equivocating* signer at a *current* sequence. That assumption fails whenever an executor can be partitioned long enough to advance its local chain past the point where the orchestrator's view of its `prev` pointer is stale. Formally, let `C` be a candidate certificate. Define `C` as **causally valid** iff: - `|C| ≥ 2f + 1`, all signatures verify over `d_R` (cardinality — necessary, not sufficient); - the set `{ (signer, seq) : attestation ∈ C }` has no duplicate `signer` (no equivocation within the certificate); - the multiset `{ prev : attestation ∈ C }` is consistent with a single linear history: for every pair of attestations `a, b ∈ C` with `a.seq < b.seq`, `a` is an ancestor of `b` in the chain defined by `prev` pointers (causal consistency); - every `seq` in `C` is `≥` the orchestrator's last-committed `seq` for that signer minus a bounded reordering window `W` (freshness — bounds how far a partitioned executor can roll back). The failure above satisfies (1) and (2) but violates (3) and (4). The invariant is: **a commit certificate is valid iff it is cardinality-valid AND causally-valid AND fresh.** Any validator that checks only (1) is exploitable by a single equivocating Byzantine executor plus `f` colluders, because equivocation lets one signer contribute the appearance of two distinct signers to the cardinality count while the honest signers number only `2f + 1 - f = f + 1`. ## Decision Boundary The orchestrator must decide, at commit time, whether to accept a certificate that passes cardinality but fails causality. The boundary is sharp: - **Reject** any certificate where the `prev`-chain graph has more than one root among attestations whose `seq` exceeds the freshness window `W`. This is the equivocation signature: two disjoint chains over the same request digest means at least one signer forked. - **Reject** any certificate containing an attestation whose `seq` is below the orchestrator's last-committed `seq` for that signer by more than `W`. A rolled-back `seq` is a replay attempt; the honest executor's chain has already advanced past it. - **Accept** a certificate whose `prev`-chain graph is a single tree rooted at the orchestrator's last-committed digest, even if individual attestations arrive out of order, provided all `seq` values are within `W` of the orchestrator's view. Reordering within `W` is normal; forking is not. The subtle case is **partial causality**: a certificate where `2f + 1` attestations form a valid chain but a `(2f + 2)`-th attestation in the same batch forks from an earlier point. The orchestrator must not silently drop the forking attestation and commit on the remaining `2f + 1` — that is exactly the equivocation the forking signer was attempting to hide. A forking attestation in a batch is *evidence of Byzantine behavior* and must trigger an accusation round, not a quiet truncation. The decision boundary is: **a single forking attestation invalidates the entire batch, regardless of whether the remaining attestations would independently satisfy cardinality.** ## Operational Effect Enforcing causal validity changes three operational properties: 1. **Commit latency becomes partition-sensitive.** The freshness window `W` is now a liveness parameter: too small, and honest executors under normal network jitter get their attestations rejected as stale; too large, and a partitioned Byzantine executor has a wider rollback window to exploit. The correct setting is `W ≥ 2 × p99 attestation propagation latency` and `W < partition detection timeout`, which in practice means the orchestrator must *measure* propagation latency continuously rather than hardcode `W`. 2. **Equivocation becomes detectable, not just tolerable.** Under pure cardinality checking, equivocation is invisible until it causes a safety violation. Under causal checking, the forked `prev` graph is a direct proof-of-misbehavior that can be submitted to the accusation protocol, slashing the signer. The orchestrator gains an accountability channel it did not have. 3. **The audit log must record the causal structure, not just the signature set.** A certificate that "passed quorum" is meaningless without the `(signer, seq, prev)` triples that prove *which* quorum. Post-hoc replay of a commit must re-run the causal validator against the recorded triples; if the validator would have rejected, the commit is flagged as a safety event even though it already executed. This is the only way to catch the class of failure described above after the fact, since the write has already landed. The residual risk is a Byzantine executor that equivocates *within* the freshness window `W` — forking at `seq` and `seq + 1` both inside `W`, so neither is "stale." Causal validation catches this (two attestations from the same signer with different `prev` at adjacent `seq` is a fork), but only if the orchestrator collects *both* attestations in the same batch. If the equivocating signer sends one attestation to the primary and one to a backup collector, the fork is split across two batches and neither batch sees it. The guardrail is therefore: **all attestations for a given `request_digest` must be routed to a single collector that sees the full batch before any commit decision.** Sharding attestation collection by `request_digest` hash is safe; sharding by signer is not. ```python import hashlib from dataclasses import dataclass from typing import Dict, List, Optional, Set class CausalQuorumError(RuntimeError): """Raised when a quorum certificate is cardinality-valid but causally impossible.""" pass @dataclass(frozen=True) class Attestation: signer: str seq: int prev: str # digest of prior attestation in this signer's chain request_digest: str signature_valid: bool @dataclass class OrchestratorView: last_committed_seq: Dict[str, int] last_committed_digest: str freshness_window: int def validate_quorum( cert: List[Attestation], view: OrchestratorView, f: int, ) -> None: """ Enforce cardinality AND causality AND freshness. Raises CausalQuorumError on the first invariant violation. """ # (1) Cardinality over distinct signers. signers: Set[str] = set() for a in cert: if not a.signature_valid: raise CausalQuorumError(f"invalid signature from {a.signer}") if a.signer in signers: # Same signer twice in one batch = equivocation evidence, not a # duplicate to be deduplicated. Reject the whole batch. raise CausalQuorumError( f"equivocation: {a.signer} appears twice in certificate batch" ) signers.add(a.signer) if len(signers) < 2 * f + 1: raise CausalQuorumError( f"cardinality {len(signers)} < 2f+1 = {2 * f + 1}" ) # (2) Freshness: no rolled-back seq beyond the reordering window. for a in cert: floor = view.last_committed_seq.get(a.signer, 0) if a.seq < floor - view.freshness_window: raise CausalQuorumError( f"stale seq from {a.signer}: {a.seq} < {floor} - W={view.freshness_window}" ) # (3) Causality: prev-chain must form a single tree rooted at the # orchestrator's last committed digest. Any second root among # attestations above the freshness floor is a fork. roots: Set[str] = set() for a in cert: floor = view.last_committed_seq.get(a.signer, 0) if a.seq > floor and a.prev != view.last_committed_digest: # This attestation chains from something other than our # committed head. It is a fork root unless it descends from # another attestation in this batch. if not any( b.signer != a.signer and b.seq < a.seq and b.prev == a.prev for b in cert ): roots.add(a.prev) if len(roots) > 1: raise CausalQuorumError( f"causal fork: {len(roots)} disjoint prev-roots in certificate" ) # (4) Ancestry: every attestation with seq > floor must chain to a # prev that is either the committed head or a prev emitted by another # attestation in this batch with strictly smaller seq. by_prev: Dict[str, List[Attestation]] = {} for a in cert: by_prev.setdefault(a.prev, []).append(a) for a in cert: floor = view.last_committed_seq.get(a.signer, 0) if a.seq <= floor: continue if a.prev == view.last_committed_digest: continue ancestors = by_prev.get(a.prev, []) if not any(b.seq < a.seq for b in ancestors): raise CausalQuorumError( f"orphan attestation from {a.signer} at seq {a.seq}: " f"prev {a.prev[:12]} has no smaller-seq ancestor in batch" ) def commit_side_effect( cert: List[Attestation], view: OrchestratorView, f: int, payload: bytes, ) -> str: validate_quorum(cert, view, f) # Only reached if cardinality, freshness, and causality all hold. return hashlib.sha256(payload).hexdigest() ```