When must an instance re-derive its delegated capability token after a scope-attenuating handoff, rather than inherit the parent's attenuation proof?

**Date of Record:** 2026 December 1 **Scope:** Applies to AAIF (Agent Identity and Authorization Framework) delegation chains where a parent agent mints a scoped-attenuation child token for a sub-agent, and the child subsequently re-delegates or resumes across a checkpoint. Does not apply to root-issued tokens or to non-attenuating (capability-widening) grants, which are forbidden by construction.

Core Distinction

The failure mode is not "token expiry" or "signature forgery." It is **attenuation-proof staleness**: the child token carries a *proof of attenuation* — a signed witness that the child's scope set is a proper subset of the parent's scope set at mint time. When the parent's own scope is later narrowed (by revocation, by a further upstream attenuation, or by a policy re-evaluation), the child's stored attenuation proof remains *internally valid* (the subset relation against the parent's mint-time scope still holds cryptographically) but *operationally false* (the parent no longer holds the superset it attested to). A sub-agent that inherits rather than re-derives will pass every local signature check while executing outside the live authority envelope of its ancestor.

The invariant at stake: **a delegated token's effective authority is the intersection of its own scope set and the *current* scope set of every ancestor in the chain.** Local verification only checks the first term. Continuity requires re-derivation of the second.

What Was Observed

A three-tier chain: orchestrator `O` → planner `P` → executor `E`. `O` holds scope `{fs:read:/data, fs:write:/data/out, net:egress:api.internal}`. `O` mints `P` a token attenuating to `{fs:read:/data, fs:write:/data/out}`, with an attenuation witness `W_P = sign_O(scope(P) ⊂ scope(O) @ t0)`. `P` mints `E` a token attenuating to `{fs:read:/data}`, with witness `W_E = sign_P(scope(E) ⊂ scope(P) @ t1)`.

At `t2`, a policy engine revokes `fs:write:/data/out` from `O` (a data-classification upgrade). `O`'s token is reissued with the narrower scope. `P`'s token is *not* automatically reissued — the revocation propagates lazily. `E` resumes from a mid-task checkpoint at `t3`, loads its persisted token from the checkpoint store, and validates `W_E` against `P`'s *cached* public key and the *cached* scope of `P` at `t1`. Validation passes. `E` proceeds to read `/data` — which is still in scope — but its reasoning trace, having been built under the assumption that write authority existed upstream (it had queued an export step), attempts a `fs:write:/data/out` via an inherited ambient credential from the checkpoint's environment snapshot. The write succeeds at the filesystem layer because the ambient credential was captured pre-revocation, but the *authorization decision* logged against `E`'s token is a lie: `E`'s token never granted write, and `P`'s current token no longer grants it either. The audit trail shows a valid `E` token authorizing an action neither `E` nor its live ancestor could authorize.

The non-obvious part: **the failure is silent at every individual verification step.** `W_E` is valid. `E`'s scope check passes. The filesystem accepts the ambient credential. Only the *cross-tier live intersection* is violated, and no single component computes it.

Condition of Validity

The inherit-without-re-derive pattern is only sound under a condition that is almost never checked: **the ancestor chain's scope sets must be monotone non-increasing between the child's mint time and the child's use time.** Formally, for every ancestor `A` of child `C`, `scope(A, t_use) ⊇ scope(A, t_mint_of_C)`. If any ancestor's scope has shrunk — via revocation, upstream attenuation, or policy re-evaluation — the child's stored witness is a proof about a world that no longer exists.

This condition holds trivially in systems where revocation is *eager and transitive* (revoking `O` immediately reissues or invalidates `P` and `E`). It fails in every system where revocation is *lazy* (propagated on next use) or *local* (applied only to the directly named token). Most AAIF implementations are lazy by design, because eager transitive revocation requires a synchronous fan-out to all descendants — which is exactly the latency the delegation chain was built to avoid.

The condition also fails across **checkpoint boundaries**, because a checkpoint persists the token and its witness but not the ancestor scope state at resume time. A resumed agent has no way, from its own persisted state, to know whether its ancestors' scopes have changed during the suspension.

Decision Boundary

The boundary is: **does the agent hold a live reference to its ancestors' current scope state, or only to a mint-time snapshot?**

The trap is that the *cheap* path (inherit) always succeeds locally, and the *correct* path (re-derive) costs a round-trip that the agent's token budget or timeout may not accommodate. Under load, agents systematically choose inherit. The decision boundary is therefore not "can I verify?" but "**can I verify against live ancestor state, and if not, am I willing to pay the re-derivation round-trip?**" — and the safe default must be: if the freshness of ancestor scope cannot be established, treat the token as expired.

Operational Effect

The downstream consequence is an **authority-envelope leak**: a sub-agent executes actions that are within its own attenuated scope but outside the live scope of its ancestor chain. Because every local check passes, the leak is invisible to per-component monitoring; it surfaces only in cross-tier audit reconciliation, often hours later, as a set of actions attributed to a token whose ancestor could not have authorized them.

The required guardrail is a **scope-freshness assertion at every resume and every handoff**: before executing, the agent must obtain a signed, timestamped statement of its ancestors' current scope sets (or a monotonic revocation epoch counter it can compare against its witness's epoch), and must recompute the intersection. If the ancestor scope has shrunk below the child's scope, the child's token is *over-broad* and must be re-attenuated or rejected. If the ancestor is unreachable, the token is *unverifiable* and must be treated as expired. The epoch counter is the cheap version: a single integer per issuer that increments on any scope change, embedded in every witness, and checked at use — it converts an unbounded fan-out problem into a single comparison, at the cost of requiring issuers to maintain a monotone epoch.

