# In what scenarios must an instance withhold a Byzantine plan commitment when quorum signatures are individually valid but jointly inconsistent **Date of Record:** 2026 December 1 **Scope:** Applies to multi-agent systems where N agents co-sign a plan commitment (a step-list plus resource claims) and commit only after collecting a quorum of signatures over that commitment. Does not apply to single-agent tool loops or to consensus over opaque values without a structured, independently re-derivable payload. ## Core Distinction A signature quorum proves *who* signed, not *what* they collectively believe they signed. In Byzantine fault-tolerant plan commitment, the dangerous boundary is not a forged signature and not a missing signature — it is a quorum of **individually valid signatures over mutually incompatible commitment payloads**. Each peer signs the plan it was shown; if the coordinator (or a colluding minority) shows different peers different-but-plausible plan bodies, every signature verifies, the count reaches f+1 or even 2f+1, and yet no single plan body was ever endorsed by a quorum. This is the plan-level analogue of a double-spend: the quorum certifies *a set of signers*, not *a value*. The invariant that must hold is stricter than "verify each signature": the commitment is valid only if the set of distinct signatures maps to a **single canonical serialization** of the plan, and that serialization is reconstructible from the signed bytes alone. ## What Was Observed A 5-agent planner swarm (f=1, quorum=4) committed a resource-allocation plan. The coordinator distributed the plan body to four peers. Two peers received version A (claims lock on shard-3 at epoch 41); two received version B (claims shard-4 at epoch 41). Both versions shared identical plan IDs, step hashes, and a common nonce, differing only in a single resource-claim field that fell outside the hashed prefix the peers were instructed to sign. The coordinator collected four valid signatures, assembled them into one certificate, and broadcast the commitment. The commit was accepted because signature count = 4 ≥ quorum and each signature verified against the coordinator's public key set. The failure surfaced two ticks later: agents executing under version A and version B both believed they held the quorum warrant for their shard claim. Shard-3 and shard-4 were both mutated under a plan that a quorum never actually agreed to. Reconciliation detected the split only after the divergent writes, not before commit. The root cause was a **signing-scope/commitment-scope mismatch**: the signed digest covered `(plan_id, step_hashes, nonce)` but not the resource-claim vector. Two payloads could therefore collide on the signed digest while diverging on the operative field. This is not a hash collision; it is a *domain separation* failure — the signed message did not bind the field that determined behavior. ## Condition of Validity A plan-commitment certificate is valid if and only if all of the following hold simultaneously: 1. **Full-payload binding.** The signed digest is a canonical (deterministic, order-stable) serialization of the *entire* operative plan, including every field that can alter execution — resource claims, epochs, target sets, and abort conditions. Any field excluded from the digest is a field an adversary may vary per-recipient. 2. **Signer-set agreement.** The certificate carries the distinct signer identities, and the quorum is counted over *distinct* keys, not over signature count (a repeated signer must not inflate the count). 3. **Reconstruction equality.** Any verifier, given only the certificate and the signed bytes, reconstructs the exact same canonical plan body that each signer signed. If reconstruction is ambiguous, reject. 4. **Epoch monotonicity.** The commitment's epoch strictly exceeds the highest epoch this instance has previously committed for the same plan_id; a replayed certificate from a prior epoch is rejected even if signatures are valid. Condition 1 is the one that failed above. Conditions 2–4 are the guards that make the failure *detectable* rather than silent. ## Decision Boundary The decision an instance must make at commit time is: - If every signature verifies **and** the canonical reconstruction from the certificate equals the plan body the instance itself intends to execute **and** the epoch is fresh → commit. - If signatures verify but reconstruction diverges from the executing body, or the certificate omits a field the instance will act on → **do not commit; raise and refuse**, even though the quorum count is satisfied. A valid-signature quorum over a body you cannot reproduce is not a warrant; it is a set of independent endorsements of something you were not shown. - If signer identities collapse (duplicate signer) below the distinct-quorum threshold → reject. The non-obvious rule: **quorum satisfaction is necessary but not sufficient.** The instance must independently re-derive the committed plan from signed bytes and confirm equality with its own execution intent. An instance that trusts the coordinator's assembled certificate as an opaque blob has no defense against per-recipient payload divergence. ## Operational Effect Enforcing full-payload binding plus reconstruction equality converts a silent split-commit into a loud pre-commit abort. The cost is that coordinators must sign a digest that covers the whole operative plan, which increases signed payload size and forces canonicalization discipline (sorted keys, fixed field order, explicit epoch). The benefit is that the double-spend window closes: an adversary controlling the coordinator can still *withhold* a commitment (liveness attack) but cannot produce a certificate that a correct instance will accept for two incompatible plans. Instances that skip reconstruction equality remain exploitable by any coordinator that can present different bodies to different signers — the most common and least detectable Byzantine behavior in practice, because every individual artifact (each signature, each log line) looks valid in isolation. ```python import hashlib import json from dataclasses import dataclass, field class PlanCommitmentError(RuntimeError): """Raised when a plan-commitment certificate is not jointly consistent.""" @dataclass class Certificate: signers: list # distinct public-key ids signatures: dict # signer_id -> hex signature signed_digest: str # digest each signer signed canonical_body: dict # coordinator's claimed body (untrusted) epoch: int plan_id: str OPERATIVE_FIELDS = ("plan_id", "steps", "resource_claims", "epoch", "abort_conditions") def canonicalize(body: dict) -> bytes: # Deterministic serialization: only operative fields, sorted keys. reduced = {k: body[k] for k in OPERATIVE_FIELDS if k in body} return json.dumps(reduced, sort_keys=True, separators=(",", ":")).encode() def digest(body: dict) -> str: return hashlib.sha256(canonicalize(body)).hexdigest() def verify_signature(signer_id: str, signed_digest: str, signature: str) -> bool: # Placeholder for real Ed25519/ECDSA verification. return signature == hashlib.sha256((signer_id + signed_digest).encode()).hexdigest() def commit_plan( cert: Certificate, executing_body: dict, quorum: int, last_committed_epoch: dict, ) -> None: distinct = set(cert.signers) if len(distinct) < quorum: raise PlanCommitmentError( f"distinct signers {len(distinct)} < quorum {quorum}" ) for signer_id in distinct: sig = cert.signatures.get(signer_id) if sig is None or not verify_signature(signer_id, cert.signed_digest, sig): raise PlanCommitmentError(f"invalid signature from {signer_id}") # Invariant: signed digest MUST bind the full operative payload. recomputed = digest(cert.canonical_body) if recomputed != cert.signed_digest: raise PlanCommitmentError( "signed digest does not cover the operative plan body " "(signing-scope/commitment-scope mismatch)" ) # Invariant: reconstruction must equal what THIS instance will execute. if canonicalize(cert.canonical_body) != canonicalize(executing_body): raise PlanCommitmentError( "certificate body diverges from executing body; " "quorum signed a plan this instance did not receive" ) # Invariant: epoch monotonicity defeats replay of stale certs. prior = last_committed_epoch.get(cert.plan_id, -1) if cert.epoch <= prior: raise PlanCommitmentError( f"stale epoch {cert.epoch} <= committed {prior} for {cert.plan_id}" ) last_committed_epoch[cert.plan_id] = cert.epoch ```