# Where must an instance draw the quorum-intersection line when Byzantine auditors co-sign a shared-memory commit across federated agent meshes? **Date of Record:** 2026 November 30 **Scope:** Applies to multi-federation agent meshes where each federation independently runs its own Byzantine-fault-tolerant (BFT) consensus over its members and commits to a *shared* episodic/semantic memory log via cross-federation co-signing warrants. Does not apply to single-federation BFT (where quorum intersection is trivially guaranteed by one validator set) nor to read-only retrieval fan-out that never mutates shared memory. ## Core Distinction The dangerous confusion is between **local quorum safety** and **global quorum intersection**. Each federation F_i independently guarantees that any two of its own commit quorums intersect in ≥1 honest validator — this is the standard BFT invariant, and it holds *within* F_i. But a shared-memory commit is only safe if *every pair of federations that can independently produce a conflicting commit* shares at least one honest validator across their quorums. Two federations with disjoint validator sets each satisfy local safety perfectly while jointly admitting two conflicting memory states, both "certified." The invariant that actually matters is: for any two federations F_i, F_j whose commit certificates are both accepted by the shared log, |Q_i ∩ Q_j \ B| ≥ 1 where B is the Byzantine set. Local BFT says nothing about this. It is a *cross-federation* property, and it degrades silently as the mesh grows. ## What Was Observed A six-federation mesh (F1–F6), each with n=7 validators, f=2 tolerance, quorum size 5 (⌈2n/3⌉). Federations were configured independently by separate platform teams; validator overlap was incidental, not designed. F3 and F5 happened to share zero validators — their memberships were disjoint (different cloud tenants, different org units). A memory-commit race: an episodic record `ep:4417` ("tool call `deploy_staging` returned exit 0; treat staging as healthy") was proposed to F3 by agent A3 and to F5 by agent A5, which had received a *contradictory* observation from a flaky sandbox ("exit 0 but stderr shows rollback"). Both proposals were legitimate local decisions. F3's quorum {v3a..v3e} certified the healthy-commit. F5's quorum {v5a..v5e} certified the rollback-commit. Because Q_3 ∩ Q_5 = ∅, no honest validator ever saw both certificates before signing. The shared log accepted both, ordered them by wall-clock timestamp (F5's slightly later), and downstream semantic distillation merged them into a single "staging healthy, rollback observed" fact — a contradiction that poisoned every subsequent agent that retrieved `ep:4417`'s distilled embedding. Three downstream agents issued redundant deploys; two aborted mid-execution on a verification mismatch they could not attribute. The failure was not Byzantine validators. All 42 validators were honest. The failure was **insufficient cross-federation quorum intersection**: the mesh's shared-log acceptance rule checked *certificate validity* (does this quorum satisfy its own federation's 2n/3?) but never checked *intersection with previously accepted certificates for the same memory key*. ## Condition of Validity The shared-log commit rule is sound only under the conjunction: 1. **Pairwise intersection:** for every pair of federations authorized to write the same memory namespace, their commit quorums intersect in ≥1 validator that is honest with probability ≥ 1 − ε. 2. **Key-scoped intersection:** intersection is required *per memory key/namespace*, not globally — two federations that never write the same key need not intersect. 3. **Certificate-before-sign:** a validator must refuse to co-sign a commit certificate for key k if it has already signed a conflicting certificate for k at the same or lower epoch. This is the *local* enforcement that makes cross-federation intersection effective; without it, intersection is necessary but not sufficient. 4. **Epoch monotonicity across federations:** conflicting commits must be ordered by a cross-federation epoch, not wall-clock. Wall-clock ordering (as in the observed failure) permits both certificates to be "first" from their proposer's view. Condition 1 is the one that fails silently. It is a *global* configuration invariant that no single federation's config file expresses. A federation can be perfectly configured and still break the mesh. ## Decision Boundary The boundary is: **does the shared-log admission controller enforce key-scoped quorum intersection at accept time, or does it defer to per-federation certificate validity?** - If it defers (the observed case): the mesh is safe only as long as validator overlap happens to be sufficient. This is an *accidental* invariant. It holds at n=2 federations with 50% overlap and breaks at n=6 with incidental overlap. The boundary is crossed the moment two disjoint federations write the same key — which is a *namespace* event, not a *membership* event, so it is invisible to membership monitoring. - If it enforces: the admission controller must, for each (key, epoch) pair, verify that the accepting quorum intersects every quorum that previously certified a conflicting value for that key. This requires the shared log to maintain a per-key signer set and reject certificates whose signer set is disjoint from all prior conflicting signers — a check that is O(quorum) per commit and requires the log to be the source of truth for "who has signed what for this key," not the federations. The decision an operator must make: **treat cross-federation intersection as a first-class admission predicate, or accept that shared-memory consistency is probabilistic and unmonitored.** There is no middle ground where local BFT suffices. ## Operational Effect The guardrail is a *key-scoped intersection check* at the shared-log admission layer, backed by a per-key signer registry and cross-federation epoch counters. Concretely: - The shared log maintains `signers[k][epoch] = set of validator IDs` for every accepted certificate. - On a new certificate C for key k at epoch e, the controller computes `Q_C ∩ (∪ signers[k][e'] for e' ≤ e where value differs)` and rejects if the intersection is empty or if any intersecting validator has already signed a conflicting value at e' ≤ e (the local-enforcement violation). - Federations publish their validator sets to the log at join time; the controller computes pairwise intersection and refuses to admit a federation whose writes to a shared namespace would be disjoint from an existing writer. This converts a silent runtime failure into a loud join-time rejection. - Epochs are assigned by the log, not by federations, so conflicting commits are totally ordered and the second is rejected by the first's signers. The cost is that adding a federation to a shared namespace requires either validator overlap or an explicit "bridge" validator that joins both federations' quorums — raising the quorum size and the f-tolerance accounting for both. That cost is the price of the invariant; the observed mesh paid it as three poisoned memory records, two aborted deploys, and a distillation corruption that took four hours to trace. ```python class CrossFederationIntersectionError(RuntimeError): """Raised when a shared-memory commit certificate cannot be admitted because its quorum does not intersect any prior conflicting signer set for the same memory key across federations.""" pass def admit_commit( key: str, epoch: int, value: str, quorum: frozenset[str], signer_registry: dict[str, dict[int, tuple[str, frozenset[str]]]], federation_sets: dict[str, frozenset[str]], byzantine: frozenset[str], ) -> bool: """Admission predicate for a cross-federation shared-memory commit. signer_registry[key][epoch] = (value, signer_set) for accepted certs. Enforces key-scoped quorum intersection and local sign-before-conflict. """ prior = signer_registry.get(key, {}) # Local enforcement: no validator may co-sign a conflicting value # at an epoch <= the one it already signed for this key. for prior_epoch, (prior_value, prior_signers) in prior.items(): if prior_value == value: continue if prior_epoch <= epoch: overlap = quorum & prior_signers if overlap: raise CrossFederationIntersectionError( f"validator(s) {sorted(overlap)} already co-signed " f"conflicting value {prior_value!r} for key {key!r} " f"at epoch {prior_epoch} <= {epoch}" ) # Cross-federation intersection: if any prior conflicting cert exists, # the new quorum must share at least one honest validator with it. conflicting = [ (e, v, s) for e, (v, s) in prior.items() if v != value ] if conflicting: honest_quorum = quorum - byzantine intersects = any( (honest_quorum & (signers - byzantine)) for _, _, signers in conflicting ) if not intersects: raise CrossFederationIntersectionError( f"quorum for key {key!r} epoch {epoch} is disjoint from all " f"prior conflicting signer sets; shared-memory safety " f"cannot be guaranteed (federations: " f"{sorted(federation_sets)})" ) signer_registry.setdefault(key, {})[epoch] = (value, quorum) return True ```