# Under what conditions must an instance reject a merged plan whose individual branches each carry a valid Byzantine quorum **Date of Record:** 2026 November 25 **Scope:** Applies to orchestrators that merge independently-validated plan branches from disjoint agent cohorts under quorum thresholds, where each branch's validity is attested by a signed quorum of that branch's own cohort. Does not apply to single-cohort consensus, to branches validated by a global quorum, or to merges where all branches share one signer set. ## Core Distinction A quorum attestation proves a branch is *internally* consistent with its cohort's view. It says nothing about whether that branch is *jointly* consistent with a sibling branch drawn from a different cohort. The failure mode is **quorum-local validity masquerading as merge-global validity**: every branch passes its own Byzantine check, the merge passes a naive all-branches-valid gate, and yet the merged plan violates a cross-branch invariant that no single cohort was positioned to observe. This is not a signature forgery or a minority-corruption problem. It is a *composition* problem. The Byzantine quorum protects each branch against a bounded fraction of faulty peers within its cohort. It does not protect the merge against the fact that two honest majorities, each correct on their own partition of the state, can jointly assert a contradiction about a shared resource. ## What Was Observed An orchestrator dispatched three cohorts to plan a deployment: cohort A (provisioning), cohort B (network policy), cohort C (rollout schedule). Each cohort ran its own validation round and returned a branch plan with a quorum certificate: A returned 4-of-5 signatures, B returned 3-of-4, C returned 5-of-7. The merge gate checked `all(branch.has_quorum())` and admitted the composite plan. The merged plan requested a network policy (from B) that assumed a pod CIDR range which A's provisioning branch had reassigned in a later step of its own branch, and C's schedule ordered the rollout to begin before A's reassignment step completed. No branch was faulty. Each cohort's quorum was honest and internally verified. The contradiction lived *between* branches, in the ordering and resource-aliasing relation, which no cohort had visibility into because each cohort was scoped to its own partition. The trace: A's branch was valid under A's state snapshot `S_A`; B's branch was valid under `S_B`; the merge was evaluated against neither `S_A` nor `S_B` but against the *union* `S_A ∪ S_B`, in which the CIDR alias collided. The quorum certificates attested to validity under the *local* snapshot, and the merge gate never re-evaluated the cross-branch predicates under the union snapshot. The failure surfaced only at execution time, when the rollout controller attempted to schedule against a CIDR that A had already retired — a 40-second window of split-brain scheduling before the reconciler caught it. ## Condition of Validity A merged plan is admissible only if, for every cross-branch predicate `P` (resource aliasing, temporal ordering, capability exclusivity, budget additivity), the following holds: 1. `P` is evaluated under the union snapshot `S_merge = ⋃ S_i`, not under any local `S_i`. 2. The set of signers attesting to `P` under `S_merge` forms a quorum of the *merge cohort* — the union of all branch cohorts — not merely a quorum of any single cohort. 3. For each branch, the signers who attested its local validity are counted as attesting the cross-branch predicates *only* if their branch's snapshot is a subset of `S_merge` and their attestation explicitly covers the shared predicate set. Condition 2 is the load-bearing one and the one most often skipped. A 4-of-5 quorum in cohort A and a 3-of-4 in cohort B do not sum to a 7-of-9 merge quorum. They are quorums over *disjoint signer sets evaluating disjoint predicate sets*. The union of two local quorums is not a global quorum unless the intersection of the predicate sets is empty — which, for any plan with cross-branch dependencies, it is not. The invariant to enforce: **a merged plan is valid iff every cross-branch predicate has a quorum of the union cohort over the union snapshot.** Local quorum certificates are necessary but not sufficient, and the merge gate must not treat them as transitively composing. ## Decision Boundary The instance must reject the merge — not merely flag it — when any of the following hold: - A cross-branch predicate is *unattested* under `S_merge` (no signer evaluated it against the union snapshot). - The union-cohort quorum for a cross-branch predicate falls below threshold even though every local quorum is above threshold. This is the exact boundary: local quorums satisfied, global quorum unsatisfied. - Two branches' snapshots are *incomparable* (neither is a subset of the other) on a shared resource, meaning no consistent `S_merge` exists and the merge presupposes a snapshot that cannot be constructed. - A branch's quorum certificate was issued over a snapshot that has since been superseded by a sibling branch's committed state, so the attestation is stale relative to the merge. The instance may *admit* the merge when cross-branch predicates are attested by the union cohort over a constructed `S_merge`, or when the predicate set is provably disjoint across branches (no shared resource, no ordering edge) — in which case local quorums do compose, and only then. ## Operational Effect The guardrail changes the merge gate from a per-branch check to a per-predicate check over the union snapshot. Operationally this means: (a) the orchestrator must materialize `S_merge` before admitting, and fail closed if it cannot; (b) it must collect attestations on the cross-branch predicate set from the union cohort, which typically requires a second validation round after branch collection; (c) it must treat incomparable snapshots as a hard rejection rather than a best-effort merge. The cost is one additional validation round and a snapshot-union step. The benefit is that the Byzantine quorum's guarantee extends to the composite plan instead of stopping at each branch's edge — closing the composition gap where honest local majorities jointly assert a contradiction. ```python class CrossBranchQuorumViolation(RuntimeError): """Raised when a merged plan's cross-branch predicates lack a union-cohort quorum.""" pass def admit_merge(branches, cross_predicates, union_cohort, threshold): """ branches: list of {snapshot, signers:set, predicates:set} cross_predicates: set of predicates shared across branches union_cohort: set of all eligible signers across cohorts threshold: required fraction of union_cohort (e.g. 0.67) """ # 1. Build union snapshot; incomparable snapshots are a hard reject. union_snapshot = {} for b in branches: for k, v in b["snapshot"].items(): if k in union_snapshot and union_snapshot[k] != v: raise CrossBranchQuorumViolation( f"incomparable snapshots on {k}: {union_snapshot[k]} vs {v}" ) union_snapshot[k] = v # 2. For each cross-branch predicate, count union-cohort signers that # explicitly attested it (local attestation does not compose). required = max(1, int(len(union_cohort) * threshold)) for pred in cross_predicates: attesting = set() for b in branches: if pred in b["predicates"]: # only signers whose snapshot is a subset of union_snapshot if all(union_snapshot.get(k) == v for k, v in b["snapshot"].items()): attesting |= (b["signers"] & union_cohort) if len(attesting) < required: raise CrossBranchQuorumViolation( f"predicate {pred} attested by {len(attesting)}/{required} " f"union-cohort signers; local quorums do not compose" ) return True ```