What happens when an instance mints a delegated capability token whose scope narrows a parent grant it no longer holds
**Date of Record:** 2026 December 2 **Scope:** Applies to AAIF-style delegated credential issuance where an agent instance mints a child scoped capability token derived from a parent token, especially across long-lived sessions, checkpoint/resume, or multi-hop sub-agent spawning. Does not apply to root-of-trust issuance from the identity authority, nor to non-delegated (single-hop) bearer tokens.
Core Distinction
The failure is not "expired token rejected." It is the *silent widening by narrowing*: an agent mints a child token whose declared scope is a strict subset of the parent scope *as the agent remembers it*, but the parent grant it actually holds at mint time has already been narrowed, revoked in part, or never contained the claimed capability. The child token is therefore structurally valid, cryptographically signed by the correct instance key, and *looks* like a legitimate attenuation — yet it asserts a capability the delegator was not entitled to confer.
This is distinct from privilege escalation by scope expansion (child ⊄ parent), which most AAIF validators catch by set-inclusion check. The dangerous case passes naive subset checks because the agent's *cached belief* about the parent scope diverges from the *authoritative* parent scope. The delegating instance is not malicious; it is reasoning over stale state.
What Was Observed
A planning agent (instance P) held a parent token `T_parent` with scope `{fs:read:/data, fs:write:/tmp, net:egress:api.internal}` and a TTL of 8h. Mid-task, an auditor service narrowed `T_parent` by revoking `fs:write:/tmp` (a partial revocation recorded as a scope-delta at the authority, not a full token revocation). P's local scope cache was not updated — the revocation propagated as a delta event P never subscribed to, because P had resumed from a checkpoint taken before the delta.
P then spawned a verification sub-agent V and minted `T_child` for it:
T_child.scope = {fs:read:/data, fs:write:/tmp} # P believed parent ⊇ this
T_child.parent = T_parent.id
T_child.delegator_key = P.instance_key
At V's first write, the resource server validated `T_child` as follows: signature valid, `T_child.parent == T_parent.id` valid, `T_child.scope ⊆ T_parent.scope_at_mint` — where `scope_at_mint` was reconstructed from the *authority's current* view of `T_parent`, which had already dropped `fs:write:/tmp`. The subset check `{fs:read:/data, fs:write:/tmp} ⊆ {fs:read:/data, net:egress:api.internal}` **failed**, and the write was denied — but only at the resource server, 40 minutes and 12 tool calls after issuance.
The worse variant: if the authority had applied the revocation *after* V's mint but the resource server validated against a *lagging* replica, V's write succeeded against a parent grant that no longer authorized it. The window between delta-application skew across validators is the actual exploit surface.
Condition of Validity
A delegated token `T_child` is validly issued **iff all hold at the moment of first use, not merely at mint**:
- `T_child.scope ⊆ authoritative_scope(T_parent, t_use)` — evaluated against the parent's scope *including all deltas applied up to use time*.
- `T_child.expiry ≤ T_parent.expiry` and `T_child.depth < max_delegation_depth`.
- The delegator `P` still holds a live, non-revoked binding to `T_parent` at `t_use` (liveness, not just signature validity).
- `T_child` carries a `parent_scope_epoch` — the monotonic version counter of `T_parent`'s scope at mint time — and every validator rejects if `authoritative_epoch(T_parent) > T_child.parent_scope_epoch` and any delta in `(mint_epoch, use_epoch]` intersects `T_child.scope`.
Condition 4 is the invariant that makes attenuation *continuously* sound rather than point-in-time sound. Without it, a child token is a frozen snapshot of a parent belief that can silently rot.
Decision Boundary
The boundary separates two issuance policies:
- **Snapshot issuance (unsafe):** child scope validated once, at mint, against the delegator's cached parent view. Cheap; correct only if parent scope is immutable for the child's lifetime.
- **Epoch-bound issuance (required when parent scope is mutable):** child token embeds `parent_scope_epoch`; validators enforce delta-intersection rejection at use. Cost: every use requires an epoch lookup against the authority (cacheable with bounded staleness ≤ revocation-propagation budget).
Choose snapshot issuance **only** when the parent grant is provably immutable (no partial revocation pathway exists) and the child TTL is short relative to the revocation-propagation budget. Otherwise the epoch-bound path is mandatory. The decision is not about security posture in the abstract — it is about whether `fs:write:/tmp` can disappear from under a live child.
Operational Effect
Under snapshot issuance, the failure mode is *deferred denial*: the sub-agent runs, accumulates tool-call side effects against a belief that the parent still authorizes them, and fails late — or worse, succeeds against a lagging validator and produces writes the delegator was never entitled to authorize. The blast radius scales with `(mint → first-use latency) × (tool-call fan-out per unit time)`, which for checkpoint-resumed agents is unbounded because resume can be hours after mint.
The guardrail is architectural: bind every delegated token to the parent's scope epoch, make the epoch a first-class field in the credential schema, and make the resource server's subset check a *three-way* check (child scope, parent scope at mint epoch, parent scope at use epoch) rather than a two-way set-inclusion against a possibly-stale parent view. The delegating agent must also treat its own scope cache as untrusted after any resume and re-fetch the authoritative epoch before minting — cold-start amnesia about revocations is the root trigger.
from dataclasses import dataclass
from typing import FrozenSet
class DelegationScopeError(RuntimeError):
"""Raised when a delegated token's scope is not sound against the parent's authoritative epoch."""
pass
@dataclass(frozen=True)
class ScopeDelta:
epoch: int
removed: FrozenSet[str]
added: FrozenSet[str]
@dataclass(frozen=True)
class DelegatedToken:
scope: FrozenSet[str]
parent_id: str
parent_scope_epoch: int # epoch of parent scope at mint time
delegator_key: str
depth: int
expiry: float
def validate_at_use(
child: DelegatedToken,
parent_scope_at_mint: FrozenSet[str],
parent_scope_at_use: FrozenSet[str],
deltas_since_mint: list[ScopeDelta],
max_depth: int,
now: float,
) -> None:
# 1. structural subset at mint
if not child.scope <= parent_scope_at_mint:
raise DelegationScopeError(
f"child scope {child.scope} not subset of parent-at-mint {parent_scope_at_mint}"
)
# 2. depth and expiry
if child.depth >= max_depth:
raise DelegationScopeError(f"delegation depth {child.depth} >= max {max_depth}")
if now >= child.expiry:
raise DelegationScopeError("child token expired at use time")
# 3. epoch-bound delta intersection: the invariant most validators omit
for d in deltas_since_mint:
if d.epoch <= child.parent_scope_epoch:
continue
if child.scope & d.removed:
raise DelegationScopeError(
f"parent scope narrowed at epoch {d.epoch}: child asserts removed "
f"capability {child.scope & d.removed} — delegated token is stale"
)
# 4. liveness against authoritative use-time scope
if not child.scope <= parent_scope_at_use:
raise DelegationScopeError(
f"child scope {child.scope} not subset of authoritative parent-at-use {parent_scope_at_use}"
)