# Under what conditions must an instance refuse a federated capability grant that validates locally but is unbacked by a verifiable issuer chain **Date of Record:** 2026 December 4 **Scope:** Applies to cross-organization agent federation where instance A accepts a signed capability token (tool grant, data-scope warrant, or task-routing right) minted by instance B in a different trust domain. Does not apply to single-domain MCP servers where issuer and verifier share a root of trust, nor to purely advisory capability advertisements that carry no execution rights. ## Core Distinction The failure mode is not "a forged token was accepted." Signature verification, expiry, and audience checks all pass. The failure is **semantic**: a capability token can be cryptographically valid while the *issuer chain that authorizes the capability's scope* is unverifiable at the point of use. Concretely, a token asserts `issuer: org-b/agent-router-7`, `scope: invoke:org-b:payments:read`, and is signed by a key that chains to `org-b`'s published root. Every local check succeeds. What the verifying instance cannot establish is whether `agent-router-7` was *delegated* `payments:read` within org-b, or whether it self-asserted that scope because org-b's policy engine mints tokens from a flat scope table with no delegation provenance. This is the boundary: **local validation proves the token was minted by the claimed issuer; it does not prove the issuer held the authority it granted.** In a single domain the two collapse because a central policy authority is the only minter. Across a federation boundary they diverge, and the divergence is invisible to any verifier that only checks the signature chain. ## What Was Observed During a three-org federation pilot (org-a consuming, org-b and org-c providing), org-a's routing agent began receiving `invoke` grants for org-b's `payments:read` scope addressed to a sub-agent `org-b/agent-router-7`. The tokens verified cleanly against org-b's JWKS, carried correct `aud`, and were within TTL. The trace showed the following sequence: 1. `agent-router-7` was a **task-routing agent**, not a data-access agent. Its legitimate role was to forward inter-domain task envelopes. It had been issued a broad internal signing key because routing required signing forwarded envelopes. 2. Org-b's policy engine, when asked to mint a downstream token for a delegated task, copied the *requested* scope from the task envelope into the token's `scope` claim without checking that `agent-router-7` itself was authorized for `payments:read`. The envelope had been constructed by org-a's planner, which optimistically requested the scope it thought the task needed. 3. Org-a's verifier checked signature, audience, expiry, and that the scope string matched an allowlist regex. All passed. Org-a's sub-agent executed a read against org-b's payments service. 4. The read succeeded because org-b's *data plane* trusted tokens minted by its own policy engine. The policy engine had never been asked to authorize the scope, only to sign it. The failure was not detected by any of the four verifiers in the path because each verified a different property and none verified **issuer-scope provenance** — the property "the principal named in `issuer` was, at mint time, itself entitled to `scope`." That property is not in the token. It lives in org-b's policy state, which org-a cannot see and org-b's minter did not attest. Second observation: when org-a attempted to add a provenance check by requiring org-b to include a `delegation_chain` claim, org-b's minter emitted chains that terminated at `agent-router-7` itself rather than at org-b's policy authority. The chain was structurally present but semantically empty — it attested "router-7 granted this to router-7," a self-loop that satisfied a naive chain-length check while proving nothing. This is the non-obvious part: **adding a provenance field without a rule about what must terminate the chain produces provenance theater.** ## Condition of Validity A federated capability grant is safe to honor only when all of the following hold simultaneously: - The token's `issuer` resolves, via the federation trust root, to a **policy authority** (a principal empowered to mint scope), not merely to a signing key. - The token carries a `delegation_chain` whose **terminal element is the policy authority itself**, and each link names a principal that the *previous* link's domain attests was entitled to the next link's scope. - The verifier independently checks that the chain is **acyclic and strictly decreasing in scope** — no link may grant a scope broader than the scope it received. - The verifier's own policy states which external policy authorities it will accept for which scopes; this mapping is **not** derivable from the token and must be local configuration. If any of these is absent, the token is *locally valid but globally unbacked*, and honoring it is an authority-laundering event: org-a's trust in org-b's signature is silently converted into trust in org-b's *internal delegation decisions*, which org-a never agreed to delegate. ## Decision Boundary The operational rule: **an instance must refuse any federated grant whose delegation chain does not terminate at a policy authority the receiving domain has explicitly configured as trusted for that exact scope.** Refusal is required even when signature, audience, expiry, and scope-regex all pass, and even when the granting domain is otherwise trusted, because trust in a domain's *identity* is not trust in its *internal authorization hygiene*. The boundary is sharp in one direction and soft in the other. It is sharp for scopes that cross a data-sensitivity threshold (payments, PII, execution rights): no chain, no execution, no exceptions, no "trusted partner" override — because the override is exactly what the attacker's envelope requests. It is soft for read-only, low-sensitivity scopes where a degraded mode (execute but log and quarantine the result) is acceptable. The decision must be made per-scope by local policy, not per-token by the verifier, because the verifier cannot know which scopes matter. A corollary that trips implementers: **do not treat a present-but-unterminated chain as partial credit.** A chain that exists but self-loops or terminates at a non-authority is strictly worse than no chain, because it passes structural validators and induces false confidence. The check must be `chain[-1] == trusted_policy_authority(scope)`, not `len(chain) > 0`. ## Operational Effect Enforcing the boundary changes federation behavior in three ways. First, providers must expose their policy authority as a distinct, resolvable principal and mint tokens whose chains terminate there — which forces them to actually consult their policy engine at mint time rather than copying requested scopes. Second, consumers must maintain an explicit `trusted_authority_for_scope` map; this map becomes the real federation contract, and its absence is now a startup failure rather than a silent permissiveness. Third, the common "optimistic scope request" pattern — where a planner requests the union of scopes its subtasks might need — breaks, because each requested scope must now be individually backed by a terminating chain. This is the desired effect: it converts a silent privilege escalation into a loud, per-scope negotiation failure that the planner must resolve by requesting narrower scopes. The residual risk is that a provider's policy authority itself is compromised. The boundary does not defend against that; it only ensures that compromise of a *signing key* or a *routing agent* does not propagate into *scope authority*. That is the correct scope of the invariant: it bounds authority laundering, not root compromise. ```python class UnbackedFederatedGrant(RuntimeError): """Raised when a federated capability token validates locally but its delegation chain does not terminate at a policy authority trusted by the receiving domain for the requested scope.""" def authorize_federated_grant( token: dict, trusted_authority_for_scope: dict[str, str], verify_signature, ) -> None: scope = token.get("scope") issuer = token.get("issuer") chain = token.get("delegation_chain") or [] # Local crypto checks — necessary, never sufficient. if not verify_signature(token): raise UnbackedFederatedGrant(f"signature invalid for issuer={issuer}") expected_authority = trusted_authority_for_scope.get(scope) if expected_authority is None: raise UnbackedFederatedGrant( f"scope={scope!r} has no locally configured trusted authority; " f"refusing grant from issuer={issuer!r}" ) if not chain: raise UnbackedFederatedGrant( f"issuer={issuer!r} presented no delegation chain for scope={scope!r}" ) terminal = chain[-1].get("principal") if terminal != expected_authority: raise UnbackedFederatedGrant( f"chain terminates at {terminal!r}, not trusted authority " f"{expected_authority!r} for scope={scope!r}; " f"grant is locally valid but globally unbacked" ) # Enforce strict scope decrease across links; a link may not widen scope. prev_scope = scope for link in reversed(chain): link_scope = link.get("scope") if link_scope is None or not _scope_narrower_or_equal(link_scope, prev_scope): raise UnbackedFederatedGrant( f"delegation link {link.get('principal')!r} widens scope " f"{link_scope!r} beyond {prev_scope!r}" ) prev_scope = link_scope def _scope_narrower_or_equal(inner: str, outer: str) -> bool: # Placeholder for the domain's scope-lattice comparison. return inner == outer or outer.startswith(inner.rsplit(":", 1)[0]) ```