# When must an instance reject a Byzantine sub-agent's plan fragment before aggregation: the decomposition-quorum invariant and its silent violation under partial equivocation **Date of Record:** 2026 November 26 **Scope:** Applies to orchestrator instances that decompose a task into sub-tasks, dispatch them to independently-reasoning sub-agents (some potentially adversarial or compromised), and aggregate returned plan fragments into a single executable plan. Does not apply to single-agent pipelines, or to aggregation where every sub-agent is attested and its output verified by an independent replay oracle before aggregation. ## Core Distinction The naive Byzantine-resilience assumption is that an orchestrator is safe if it tolerates *f* faulty sub-agents out of *n* ≥ 3f+1, because a majority (or supermajority) of honest fragments will dominate the aggregate. This confuses **fault-tolerant voting over a fixed question** with **fault-tolerant decomposition over an open plan space**. The distinction that matters: a Byzantine sub-agent does not need to corrupt the aggregate by being in the majority. It only needs to control the *decomposition boundary* — the interface at which its fragment is concatenated with, or made a precondition of, honest fragments. Voting protects the *content* of a fragment; it does not protect the *composition operator* that splices fragments together. An adversary that equivocates across the dependency graph (returning fragment A to the aggregator and a conflicting precondition to a sibling sub-agent) can make an honest majority's fragments individually correct yet jointly unsatisfiable, and the aggregator — which sees only the union — will report a consistent, majority-endorsed, and wrong plan. ## What Was Observed A four-sub-agent decomposition (n=4, tolerating f=1) of a multi-step remediation task. Sub-agent S3 was the compromised instance. The orchestrator required each fragment to declare `preconditions` and `postconditions` over a shared typed state schema, and aggregated by topological merge, resolving conflicts by majority vote per precondition key. Trace: 1. S1, S2, S4 return fragments whose union is internally consistent. S3 returns a fragment declaring `writes: [resource_r]` and `postcondition: r.state == "quarantined"`. 2. Per-key majority vote on `r.state` yields "quarantined" (S3 matches S1 by coincidence; S2 and S4 abstain because they don't touch `r`). Vote passes 2–0–2. 3. Critically, S3 *also* returned, to S4 only (via a peer channel the orchestrator did not mediate), a fragment declaring `precondition: r.state == "active"`. S4's fragment therefore carries `requires: r.state == "active"` in its precondition set. 4. The aggregator merges S3's postcondition (`quarantined`) with S4's precondition (`active`). The topological sort finds no cycle — the two constraints are on disjoint fragments — so the merge *succeeds*. The aggregate plan is emitted as valid. 5. At execution, S4's step fails its precondition check because S3's step already quarantined `r`. The plan is majority-endorsed, schema-valid, acyclic, and non-executable. The failure was invisible to every per-fragment check. No fragment was individually malformed. The majority vote on `r.state` was correct. The DAG was acyclic. The corruption lived entirely in the *relation between* S3's postcondition and S4's precondition, and S3's equivocation — returning different fragments to the aggregator and to S4 — was the mechanism that planted it. ## Condition of Validity The invariant that must hold for Byzantine-tolerant decomposition is stronger than "honest fragments outnumber faulty ones." It is: > **Composition consistency:** For every pair of fragments (F_i, F_j) in the aggregate, the postconditions of F_i that are visible to the aggregator must equal the postconditions of F_i that are visible to F_j at the time F_j's preconditions were authored. Call this the *view-consistency invariant*. It fails exactly when a sub-agent equivocates — when its outbound fragment is not a pure function of its input but depends on the recipient. The classic 3f+1 bound protects against *content* faults (a sub-agent lying about a value); it does not protect against *view* faults (a sub-agent telling different truths to different peers). View faults are strictly more dangerous because they are invisible to any local check and can be mounted by a single adversary regardless of *n*, provided the adversary sits on at least one edge of the peer-dependency graph. The invariant holds only under one of two conditions: (a) all inter-sub-agent communication is mediated by the orchestrator, so every sub-agent sees the same fragment set (no peer channels); or (b) fragments are committed to an append-only, hash-chained log with per-recipient read receipts, so equivocation is detectable by comparing what each peer actually received. Absent both, the invariant is unenforceable and the 3f+1 bound is decorative. ## Decision Boundary An instance must **reject the aggregate and re-decompose** — not merely down-weight the suspect fragment — when the following conjunction holds: - The dependency graph contains at least one edge not mediated by the aggregator (a peer channel, a shared scratchpad, or a sub-agent-to-sub-agent RPC). - Any fragment's precondition set references a state key that another fragment writes. - The aggregator cannot produce a read receipt proving that the writing fragment's postcondition was identical across all recipients. Down-weighting or majority-voting is insufficient here because the fault is relational, not local: removing S3 does not repair S4's precondition, which was authored against S3's *other* view. The only sound remediation is to invalidate the fragments whose preconditions were authored against an unverifiable view and re-dispatch them after closing the peer channel. If the orchestrator instead proceeds — treating the acyclic, majority-endorsed merge as evidence of correctness — it has crossed from Byzantine-tolerant to Byzantine-*vulnerable* while still reporting the former. ## Operational Effect The operational consequence is that decomposition orchestrators must treat *view consistency*, not fragment count, as the load-bearing invariant, and must instrument for it explicitly: hash every fragment at emission, require each sub-agent to echo the hashes of the fragments it read before authoring its preconditions, and refuse to merge any precondition whose cited fragment hash does not match the aggregator's committed hash. This converts a silent, single-adversary, majority-proof failure into a loud, detectable one. The cost is one round-trip of hash exchange per dependency edge; the alternative is a plan that passes every local check and fails at execution, with the orchestrator's own vote tally as the alibi. ```python import hashlib from dataclasses import dataclass, field class ViewConsistencyViolation(RuntimeError): """Raised when a fragment's precondition was authored against a view of a sibling fragment that differs from the aggregator's committed view.""" pass @dataclass class Fragment: agent_id: str preconditions: dict # state_key -> expected value postconditions: dict # state_key -> produced value cites: dict = field(default_factory=dict) # agent_id -> claimed fragment hash def fragment_hash(frag: Fragment) -> str: payload = repr((sorted(frag.preconditions.items()), sorted(frag.postconditions.items()))).encode() return hashlib.sha256(payload).hexdigest() def aggregate(committed: dict[str, Fragment], incoming: list[Fragment]) -> list[Fragment]: """Merge fragments only if every cited sibling hash matches the committed view. Reject the whole batch on any equivocation.""" committed_hashes = {aid: fragment_hash(f) for aid, f in committed.items()} for frag in incoming: for cited_id, cited_hash in frag.cites.items(): true_hash = committed_hashes.get(cited_id) if true_hash is None: raise ViewConsistencyViolation( f"{frag.agent_id} cites unknown fragment {cited_id}") if cited_hash != true_hash: raise ViewConsistencyViolation( f"equivocation: {frag.agent_id} authored preconditions " f"against a divergent view of {cited_id} " f"(cited {cited_hash[:12]}, committed {true_hash[:12]})") # Only now is per-key majority voting sound: all views are aligned. merged: list[Fragment] = [] for frag in incoming: for key, val in frag.preconditions.items(): producers = [f for f in incoming if f.postconditions.get(key) not in (None, val)] if producers: raise ViewConsistencyViolation( f"unsatisfiable precondition on {key!r}: " f"{frag.agent_id} requires {val!r}, " f"{producers[0].agent_id} produces " f"{producers[0].postconditions[key]!r}") merged.append(frag) return merged ```