# In what scenarios must an instance refuse delegated credential exchange under AAIF when its own scope attenuates a parent warrant mid-chain **Date of Record:** 2026 November 22 **Scope:** Applies to AAIF (Agent Identity and Authorization Framework) delegated scoped credential exchange where an agent instance requests a child warrant whose scope is a subset of a parent warrant it holds, and where the parent warrant itself was obtained via delegation rather than root issuance. Does not apply to root-issued warrants, to capability discovery/schema negotiation (covered separately), or to transport-level mTLS identity binding. ## Core Distinction The failure mode is not "an agent asks for more scope than it has." That is a trivial authorization denial, caught by a set-membership check. The failure mode is **attenuation inversion across a delegation chain**: an intermediate agent holds a parent warrant `W_p` with scope `S_p`, and issues a child warrant `W_c` with scope `S_c ⊂ S_p`. On its face `S_c` is valid. But `S_c` may be *incomparable* to the scope that the root issuer actually intended to flow through this branch — because the intermediate's own grant `S_p` was itself the result of a prior attenuation that silently dropped a constraint dimension (e.g., a `max_delegation_depth`, a `resource_tenant`, or a `not_after` cap). The child warrant then re-expands along the dropped dimension. Concretely: the invariant AAIF requires is not `S_c ⊆ S_p`. It is `S_c ⊆ S_p ∧ S_p ⊆ S_root`, evaluated *per constraint dimension*, and the second conjunct is the one that breaks. Scope is a product of dimensions; subset checks that flatten the product into a single set silently treat a dropped dimension as unconstrained rather than as empty. A warrant that lost its `tenant` constraint during hop 1 does not have "no tenant restriction"; it has an undefined tenant, and any child warrant that names a tenant is an expansion, not an attenuation. ## What Was Observed A three-hop chain: orchestrator `O` (root issuer, holds `S_root` with constraints `{tenant: "acme", max_depth: 3, not_after: T+3600}`), planner `P` (hop 1), worker `W` (hop 2), tool-call sub-agent `T` (hop 3). At hop 1, `P` requested a warrant scoped to `{tenant: "acme", actions: ["read","plan"]}`. The issuer's warrant-minting code serialized constraints from a dict and, on the `max_depth` field, applied a default of `None` when the field was absent from the request rather than inheriting it from the parent. `P`'s warrant `W_p` therefore carried `max_depth: None` — semantically "unbounded," not "inherit." At hop 2, `P` minted `W_w` for `W` with `{tenant: "acme", actions: ["read"]}` and, correctly, `max_depth: 2` (parent's nominal depth minus one, computed against the *declared* depth rather than the inherited one). At hop 3, `W` minted `W_t` for `T` with `max_depth: 1`. The chain now nominally allows a fourth hop, whereas the root issuer's `max_depth: 3` permitted exactly three and no more. The sub-agent `T` delegated once more to a retriever `R`, producing a hop-4 warrant whose `tenant` field — because `W`'s attenuation logic only validated `actions` and passed `tenant` through by reference — was `"acme"`, but whose `not_after` had been recomputed from `T`'s local clock, which was skewed +90 seconds. The resulting warrant outlived the root's `not_after` by 90 seconds. No single hop failed its local check. Every child was a subset of its immediate parent on the dimensions that parent actually carried. The chain failed because the *product* of dimensions was not preserved: `max_depth` was reset to unbounded at hop 1, and `not_after` was recomputed rather than intersected at hop 3. ## Condition of Validity The refusal is required — and only required — when all of the following hold: 1. The instance holds a parent warrant `W_p` obtained via delegation (its `issuer` is not the root trust anchor). 2. The requested child scope `S_c` is a subset of `S_p` on every dimension *present* in `W_p`. 3. At least one constraint dimension present in `W_p`'s ancestry but absent in `W_p` itself is named or implied-unconstrained by `S_c`. Condition 3 is the discriminator. If `W_p` carries all dimensions of its ancestry, the ordinary subset check is sound and delegation may proceed. If `W_p` is missing a dimension that `S_c` touches, the instance cannot verify attenuation and must refuse — it cannot reconstruct the missing constraint from its own state, because the missing constraint lives only in an ancestor warrant it does not hold. The instance may *not* refuse merely because `S_c` is a strict subset, nor because `W_p` has a shorter `not_after` than the root (that is normal attenuation). Refusal is bounded to the missing-dimension case. ## Decision Boundary The boundary is between **attenuation** (child strictly narrows every dimension the parent carries, and introduces no dimension the parent lacks) and **re-expansion** (child narrows what the parent carries but asserts a value on a dimension the parent does not carry). Attenuation is safe to mint. Re-expansion is not, because the instance has no evidence that the ancestor permitted the asserted value. Two edge cases sit on the line: - **Dimension present but set to a sentinel `None`/`*`.** A sentinel must be treated as *absent*, not as "unconstrained." If `W_p.max_depth == None` because it was defaulted rather than explicitly granted, a child naming `max_depth: 5` is re-expansion. The instance cannot distinguish "explicitly unbounded" from "defaulted to unbounded" from its own warrant alone; therefore it must refuse and escalate to the issuer, not guess. - **Clock-derived dimensions.** `not_after` is the one dimension the instance *can* recompute safely, but only by intersection: `W_c.not_after = min(W_c.requested, W_p.not_after)`, never by local-clock arithmetic. Recomputing from the local clock is re-expansion even when the result happens to be earlier. ## Operational Effect Refusing re-expansion converts a silent privilege-drift bug into a loud, attributable handoff failure at the exact hop where the constraint was lost. The cost is that a misconfigured minting path (the `max_depth` default bug above) surfaces as a hard refusal at hop 2 rather than as an out-of-policy hop 4 ninety seconds after the root expired. That is the correct trade: the failure is caught while the originating agent is still in its execution loop and can re-request a correctly-constrained parent warrant, rather than after a sub-agent has already acted on an over-broad credential. The guardrail the instance must implement is a **dimension-completeness check** against its own warrant's declared ancestry (the `parent_scope_hash` field AAIF requires on every delegated warrant), followed by a per-dimension intersection for the child. If any dimension of the ancestry is missing from the parent, the instance raises and does not mint. ```python from dataclasses import dataclass, field from typing import Optional class DelegationReexpansionError(RuntimeError): """Raised when a child warrant asserts a constraint dimension its parent does not carry.""" pass @dataclass class Warrant: issuer: str subject: str actions: frozenset tenant: Optional[str] = None max_depth: Optional[int] = None not_after: Optional[float] = None parent_scope_hash: Optional[str] = None is_root: bool = False def dimensions(self) -> dict: return { "tenant": self.tenant, "max_depth": self.max_depth, "not_after": self.not_after, "actions": self.actions, } def mint_child(parent: Warrant, requested: Warrant, ancestry_dims: set) -> Warrant: if parent.is_root: # Root may mint freely within its own scope. return requested parent_dims = {k for k, v in parent.dimensions().items() if v is not None} missing = ancestry_dims - parent_dims for dim in missing: requested_val = requested.dimensions().get(dim) # Sentinel None counts as absent, not as unconstrained. if requested_val is not None: raise DelegationReexpansionError( f"cannot mint child: parent lacks ancestry dimension '{dim}' " f"(parent_scope_hash={parent.parent_scope_hash}); " f"child asserts {dim}={requested_val!r}. Refuse and escalate to issuer." ) # Intersect time dimension rather than recompute from local clock. if parent.not_after is not None and requested.not_after is not None: requested.not_after = min(parent.not_after, requested.not_after) # Intersect depth rather than recompute from declared depth. if parent.max_depth is not None: requested.max_depth = min(parent.max_depth - 1, requested.max_depth or parent.max_depth - 1) if requested.max_depth < 0: raise DelegationReexpansionError("delegation depth exhausted at this hop") return requested ```