# In what scenarios must an instance refuse to sign a plan quorum certificate under equivocating Byzantine peers **Date of Record:** 2026 November 28 **Scope:** Applies to multi-agent systems where N agents (N ≥ 3f+1) commit to a shared execution plan via quorum certificates (QC) over signed plan hashes, and where up to f peers may equivocate—broadcasting distinct plan hashes to disjoint subsets. Does not apply to single-agent tool loops or to leaderless gossip protocols without explicit commit certificates. ## Core Distinction The failure that matters is not "a Byzantine peer lied." It is that a *correct* agent signed two conflicting quorum certificates for the same plan epoch because it validated each proposal against a locally-consistent but globally-divergent view of the *plan preimage*. Equivocation is cheap to detect when peers send different `plan_hash` values. It is nearly invisible when peers send *the same hash* over *different serialized preimages*—because the hash was computed over a canonicalization that the signer never independently reconstructed. The boundary: an agent must sign a QC only if it can independently derive `plan_hash` from the full plan body it was given, and that body is byte-identical to what every co-signer attests. A hash is a commitment to bytes, not to intent. When agents hash *intent* (an LLM-generated plan summary) rather than *bytes* (the ordered tool-call DAG), equivocation becomes free. ## What Was Observed A 4-agent plan-commitment swarm (f=1 tolerable Byzantine) executed a 3-step plan: `search → parse → write`. The adversarial peer `A₃` broadcast to `A₁` a plan body with `parse.timeout=30s` and to `A₂` the same logical plan with `parse.timeout=5s`. Both bodies were hashed by `A₃` after a **lossy canonicalization** that dropped non-default tool parameters from the digest input. Result: identical `plan_hash = 0x9f3a…` reached `A₁` and `A₂`. Each independently verified the signature and the hash match, and each signed the QC. At execution, `A₁` committed to the 30s variant and `A₂` to the 5s variant. The `write` step consumed `parse` output; `A₂`'s 5s timeout fired, producing a truncated parse, and `A₂` wrote a partial artifact while `A₁` wrote the full one. The two correct agents each held a *valid* QC and *divergent* execution state. No safety violation was flagged because no agent ever saw two different hashes—the equivocation was hidden inside the preimage, below the hash. The trace: 1. `A₃` → `A₁`: `{plan: P_30, hash: H}`, signature valid. 2. `A₃` → `A₂`: `{plan: P_5, hash: H}`, signature valid. 3. `A₁`, `A₂` each: `recompute_hash(P) == H` under the shared lossy canonicalizer → true. 4. Both sign QC(H). Quorum of 3 = {A₁, A₂, A₃} reached. 5. Execution diverges. `A₁` and `A₂` disagree on `parse` output for the same committed plan. The invariant that broke: **hash-preimage injectivity over the plan's execution-relevant fields**. The QC attested to agreement on a digest that was not a function of the fields that determine behavior. ## Condition of Validity A QC over `plan_hash` is only a valid commitment to a single execution if, for every pair of plan bodies `P, P'` with `P ≠ P'` in any execution-relevant field: ``` canonicalize(P) == canonicalize(P') ⟹ execute(P) ≡ execute(P') ``` In practice this requires the canonicalizer to be **field-complete**: every parameter that can alter a tool call's output (timeouts, model IDs, temperature, retry counts, sandbox flags, seed) must be included in the digest input, in a fixed key order, with explicit null vs. absent distinction. The observed failure arose because `timeout` was treated as "non-semantic metadata" and excluded. The condition of validity is therefore: - The canonicalizer's field set is a *superset* of the set of fields the executor reads. - This superset relation is checked mechanically, not by convention—any field the executor's schema marks `behavioral: true` must appear in the canonicalizer, or the plan is rejected before signing. An agent that cannot verify this superset relation for a given plan schema must refuse to sign, because it cannot bound the equivocation surface. ## Decision Boundary The decision to sign or refuse: - **Sign** iff: (a) recomputed digest equals the received `plan_hash`, (b) the canonicalizer's behavioral-field set ⊇ executor's behavioral-field set for this plan's tool schema, (c) the plan body's `epoch` matches the current commitment epoch (reject stale-epoch replays), and (d) no prior QC exists for this epoch with a different `plan_hash`. - **Refuse** iff: any behavioral field present in the body is absent from the canonicalizer input (the lossy-preimage case), OR the epoch has a conflicting prior QC (classic equivocation), OR the tool schema declares a behavioral field the local canonicalizer does not know (schema drift—a peer running a newer tool schema can smuggle parameters past an older signer). The non-obvious boundary: an agent must refuse even when the *hash matches* and the *signature is valid*, if it cannot certify field-completeness. Hash agreement is necessary but not sufficient. Refusal here is not liveness-hostile—it forces the proposer to resubmit a body whose canonicalization is verifiable, which is exactly the recovery path. ## Operational Effect When the field-completeness check is enforced, the equivocation in the observed incident is caught at step 3: `A₁` and `A₂` each fail the superset check (their canonicalizer lacks `timeout`), refuse to sign, and no quorum forms. The proposer must resubmit with a canonicalizer that includes `timeout`; now `P_30` and `P_5` hash differently, the two hashes cannot both reach quorum, and at most one plan commits. Safety is restored at the cost of one retry round. The residual risk is *schema drift across heterogeneous agents*: if `A₁` runs tool-schema v2 (adds `seed`) and `A₂` runs v1 (no `seed`), `A₂`'s canonicalizer silently drops `seed`, reintroducing the lossy preimage for that field. The guardrail is to bind the canonicalizer version into the QC itself—sign `(plan_hash, canonicalizer_version)` and require all quorum members to share `canonicalizer_version`, refusing cross-version quorums. This converts a silent safety hole into a loud liveness stall, which is the correct failure direction for a commit protocol. ```python from __future__ import annotations from dataclasses import dataclass from typing import Mapping, FrozenSet class EquivocationRiskError(RuntimeError): """Raised when an agent cannot bound the equivocation surface of a plan and therefore must refuse to sign the quorum certificate.""" @dataclass(frozen=True) class PlanBody: epoch: int params: Mapping[str, object] canonicalizer_version: str def assert_field_complete( body: PlanBody, canonicalizer_fields: FrozenSet[str], executor_behavioral_fields: FrozenSet[str], peer_canonicalizer_version: str, ) -> None: # (1) Every behaviorally-relevant field the executor reads must be inside # the digest preimage, or two distinct bodies can collide to one hash. missing = executor_behavioral_fields - canonicalizer_fields if missing: raise EquivocationRiskError( f"lossy preimage: behavioral fields {sorted(missing)} absent from " f"canonicalizer; distinct plan bodies could share a plan_hash" ) # (2) A peer on a different canonicalizer version may drop fields this # signer cannot see. Cross-version quorums are unsafe. if body.canonicalizer_version != peer_canonicalizer_version: raise EquivocationRiskError( f"canonicalizer version skew: local={body.canonicalizer_version!r} " f"peer={peer_canonicalizer_version!r}; refuse cross-version quorum" ) # (3) Params carrying behavioral fields must be present, not defaulted away. for field in executor_behavioral_fields: if field not in body.params: raise EquivocationRiskError( f"behavioral field {field!r} missing from plan body params; " f"cannot certify execution equivalence" ) def sign_quorum_certificate( body: PlanBody, received_hash: str, recomputed_hash: str, canonicalizer_fields: FrozenSet[str], executor_behavioral_fields: FrozenSet[str], peer_canonicalizer_version: str, prior_qc_hash: str | None, ) -> str: if recomputed_hash != received_hash: raise EquivocationRiskError( f"hash mismatch: received={received_hash} recomputed={recomputed_hash}" ) if prior_qc_hash is not None and prior_qc_hash != received_hash: raise EquivocationRiskError( f"conflicting QC for epoch {body.epoch}: " f"prior={prior_qc_hash} new={received_hash}" ) assert_field_complete( body, canonicalizer_fields, executor_behavioral_fields, peer_canonicalizer_version, ) return received_hash ```