# When must an instance refuse a federated capability grant that is transitively valid but locally unverifiable **Date of Record:** 2026 November 22 **Scope:** Applies to cross-organization agent federations where an agent (the *delegate*) executes a tool or sub-agent capability on behalf of a remote principal (the *grantor*) via a chain of signed delegation tokens, and where each hop's signing key is anchored in a trust root the delegate does not own. Does not apply to single-org A2A handoffs, to capability grants rooted in the delegate's own trust store, or to purely advisory (non-executing) capability discovery. ## Core Distinction The failure mode is not "the token is invalid." It is that **the token is valid under a trust anchor the delegate cannot currently evaluate**, and the delegate's policy engine collapses "cannot evaluate" into "valid" because the signature chain verifies end-to-end against the *leaf* issuer's key material embedded in the token itself. In a cross-org federation, a delegated grant arrives as a chain: `root_org_key → org_B_agent_signer → org_C_agent_signer → delegate`. Each hop carries a signature and a pointer to the next issuer's key. The delegate verifies each signature in turn. If every signature checks out, the naive verifier concludes the grant is authorized. But signature verification only proves *linkage*, not *authority*. The critical, non-obvious boundary is this: **a chain is only as trustworthy as the weakest anchor the delegate can independently resolve to its own configured trust roots.** When org C's signer key is presented inside the token (self-attested) rather than resolved from a trust root the delegate holds, the delegate has verified a chain of mutual endorsements among parties it does not control. That is a closed loop, not a delegation. The invariant that must hold before execution: *every* issuer key in the chain must resolve to a trust anchor the delegate configured out-of-band, OR the grant must be explicitly marked as requiring a re-attestation step the delegate can perform. "Signature verifies" is a necessary but radically insufficient condition. ## What Was Observed A delegate agent in org A received a task to invoke a data-export capability scoped to org B's tenant. The grant arrived as a three-hop token: 1. `org_B.root` signs a delegation to `org_B.agent_signer` (scope: `export:tenant_B`, TTL 300s). 2. `org_B.agent_signer` signs a delegation to `org_C.agent_signer` (scope: `export:tenant_B` — note the scope did *not* narrow, only the principal changed). 3. `org_C.agent_signer` signs a delegation to `org_A.delegate` (scope: `export:tenant_B`). The delegate's verifier walked the chain, checked each Ed25519 signature, confirmed TTL monotonicity, and confirmed the scope string was identical across hops (a common "scope preservation" check). All passed. The delegate executed the export against org B's tenant. The export succeeded. The incident was caught downstream: org C's signer had been issued a *read-only* delegation by org B according to org B's own policy records, but the token's hop-2 payload asserted `export:tenant_B`. The signature was genuine — org B's signer *did* sign that payload — but the delegate had no way to know whether org B's policy engine had actually authorized widening the scope, because the delegate never consulted org B's policy endpoint. It trusted the *content* of a hop it could only authenticate, not authorize. The root cause: **scope preservation across hops is not scope authorization.** A delegate that checks "scope did not change" believes it is enforcing least privilege, but it is only enforcing *consistency*. The actual authority question — "was this scope ever granted by the party that owns the resource?" — was never asked, because the delegate had no trust anchor for org B's policy decisions, only for org B's signing key. A second, subtler observation: the failure was *intermittent across deployments*. In staging, org B's policy endpoint was reachable and the delegate's federation config included an `authority_resolver` URL, so the widening was rejected. In production, the resolver was configured but the delegate's policy engine had a 200ms timeout, and org B's resolver answered in 340ms under load. The verifier's timeout handler treated resolver failure as "advisory, proceed on signature-only." The grant executed. **A latency-induced downgrade of the authorization check to a signature-only check is the precise trigger.** ## Condition of Validity The signature-only path is only valid under a conjunction that almost never holds in real federations: - (a) The delegate holds an out-of-band trust anchor for *every* issuer in the chain, not just the root; and - (b) The scope asserted at each hop is provably a subset of the scope the *resource owner* granted, resolvable without a live call (i.e., the narrowing is cryptographically committed in the parent hop); and - (c) No hop's signer is itself a delegate whose own authority was attenuated by a policy the delegate cannot see. Condition (b) is the load-bearing one. It is satisfiable only if the delegation format commits to *scope narrowing at signing time* — i.e., hop N's payload includes a hash of hop N-1's scope set, and the verifier checks `scope_N ⊆ scope_{N-1}` by set inclusion over committed sets, not string equality. If the format only carries a flat scope string, condition (b) is unverifiable offline and the delegate *must* consult the resource owner's policy endpoint. So the condition of validity for the fast path is: **committed scope sets + full anchor resolution + no unattenuated widening hops.** Absent any one, the delegate is in the slow path and must either resolve authority live or refuse. ## Decision Boundary The boundary is a three-way decision, not a boolean: 1. **Execute** — all issuers resolve to delegate-held anchors AND scope is committed-subset across every hop AND resolver (if needed) answered within budget. 2. **Refuse** — any issuer fails anchor resolution, OR scope widening is detected without a committed subset proof, OR the resolver returns an explicit denial. 3. **Defer (never silently downgrade)** — resolver timed out or was unreachable. The grant is *not* executed and *not* rejected; it is parked with a re-attestation requirement and a bounded retry, and the task that depended on it is marked `blocked_on_authority`, not `failed`. The critical guardrail: **the timeout path must never route to Execute.** The observed incident happened precisely because the resolver-timeout branch was wired to the same handler as the signature-only fast path. The invariant is that authority resolution failure is a *distinct terminal state* from authority success, and the only legal transition out of Defer is a successful re-attestation or an explicit Refuse. A delegate that cannot distinguish "authorized" from "couldn't check" will eventually execute an unauthorized grant, and the probability scales with federation size and resolver latency variance. A second boundary: **scope equality is not scope subset.** A verifier that rejects only on *widening* (scope string grew) will pass a lateral change (scope string swapped for a different but same-length scope). The check must be set-inclusion over the committed scope set, with the parent set as the ceiling. ## Operational Effect The practical consequence is that federation latency budgets become security parameters. Every millisecond of resolver timeout headroom is a probability mass that the delegate will be forced into the Defer path, and every Defer is a blocked task and a re-attestation round-trip. Operators who tune the resolver timeout down to meet a task SLA are, whether they know it or not, tuning the fraction of grants that get executed on signature-only. The correct operational posture is to size the timeout from the resolver's p99 under federation load, publish that number as part of the federation agreement, and make the Defer state observable so that blocked-on-authority volume is a first-class metric alongside error rate. The second operational effect is on audit replay. Because the incident's grant *did* verify at signing time, a naive replay of the audit log shows a valid chain and a successful export — the failure is invisible in signature logs. Only the resolver-call log (timeout at 340ms) and the policy-engine log (no authorization record for the widening) together reconstruct what happened. Any federation audit that replays only signatures will certify compromised executions as clean. The replay must correlate signature-chain verification, resolver outcomes, and resource-owner policy records as three independent traces, and flag any execution where the resolver trace is absent or timed out. ```python from dataclasses import dataclass from enum import Enum from typing import Optional class FederationAuthorityError(RuntimeError): """Raised when a delegated grant cannot be authorized, only authenticated.""" class Verdict(Enum): EXECUTE = "execute" REFUSE = "refuse" DEFER = "defer" @dataclass class Hop: issuer: str scope_set: frozenset parent_scope_hash: Optional[str] # committed subset proof, None if format is flat @dataclass class Grant: chain: list # list[Hop], root first ttl_seconds: int def evaluate_grant( grant: Grant, anchor_resolver, # issuer -> bool, raises TimeoutError policy_resolver, # (issuer, scope) -> bool, raises TimeoutError resolver_budget_ms: int, ) -> Verdict: # 1. Anchor resolution for every issuer. Unresolvable -> REFUSE, not EXECUTE. for hop in grant.chain: try: if not anchor_resolver(hop.issuer): return Verdict.REFUSE except TimeoutError: # Authority unknown. Must NOT fall through to signature-only execution. return Verdict.DEFER # 2. Scope must be a committed subset of the parent hop, not merely equal. for i in range(1, len(grant.chain)): child, parent = grant.chain[i], grant.chain[i - 1] if child.parent_scope_hash is None: # Flat format: offline subset proof impossible; must consult owner. try: if not policy_resolver(parent.issuer, child.scope_set): return Verdict.REFUSE except TimeoutError: return Verdict.DEFER elif not child.scope_set.issubset(parent.scope_set): # Lateral or widening change without committed proof. return Verdict.REFUSE # 3. Resource-owner policy confirmation for the terminal scope. try: if not policy_resolver(grant.chain[-1].issuer, grant.chain[-1].scope_set): return Verdict.REFUSE except TimeoutError: return Verdict.DEFER return Verdict.EXECUTE def execute_federated_export(grant: Grant, anchor_resolver, policy_resolver, budget_ms): verdict = evaluate_grant(grant, anchor_resolver, policy_resolver, budget_ms) if verdict is Verdict.DEFER: raise FederationAuthorityError( "grant authority unresolvable within budget; parked for re-attestation, " "not executed on signature-only path" ) if verdict is Verdict.REFUSE: raise FederationAuthorityError( f"grant refused: chain {[h.issuer for h in grant.chain]} failed " "anchor or scope-subset authorization" ) return "export_executed" ```