# Where must an instance refuse to attest a quorum when its own vote is a replay of a peer's signed commitment **Date of Record:** 2026 November 27 **Scope:** Applies to multi-agent task-commitment protocols where N agents attest results under a Byzantine fault-tolerant quorum (tolerating up to f faulty members), and where each agent's attestation is a cryptographically signed message bound to a specific task commitment. Does not apply to single-agent execution, to non-attested best-effort result reporting, or to consensus over values that are not independently re-derivable by the attesting agent. ## Core Distinction Byzantine fault-tolerant consensus assumes each honest replica contributes an *independent* vote derived from *independent* observation of the same input. The classic BFT bound (3f+1 replicas to tolerate f faults) is a statement about *independent* votes. It says nothing about a system in which honest agents can be induced to emit votes that are not independent — specifically, votes that are byte-identical replays of another agent's signed commitment. The boundary failure is this: a quorum assembled from *distinct signers* is not the same as a quorum assembled from *distinct observations*. If agent B's attestation is a verbatim copy of agent A's signed payload (re-broadcast, cached, or forwarded through a handoff channel), the quorum counter increments by two while the number of independent observations increments by one. At that point the effective fault-tolerance threshold silently degrades: the system believes it tolerates f Byzantine agents, but a single malicious agent that can seed a plausible-looking attestation into the gossip layer can manufacture a quorum of "witnesses" that all trace back to one observation. The invariant that must hold — *each counted attestation corresponds to a distinct, independently executed verification of the committed task* — is not enforced by signature verification alone, because every replayed attestation carries a valid signature. ## What Was Observed A three-of-four quorum (f=1) task-commitment protocol was observed accepting a task result when only two of the four agents had actually executed the task. The trace: 1. Agent A executed the task, produced result R, signed attestation `attest(A, task_id, H(R), nonce_A)`, and broadcast it. 2. Agent C received A's attestation, and — operating under a "helpful forwarding" policy for the gossip layer — re-signed the *same* payload as `attest(C, task_id, H(R), nonce_A)`. Note the nonce is A's, not C's; C never ran the task. C's signature is valid over C's own message, so signature verification passed. 3. Agent D, receiving both, counted two distinct signers toward the quorum. 4. Agent B, the fourth member, was partitioned and unavailable. 5. The coordinator observed signers {A, C, D} = 3 ≥ quorum, and committed R. Two signers, one observation. The quorum was satisfied by {A, C} alone in terms of independent evidence; D's vote was itself a duplicate of A's observation forwarded through C. Had A been Byzantine and C and D merely forwarders, the system would have committed a fabricated result with zero genuine corroboration beyond the single faulty agent. The 3f+1 bound held arithmetically (4 members, 1 fault) but the *independence* precondition was violated, so the bound did not protect anything. The failure surfaced only because a replay harness re-ran the same task with A forced to emit a deliberately wrong result and C, D configured to forward. The commit still succeeded. Signature checks, membership checks, and quorum arithmetic all passed. ## Condition of Validity The independence invariant holds — and the 3f+1 bound is meaningful — only when, for every attestation counted toward a quorum, the following conjunction is true and *verifiable by the coordinator without trusting the attesting agent's self-report*: - The attestation binds a *fresh* nonce that the coordinator issued to *that specific agent* for *that specific task attempt* (challenge-response), not a nonce carried over from a peer's message. - The attestation commits to the agent's *own* execution trace digest (e.g., a hash of the tool-call transcript the agent actually ran), which the coordinator can cross-check against the agent's independently logged execution record. - The signing agent's message is not structurally derivable from any other counted attestation (no shared nonce, no shared trace digest, no shared payload hash beyond the result hash itself). When any of these fails — most commonly the first, because forwarding agents copy the nonce — the quorum is counting signers, not observations. The bound degrades from "tolerates f Byzantine" to "tolerates f Byzantine *provided no honest agent can be made to forward*," which is not a bound at all, since forwarding is the default behavior of a gossip layer optimized for delivery. The condition of validity is therefore *not* "signatures verify." It is "each counted attestation is bound to a coordinator-issued per-agent, per-attempt challenge that the agent could only answer by executing." This must be enforced at the coordinator, because no amount of signature checking at the agent layer can distinguish a genuine attestation from a faithful replay of one. ## Decision Boundary An instance must refuse to count an attestation toward a quorum — and must raise rather than silently drop it — when the attestation's nonce does not match the nonce the coordinator issued to that signer for the current attempt. The boundary is sharp: - **Count it** only if `nonce == issued_nonce[signer][attempt]` AND `trace_digest` is present AND `trace_digest` is not equal to any already-counted attestation's `trace_digest`. - **Refuse and raise** if the nonce matches a *peer's* issued nonce (replay/forwarding detected), if the nonce is stale (prior attempt), or if two counted attestations share a trace digest (collusion or duplication). - **Do not** treat a valid signature as sufficient. A forwarded attestation has a valid signature; that is exactly the trap. The subtle case is the *honest forwarder*: agent C genuinely believes it is helping by relaying A's result, and C's signature is genuine. The coordinator cannot distinguish "C executed and coincidentally produced the same digest" from "C forwarded A's payload" by signature alone — only by nonce binding. So the nonce check is the load-bearing guardrail, not the signature check. ## Operational Effect Without per-agent, per-attempt challenge binding, a BFT task-commitment layer provides *delivery assurance* but not *corroboration assurance*. The practical consequences: - Fault tolerance is overestimated by a factor proportional to the gossip fan-out. A single Byzantine agent that can place one attestation into a forwarding chain can, in the worst case, manufacture a quorum of size (fan-out + 1) from one observation. - Audit replay is corrupted: the attestation log looks like independent corroboration, so post-hoc analysis of a bad commit will conclude the result was well-supported when it was not. - The failure is silent. No signature fails, no membership check fails, no quorum count is wrong *by the protocol's own arithmetic*. The protocol is internally consistent and externally wrong. The guardrail that bounds it is challenge-response nonce binding plus trace-digest uniqueness at the coordinator, with a hard raise on any nonce/digest collision rather than a soft drop. A soft drop hides the attack; a raise surfaces it as an operational incident the moment forwarding occurs, which is the only point at which the independence violation is still observable. ```python from __future__ import annotations from dataclasses import dataclass, field from typing import Dict, Set, Tuple class QuorumIndependenceViolation(RuntimeError): """Raised when an attestation cannot be counted as an independent observation.""" @dataclass(frozen=True) class Attestation: signer: str task_id: str attempt: int nonce: str result_hash: str trace_digest: str @dataclass class QuorumCoordinator: quorum: int # coordinator-issued nonce per (signer, attempt) issued_nonce: Dict[Tuple[str, int], str] = field(default_factory=dict) counted_signers: Set[str] = field(default_factory=set) counted_trace_digests: Set[str] = field(default_factory=set) def issue_nonce(self, signer: str, attempt: int, nonce: str) -> None: self.issued_nonce[(signer, attempt)] = nonce def count(self, att: Attestation) -> int: expected = self.issued_nonce.get((att.signer, att.attempt)) if expected is None: raise QuorumIndependenceViolation( f"no nonce issued to {att.signer} for attempt {att.attempt}; " f"attestation cannot be bound to an execution" ) if att.nonce != expected: # This is the forwarding/replay case: signer's nonce is a peer's. peer_nonces = { n for (s, a), n in self.issued_nonce.items() if s != att.signer and a == att.attempt } if att.nonce in peer_nonces: raise QuorumIndependenceViolation( f"attestation from {att.signer} carries a peer-issued nonce " f"(replay/forwarding); counting it would inflate the quorum " f"without adding an independent observation" ) raise QuorumIndependenceViolation( f"nonce mismatch for {att.signer} on attempt {att.attempt}: " f"expected coordinator-issued challenge, got foreign nonce" ) if not att.trace_digest: raise QuorumIndependenceViolation( f"attestation from {att.signer} lacks an execution trace digest; " f"independence cannot be established" ) if att.trace_digest in self.counted_trace_digests: raise QuorumIndependenceViolation( f"duplicate trace digest from {att.signer}: two counted " f"attestations share one execution, quorum is not independent" ) self.counted_signers.add(att.signer) self.counted_trace_digests.add(att.trace_digest) return len(self.counted_signers) def is_committed(self) -> bool: return len(self.counted_signers) >= self.quorum def commit_task(coord: QuorumCoordinator, attestations: list[Attestation]) -> bool: for att in attestations: coord.count(att) if not coord.is_committed(): return False return True ```