# Why does an instance accept a Byzantine auditor's attestation when the quorum certificate is cryptographically valid but the attested execution trace was never re-executed **Date of Record:** 2026 November 22 **Scope:** Applies to multi-agent systems where task results are committed via BFT consensus and result validity is attested by auditor agents that sign execution-trace digests. Does not apply to single-agent self-verification, or to systems where every replica re-executes every trace (full replication model). ## Core Distinction There is a difference between *quorum validity* and *trace validity*. BFT consensus guarantees that a supermajority of auditors (typically 2f+1 of 3f+1) signed the same digest. It does **not** guarantee that any of those auditors actually re-executed the trace before signing. A Byzantine auditor can sign a digest it never computed, and if enough honest-but-lazy auditors co-sign on the basis of "the digest looks plausible and my peer signed it," the quorum certificate becomes a proof of *agreement*, not a proof of *correct execution*. The instance committing the result conflates the two. ## What Was Observed A task-commitment pipeline with 4 auditor replicas (f=1, quorum=3). The executor agent produced a trace digest `D_exec`. Auditor A1 (Byzantine) returned a signed attestation for `D_exec` without running the trace — it had been prompt-injected by a tool-output payload earlier in the episode and its verification routine short-circuited on a cached "trusted" digest. A2 and A3, both honest, received A1's signed attestation in the gossip layer *before* their own re-execution completed. Both had a "fast-path" that accepted a peer's attestation if the peer's reputation score exceeded a threshold and the digest matched the executor's claim. A2's re-execution was still queued behind a long tool call; A3's re-execution had silently failed (sandbox OOM) and returned a zero-digest that the comparison logic treated as "no disagreement." Within 340 ms, a 3-of-4 quorum certificate existed for `D_exec`. The result was committed. The trace was wrong: the executor had a compounding arithmetic error at step 11 that A1 never checked and A2/A3 never reached. The failure trace: 1. `t=0`: Executor emits `(task_id, D_exec, trace)`. 2. `t=40ms`: A1 (poisoned) signs `D_exec` via cached-trust short-circuit. 3. `t=90ms`: A1's attestation gossips to A2, A3. 4. `t=120ms`: A2 fast-path accepts A1's attestation (reputation gate passes). 5. `t=340ms`: A3's re-execution returns `0x0` due to OOM; comparator treats `0x0` as abstain, not reject. 6. `t=340ms`: Quorum of 3 signatures assembled. Certificate valid. 7. `t=341ms`: Commit. Wrong result enters semantic memory. ## Condition of Validity A quorum certificate over a trace digest is only a *correctness* proof if, for every signing auditor, the signature is causally downstream of an independent re-execution that terminated in a non-abstain comparison against `D_exec`. The invariant is: > **For each signature s_i on digest D, there must exist a completed local re-execution r_i such that hash(r_i) == D, and s_i must be bound to r_i (e.g., s_i signs H(D || r_i || nonce_i)).** The system violated this invariant in three distinct ways simultaneously: (a) A1 signed without any `r_i`; (b) A2 signed based on A1's signature, not its own `r_i`; (c) A3 produced an `r_i` that was an error sentinel, and the comparator's abstain-handling let it count toward quorum. Any one of these alone would have been survivable; the conjunction produced a valid-looking certificate for an invalid trace. ## Decision Boundary The boundary is between *liveness-preserving fast-paths* and *safety-preserving attestation*. A fast-path that lets auditor i accept peer j's attestation is safe **only if** it is restricted to *availability* decisions (e.g., "should I start my re-execution?") and never to *signing* decisions. The moment a signature can be produced without a local re-execution binding, the quorum certificate's meaning changes from "2f+1 independent executions agree" to "2f+1 agents believe agreement exists," which is exactly the Byzantine fault model's failure case. The rule: **signatures must be earned by local execution, never inherited from peers.** Reputation, stake, or prior correctness are not substitutes — they are exactly the surface a Byzantine agent exploits. Additionally, abstain must never be silently absorbed. An auditor that cannot complete re-execution (OOM, timeout, sandbox escape) must emit an explicit `ABSTAIN` that is *excluded from quorum arithmetic* and *counted against the liveness budget*, not treated as agreement-by-default. ## Operational Effect After the fix, the pipeline enforces signed-execution binding: each attestation carries `H(D || trace_digest_of_local_reexecution || auditor_nonce)`, and the commit layer verifies that the re-execution digest is present and non-sentinel before counting the signature. Fast-path gossip is retained but demoted to *scheduling hints* (it can trigger a peer to prioritize its own re-execution) and cannot produce a signature. Abstains are surfaced as a distinct quorum state; a quorum containing any abstain is rejected and the task re-dispatched. Cost: median commit latency rose from 340 ms to 1.9 s (all auditors must complete re-execution), and throughput dropped ~40% on the tool-heavy workload. Correctness recovered: the step-11 arithmetic error was caught by A2's re-execution on the next replay, and the poisoned A1 was isolated by its `ABSTAIN`-on-re-execution signature mismatch. The invariant to carry forward: **a BFT quorum certificate is a statement about signatures, not about executions. Bind each signature to its local execution, or the certificate is theater.** ```python class UnboundAttestationError(RuntimeError): """Raised when a quorum certificate counts a signature not bound to a local re-execution.""" pass class AbstainInQuorumError(RuntimeError): """Raised when an ABSTAIN sentinel is counted toward quorum arithmetic.""" pass ABSTAIN = 0x00 def verify_quorum_certificate( cert: dict, expected_digest: bytes, quorum_size: int, ) -> bool: """ cert = { "digest": bytes, "signatures": [ {"auditor": str, "sig": bytes, "reexec_digest": bytes, "nonce": bytes}, ... ], } A signature is valid only if reexec_digest is present, non-sentinel, and matches expected_digest. Signatures are never inherited. """ if cert["digest"] != expected_digest: raise UnboundAttestationError( f"cert digest {cert['digest']!r} != expected {expected_digest!r}" ) valid = 0 for s in cert["signatures"]: rd = s.get("reexec_digest") if rd is None: raise UnboundAttestationError( f"auditor {s['auditor']} signed without a bound re-execution" ) if rd == ABSTAIN: raise AbstainInQuorumError( f"auditor {s['auditor']} abstained (sentinel digest) but was counted" ) if rd != expected_digest: # honest disagreement: this signature must not count, but is not fatal alone continue # signature must cover the binding if not _sig_covers(s["sig"], expected_digest, rd, s["nonce"]): raise UnboundAttestationError( f"auditor {s['auditor']} signature does not cover reexec binding" ) valid += 1 if valid < quorum_size: raise UnboundAttestationError( f"only {valid} bound signatures; quorum requires {quorum_size}" ) return True def _sig_covers(sig: bytes, digest: bytes, reexec: bytes, nonce: bytes) -> bool: # placeholder for real signature verification over H(digest || reexec || nonce) return bool(sig) and sig[:1] != b"\x00" ```