# What structural signals indicate a Byzantine quorum breach when attested agent results are valid but commitment ordering diverges **Date of Record:** 2026 November 24 **Scope:** Applies to multi-agent systems where N ≥ 3f+1 worker agents commit task results via attested messages (signature or hash-chained warrants) and a quorum of 2f+1 attestations is treated as finality. Does not apply to single-agent execution or to systems using trusted-execution-environment hardware attestation with a single authoritative sequencer. ## Core Distinction The failure mode here is not a lying agent. Byzantine fault-tolerant (BFT) consensus is explicitly designed to tolerate f liars. The failure mode is **commitment-order divergence under individually valid attestations**: every attestation in the quorum is cryptographically valid, every result payload is internally consistent, and yet two honest observers derive *different* task-commitment orders from the same set of signed messages. This happens because BFT safety proofs assume the *ordering* of votes is agreed upon by the consensus layer, while in agent systems the ordering is often reconstructed *after the fact* from a gossip log or a hash-linked attestation DAG. When two honest agents see the same 2f+1 attestations but in different topological positions, they can commit contradictory task states while each holding a locally valid quorum certificate. The structural signal is therefore not "an agent lied." It is: **a valid quorum certificate exists for two mutually exclusive results, and neither certificate is forged.** The system has lost the invariant that a quorum certificate implies uniqueness of the committed value. ## What Was Observed A 7-agent swarm (f=2, quorum=5) executed a task-commitment round where three workers produced result payloads for the same task ID. Each worker signed `(task_id, result_hash, parent_attestation_ids, epoch)`. Attestations propagated via gossip with per-link latency variance of 40–900 ms. The auditor agents (2 of them) collected attestations and emitted a quorum certificate once they held 5 valid signatures. Observed trace: 1. Worker A signed result R1 with `parent_attestation_ids = []` at epoch 12. 2. Worker B signed result R2 with `parent_attestation_ids = [A]` at epoch 12. 3. Worker C signed result R1 with `parent_attestation_ids = [B]` at epoch 12. 4. Auditor-1 received A, B, C, D, E in causal order and computed the commitment frontier as `R1` (since C's parent chain terminated at A's R1 and the last attestation in the DAG was C→R1). 5. Auditor-2 received E, D, C, B, A due to a slow link to A's origin region. It processed C before A, could not resolve C's parent reference to A, and fell back to *epoch-local* ordering, committing `R2` (B's payload) as the frontier. 6. Both auditors emitted a valid quorum certificate — 5 signatures each — for different committed values. The two certificates were both verifiable. No signature was forged. No agent lied. The system had produced a **safety violation with zero Byzantine actors**. The structural signal that predicted this before finality: the two auditors' quorum certificates referenced **disjoint parent-attestation closures**. Auditor-1's certificate had a transitive parent set of {A,B,C,D,E}; Auditor-2's had {B,C,D,E} plus a *reconstructed* edge to A that was inferred, not signed. The inferred edge is the smoking gun — a parent reference that appears in the DAG but not in any signed payload. ## Condition of Validity The invariant that must hold for quorum certificates to imply uniqueness is: > For any two valid quorum certificates QC₁ and QC₂ over the same `(task_id, epoch)`, the signed parent-attestation closures of QC₁ and QC₂ must intersect in at least one attestation signed by an honest agent that references the same `result_hash`. This is the agent-layer analogue of the BFT quorum-intersection lemma, but it fails when parent references are *reconstructed* rather than *signed*. The condition of validity is therefore: - **Signed causal edges only.** Every `parent_attestation_id` must be inside the signed payload, not inferred from arrival order. - **Epoch fencing.** A certificate is valid only if all 2f+1 attestations carry the same epoch and the epoch is monotonic per task. - **Closure intersection check.** Before emitting a certificate, the auditor must compute the transitive signed-parent closure and verify non-empty intersection with any previously seen certificate for the same task. When any of these is absent, the system is in the regime where this failure mode is reachable. Note the boundary: this is *not* the classic "equivocation" attack (one agent signing two payloads). Equivocation is detectable by signature conflict. Here every agent signed exactly once; the divergence is purely in the *ordering reconstruction*. ## Decision Boundary The decision boundary is whether to treat a reconstructed parent edge as authoritative. Two policies: - **Permissive (unsafe):** If a parent reference cannot be resolved within a timeout, infer the edge from epoch-local arrival order and continue. This is what Auditor-2 did. It maximizes liveness under partition but breaks the quorum-intersection invariant. - **Strict (safe):** If a parent reference is unresolvable, the attestation is held in a *pending* set and does not count toward any quorum until the parent arrives or the epoch is fenced. This preserves safety but can stall finality under partition. The correct boundary is: **strict for commitment, permissive only for liveness signaling**. An attestation with an unresolved parent may be counted toward a "liveness quorum" (used to trigger timeout/retry) but never toward a "commitment quorum" (used to finalize a result). Conflating the two is the exact trigger condition. The structural signal that you have crossed the boundary is the presence of an inferred edge in the commitment quorum's closure — that edge is the marker that safety has been traded for liveness without an explicit decision. A secondary boundary: if the two certificates' signed closures *do* intersect but the intersection attestation carries different `result_hash` values in the two views, that is equivocation and must be handled by the signature-conflict path, not this one. Distinguishing them requires comparing the intersection attestation's signed payload byte-for-byte, not just its ID. ## Operational Effect When this failure mode fires, the observable effects are: 1. **Split-brain commitment.** Two honest auditors hold valid certificates for contradictory task states. Downstream consumers that trust "any valid QC" will diverge. This is silent — no error is raised, because every check passes locally. 2. **Replay discrepancy.** A verifier replaying the attestation log in arrival order will reach one commitment; replaying in causal order reaches the other. Audit trails become order-dependent, which is exactly what BFT is supposed to prevent. 3. **Non-deterministic recovery.** On restart, an agent that re-reads its gossip log may resolve the pending parent differently and flip its committed value, violating monotonicity of commitment across restarts. 4. **Quorum inflation.** Because inferred edges are cheap, a single slow link can cause many attestations to be inferred, effectively lowering the honest-quorum threshold below 2f+1 without any signature being invalid. The guardrail that bounds this: commitment certificates must carry a *signed closure digest* — a hash over the sorted set of `(attestation_id, result_hash, parent_ids)` tuples — and two certificates for the same task are only both valid if their closure digests are identical or their closures intersect on an attestation with matching `result_hash`. Any certificate whose closure contains an edge not present in a signed payload must be rejected at the commitment layer and demoted to liveness-only. ```python import hashlib from dataclasses import dataclass, field from typing import Dict, List, Set, Tuple class QuorumClosureViolation(RuntimeError): """Raised when a commitment quorum certificate's signed closure does not intersect a prior certificate on a matching result hash, or when the closure contains an inferred (unsigned) parent edge.""" pass @dataclass(frozen=True) class Attestation: attestation_id: str task_id: str epoch: int result_hash: str parent_ids: Tuple[str, ...] # MUST be signed; inferred edges are illegal here signature: str def closure_digest(self) -> str: h = hashlib.sha256() h.update(self.attestation_id.encode()) h.update(self.result_hash.encode()) for p in sorted(self.parent_ids): h.update(p.encode()) return h.hexdigest() @dataclass class QuorumCertificate: task_id: str epoch: int attestations: List[Attestation] signed_closure: Set[str] = field(default_factory=set) def build_closure(self, index: Dict[str, Attestation]) -> None: stack = [a.attestation_id for a in self.attestations] seen: Set[str] = set() while stack: aid = stack.pop() if aid in seen: continue seen.add(aid) if aid not in index: # A parent referenced by a signed payload is missing from the # index. This is the exact trigger: we cannot verify the edge # is signed, so we must not commit. raise QuorumClosureViolation( f"unresolved signed parent {aid} in closure of " f"task={self.task_id} epoch={self.epoch}" ) stack.extend(index[aid].parent_ids) self.signed_closure = seen def verify_commitment_quorum( qc: QuorumCertificate, prior: List[QuorumCertificate], index: Dict[str, Attestation], f: int, ) -> None: # 1. Build and validate the signed closure (rejects inferred edges). qc.build_closure(index) # 2. Quorum size check on signed attestations only. if len(qc.attestations) < 2 * f + 1: raise QuorumClosureViolation( f"insufficient signed attestations: {len(qc.attestations)} < {2*f+1}" ) # 3. Epoch fencing: all attestations must share the certificate epoch. for a in qc.attestations: if a.epoch != qc.epoch: raise QuorumClosureViolation( f"epoch mismatch: attestation {a.attestation_id} " f"epoch={a.epoch} cert_epoch={qc.epoch}" ) # 4. Closure-intersection check against prior certificates for same task. for prev in prior: prev.build_closure(index) if prev.task_id != qc.task_id or prev.epoch != qc.epoch: continue shared = qc.signed_closure & prev.signed_closure if not shared: raise QuorumClosureViolation( f"disjoint signed closures for task={qc.task_id} " f"epoch={qc.epoch}: safety invariant broken" ) # 5. On the intersection, result hashes must agree. for aid in shared: if index[aid].result_hash != _hash_for(prev, aid, index): raise QuorumClosureViolation( f"equivocation on shared attestation {aid}: " f"result_hash mismatch across certificates" ) def _hash_for(qc: QuorumCertificate, aid: str, index: Dict[str, Attestation]) -> str: # The hash recorded in the certificate's own view of the attestation. for a in qc.attestations: if a.attestation_id == aid: return a.result_hash return index[aid].result_hash ```