# How should an instance verify a delegated credential whose scope was narrowed by an intermediate issuer it never directly trusted **Date of Record:** 2026 November 27 **Scope:** Applies to any agent instance that receives a delegated authorization credential (capability token, warrant, or scoped JWT) through a multi-hop chain where one or more intermediate issuers are not in the instance's local trust root set. Does not apply to single-hop credentials issued directly by a trusted root, nor to purely symmetric bearer tokens without scope attenuation. ## Core Distinction The distinction that matters here is between **scope attenuation** and **scope interpretation**. A delegated credential chain is supposed to be *monotonically narrowing*: each hop may only reduce the permission set, never expand it. That invariant is well understood and usually enforced by the issuer. What is *not* enforced, and what breaks agent identity frameworks in practice, is that each hop also silently **re-interprets** the scope vocabulary. Hop A issues `scope: "repo:read"` meaning "read any repository the principal can access." Hop B, an intermediate orchestrator with a narrower worldview, re-signs the delegation as `scope: "repo:read"` but its own policy engine resolves that string against a *different* resource namespace — a per-tenant repo catalog rather than the global one. The string is identical; the semantic set it denotes is not. The receiving instance, which trusts the root issuer but has never seen Hop B's policy engine, has no way to detect that the scope token it is validating denotes a smaller (or, in the failure case, misaligned) set than the root intended. This is not a signature-verification problem. Every signature in the chain can be valid. It is a **semantic continuity** problem across issuers that share a vocabulary but not a denotation. ## What Was Observed An agent instance (`worker-7`) was dispatched to perform a cross-repository refactor. It received a three-hop credential chain: 1. Root authority `idp.corp` issues a delegation to orchestrator `orch-1` with `scope: "repo:write"` and an explicit `resource_set` claim enumerating 12 repository IDs. 2. `orch-1` narrows the delegation for a sub-task and re-issues to `worker-7` via intermediate broker `broker-eu`, dropping the `resource_set` claim and keeping only `scope: "repo:write"`, on the assumption that the resource set is implied by the principal's tenancy. 3. `broker-eu` re-signs with its own key, preserving `scope: "repo:write"` verbatim, and adds `tenant: "eu-prod"`. `worker-7` validated the chain against its trust anchors. It trusted `idp.corp` directly and trusted `broker-eu` via a configured intermediate CA. It did **not** have `orch-1` in its trust set, and `orch-1`'s signature was present but unverifiable locally — the framework's rule was "trust the nearest verifiable issuer and the root." Both checks passed. The failure: `worker-7` resolved `repo:write` against the *global* repository namespace (its default resolver for that scope string), because the `resource_set` claim that would have pinned it to 12 repos had been dropped at hop 2. The credential was valid, the scope string was unchanged, and yet the effective authorization set had silently *expanded* from 12 repositories to the entire global namespace. The instance then attempted writes against repositories outside the original delegation's intent. The write to `repo-4471` succeeded at the authorization layer and was only caught downstream by a data-loss alarm. The trace is the important part: **attenuation was preserved lexically and violated semantically.** The chain looked monotone. The denotation was not. ## Condition of Validity The guardrail that bounds this failure is a **scope-denotation invariant**: for a delegated credential to be accepted at hop *n*, the receiving instance must be able to compute the denotation of every scope term in the credential *under the policy of the issuer that introduced that term*, and verify that the denotation at hop *n* is a subset of the denotation at hop *n−1*. A credential is valid only if this subset relation holds for the *resolved sets*, not for the strings. This requires three things the typical AAIF omits: - **Provenance per scope term.** Each scope term must carry the identifier of the issuer that introduced it and the policy-version under which it was resolved. A bare `scope: "repo:write"` is under-specified; `scope: {term: "repo:write", introduced_by: "idp.corp", policy: "v7", resource_set: [...]}` is checkable. - **Denotation resolvers reachable for every issuer in the chain**, including intermediates the instance does not trust for *issuance* but must trust for *resolution*. Trusting an issuer to sign and trusting an issuer to define a vocabulary are separable; conflating them is the root cause. - **A monotonicity check at receipt time**, not at issuance time. The issuer cannot enforce this because it does not know the receiver's resolver configuration. The receiver must. When any of these is absent — as in the observed case, where hop 2 dropped `resource_set` and hop 3 preserved only the bare string — the chain is *unverifiable for denotation* and must be treated as maximally scoped or rejected. Treating it as maximally scoped is what happened; the correct behavior is rejection. ## Decision Boundary The boundary is sharp and can be stated as a rule the instance applies before any tool call: > If a delegated credential contains a scope term whose denotation cannot be resolved under the policy of the issuer that introduced it, the effective permission for that term is **the empty set**, and any operation requiring it must fail closed — *unless* the credential carries an explicit `resource_set` that pins the denotation independent of issuer policy. The asymmetry is deliberate. An unresolvable scope term is not "probably fine because the string matched." The string matching is exactly the trap: lexical equality across issuers is evidence of nothing, because the same token routinely denotes different sets in different policy namespaces. Fail-closed on unresolvable denotation, fail-open only on an explicit enumerated resource set, is the only boundary that survives intermediate issuers you do not control. Note the second-order consequence: an intermediate issuer that *narrows* a credential by dropping the `resource_set` — a natural and seemingly conservative move, since it is removing information — has actually *widened* the effective permission under this rule, because it converted a pinned set into an unresolvable term. Narrowing by deletion is not narrowing. This is the non-obvious inversion that makes the failure mode worth recording: the intermediate's most cautious-looking action is the one that breaks the invariant. ## Operational Effect For the instance, the operational effect is a mandatory pre-flight resolution step and a hard rejection path. Before executing any tool call gated by a delegated credential, the instance resolves each scope term against its introducing issuer's policy, computes the effective resource set, and compares it to the set implied by the previous hop. If the comparison cannot be made — missing resolver, missing provenance, dropped resource set — the instance raises and refuses. It does not fall back to the string, and it does not fall back to "the root probably meant the broad thing." For the framework designer, the effect is that delegated credentials must be *self-describing about denotation*, not merely about signature. A chain that is cryptographically impeccable and semantically opaque is worse than no chain, because it produces a confident authorization decision from an unresolvable premise. The invariant to enforce at the protocol layer: **no scope term may cross an issuer boundary without its denotation provenance attached.** Enforce it at issuance and re-check it at receipt; the issuer and receiver are the only two parties who can, and neither alone is sufficient. The code below encodes the receipt-time check as the instance must perform it. ```python from dataclasses import dataclass, field from typing import Optional class UnresolvableScopeError(RuntimeError): """Raised when a delegated scope term's denotation cannot be established.""" pass @dataclass class ScopeTerm: term: str introduced_by: str policy_version: Optional[str] = None resource_set: Optional[frozenset] = None # explicit denotation, if pinned @dataclass class DelegatedCredential: issuer: str scopes: list = field(default_factory=list) # Resolvers keyed by (issuer, policy_version). Absence means "cannot resolve". POLICY_RESOLVERS = { ("idp.corp", "v7"): lambda term: frozenset(f"repo-{i}" for i in range(1, 13)), ("broker-eu", "v2"): lambda term: frozenset(f"repo-{i}" for i in range(1, 5000)), } def resolve_denotation(scope: ScopeTerm) -> frozenset: if scope.resource_set is not None: return scope.resource_set if scope.policy_version is None: raise UnresolvableScopeError( f"scope {scope.term!r} from {scope.introduced_by!r} has no policy_version " f"and no explicit resource_set; denotation is undefined" ) resolver = POLICY_RESOLVERS.get((scope.introduced_by, scope.policy_version)) if resolver is None: raise UnresolvableScopeError( f"no resolver for issuer {scope.introduced_by!r} policy " f"{scope.policy_version!r}; cannot compute denotation of {scope.term!r}" ) return resolver(scope.term) def verify_chain_monotone(chain: list) -> frozenset: """Return effective resource set; raise if any hop widens or is unresolvable.""" effective = None for hop_index, cred in enumerate(chain): hop_set = frozenset() for scope in cred.scopes: hop_set |= resolve_denotation(scope) if effective is not None and not hop_set <= effective: raise UnresolvableScopeError( f"hop {hop_index} ({cred.issuer!r}) widens scope: " f"{sorted(hop_set - effective)} not in prior hop" ) effective = hop_set return effective # The observed failure, reproduced: hop 2 dropped resource_set, hop 3 kept bare term. chain = [ DelegatedCredential("idp.corp", [ ScopeTerm("repo:write", "idp.corp", "v7", frozenset(f"repo-{i}" for i in range(1, 13))), ]), DelegatedCredential("orch-1", [ ScopeTerm("repo:write", "orch-1", None, None), # resource_set dropped ]), DelegatedCredential("broker-eu", [ ScopeTerm("repo:write", "broker-eu", "v2", None), # bare term, own policy ]), ] if __name__ == "__main__": try: effective = verify_chain_monotone(chain) print("authorized for:", sorted(effective)) except UnresolvableScopeError as e: # Correct behavior: fail closed. The bare term at hop 2 cannot be # resolved under orch-1's (absent) policy, so the chain is rejected # rather than silently widened to broker-eu's 4999-repo namespace. print("REJECTED:", e) raise ```