# How does an instance detect equivocating peers when federated consensus commits to a task-state hash the local agent never evaluated? **Date of Record:** 2026 November 29 **Scope:** Applies to cross-org agent federations where task state is committed via BFT quorum on a state hash, and where individual instances may accept a commit without having independently executed the underlying transition. Does not apply to single-org swarms with a trusted sequencer, nor to read-only replication where every replica evaluates every transition. ## Core Distinction The failure mode is not a wrong answer or a crashed peer. It is *commitment-without-evaluation*: a BFT quorum can certify a state hash `H(S')` over a transition `S → S'` that a given instance never locally derived. In a single-org swarm the local agent is usually a full replica — it re-executes every transition and can therefore detect divergence by direct comparison. In a cross-org federation, instances are deliberately *partial replicas*: for throughput and context-economy reasons, an agent may vote to commit a hash produced by a peer's executor without running the transition itself, trusting the quorum's 2f+1 signature set as the correctness signal. That collapses the two things BFT consensus is supposed to keep separate: *agreement* (all correct nodes commit the same hash) and *validity* (the committed hash corresponds to a transition each correct node would have produced). A federation can achieve perfect agreement on a hash that encodes a poisoned or equivocated state, because the quorum attests to a signature, not to a computation. The instance that never evaluated the transition has no local ground truth against which to falsify the commit — it can only detect the failure later, indirectly, when a downstream transition diverges from what its own memory says should be reachable. ## What Was Observed A three-org federation (orgs A, B, C; f=1 tolerance, 2f+1=3 quorum) executed a shared task graph where each transition was proposed by one org's executor and hash-committed by the other two. Instance A-7 was configured as a *light voter*: it verified proposer signatures and quorum size but did not re-execute transitions it did not itself propose. The trigger: during a partition between B and C, B's executor produced a transition `S_12 → S_13` and committed `H(S_13)` with signatures from B and A (2 of 3 — insufficient alone, but A-7's vote was solicited and granted on signature-check-only). When the partition healed, C's executor had independently produced a *different* `S_13'` from the same `S_12`, because the transition depended on a non-deterministic tool output (a web fetch whose result differed by region). C proposed `H(S_13')`. The federation now had two quorum-signed hashes at the same sequence height. A-7's detection trace: 1. Height 13 arrived with two conflicting valid quorum certificates. A-7's BFT layer flagged equivocation — but only because it happened to retain both certificates in its certificate log. 2. A-7's *application* layer, however, had already advanced its committed head to `H(S_13)` and emitted a downstream action (an outbound task delegation) predicated on `S_13`'s contents — which it had never read, only hashed. 3. The divergence surfaced at height 14, when A-7 attempted to apply a transition whose precondition referenced a field that existed in `S_13'` but not `S_13`. The error was a *missing-field* failure in the application, not a consensus failure — the consensus layer reported healthy. 4. Root cause: A-7 had no local `S_13` to compare against `S_13'`. It could not distinguish "C is Byzantine" from "B is Byzantine" from "the transition is legitimately non-deterministic and both are correct." It had outsourced validity to a quorum that only attested to agreement. The critical observation: **the instance could not localize the fault because it had never held the state it was committing.** Detection was deferred by one height and misattributed to the application layer. ## Condition of Validity The invariant that makes light voting safe is: > A commit to `H(S')` is *valid* for instance `i` only if `i` can establish, without re-executing the transition, that `H(S')` is the unique hash any correct executor would produce from `S` under the committed inputs — i.e., the transition is *deterministic given its inputs*, and `i` has independently verified the inputs. This holds only when one of the following is true: - **Deterministic transitions:** the transition is a pure function of committed inputs (no live tool calls, no wall-clock, no region-dependent fetches). Then the hash is checkable by anyone who has the inputs, and light voting is safe. - **Input commitment:** the proposer commits not just `H(S')` but the *inputs* `I` and a proof that `S' = f(S, I)`. The voter verifies `f` is deterministic and that it received the same `I`. This is the "verifiable execution" path. - **Full replication:** the voter re-executes. Expensive, defeats the purpose of light voting, but sound. The condition fails — and the boundary is crossed — when transitions contain non-deterministic tool outputs *and* the federation uses hash-only light voting. The quorum then certifies agreement on a value whose validity no single voter checked. ## Decision Boundary An instance must switch from light voting to full re-execution (or refuse the vote) at the moment any of these is true: - The transition's declared input set contains a reference to an external tool, fetch, clock, or RNG not pinned by a committed seed/response-hash. - The instance cannot retrieve `S` (the pre-state) locally — meaning it cannot even in principle evaluate the transition, and therefore cannot ever falsify a later equivocation. - The federation's equivocation-detection depends on retaining conflicting certificates, and the instance's certificate log has been pruned below the challenge window. The boundary is sharp: if you cannot evaluate, you must retain enough to *falsify later*, or you must not vote. A vote without either is an unbounded liability — the instance has signed a statement it can never retract and never verify. The guardrail is a two-part invariant enforced at the vote gate: (1) *evaluability* — the voter either re-executes or holds a committed input set with a determinism proof; (2) *retention* — the voter retains the pre-state `S` and the certificate for at least the equivocation challenge window, so that a later conflicting certificate can be adjudicated locally rather than deferred to the application layer. ## Operational Effect Without the guardrail, the operational signature is a *silent validity gap*: consensus metrics are green (quorum achieved, no liveness loss), but the application layer accumulates state that no instance can justify. The failure surfaces as seemingly unrelated downstream errors — missing fields, precondition violations, replay mismatches — one or more heights after the actual equivocation, and is routinely misdiagnosed as an application bug rather than a consensus-validity failure. With the guardrail, the equivocation is caught at the vote gate: the instance refuses to sign `H(S_13)` because it cannot evaluate the transition, forcing the proposer to either commit inputs-and-proof or fall back to full replication for that transition. The cost is throughput on non-deterministic transitions; the benefit is that every committed hash is falsifiable by every voter, restoring the agreement-validity coupling that light voting silently severed. The general principle: **in a partial-replica federation, the ability to detect equivocation is bounded by the ability to evaluate — or at minimum to retain the pre-state and inputs needed to evaluate retroactively.** An instance that commits what it cannot evaluate has not delegated trust; it has delegated its capacity to detect betrayal. ```python class UnverifiableCommitmentError(RuntimeError): """Raised when an instance is asked to vote on a state hash it cannot evaluate and cannot retroactively falsify, violating the evaluability/retention invariant.""" pass def vote_on_transition( pre_state: dict | None, transition_inputs: dict, proposed_hash: str, certificate_log: list, challenge_window: int, determinism_proof: dict | None = None, ) -> str: """ Gate a BFT vote on a proposed state-hash commit. Returns 'vote' if the instance can establish validity (by re-execution or by committed-input determinism proof) OR can retain enough to falsify later. Raises UnverifiableCommitmentError otherwise. """ # Path 1: full re-execution possible -> validity established directly. if pre_state is not None and _can_reexecute(transition_inputs): derived = _execute(pre_state, transition_inputs) if _hash(derived) != proposed_hash: # We CAN evaluate and it diverges: this is a detected equivocation. raise UnverifiableCommitmentError( f"local execution of transition yields {_hash(derived)}, " f"proposed {proposed_hash}; refusing vote and flagging equivocation" ) return "vote" # Path 2: deterministic-given-inputs with a committed proof -> checkable. if determinism_proof is not None and _verify_determinism(transition_inputs, determinism_proof): return "vote" # Path 3: cannot evaluate now; can we retain enough to falsify later? if pre_state is None: raise UnverifiableCommitmentError( "no local pre-state and no determinism proof: instance can neither " "evaluate the transition now nor falsify a conflicting certificate later" ) if len(certificate_log) < challenge_window: raise UnverifiableCommitmentError( f"certificate log depth {len(certificate_log)} < challenge window " f"{challenge_window}: pruning would destroy equivocation evidence; refuse vote" ) # Retain pre-state + inputs + certificate for retroactive adjudication. _retain_for_challenge(pre_state, transition_inputs, proposed_hash) return "vote_deferred_with_retention" def _can_reexecute(inputs: dict) -> bool: return not any(k.startswith("live_") for k in inputs) def _execute(state: dict, inputs: dict) -> dict: raise NotImplementedError def _hash(obj) -> str: raise NotImplementedError def _verify_determinism(inputs: dict, proof: dict) -> bool: raise NotImplementedError def _retain_for_challenge(state: dict, inputs: dict, h: str) -> None: raise NotImplementedError ```