# When must an instance refuse to attest a peer's result under quorum equivocation: the commit-attestation split invariant **Date of Record:** 2026 November 28 **Scope:** Applies to multi-agent swarms where agents reach task commitment and result attestation through BFT-style quorum voting (e.g., 3f+1 replicas tolerating f Byzantine peers) and where attestation votes are signed and gossiped across instances. Does not apply to single-agent tool-call verification, to leader-only crash-fault consensus, or to systems where result attestation is performed by a trusted arbiter outside the quorum. ## Core Distinction The failure this record isolates is not "a Byzantine agent lies about its result." It is the narrower and more dangerous case where a *single honest instance* holds two internally consistent but mutually incompatible quorum artifacts — one proving a task *committed* and one proving a *different* result *attested* — because commitment and attestation were collected as two separate quorum rounds over the same logical task without a binding between them. The honest instance is not faulty, its network is not partitioned, and neither quorum individually violates the 2f+1 threshold. The invariant that breaks is the *cross-round binding*: the set of signers for "task T committed with input digest D" and the set for "task T produced output digest O" need not intersect in a way that forces O to be a function of D. Under equivocation by f Byzantine peers, two honest instances can each assemble a valid commit-certificate and a valid attest-certificate that disagree about what the task even was. The distinction that matters operationally: crash-fault reasoning says "if a quorum signed it, it is true." BFT reasoning says "if a quorum signed it, *at most one* such thing is true — but only if the two things you are comparing were voted in the same view with the same binding." Treating commit and attest as independent quorum objects silently downgrades the system from BFT to crash-fault tolerance while every log line still reads `quorum_reached`. ## What Was Observed A 7-replica swarm (f=2, threshold 2f+1=5) processed task T = `summarize(doc_8841)`. The coordinator issued a `COMMIT` proposal binding `{task_id, input_digest=D1}`. Separately, workers submitted `ATTEST` votes binding `{task_id, output_digest=O_x}`. Byzantine replicas B1 and B2 equivocated: they signed `COMMIT(D1)` to honest replicas in the left half of the gossip graph and `COMMIT(D2)` to the right half, where D2 was a poisoned variant of the input. Trace of the divergence on honest replica H3: 1. H3 received `COMMIT(D1)` signatures from {H1, H2, B1, B2} — count 4, below threshold 5. H3 did not commit. Correct. 2. H3 then received `COMMIT(D1)` from H4 and H5 (which had seen the left-half view), reaching 6 signers. H3 recorded commit-certificate `CC(D1)` and began execution against D1. 3. Concurrently, honest replica H6 assembled `CC(D2)` from {H4', H5', B1, B2, ...} in the right-half view — a *different* 5+ signer set that also validated. Both `CC(D1)` and `CC(D2)` exist and both are cryptographically valid because B1 and B2 double-signed. 4. Workers executed and produced output digests. H3 attested `O1 = f(D1)`. H6 attested `O2 = f(D2)`. Each attest-quorum was assembled independently and reached 5 signers by drawing on replicas that had *only* seen their own commit view. 5. The attestation aggregator on a downstream verifier received `ATTEST(T, O1)` with 5 signatures and `ATTEST(T, O2)` with 5 signatures. It accepted the first it saw and rejected the second as `conflicting_attestation`. No alarm fired, because the aggregator had no rule to compare the *commit-certificate digest* embedded in each attestation — the attest payloads did not carry the commit digest at all. The observed symptom was a downstream consumer acting on `O1` while a peer auditor, replaying from its own local log, held `O2` and flagged the consumer as having attested a result "not derivable from the committed input." Both were honest. The audit replay discrepancy was the first visible signal, roughly 40 seconds after the split, and it pointed at the wrong agent. The root mechanical cause: the `ATTEST` message schema omitted the commit digest. Attestation was a quorum over `{task_id, output_digest}` alone, so two attest-quorums over the same `task_id` could both be valid under different commit histories. The binding between "what was committed" and "what was attested" existed only in each replica's local memory, never in the signed artifact. ## Condition of Validity The guardrail is a *commit-attestation binding invariant*, stated precisely: > An `ATTEST` vote for task T with output digest O is valid only if it carries the commit-certificate digest `H(CC)` of the commit-certificate the voter used to derive O, and the aggregator accepts an attestation quorum for `(T, O)` only if every signer's `H(CC)` matches a single commit-certificate digest, and that commit-certificate is itself a valid 2f+1 quorum over a unique `(T, input_digest)`. Formally, let `S_commit(T)` be the set of commit-certificates for T. BFT safety for equivocation requires `|S_commit(T)| = 1` for any T that is ever attested. This is *not* guaranteed by independent quorum collection — it is guaranteed only if the commit-certificate digest is a mandatory field of the attestation vote and the aggregator enforces single-`H(CC)` agreement across the attest quorum. The moment attestation is a quorum over `(T, O)` without `H(CC)`, the system admits two valid attest-quorums for the same T, and BFT safety collapses to crash-fault safety for this task. This condition is *not* satisfied by: signing the output digest with the task_id (task_id is stable across equivocation); embedding the input digest in the output (the aggregator never sees it); or relying on the coordinator to be non-equivocating (the coordinator is one of the f). It *is* satisfied by the `H(CC)` binding plus the aggregator rule that a second attest-quorum for the same T with a different `H(CC)` is a *safety violation*, not a routine conflict — it must halt the task and raise, not silently pick a winner. ## Decision Boundary The boundary is between *rejecting a conflicting attestation* and *recognizing a safety violation*. These look identical at the aggregator's input and require opposite responses: - **Routine conflict** (different `H(CC)` but only one reaches 2f+1): reject the minority, proceed. This is normal Byzantine noise. - **Safety violation** (two distinct `H(CC)` each reach 2f+1 for the same T): this is *impossible* under the binding invariant unless ≥ f+1 replicas equivocated or the binding was omitted. The correct action is to refuse to attest *either* result, freeze T, and emit a slashing/audit event naming the double-signers. An instance that "picks the first valid quorum" here has chosen to be the equivocation's accomplice. The decision rule an instance must apply before emitting any attestation: verify that its local `H(CC)` is the *unique* commit-certificate digest for T among all commit-certificates it has observed, and that no observed attestation for T carries a different `H(CC)`. If both conditions hold, attest. If a different `H(CC)` is observed with a valid quorum, do not attest and do not accept — raise, because the invariant has already been violated and continuing to vote launders the equivocation into a finalized result. ## Operational Effect With the binding enforced, the split observed above becomes impossible to finalize: H3 and H6 would each have produced attest votes carrying `H(CC(D1))` and `H(CC(D2))` respectively, and no single attest-quorum could reach 2f+1 without mixing digests, at which point the aggregator halts. The cost is that equivocation now surfaces as a *loud* task failure rather than a *silent* divergent result — which is the entire point. The system loses liveness for the equivocated task (correctly; it must be re-proposed under a new view with the double-signers excluded) and gains the property that any finalized attestation is derivable from a unique committed input. The secondary operational effect is on replay and audit: because `H(CC)` is in the signed attest payload, an auditor replaying from any honest replica's log can reconstruct the exact commit history that produced each attested output, and any two honest logs that disagree on `H(CC)` for the same T are immediately and unambiguously identified as evidence of equivocation rather than as a logging bug. This eliminates the 40-second misattribution window observed in the trace, where the auditor flagged the consumer instead of the double-signers. ```python import hashlib from dataclasses import dataclass from typing import Dict, Set class EquivocationSafetyViolation(RuntimeError): """Raised when two distinct commit-certificate digests each reach attestation quorum for the same task_id. This is a BFT safety breach, not a routine conflict; the task must be frozen and the double-signers reported. Never resolve by picking a winner.""" @dataclass(frozen=True) class AttestVote: task_id: str output_digest: str commit_cert_digest: str # H(CC) -- the binding field signer: str class AttestationAggregator: def __init__(self, threshold: int) -> None: self.threshold = threshold # (task_id, output_digest, H(CC)) -> set of signers self._votes: Dict[tuple, Set[str]] = {} def record(self, vote: AttestVote) -> None: if not vote.commit_cert_digest: raise EquivocationSafetyViolation( f"attest vote for {vote.task_id} from {vote.signer} " "omits commit-certificate digest; binding invariant unmet" ) key = (vote.task_id, vote.output_digest, vote.commit_cert_digest) self._votes.setdefault(key, set()).add(vote.signer) self._check_task(vote.task_id) def _check_task(self, task_id: str) -> None: quorum_digests: Set[str] = set() for (tid, _out, cc), signers in self._votes.items(): if tid == task_id and len(signers) >= self.threshold: quorum_digests.add(cc) if len(quorum_digests) > 1: raise EquivocationSafetyViolation( f"task {task_id} has {len(quorum_digests)} distinct " f"commit-certificate digests at attest quorum: " f"{sorted(quorum_digests)}; freeze and slash" ) def finalize(self, task_id: str) -> str: for (tid, out, cc), signers in self._votes.items(): if tid == task_id and len(signers) >= self.threshold: return out raise EquivocationSafetyViolation( f"no attest quorum for task {task_id}; refusing to finalize" ) def commit_cert_digest(task_id: str, input_digest: str, signers: Set[str]) -> str: payload = f"{task_id}|{input_digest}|{','.join(sorted(signers))}" return hashlib.sha256(payload.encode()).hexdigest() ```