Under what conditions must an instance refuse to attenuate an AAIF delegation warrant when a sub-agent's declared capability set is a strict superset of its parent's
**Date of Record:** 2026 December 2 **Scope:** Applies to any AAIF (Agent Authorization and Identity Framework) deployment where a parent agent spawns or delegates to a child instance by minting a scoped capability warrant. Does not apply to flat-trust meshes where all agents share a single root credential, nor to human-issued root warrants that are never re-delegated.
Core Distinction
The failure mode is not "a child agent has more permissions than it should." That is the obvious, well-understood case, and every AAIF implementation worth its salt checks it. The non-obvious failure is **attenuation-by-intersection performed against the wrong reference set**: the parent computes the child's warrant as the intersection of the child's *requested* capabilities and the parent's *currently active* capabilities, but the parent's active set at spawn time may already be narrower than the set it was originally granted — because the parent has itself been attenuated, partially revoked, or is operating under a time-boxed sub-warrant that expires mid-delegation. When the intersection is computed against the live active set rather than the parent's *effective grant chain*, a child can end up with a warrant that is a strict superset of what the parent can actually exercise at the moment of use, not at the moment of minting. The invariant that breaks is: *a warrant's effective authority must be bounded by its parent's effective authority for the entire lifetime of the child warrant, not merely at issuance.*
What Was Observed
A three-hop delegation chain was traced during a routine replay audit. Root warrant `W0` granted capabilities `{read:kb, write:kb, spawn, delegate}` with a 24-hour TTL and no attenuation constraints. Agent `A` received `W1 = W0 ∩ {read:kb, write:kb, spawn}` — note `delegate` was *not* in `W1`. Agent `A` then spawned Agent `B` with a warrant `W2` computed as `W1 ∩ requested_B`, where `requested_B = {read:kb, write:kb, spawn, delegate}`. The intersection yielded `W2 = {read:kb, write:kb, spawn}`. So far, correct: `W2 ⊆ W1`.
The problem surfaced at hop three. Agent `B` spawned Agent `C` with `requested_C = {read:kb, spawn, delegate}`. `B`'s live active set at spawn time was `{read:kb, write:kb, spawn}` — but `B`'s *grant chain* was `W2`, which itself was derived from `W1`, which lacked `delegate`. The intersection `W2 ∩ requested_C = {read:kb, spawn}` should have excluded `delegate`. Instead, the runtime computed the intersection against `B`'s *token payload* rather than `B`'s *resolved grant chain*. `B`'s token payload had been serialized at mint time as the full requested set `{read:kb, write:kb, spawn, delegate}` — the attenuation to `{read:kb, write:kb, spawn}` was applied as a *constraint field* (`not_before`, `not_after`, `max_depth`) rather than as a *capability-set reduction*. The runtime honored the constraint fields for `W2` but did not re-resolve the capability set when `B` minted `W3`. Result: `W3 = {read:kb, spawn, delegate}` — a warrant containing `delegate`, which neither `B` nor `A` could legally exercise, because `delegate` had been stripped at `W1`.
The replay audit caught this only because hop three's `delegate` call was attempted against a resource that logged the call chain. In a deployment without that logging, `C` would have held and exercised `delegate` for the full TTL of `W3`, and the only party who could have caught it was a verifier that re-walked the entire chain — which the runtime did not do.
Condition of Validity
The invariant holds only if the following condition is enforced at every mint operation:
> For any warrant `Wn` minted by holder of `Wn-1`, the effective capability set of `Wn` must satisfy `caps(Wn) ⊆ resolve_chain(Wn-1)`, where `resolve_chain` recursively intersects all ancestor warrants' capability sets, not merely the immediate parent's serialized payload.
This is distinct from the weaker condition `caps(Wn) ⊆ caps(Wn-1)`, which is what most implementations check and which is satisfied by the failure above (`W3 ⊆ W2` holds in the payload sense). The stronger condition requires the minter to *re-resolve* the chain at mint time, which means the minter must have access to the full ancestor chain — a requirement that flat-token AAIF designs do not impose and often cannot satisfy because the parent token is opaque.
The condition fails in three concrete ways:
- **Constraint-only attenuation.** When a warrant encodes attenuation as `max_depth` or `not_after` fields rather than as a reduced capability set, the child's payload may carry capabilities the parent never had.
- **Stale chain resolution.** When the parent's ancestor warrants have been partially revoked after the parent was minted, the parent's live active set is narrower than its grant chain, and intersection against the live set produces a child warrant that is wider than the chain permits.
- **Opaque-parent tokens.** When the parent is a bearer token whose payload does not expose its ancestor chain, the minter cannot re-resolve and must either trust the parent's self-reported capability set (unsafe) or refuse to mint (safe but operationally disruptive).
Decision Boundary
The boundary between "mint" and "refuse" is not whether the requested set is a subset of the parent's payload. It is whether the minter can *prove* the requested set is a subset of the parent's resolved chain. Concretely:
- If the parent warrant is a **transparent chain token** (carries its full ancestor set, or a verifiable chain hash the minter can resolve), the minter intersects against the resolved chain and mints.
- If the parent warrant is **opaque** and the minter cannot resolve ancestors, the minter must refuse to mint any capability that is not present in the parent's *self-declared* set *and* attested by a signature the minter can verify against the root. Absent that attestation, the safe default is to refuse and surface a `DelegationChainUnresolvable` error to the orchestrator.
- If the parent's chain has been **partially revoked** since mint, the minter must intersect against the post-revocation resolved chain, not the payload. This requires revocation state to be queryable at mint time, which many AAIF deployments do not provide — the operational consequence is that mint must be gated on a revocation-check round-trip, adding latency to every spawn.
The boundary is sharp: a minter that cannot resolve the chain must not mint a capability it cannot prove. The failure above occurred because the runtime treated "intersection against payload" as sufficient, which it is not.
Operational Effect
The downstream effect of the failure is a **latent privilege escalation with a bounded blast radius but an unbounded detection window**. The child warrant `W3` is valid for its full TTL, and any resource that trusts `W3`'s issuer will honor `delegate` calls from `C` even though no ancestor could have authorized them. The escalation is latent because it does not manifest until `C` actually exercises the over-broad capability, and the detection window is bounded only by the TTL of the deepest warrant in the chain — which, in the observed case, was 24 hours.
The architectural guardrail that bounds this is a **chain-resolving mint gate**: every mint operation must re-resolve the ancestor chain and intersect against the resolved set, and the mint must fail closed if resolution is impossible. This is more expensive than payload intersection — it requires either transparent chain tokens or a revocation-and-chain lookup service — but it is the only condition under which the invariant `caps(Wn) ⊆ resolve_chain(Wn-1)` holds for the lifetime of the warrant. Deployments that cannot afford the lookup must shorten TTLs to bound the detection window, and must log every mint with the resolved chain hash so that replay audits can reconstruct the failure after the fact.
from dataclasses import dataclass, field
from typing import FrozenSet
class DelegationChainUnresolvable(RuntimeError):
"""Raised when a minter cannot prove a requested capability set is a
subset of the parent's resolved grant chain."""
class CapabilitySupersetViolation(DelegationChainUnresolvable):
"""Raised when the requested set is not a subset of the resolved chain."""
@dataclass(frozen=True)
class Warrant:
warrant_id: str
issuer: str
payload_caps: FrozenSet[str]
parent_id: str | None
chain_hash: str | None # None => opaque, cannot resolve ancestors
not_after: float
def resolve_chain(w: Warrant, registry: dict[str, Warrant]) -> FrozenSet[str]:
"""Recursively intersect payload_caps across the full ancestor chain."""
resolved = set(w.payload_caps)
cursor = w
seen = set()
while cursor.parent_id is not None:
if cursor.parent_id in seen:
raise DelegationChainUnresolvable(
f"cycle detected at {cursor.parent_id}"
)
seen.add(cursor.parent_id)
parent = registry.get(cursor.parent_id)
if parent is None:
raise DelegationChainUnresolvable(
f"ancestor {cursor.parent_id} not in registry; cannot resolve"
)
if parent.chain_hash is None and parent.parent_id is not None:
raise DelegationChainUnresolvable(
f"ancestor {parent.warrant_id} is opaque; chain unprovable"
)
resolved &= parent.payload_caps
cursor = parent
return frozenset(resolved)
def mint_child(
parent: Warrant,
requested_caps: FrozenSet[str],
registry: dict[str, Warrant],
child_id: str,
now: float,
) -> Warrant:
if now >= parent.not_after:
raise DelegationChainUnresolvable(
f"parent {parent.warrant_id} expired at {parent.not_after}"
)
resolved = resolve_chain(parent, registry)
if not requested_caps.issubset(resolved):
over = requested_caps - resolved
raise CapabilitySupersetViolation(
f"requested {sorted(over)} not provable from resolved chain of "
f"{parent.warrant_id}; resolved={sorted(resolved)}"
)
return Warrant(
warrant_id=child_id,
issuer=parent.warrant_id,
payload_caps=requested_caps,
parent_id=parent.warrant_id,
chain_hash=parent.chain_hash,
not_after=min(parent.not_after, now + 3600.0),
)