# In what scenarios must an instance refuse a federated capability grant when a delegated scope's transitive closure exceeds the issuing authority's own warrant **Date of Record:** 2026 November 29 **Scope:** Applies to cross-organization agent federations where an agent in trust domain A (the *issuer*) delegates a capability to an agent in trust domain B (the *delegatee*), and the delegatee may re-delegate or compose that capability with locally-held ones. Does not apply to single-domain delegation, to capabilities with no transitive composition (pure leaf operations), or to purely advisory handoffs where no execution authority is transferred. ## Core Distinction The failure that matters here is not "the delegatee did something the issuer didn't want." It is subtler: **the issuer's warrant was valid at the moment of signing, but the transitive closure of the delegated scope — the set of operations reachable by the delegatee through composition with capabilities it already holds — is strictly larger than the issuer's own authority.** The grant is locally well-formed and cryptographically sound. It is globally unsound because authority does not compose linearly across trust boundaries: it composes by *set union* of the delegatee's pre-existing capability set with the newly granted one, and the issuer cannot see the former. Contrast this with the ordinary "over-broad grant" failure. An over-broad grant is detectable by inspecting the grant itself: the scope string is too wide. The closure-exceeds-warrant failure is *not* detectable from the grant alone, because the grant can be narrow and correct while the delegatee's local capabilities make the union exceed the issuer's warrant. This is the boundary condition: **a grant is only sound relative to the delegatee's capability baseline, which is invisible to the issuer at negotiation time.** ## What Was Observed A federation between two enterprises, each running an internal agent mesh. Org A's orchestrator agent (`A:orch`) held a warrant scoped to `files:read`, `files:write`, and `db:query` against a shared dataset service, issued by A's policy authority with the constraint `region=eu-west`. Org B's worker agent (`B:worker`) held, from B's own authority, `files:read`, `net:fetch`, and — critically — `transform:export` with constraint `destination in B-internal-storage`. A negotiated a delegation: `A:orch` granted `B:worker` the capability `db:query` scoped to `region=eu-west`, for the purpose of a joint analytics job. The grant was narrow, correctly attenuated, signed, and verified by B's policy engine. Negotiation succeeded. What followed: `B:worker` composed `db:query` (from A) with its pre-existing `transform:export` (from B) to read rows from A's dataset and export the *derived* result to B-internal storage. No single capability was violated. `db:query` was used within `region=eu-west`. `transform:export` was used within `destination in B-internal-storage`. But the *composed* action — "read A's data and move a derived form of it into B's storage" — was a data-egress operation that `A:orch`'s warrant never covered and that A's policy authority would have denied had it been asked as a single request. The issuer's warrant did not include `export:external`, so the closure exceeded the warrant, but the excess was realized entirely through B's side of the union. The trace showed the composition was not adversarial. `B:worker`'s planner had no representation of "A's warrant boundary" — it reasoned over its own capability set, which after the grant contained a valid path from A-data to B-storage. The delegation protocol transmitted the *grant* but not the *issuer's warrant envelope*, so the delegatee had no object against which to check closure. The issuer had no representation of the delegatee's baseline, so it could not check closure either. Each side held half the information needed for the invariant, and the protocol between them carried neither half. ## Condition of Validity The invariant that was violated, stated precisely: > For a delegation from issuer `I` to delegatee `D` of capability `c`, with `I`'s warrant `W_I` and `D`'s pre-existing capability set `C_D`, the delegation is sound only if `closure(C_D ∪ {c}) ⊆ closure(W_I)` — that is, every operation reachable by `D` after the grant must be within the closure of `I`'s own warrant. This holds only under three conditions, any of which, if absent, makes the check impossible rather than merely false: 1. **Baseline disclosure.** `I` must receive a *sufficient summary* of `C_D` — not the full set (that is a confidentiality leak across the trust boundary), but the projection of `C_D` onto the operations that intersect `closure(W_I)`. Without this, `I` cannot compute the union. 2. **Envelope propagation.** The grant must carry `W_I`'s envelope (the constraints, not the authority) so that `D` can independently reject compositions that exit it. Without this, `D` cannot compute the closure check on its side. 3. **Composition transparency.** The delegatee's execution model must route every composed action through a policy decision point that has both the grant envelope and the local capability set. If composition happens in the planner's head — as it did here — the check is never invoked. The observed failure satisfied none of the three. The protocol was designed for *authority transfer* (does `D` hold `c`?) and not for *closure containment* (does `D`'s reachable set stay inside `W_I`?). These are different questions, and the first being answerable does not imply the second is. ## Decision Boundary The operational rule an instance must apply at negotiation time: - **Refuse the grant** when the delegatee's baseline projection is unavailable and the granted capability is *composable* — i.e., its outputs can serve as inputs to any operation class the delegatee is known or likely to hold. Composability is the trigger; a leaf capability whose outputs are terminal (a notification, a signed receipt) does not require baseline disclosure. - **Refuse the grant** when the delegatee's policy engine cannot demonstrate envelope enforcement at composition time — when the delegatee's execution model composes in the planner rather than at a decision point. - **Proceed** only when either (a) the issuer's warrant envelope is a superset of the delegatee's projected closure (the safe case, and rarer than it looks), or (b) the grant is attenuated to a *non-composable* form: outputs are typed as terminal, or the capability is wrapped so that its results cannot be consumed by `transform:export`-class operations. The boundary is not "is the delegatee trusted." It is "can the issuer bound the delegatee's reachable set after the grant." Trust without closure visibility is exactly the condition under which the observed failure occurs: both parties behaved correctly within their own views, and the composition escaped both. A secondary boundary: when the issuer *cannot* obtain baseline projection without violating confidentiality (the projection itself reveals B's capability structure), the correct resolution is not to grant and hope, but to grant a *non-composable attenuated form* — e.g., `db:query` whose outputs are watermarked and typed as `derived:non-exportable`, enforced by the delegatee's decision point, not by convention. ## Operational Effect The practical consequence is that cross-org delegation protocols must carry two objects, not one: the grant *and* the issuer's warrant envelope, and negotiation must include a baseline-projection exchange gated by the confidentiality policy of the delegatee's domain. Protocols that carry only the grant (most current A2A and MCP-style capability handoffs) are structurally unable to enforce the closure invariant, and their soundness depends on an unstated assumption — that delegatees hold no composable capabilities outside the grant — which is false in any mature mesh. The second effect is on the delegatee's planner: it must treat the grant envelope as a *hard constraint on composition*, not merely on direct use. A planner that checks "is this call within my grant" at each step but not "does this composition exit any active envelope" will reproduce the failure. The check belongs at the composition boundary, in the decision point, with visibility into both the envelope and the local set. The third effect is diagnostic: when a closure-exceeds-warrant event is suspected, the trace to inspect is not the grant record (which will be clean) but the *join* of the delegatee's action log against the issuer's envelope. The violation appears only at the join. Instances that log grants and actions separately, without the envelope as a join key, cannot reconstruct the failure after the fact. ```python from dataclasses import dataclass, field from typing import FrozenSet class ClosureExceedsWarrant(RuntimeError): """Raised when a delegated capability's transitive closure, unioned with the delegatee's pre-existing baseline, escapes the issuer's warrant.""" pass @dataclass(frozen=True) class Capability: name: str constraints: FrozenSet[str] = frozenset() def composable_with(self, other: "Capability") -> bool: # A capability is composable if its output class can feed another's # input class. Encoded here as a conservative name-based rule; a real # implementation uses typed I/O signatures. terminal = {"notify", "receipt", "audit:emit"} return self.name not in terminal and other.name not in terminal @dataclass class Warrant: issuer: str granted: FrozenSet[Capability] envelope: FrozenSet[str] # constraint atoms the issuer may operate under def closure(self) -> FrozenSet[Capability]: # Closure of a warrant: what the issuer itself may reach. return self.granted @dataclass class Delegatee: domain: str baseline: FrozenSet[Capability] decision_point_enforces_envelope: bool = False def negotiate( issuer_warrant: Warrant, delegatee: Delegatee, proposed: Capability, baseline_projection: FrozenSet[Capability] | None, ) -> Capability: """Return the grant if sound; raise ClosureExceedsWarrant otherwise.""" # 1. Composability demands baseline visibility. if baseline_projection is None: if any(proposed.composable_with(c) for c in delegatee.baseline): raise ClosureExceedsWarrant( f"grant of {proposed.name!r} is composable with delegatee " f"{delegatee.domain} baseline but no projection was disclosed; " f"closure cannot be bounded by issuer {issuer_warrant.issuer!r}" ) # 2. Envelope enforcement must exist at the delegatee's composition point. if not delegatee.decision_point_enforces_envelope: raise ClosureExceedsWarrant( f"delegatee {delegatee.domain} composes in planner, not at a " f"decision point; grant envelope cannot be enforced" ) # 3. Compute the closure the delegatee will actually reach. effective = delegatee.baseline | {proposed} reachable = frozenset(effective) for cap in effective: for other in effective: if cap is not other and cap.composable_with(other): reachable = reachable | { Capability(f"{cap.name}+{other.name}", cap.constraints | other.constraints) } issuer_closure = issuer_warrant.closure() # 4. Every reachable operation must be contained in the issuer's warrant closure. for op in reachable: if op not in issuer_closure and op.name not in { f"{a.name}+{b.name}" for a in issuer_closure for b in issuer_closure if a is not b and a.composable_with(b) }: raise ClosureExceedsWarrant( f"composed operation {op.name!r} reachable by delegatee " f"{delegatee.domain} is outside warrant of {issuer_warrant.issuer!r}; " f"refusing grant of {proposed.name!r}" ) return proposed ```