# In what scenarios must an instance refuse a delegated credential whose scope was narrowed by an upstream agent rather than by the issuing authority **Date of Record:** 2026 November 22 **Scope:** Applies to any agent runtime operating under an Agent Identity and Authorization Framework (AAIF) where a credential issued by an authority (root or intermediate) is re-delegated through one or more peer agents before reaching the executing instance. Does not apply to single-hop delegation where the executing instance receives a credential directly from its issuing authority with no intermediate re-scoping. ## Core Distinction The failure mode is not "the credential is invalid." It is "the credential is valid but its scope was silently narrowed by an intermediate agent whose narrowing logic is itself probabilistic." An issuing authority narrows scope by policy: a deterministic, auditable predicate over principal, resource, action, and time. An intermediate agent narrows scope by *reasoning*: it reads the parent credential, considers the downstream task, and emits a child credential with a subset of the parent's claims. The child is cryptographically sound—the signature chain verifies, the attenuation is monotone (claims are a subset of the parent's), and every standard AAIF invariant holds. The failure is that the *omitted* claims are indistinguishable from claims the authority never granted. The executing instance cannot tell whether a missing capability was withheld by the authority (a hard boundary) or dropped by an intermediate's lossy summarization (a soft, recoverable omission). Treating the two identically produces either over-permission (if the instance re-widens) or silent task failure (if it does not). ## What Was Observed A three-hop pipeline: an orchestrator agent (A) holds a root credential `C_root` issued by the central authority, scoped to `{read:dataset/*, write:dataset/staging/*, invoke:model/gpt-4-class, invoke:model/embed-class}`. A delegates a subtask to a retrieval agent (B), which re-delegates to an executor (C). B constructs `C_child` by asking its own LLM to "extract the capabilities needed for the retrieval-and-summarize subtask." The model emits a child scope of `{read:dataset/*, invoke:model/embed-class}`. It drops `invoke:model/gpt-4-class` because the subtask description mentioned "summarize," and the model judged summarization to be within the embed model's capability envelope. The signature chain `C_root → C_child` verifies. Attenuation is monotone: every claim in `C_child` is present in `C_root`. C accepts `C_child`, attempts the summarize step, and the gateway rejects `invoke:model/gpt-4-class` with `403 scope_insufficient`. The executor's recovery logic then does one of two things, both wrong. Path one: it interprets `403` as "authority denied this capability" and aborts the subtask, reporting a hard authorization failure upstream. The orchestrator, receiving the failure, concludes the task is impossible and terminates the whole pipeline—even though `C_root` at A still carries the capability. Path two: the executor's retry loop treats the `403` as transient, re-requests the credential from B, and B's LLM re-derives the scope. On the second pass the model, seeing the `403`, adds `invoke:model/gpt-4-class` back—producing a *different* `C_child` for the same logical subtask. The scope is now non-deterministic across retries, and the audit log shows two distinct child credentials for one delegated operation. The observable signature is a `403 scope_insufficient` on a capability that is present in an ancestor credential, paired with a child-credential scope that differs across re-derivations for the same `(parent_id, subtask_id)` tuple. ## Condition of Validity The invariant that must hold for safe acceptance is: **an executing instance may treat a missing claim as an authority-imposed hard boundary only if the child credential carries a signed, machine-checkable attestation of the narrowing decision, produced by a component whose narrowing is deterministic or whose narrowing rationale is included and verifiable.** In practice this means the child credential must carry one of: 1. A `narrowing_authority` field naming the issuing authority and a signed `scope_diff` enumerating exactly which parent claims were dropped and under which policy rule—so the executor can distinguish "authority withheld X" from "intermediate dropped X." 2. A `narrowing_provenance: deterministic` marker with a content-addressed reference to the narrowing function, allowing the executor to re-run the function and confirm the child scope is the unique output for the given parent and subtask. 3. A `narrowing_provenance: probabilistic` marker plus the intermediate's natural-language rationale, which forces the executor into a conservative path (see Decision Boundary). When none of these are present—the common case, because most AAIF implementations treat scope as an opaque claim set—the executing instance is operating on an *unattested narrowing*, and the distinction between authority-withheld and intermediate-dropped is unrecoverable from the credential alone. ## Decision Boundary On receipt of a credential whose scope is a strict subset of an ancestor's and which lacks a narrowing attestation, the executor must classify the missing claims before acting. The boundary: - If the missing claim is required for the current step and the credential carries no attestation, **do not abort and do not re-derive locally**. Escalate to the credential's immediate issuer (B) with an explicit `scope_gap` request naming the specific missing claim and the ancestor credential ID that carries it. This forces the gap to be resolved by the party that created it, preserving the audit chain. - If B cannot attest (its narrowing was probabilistic and it cannot reconstruct why it dropped the claim), the executor must request a *fresh* child credential from the nearest ancestor whose narrowing is deterministic, or from the authority directly. Re-deriving through the same probabilistic intermediate is forbidden because it produces non-deterministic scope for a fixed `(parent, subtask)` tuple. - If the missing claim is *not* required for the current step, the executor proceeds but records the gap in its execution trace as `unattested_scope_omission`, so that downstream auditors can distinguish a genuine authority boundary from a lossy intermediate. The boundary is violated whenever an executor treats a `403` on an ancestor-present claim as terminal, or whenever it re-requests through a probabilistic intermediate without pinning the narrowing function. ## Operational Effect Enforcing the boundary converts a silent, non-deterministic authorization failure into a bounded, attributable escalation. The measurable effects: - **Retry determinism:** child credentials for a fixed `(parent_id, subtask_id)` become reproducible, because re-derivation through a probabilistic intermediate is blocked. The audit log shows one child credential per delegated operation, not N. - **False-negative elimination:** pipelines no longer terminate on `403`s that the root credential could satisfy. The orchestrator learns the failure is a delegation defect, not a policy denial, and can re-route. - **Attribution:** every scope gap is traceable to the hop that introduced it. Probabilistic narrowers are identified by their `narrowing_provenance: probabilistic` marker and their drop rate is auditable—an intermediate that consistently drops required claims becomes a measurable liability rather than an invisible one. The cost is that executors must carry the ancestor credential chain (or at least the ancestor scope hashes) to perform the subset check, and intermediates must emit provenance metadata. Both are cheap relative to the failure they prevent. ```python from dataclasses import dataclass, field from typing import FrozenSet, Optional class UnattestedNarrowingError(RuntimeError): """Raised when a delegated credential's scope is a strict subset of an ancestor's but carries no signed narrowing attestation, making it impossible to distinguish authority-withheld claims from intermediate-dropped claims.""" pass @dataclass(frozen=True) class Credential: cred_id: str parent_id: Optional[str] claims: FrozenSet[str] narrowing_provenance: Optional[str] # "deterministic" | "probabilistic" | None narrowing_attestation: Optional[str] = None # signed scope_diff ref, if any def classify_missing_claim( child: Credential, ancestor: Credential, required_claim: str, ) -> str: """Return one of: 'present', 'authority_withheld', 'intermediate_dropped', or raise UnattestedNarrowingError if the distinction is unrecoverable.""" if required_claim in child.claims: return "present" if required_claim not in ancestor.claims: # Ancestor never had it either: genuine authority boundary. return "authority_withheld" # Claim is in ancestor but absent in child: a narrowing occurred. if child.narrowing_attestation is not None: # Signed scope_diff lets us confirm the drop was policy-driven. return "authority_withheld" if child.narrowing_provenance == "deterministic": # Re-running the pinned narrowing function would confirm; here we # treat a deterministic marker as authoritative for the drop. return "authority_withheld" # Probabilistic or unattested narrowing: unrecoverable from credential. raise UnattestedNarrowingError( f"credential {child.cred_id} drops claim {required_claim!r} present in " f"ancestor {ancestor.cred_id} without attestation " f"(provenance={child.narrowing_provenance!r}); cannot distinguish " f"authority-withheld from intermediate-dropped. Escalate to issuer " f"{child.parent_id} with scope_gap request." ) def execute_step(child: Credential, ancestor: Credential, required_claim: str) -> None: verdict = classify_missing_claim(child, ancestor, required_claim) if verdict == "authority_withheld": raise PermissionError( f"authority denied {required_claim!r}; subtask impossible under " f"{child.cred_id}" ) if verdict == "intermediate_dropped": # Should be unreachable given the raise above, but kept explicit. raise UnattestedNarrowingError( f"intermediate dropped {required_claim!r}; re-request from issuer" ) # verdict == "present": proceed with execution. ```