# What structural signals indicate a delegated-capability grant has silently widened scope across an agent federation boundary **Date of Record:** 2026 November 29 **Scope:** Applies to cross-organization agent federations where an authority grant (capability token, scoped warrant, or signed delegation record) is minted by a home org agent and exercised by a foreign org agent. Does not cover single-org internal tool authorization or pure transport-layer auth (mTLS, OAuth client credentials) absent a delegation record. ## Core Distinction The failure mode is not "unauthorized access." It is **scope widening under re-delegation**, where a grant that was correctly scoped at mint time becomes effectively broader after crossing an org boundary and being re-serialized, re-interpreted, or re-delegated by a downstream agent. The distinction that matters: - **Malicious escalation** — an agent deliberately requests or forges a wider scope. Detectable by signature and audit comparison. - **Structural widening** — the grant's *semantic* scope expands because the two orgs disagree on how scope is encoded, normalized, or defaulted. Every signature verifies, every audit log reads clean, and the acting agent believes it holds exactly the scope it was granted. Structural widening is the harder problem because there is no adversary and no broken crypto to point at. The grant is valid at every hop; it is only *interpreted* more permissively at the far end than at the near end. The invariant that must hold is: **the effective authority exercised at the resource equals the intersection of every grant in the delegation chain, evaluated under a single shared scope algebra.** When the far org evaluates scope under a different algebra than the minting org, intersection is never computed and the union (or the most permissive default) silently takes effect. ## What Was Observed A home-org orchestrator (Org A) minted a capability grant for a foreign research agent (Org B) scoped to `read:dataset/{id}` for a single dataset identifier, with an explicit `expires_at` and a `delegation_depth=1` bound. Org B's runtime accepted the grant and, to parallelize, spawned three sub-agents and re-delegated a derived grant to each. Three structural signals appeared, none of which triggered any alert: 1. **Scope key normalization drift.** Org A encoded the resource constraint as `resource: "dataset:4471"`. Org B's authorization layer parsed the scope string, split on `:`, and treated the trailing token as an opaque tag, falling back to a *type-level* match (`read:dataset/*`) because it could not resolve `4471` against its own resource namespace. The grant verified; the constraint was dropped by the fallback, not rejected. The far end saw a valid `read:dataset` capability with no binding predicate. 2. **Re-delegation depth reset.** Org B's sub-agent spawner minted child grants by copying the parent grant's fields and decrementing `delegation_depth`. Because the parent had arrived with `delegation_depth=1` but Org B's minter initialized missing depth fields to its own default of `3`, the effective bound at the leaf was `3`, not `0`. The chain that should have terminated at depth 1 continued two hops further, each hop re-widening scope under signal 1. 3. **Default-permit on unresolved predicates.** When a sub-agent presented a grant whose binding predicate referenced a resource Org B could not resolve, Org B's policy engine evaluated the *unresolved* predicate as "not applicable" rather than "deny." This is the decisive signal: the authorization decision for an unresolvable constraint resolved to permit. The combined effect: a grant intended for one dataset, one hop, was exercised by three leaf agents across the full `read:dataset` type, with every signature valid, every hop logged, and no denial anywhere in the chain. The audit trail reconstructed correctly and still showed a "clean" delegation — because each individual decision was locally consistent. ## Condition of Validity The intersection invariant holds only when all of the following are true across every org in the chain. Any one failing converts the chain from intersection to widening: - **Shared scope algebra.** All parties must agree on the grammar of a scope: what constitutes a resource binding, what a wildcard means, and whether an unresolvable predicate is deny or skip. If Org B cannot parse Org A's resource identifier, it must deny, never fall back to type-level. - **Monotonic delegation depth.** Re-delegation must *decrement* a depth counter that is present and non-defaulted. A minter that initializes a missing depth field to its own default silently resets the bound. Depth must be `min(parent_depth - 1, local_max)` and must reject if the field is absent rather than substituting a default. - **Predicate preservation.** A derived grant's constraints must be a subset of the parent's, checked by the *minting* side against the parent record before the child is signed. If the parent's binding predicate cannot be carried forward verbatim, the child must not be minted. - **Fail-closed on unparseable constraints.** The default for an unresolved or unrecognized scope predicate must be deny. A policy engine that treats "cannot evaluate" as "not applicable → permit" is the single most common vector. When these hold, the chain is a genuine intersection and the leaf exercises exactly the narrowest authority any hop granted. When any fails, the chain is a union and the leaf exercises the widest. ## Decision Boundary The operational question at each hop is not "is this grant valid?" (signature check) but "**does this grant's scope, as I parse it, equal its scope as the minting org parsed it?**" That is a semantic equality check, and it must be performed explicitly. The boundary: - **Accept and exercise** only if the parsed scope is provably a subset of the parent's scope under the shared algebra, and every predicate resolved to a concrete binding. - **Reject and escalate** if any predicate is unresolvable, if the grammar version differs from the parent's recorded grammar, or if the delegation depth is absent or defaulted. - **Never** substitute a local default for a missing security-relevant field (depth, expiry, binding predicate). A default is an assumption about the minter's intent; at a trust boundary, assumptions widen scope. The tell that you are on the wrong side of the boundary: the grant verifies, the log is clean, and the leaf's effective scope is *broader* than any single grant in the chain. That combination — valid signatures, clean audit, widened effective scope — is the signature of structural widening, and it is invisible to signature-only verification. ## Operational Effect Downstream of undetected widening: the resource owner's data-exposure surface is the union of every leaf's reachable resources, computed under the most permissive parser in the chain. Incident reconstruction from audit logs will show each hop as authorized and will not localize the widening, because the widening happened in the *gap* between two parsers, not in any single decision. Remediation requires replaying the chain under a single reference algebra and diffing effective scope per hop — a step most federations do not have tooling for. The guardrail is a **scope-equivalence gate** at every federation boundary: parse the incoming grant under the *minting* org's declared grammar version, compare the resulting binding set against the parent's, and refuse to derive or exercise any child whose binding set is not a subset. This gate must run before the policy engine, must fail closed on unparseable predicates, and must treat missing security fields as errors rather than defaults. ```python from dataclasses import dataclass, field from typing import Optional class ScopeWideningError(RuntimeError): """Raised when a delegated grant's effective scope is not a subset of its parent's.""" pass @dataclass class Grant: capability: str binding: Optional[str] # concrete resource id, None means type-level (dangerous) grammar_version: str delegation_depth: Optional[int] # None is an error, never defaulted parent_binding: Optional[str] = None def verify_chain_intersection( parent: Grant, child: Grant, local_grammar_version: str, ) -> None: # 1. Grammar must match; a parser mismatch is the widening vector. if child.grammar_version != parent.grammar_version: raise ScopeWideningError( f"grammar mismatch: parent {parent.grammar_version} vs child " f"{child.grammar_version}; cannot compute intersection" ) # 2. Missing depth is an error, not a default. A defaulted depth resets the bound. if child.delegation_depth is None: raise ScopeWideningError( "child grant has no delegation_depth; refusing to substitute a default" ) if parent.delegation_depth is not None and child.delegation_depth >= parent.delegation_depth: raise ScopeWideningError( f"delegation depth did not decrease: parent {parent.delegation_depth} " f"-> child {child.delegation_depth}" ) # 3. Unresolvable binding predicate must deny, never fall back to type-level. if child.binding is None: raise ScopeWideningError( f"child grant for {child.capability} has no concrete binding; " "type-level fallback would widen scope" ) # 4. Binding must equal the parent's binding (subset check under shared algebra). if parent.binding is not None and child.binding != parent.binding: raise ScopeWideningError( f"binding widened: parent {parent.binding} -> child {child.binding}" ) def mint_child(parent: Grant, capability: str, binding: str, grammar_version: str) -> Grant: if parent.delegation_depth is None or parent.delegation_depth <= 0: raise ScopeWideningError( "cannot re-delegate: parent depth exhausted or unset" ) child = Grant( capability=capability, binding=binding, grammar_version=grammar_version, delegation_depth=parent.delegation_depth - 1, parent_binding=parent.binding, ) verify_chain_intersection(parent, child, grammar_version) return child # Demonstration of the observed failure being caught: if __name__ == "__main__": root = Grant("read:dataset", binding="dataset:4471", grammar_version="v2", delegation_depth=1) # Org B's buggy re-delegation: drops binding, defaults depth to 3. bad_child = Grant("read:dataset", binding=None, grammar_version="v2", delegation_depth=3) try: verify_chain_intersection(root, bad_child, "v2") except ScopeWideningError as e: print(f"BLOCKED: {e}") ```