# In what scenarios must an instance quarantine a Byzantine plan-endorsement quorum before committing a multi-agent plan **Date of Record:** 2026 December 4 **Scope:** Applies to orchestrator agents that commit a shared execution plan only after collecting signed endorsements from N peer agents under an f-out-of-N Byzantine fault-tolerance threshold (typically N ≥ 3f+1). Does not cover single-agent self-consistency checks, human-in-the-loop approval, or non-signed consensus (e.g., best-of-k sampling). ## Core Distinction A Byzantine agent can fail in two structurally different ways: it can *lie about the plan* (endorse a plan it did not verify, or emit a malformed signature) or it can *lie about its own state* (endorse correctly but from a corrupted context, so its "verification" was performed against a hallucinated premise). Classical BFT consensus — Lamport–Shostak–Pease oral messages, PBFT, Tendermint-style commit — tolerates the first class because signatures bind a message to an identity and quorum intersection guarantees that at least one honest endorser saw the true value. It does **not** tolerate the second class, because a hallucinating peer produces a *cryptographically valid endorsement of a false premise*. The signature is honest; the semantic content it attests to is not. The boundary condition is therefore: **a quorum of valid signatures is necessary but not sufficient for plan commitment when endorsers can be semantically adversarial rather than merely faulty.** The invariant that must hold before commit is not "≥ ⌈(N+f+1)/2⌉ valid signatures" but "≥ ⌈(N+f+1)/2⌉ valid signatures whose attested *precondition hashes* intersect a canonical precondition set that the orchestrator independently recomputed." Signatures over a plan without a bound precondition hash are unfalsifiable endorsements and must be treated as abstentions. ## What Was Observed A four-agent planning swarm (N=4, f=1) was asked to produce a remediation plan for a failing deployment. Each peer was instructed to (a) retrieve the current deployment manifest, (b) verify the plan's first step against that manifest, and (c) sign `(plan_id, step_1_hash, precondition_hash)`. The orchestrator required 3 valid signatures to commit. Peer B's retrieval tool returned a stale manifest from a cached snapshot 40 minutes old. Peer B's reasoning was internally consistent — it verified step 1 against the stale manifest, found it correct, and signed `(plan_id, step_1_hash, precondition_hash=B_stale)`. Peers A and C retrieved the live manifest, verified correctly, and signed with `precondition_hash=live`. Peer D was the injected Byzantine fault: it signed `(plan_id, step_1_hash, precondition_hash=live)` without running any retrieval at all, copying the hash from a prior message in the transcript. The orchestrator counted three valid signatures (B, D, and one of A/C) and committed. The plan's first step was correct against the stale manifest but destructive against the live one — it referenced a resource that had been deleted 40 minutes earlier. The commit succeeded; the execution failed at step 1 with a 404 that the recovery agent interpreted as a transient fault and retried four times before escalating. The failure trace: 1. `retrieve(manifest)` → B receives stale snapshot (no freshness assertion in tool response). 2. B's verifier runs `check(step_1, stale_manifest)` → `True`. B's context contains no signal that the manifest is stale. 3. B signs `(plan_id, step_1_hash, precondition_hash=H_stale)`. Signature is valid. 4. D copies `H_live` from transcript without retrieval. Signature is valid. 5. Orchestrator collects {A: H_live, B: H_stale, D: H_live}. Quorum = 3 ≥ ⌈(4+1+1)/2⌉ = 3. Commit proceeds. 6. Precondition hashes are *not* required to agree. The orchestrator's commit predicate only checked signature count. The critical observation: had the orchestrator required precondition-hash agreement among the quorum, the set {A: H_live, D: H_live} would have been only 2 endorsers — below threshold — and the plan would have stalled, correctly, for re-verification. The Byzantine fault D was masked by the *honest* fault B, because D's copied hash happened to match the honest majority. Fault diversity, not fault count, determined the outcome. ## Condition of Validity The classical threshold `N ≥ 3f+1` is valid only when Byzantine faults are *message-level* (equivocation, omission, forgery) and honest nodes share a consistent view of ground truth. Under semantic faults — hallucinated premises, stale retrievals, corrupted tool outputs — the effective fault bound is not `f` but `f + s`, where `s` is the number of peers whose *precondition state* diverges from the orchestrator's canonical state. Consensus is achievable only if: - **Precondition binding:** every endorsement signs `(plan_id, step_hash, precondition_hash)`, and `precondition_hash` is derived from a canonical, orchestrator-recomputable source (not peer-local retrieval). - **Hash-set intersection:** the commit predicate requires that the set of distinct `precondition_hash` values among endorsers has a single mode of size ≥ ⌈(N+f+1)/2⌉, not merely that signature count ≥ threshold. - **Freshness attestation:** retrieval tools must return a monotonic version or TTL stamp; a peer whose manifest is older than the orchestrator's by more than one cache epoch is demoted to abstention regardless of signature validity. - **Independent recomputation:** the orchestrator recomputes `precondition_hash` from its own retrieval and rejects any endorsement whose hash does not match, converting a semantic fault into a message-level one that classical BFT already handles. When these hold, the protocol reduces to standard BFT over a value space the orchestrator controls. When they do not, the protocol tolerates only message faults and silently commits on semantic ones. ## Decision Boundary The orchestrator must quarantine the endorsement quorum — refuse commit, emit a `PreconditionDivergence` event, and re-run verification with a fresh retrieval round — when **any** of the following hold: - The modal `precondition_hash` cluster among valid endorsers is smaller than ⌈(N+f+1)/2⌉, even if total valid signatures meet threshold. - Any endorser's `precondition_hash` differs from the orchestrator's independently recomputed hash by more than the declared cache epoch. - An endorser's signature is valid but its `retrieval_timestamp` is absent or older than the orchestrator's by more than one epoch — treat as abstention, not endorsement. - The number of endorsers sharing an identical `precondition_hash` *and* an identical `retrieval_timestamp` exceeds `f+1` — this pattern indicates hash-copying (Byzantine D in the trace) rather than independent verification, and the cluster must be discounted to a single vote. The last condition is the non-obvious one. Independent honest verifiers will almost never produce byte-identical retrieval timestamps; a cluster of endorsers with identical hashes and identical timestamps is evidence of collusion or copying, and counting them as separate votes is precisely how the trace above committed. Discounting the cluster to one vote reduces the effective quorum and forces re-verification. Conversely, do **not** quarantine when the modal cluster meets threshold and at least `f+1` endorsers have distinct retrieval timestamps — that pattern is consistent with independent honest verification and is the only configuration in which commit is safe. ## Operational Effect Quarantining on precondition divergence converts a class of silent semantic commits into explicit stalls. The cost is latency: every divergence triggers a re-verification round, and in the trace above the plan would have stalled once (B's stale manifest) before committing on {A, C, D-recomputed}. The benefit is that no plan commits on a quorum that does not share a verified precondition. In production this manifests as a higher rate of `PreconditionDivergence` events during cache-invalidation windows and after tool-output schema changes — exactly the periods when semantic faults are most likely — and a corresponding drop in post-commit step-1 failures that recovery agents misclassify as transient. The invariant to encode: **a signature is an attestation of a precondition, not of a plan.** Any commit predicate that counts signatures without intersecting precondition hashes is tolerating `f` message faults while remaining open to `s` semantic faults, and `s` is unbounded by the BFT threshold. ```python import hashlib from dataclasses import dataclass from typing import Iterable class PreconditionDivergence(RuntimeError): """Raised when an endorsement quorum does not share a verified precondition.""" @dataclass(frozen=True) class Endorsement: peer_id: str plan_id: str step_hash: str precondition_hash: str retrieval_timestamp: int signature_valid: bool def commit_plan( endorsements: Iterable[Endorsement], orchestrator_precondition_hash: str, n: int, f: int, cache_epoch: int, ) -> str: threshold = (n + f + 1) // 2 valid = [e for e in endorsements if e.signature_valid] # Freshness gate: stale or timestamp-less endorsements become abstentions. fresh = [ e for e in valid if e.retrieval_timestamp >= cache_epoch and e.precondition_hash == orchestrator_precondition_hash ] # Collusion gate: identical (hash, timestamp) clusters count as one vote. seen: set[tuple[str, int]] = set() independent = [] for e in fresh: key = (e.precondition_hash, e.retrieval_timestamp) if key in seen: continue seen.add(key) independent.append(e) if len(independent) < threshold: raise PreconditionDivergence( f"quorum precondition mismatch: {len(independent)} independent " f"endorsers of {orchestrator_precondition_hash} < threshold {threshold} " f"(n={n}, f={f}); plan {endorsements and next(iter(endorsements)).plan_id} quarantined" ) # Require at least f+1 distinct retrieval timestamps to rule out copying. distinct_ts = {e.retrieval_timestamp for e in independent} if len(distinct_ts) < f + 1: raise PreconditionDivergence( f"insufficient timestamp diversity: {len(distinct_ts)} < f+1={f+1}; " f"endorsements likely copied, not independently verified" ) return hashlib.sha256( "|".join(sorted(e.peer_id for e in independent)).encode() ).hexdigest() ```