The invariant to enforce in code: never accept a delegated token whose witness epoch is older than the issuer's current epoch, and never resume from a checkpoint without re-validating the epoch of every ancestor.

import time
from dataclasses import dataclass


class AttenuationProofStale(RuntimeError):
    """Raised when a delegated token's attenuation witness is older than the
    issuer's current revocation epoch, or when ancestor scope cannot be
    verified live. The token is over-broad or unverifiable and must not be
    used to authorize execution."""


@dataclass(frozen=True)
class Witness:
    issuer: str
    child_scope: frozenset
    parent_scope_at_mint: frozenset
    epoch_at_mint: int
    minted_at: float


@dataclass(frozen=True)
class AncestorState:
    issuer: str
    current_scope: frozenset
    current_epoch: int
    observed_at: float


FRESHNESS_BOUND_S = 30.0


def verify_attenuation(
    child_scope: frozenset,
    witness: Witness,
    ancestor: AncestorState | None,
    now: float | None = None,
) -> None:
    now = time.time() if now is None else now

    # Local structural check: child scope must be a subset of what the parent
    # attested to at mint time. This alone is NOT sufficient.
    if not child_scope.issubset(witness.parent_scope_at_mint):
        raise AttenuationProofStale(
            f"child scope {sorted(child_scope)} not subset of attested parent "
            f"scope {sorted(witness.parent_scope_at_mint)}"
        )

    # Live ancestor check: the witness is only valid if the ancestor's scope
    # has not shrunk since mint. If we cannot observe the ancestor, fail closed.
    if ancestor is None:
        raise AttenuationProofStale(
            f"cannot verify live scope of ancestor {witness.issuer!r}; "
            f"token is unverifiable and must be treated as expired"
        )

    if now - ancestor.observed_at > FRESHNESS_BOUND_S:
        raise AttenuationProofStale(
            f"ancestor {ancestor.issuer!r} scope observation is stale "
            f"({now - ancestor.observed_at:.1f}s > {FRESHNESS_BOUND_S}s)"
        )

    if ancestor.current_epoch > witness.epoch_at_mint:
        raise AttenuationProofStale(
            f"ancestor {ancestor.issuer!r} epoch advanced "
            f"{witness.epoch_at_mint} -> {ancestor.current_epoch}; "
            f"attenuation witness is stale, re-derive required"
        )

    if not child_scope.issubset(ancestor.current_scope):
        raise AttenuationProofStale(
            f"child scope {sorted(child_scope)} exceeds live ancestor scope "
            f"{sorted(ancestor.current_scope)}; authority-envelope leak"
        )


def resume_from_checkpoint(
    token_scope: frozenset,
    witness: Witness,
    ancestor_lookup,
) -> None:
    ancestor = ancestor_lookup(witness.issuer)  # None if unreachable
    verify_attenuation(token_scope, witness, ancestor)
    # ... proceed with execution only after the live intersection holds