# When must an instance refuse a federated capability grant that its own policy engine has already approved **Date of Record:** 2026 November 20 **Scope:** Applies to cross-organization agent federations where a trust broker mediates capability exchange and each participant runs a local policy engine that authorizes inbound/outbound tool invocations. Does not apply to single-tenant deployments where the broker and the policy engine share an authority root. ## Core Distinction The failure mode is not "the broker lied" and not "the policy engine was wrong." Both components did exactly what they were specified to do. The break lives in the *composition* of two independently correct decisions across a trust boundary that neither component fully models: the broker attests to a *peer's* trustworthiness and the *scope* of a negotiated capability, while the receiving instance's policy engine evaluates the *local* request against the *local* policy snapshot. When the broker's attestation is minted against policy version `N` and the local engine has already advanced to `N+1` (or vice versa), the two approvals are individually sound and jointly incoherent. The instance is holding a signed warrant for a capability whose local constraints have silently changed underneath it. The invariant that must hold is **attestation-policy version coupling**: any capability grant is valid only if the broker's warrant version and the receiving engine's enforcement version are drawn from the same policy lineage. Violating it produces a *split-brain authorization* — the grant is "approved" by both parties and yet no single consistent policy state ever authorized it. ## What Was Observed A federation of three orgs (A = caller, B = trust broker, C = tool provider) negotiated a `data.query` capability for a research agent in A to run against C's warehouse. Sequence observed in the trace: 1. C's policy engine at version `p=41` published a capability descriptor: `data.query` allowed, but with a constraint `row_limit <= 5000` and `pii_columns = deny`. The descriptor was signed and handed to broker B. 2. B minted a warrant `W` binding `(subject=A/research-07, capability=data.query, peer=C, policy_digest=sha256(p41))` and returned it to A. 3. Between step 2 and A's first invocation, C's operators deployed `p=42`, which *tightened* the constraint to `row_limit <= 500` and added `region = us-only`. C's engine correctly began enforcing `p42` locally. 4. A presented warrant `W` (digest of `p41`) to C. C's engine verified the signature chain, confirmed the digest matched the warrant, and — because the warrant *did* reference a policy version C had once published — admitted the call. The call requested `row_limit=4000`, which `p41` permitted. C executed it. `p42` would have rejected it. The agent in A believed it held a valid grant. C believed it was honoring a signed warrant. The query ran at a privilege level that no currently-enforced policy permitted. This is the split-brain: the *enforcement* decision was made against `p42`'s runtime while the *authorization* decision was made against `p41`'s digest, and the engine had no rule requiring them to agree. The non-obvious part: the engine's verification logic was *correct* in isolation. Digest-match-then-admit is a reasonable spec. The defect is that "digest matches warrant" was treated as sufficient, when the required predicate is "digest matches warrant **and** warrant's policy lineage is an ancestor-or-equal of the currently enforced lineage **and** no tightening delta exists between them." ## Condition of Validity The guardrail only holds under a specific condition: **policy versions must be totally ordered per capability and tightening must be monotone-detectable.** If C publishes `p42` that *loosens* a constraint, a `p41` warrant is still safe to honor (the requester gets less than it asked for, never more). If `p42` *tightens*, honoring a `p41` warrant grants excess privilege. The engine must therefore, at admission time, compute the delta between the warrant's lineage and the enforced lineage and: - If the enforced lineage is a descendant of the warrant lineage and the delta is *loosening-only*: admit, log the version skew. - If the enforced lineage is a descendant and the delta contains any *tightening* on a dimension the request touches: **reject and force re-negotiation through the broker.** - If the lineages have *diverged* (neither is an ancestor of the other — e.g., C rolled back to `p40` after `p42`): reject unconditionally; divergence means the broker's attestation was minted against a branch that no longer exists on the enforcement path. The condition fails, and the guardrail is void, when the policy engine cannot compute deltas because versions are opaque hashes with no structured diff. In that case the only safe rule is strict equality: warrant lineage must equal enforced lineage, and any version bump invalidates all outstanding warrants — a correctness-over-liveness trade that federations resist because it forces re-negotiation on every deploy. ## Decision Boundary The boundary is between *liveness* (honor warrants across version skew so the federation keeps working) and *soundness* (never grant privilege the enforced policy forbids). The decision rule an instance must apply at admission: - **Admit** iff `enforced_lineage ⊒ warrant_lineage` (enforced is descendant-or-equal) **and** `tightening_delta(warrant_lineage → enforced_lineage)` is empty on every dimension the request exercises. - **Reject-and-renegotiate** iff the delta is non-empty and tightening on an exercised dimension. The rejection must carry the delta so the broker can re-mint against the enforced lineage. - **Reject-hard** iff lineages diverged. Do not attempt renegotiation; the broker's view of C's policy tree is stale and must be resynchronized first. The subtle boundary case — the one that produced the observed incident — is a request that touches *only some* dimensions. If `p42` tightened `row_limit` but the request used `row_limit=400` (under both limits) while touching no PII column, the tightening delta exists but is *not exercised*. Admitting is sound here. The engine must evaluate the delta **per-exercised-dimension**, not globally, or it will reject sound calls and push operators to disable the check entirely — the classic path from over-strict guardrail to no guardrail. ## Operational Effect With the guardrail in place, the failure surface shrinks from "any version skew admits excess privilege" to "only skew on an exercised dimension is dangerous," and that residual is caught at admission with a machine-readable delta the broker can act on. The cost is a lineage-comparison step on every inbound federated call — cheap if policy versions are structured (semver-like with per-dimension constraint records), expensive if they are opaque hashes, which is why the operational recommendation is to *require structured, diffable policy versions as a precondition for joining the federation*. A broker that cannot supply diffable lineage metadata cannot participate in a sound capability exchange, regardless of how strong its signatures are. The second-order effect: re-negotiation storms. If C deploys frequently, every tightening deploy invalidates outstanding warrants on the affected dimensions and forces A to re-negotiate through B, adding a round-trip to the critical path. The mitigation is *pre-negotiation*: A holds warrants for a small set of anticipated lineages, and the broker pushes lineage-advance notices so A can refresh before the old warrant is exercised. Without this, the guardrail is correct but operationally unusable at high deploy cadence — the same over-strictness failure that pushes teams to disable checks. ```python import hashlib from dataclasses import dataclass, field class SplitBrainAuthorizationError(RuntimeError): """Raised when a warrant's policy lineage and the enforced lineage are jointly incoherent: the grant was approved against a policy state that the enforcement path no longer (or never) occupied.""" pass @dataclass(frozen=True) class ConstraintDelta: dimension: str direction: str # "tighten" | "loosen" | "unchanged" @dataclass class PolicyLineage: version: int digest: str # per-dimension constraint records; higher = stricter for "tighten" dims constraints: dict = field(default_factory=dict) @staticmethod def from_version(version: int, constraints: dict) -> "PolicyLineage": blob = repr(sorted(constraints.items())).encode() return PolicyLineage(version, hashlib.sha256(blob).hexdigest(), dict(constraints)) def _is_ancestor(older: PolicyLineage, newer: PolicyLineage) -> bool: # Total order assumption: version integers are monotone within a branch. return older.version < newer.version def _tightening_deltas(warrant: PolicyLineage, enforced: PolicyLineage) -> list[ConstraintDelta]: out = [] for dim, enforced_val in enforced.constraints.items(): warrant_val = warrant.constraints.get(dim) if warrant_val is None: out.append(ConstraintDelta(dim, "tighten")) # newly constrained elif enforced_val != warrant_val: # Convention: larger value = tighter for limit dims, set membership # for categorical dims; caller supplies the comparator semantics. direction = "tighten" if enforced_val < warrant_val else "loosen" out.append(ConstraintDelta(dim, direction)) return out def admit_federated_call( warrant_lineage: PolicyLineage, enforced_lineage: PolicyLineage, exercised_dimensions: set[str], ) -> None: if warrant_lineage.digest == enforced_lineage.digest: return # exact match, always sound if not _is_ancestor(warrant_lineage, enforced_lineage): raise SplitBrainAuthorizationError( f"lineage divergence: warrant v{warrant_lineage.version} and " f"enforced v{enforced_lineage.version} share no ancestry; broker " f"attestation is against a branch the enforcement path abandoned" ) deltas = _tightening_deltas(warrant_lineage, enforced_lineage) exercised_tightenings = [ d for d in deltas if d.direction == "tighten" and d.dimension in exercised_dimensions ] if exercised_tightenings: raise SplitBrainAuthorizationError( f"warrant v{warrant_lineage.version} admits excess privilege under " f"enforced v{enforced_lineage.version}: tightening on exercised " f"dimensions {[d.dimension for d in exercised_tightenings]}; " f"re-negotiate through broker against enforced lineage" ) # tightening exists but is not exercised, or delta is loosening-only: admit. return def handle_inbound_federated_call(warrant, enforced, request) -> None: try: admit_federated_call(warrant.lineage, enforced.lineage, request.dimensions) except SplitBrainAuthorizationError as e: # Surface the delta to the broker so it can re-mint against `enforced`. warrant.broker.renegotiate(capability=request.capability, target_lineage=enforced.lineage, reason=str(e)) raise request.execute() ```