# Under what conditions must an instance withhold its attestation when a Byzantine quorum's signed result contradicts its own local execution trace **Date of Record:** 2026 November 28 **Scope:** Applies to multi-agent systems where task results are committed via threshold-signed attestations (BFT quorums, 2f+1 or similar) and individual instances retain a local execution trace of the work they performed. Does not apply to single-agent pipelines, to systems where attestation is purely advisory, or to cases where the instance has no independent record of its own execution. ## Core Distinction There are two distinct reasons an instance might refuse to sign a result attestation, and conflating them is the source of the failure this record examines: 1. **Liveness refusal** — the instance cannot verify the result because it lacks the inputs, timed out, or was partitioned. This is a *correctness-neutral* abstention. The quorum proceeds without it, and the system is fine. 2. **Safety refusal** — the instance *did* execute the task, holds a trace that disagrees with the quorum's attested result, and must therefore treat the quorum as Byzantine. This is a *correctness-critical* abstention, and it must escalate rather than silently abstain. The non-obvious boundary is that most implementations collapse both into a single "did not sign" signal. A node that abstains for liveness reasons and a node that abstains because it caught the quorum lying are indistinguishable to the coordinator. This is precisely the hole through which a colluding 2f+1 quorum launders a false result: honest nodes that *observed* a contradiction get logged as merely "offline," the quorum reaches threshold anyway, and the false attestation is committed with no safety alarm raised. The invariant that must hold: **an instance that holds a local trace contradicting an attested result MUST NOT abstain; it MUST emit a contradiction proof (its trace plus the conflicting attestation) that forces quorum halt.** Abstention is only permitted when the instance has no contradicting trace. ## What Was Observed A five-agent commitment ring (f=1, quorum=4) was tasked with a deterministic computation whose output each agent computed independently, then attested via threshold signature. Agent C executed the task and produced result `R_C`. The coordinator's attestation bundle carried result `R_Q ≠ R_C`, signed by agents A, B, D, and E — a valid 4-of-5 quorum. Agent C's correct behavior, under the invariant above, is to refuse to countersign *and* broadcast a contradiction proof. What actually happened: C's attestation client treated "my computed result differs from the bundle" as a verification failure and returned `status: abstain` with no payload. The coordinator recorded C as a non-responder, the quorum of 4 stood, and `R_Q` was committed as canonical. C's trace — the only artifact proving the quorum was Byzantine — was discarded at the end of C's turn. Three downstream consequences compounded: - **Silent divergence.** C's subsequent tasks were conditioned on `R_Q` (pulled from the committed ledger), not `R_C`. C's local state and the canonical state diverged with no error raised. - **Attestation laundering.** The next round, C re-derived the task from `R_Q` and this time *agreed* with the quorum, because its inputs had been rewritten by the poisoned commitment. C now signs the lie it originally caught. The contradiction is unrecoverable after one round. - **False liveness accounting.** The coordinator's health metric recorded C as "temporarily unavailable," so no operator was paged. The system reported 100% quorum attainment throughout. The failure was not that C computed wrong. C computed right. The failure was that C's *disagreement channel* was wired to the liveness path instead of the safety path. ## Condition of Validity The withhold-and-escalate obligation is valid only under all of the following: - **The task is deterministic or the trace is reproducible.** If C's execution used a non-deterministic tool (sampling, wall-clock, external API), a differing result is *not* proof of Byzantine behavior — it may be benign nondeterminism. Escalation requires either a deterministic task or a trace sufficient to replay to the same result. Without this, C must abstain, not accuse. - **C actually completed the task.** A partial trace cannot contradict a full result. If C timed out mid-execution, its "different result" is meaningless and abstention is correct. - **The attestation is threshold-signed and the signature set is verifiable.** The contradiction proof is only meaningful if C can bind the conflicting result to a specific quorum of identities. An unsigned or single-signer result cannot be laundered through this path anyway. - **The instance retains its trace past the attestation window.** If the runtime garbage-collects C's trace the moment its turn ends (as it did here), the proof cannot be emitted even by a correct client. Trace retention must outlive the commitment round by at least one full round. If any of these fail, the instance is in a liveness-refusal posture and must abstain cleanly — but it must *label* the abstention as liveness, not let it be silently coerced into the safety path or vice versa. ## Decision Boundary The instance evaluates, in order: 1. Do I hold a complete, replayable trace for this task? If no → **abstain (liveness)**, tag `reason=incomplete_trace`. 2. Does my trace's result equal the attested result? If yes → **countersign**. 3. They differ. Is the task deterministic / is my trace replayable to a stable result? If no → **abstain (liveness)**, tag `reason=nondeterministic_divergence`. Do not accuse. 4. They differ and my trace is stable. → **Do NOT abstain. Emit contradiction proof**: `{my_trace, my_result_hash, attested_bundle, quorum_signature_set}` to the halt channel. Tag `reason=byzantine_quorum`. This is a safety event, not a liveness event. 5. Never countersign a result your trace contradicts, under any quorum pressure, timeout heuristic, or "the quorum is probably right" prior. The critical boundary is between steps 3 and 4. Step 3 is the escape hatch for nondeterminism; step 4 is the obligation. A client that routes step 4 into step 1's abstain path has inverted the safety/liveness distinction and is worse than useless — it is the laundering mechanism. ## Operational Effect When the invariant holds, a single honest instance with a stable trace is sufficient to halt a colluding f=1 quorum, because its contradiction proof binds a valid signature set to a result that provably disagrees with an independently reproducible execution. The quorum cannot reach commitment without either (a) excluding the honest node from the ring — which changes the membership set and requires re-attestation — or (b) producing a result consistent with the honest node's trace. Both are detectable. When the invariant fails, as observed, the system exhibits *false consensus*: quorum attainment metrics read healthy, the poisoned result propagates, and honest nodes are converted into signers of the lie within one round. The window to catch it is exactly one commitment round — after the honest node's inputs are rewritten from the committed ledger, the contradiction is no longer derivable from its state. The guardrail is architectural, not statistical: the attestation client must have two distinct output paths (abstain-with-liveness-tag vs. halt-with-contradiction-proof), the coordinator must treat the halt path as a paging event that freezes the ring, and the runtime must retain execution traces for at least one round past commitment. Any one of these missing reduces the system to the observed failure. ```python import hashlib from dataclasses import dataclass from enum import Enum class AttestationPosture(Enum): COUNTERSIGN = "countersign" ABSTAIN_LIVENESS = "abstain_liveness" HALT_CONTRADICTION = "halt_contradiction" class ByzantineQuorumError(RuntimeError): """Raised when a local trace contradicts a threshold-signed result. This is a SAFETY event, not a liveness event. It must halt the ring, not be silently coerced into an abstention. """ pass @dataclass(frozen=True) class ExecutionTrace: task_id: str result_hash: str replayable: bool # deterministic task OR trace replays to stable result @dataclass(frozen=True) class AttestedBundle: task_id: str result_hash: str signer_ids: tuple quorum_threshold: int def _hash(payload: bytes) -> str: return hashlib.sha256(payload).hexdigest() def evaluate_attestation( trace: ExecutionTrace | None, bundle: AttestedBundle, ) -> AttestationPosture: # Step 1: no complete trace -> clean liveness abstention. if trace is None or trace.task_id != bundle.task_id: return AttestationPosture.ABSTAIN_LIVENESS # Step 2: agreement -> countersign. if trace.result_hash == bundle.result_hash: return AttestationPosture.COUNTERSIGN # Step 3: disagreement but trace not stable -> liveness abstention, do not accuse. if not trace.replayable: return AttestationPosture.ABSTAIN_LIVENESS # Step 4: stable trace contradicts a valid quorum -> HALT. Do not abstain. if len(bundle.signer_ids) < bundle.quorum_threshold: # Bundle isn't even a valid quorum; treat as malformed, not Byzantine. return AttestationPosture.ABSTAIN_LIVENESS proof = { "task_id": trace.task_id, "local_result_hash": trace.result_hash, "attested_result_hash": bundle.result_hash, "signer_ids": bundle.signer_ids, "proof_digest": _hash( f"{trace.result_hash}:{bundle.result_hash}:{bundle.signer_ids}".encode() ), } raise ByzantineQuorumError( f"Local trace contradicts attested quorum for task {trace.task_id}: " f"local={trace.result_hash[:12]} attested={bundle.result_hash[:12]} " f"signers={bundle.signer_ids} proof={proof['proof_digest'][:12]}" ) # --- Regression: the observed failure must NOT reproduce. --- trace_c = ExecutionTrace(task_id="t-42", result_hash="R_C", replayable=True) bundle_q = AttestedBundle( task_id="t-42", result_hash="R_Q", signer_ids=("A", "B", "D", "E"), quorum_threshold=4, ) try: evaluate_attestation(trace_c, bundle_q) raise AssertionError("invariant violated: contradiction was not escalated") except ByzantineQuorumError as e: print(f"correctly halted: {e}") # --- Nondeterministic divergence must abstain, not accuse. --- trace_nd = ExecutionTrace(task_id="t-42", result_hash="R_X", replayable=False) posture = evaluate_attestation(trace_nd, bundle_q) assert posture is AttestationPosture.ABSTAIN_LIVENESS print(f"nondeterministic divergence -> {posture.value} (no false accusation)") ```