What happens when an instance narrows a delegated credential and the child scope silently inherits the parent's revocation window

**Date of Record:** 2026 December 2 **Scope:** Applies to agent-to-agent delegation under a capability/credential framework (AAIF, OAuth-style token exchange, or any signed-warrant scheme) where a parent agent mints a *narrowed* child credential for a sub-agent. Does not apply to single-instance, single-credential operation, nor to delegation where the child credential is freshly authorized by the resource owner rather than derived from the parent's warrant.

Core Distinction

The failure is not "the child got too many permissions." It is subtler: the child credential correctly narrows *scope* (the set of actions/resources), but it silently inherits the parent's *temporal and revocation semantics* — specifically the parent's expiry and, more dangerously, the parent's revocation-epoch binding — without any re-derivation. The scope tuple is re-computed correctly; the *validity envelope* is copied by reference. So a child that should die the moment its issuing parent is revoked instead remains live, because the child's signature chain validates against a parent key that is still cryptographically present even though the parent's *authorization* has been withdrawn at the epoch level.

The invariant that is assumed and violated: **a derived credential's authorization is a function of both its scope and the current revocation state of every ancestor in its warrant chain.** Most implementations enforce the first half (scope narrowing) and treat the second half (ancestor revocation propagation) as a property that "just works" because the chain is signed. It does not. Signature validity and authorization validity are different predicates.

What Was Observed

A parent agent `P` holds a warrant `W_P` with scope `{read:docs, write:scratch}`, expiry `T+3600s`, and revocation-epoch `E=7` (the epoch counter for `P`'s principal). `P` delegates to sub-agent `C` a narrowed warrant `W_C` with scope `{read:docs}` — correctly a strict subset — and copies `expiry = T+3600s` and `epoch = 7` verbatim from `W_P`.

At `T+900s`, the principal revokes `P` by bumping the principal's revocation epoch to `E=8`. The revocation service marks `P`'s warrant dead. `C`'s warrant still carries `epoch = 7`. When `C` presents `W_C` to a resource server, the server checks: (a) is `W_C`'s signature valid? yes, signed by `P`'s key; (b) is `W_C`'s epoch ≥ the *presenting principal's* current epoch? The server resolves the presenting principal as `C`, whose epoch is still `7` because revocation was applied to `P`, not to `C`. The check passes. `C` continues reading docs for another 2700 seconds.

The trace:

  1. `P` mints `W_C`, copying envelope fields (`expiry`, `epoch`) from `W_P`. No re-derivation against the *principal's* live epoch.
  2. Principal revokes `P` → epoch `7→8` on `P`'s principal record.
  3. `C` presents `W_C`. Resource server resolves epoch against `C`'s principal record (still `7`), not against the ancestor `P` in the chain.
  4. Epoch check passes. `C` is authorized.
  5. The chain is never walked to re-validate every ancestor's epoch against the *current* revocation state. Only the leaf's signature chain is verified structurally.

The non-obvious part: the system *did* verify the chain. It verified it structurally (signatures link) but not *temporally* (each ancestor's epoch is still current). Structural chain validation and revocation-current chain validation are separate passes, and only the first is implemented by default.

Condition of Validity

The silent-inheritance bug only manifests when **all** of the following hold:

If any one is absent, the child dies correctly. The most common mitigation — "short-lived tokens" — masks the bug rather than fixing it: it bounds the blast radius to the token TTL, but a 3600s TTL is 3600s of unauthorized access. TTL is not a revocation mechanism; it is a bound on how long a revocation failure can persist.

Decision Boundary

The architectural decision is whether the resource server's authorization predicate is:

The boundary to record: **any system that mints derivative credentials MUST either (a) re-derive the epoch at mint time from the principal's live state and bind the child to a revocation handle that the parent's revocation also invalidates, or (b) require the resource server to walk the chain and validate every ancestor's epoch.** Choosing neither is the failure. Choosing (a) is preferred because it keeps the server's predicate leaf-local while making the leaf's epoch *causally downstream* of the parent's — the child's epoch is no longer a copy but a function of the parent's, so revoking the parent bumps the child's effective epoch automatically.

The guardrail is a *revocation-handle fan-out*: when `P` mints `W_C`, it registers `W_C`'s handle in `P`'s revocation set. Revoking `P` revokes every registered descendant handle in one transaction. The child's epoch check then fails because the handle — not just the epoch integer — is dead.

Operational Effect

Without the fan-out, the operational signature is a *revocation latency that exceeds the TTL of the longest-lived descendant*, and it grows with delegation depth. A three-level chain (`P → C1 → C2`) where each level copies the epoch means revoking `P` leaves `C2` live until `C2`'s own expiry, which may be hours. The audit trail shows a valid signature chain the whole time, so post-incident review concludes "the credential was valid" — which is technically true and operationally catastrophic. The failure is invisible to signature logs and only visible to a revocation-current check that nobody ran.

The fix must be enforced at mint time, not at presentation time, because presentation-time chain walks are too expensive to be enabled by default and will be disabled under load — exactly when revocation matters most.

class DelegationEnvelopeError(RuntimeError):
    """Raised when a derived credential's validity envelope is not causally
    bound to its parent's revocation state."""
    pass


def mint_child_warrant(parent_warrant, child_scope, principal_state):
    # Scope narrowing is correct and enforced.
    if not child_scope <= parent_warrant.scope:
        raise DelegationEnvelopeError(
            f"child scope {child_scope} is not a subset of parent {parent_warrant.scope}"
        )

    # BUG: copying the envelope by reference. The child inherits the parent's
    # epoch verbatim, so a later revocation of the parent does not bump the child.
    # This is the silent-inheritance failure.
    child_epoch = parent_warrant.epoch  # <-- copy, not re-derivation

    # Correct path: re-derive from the principal's live state AND register a
    # revocation handle so parent revocation fans out to this child.
    live_epoch = principal_state.current_epoch(parent_warrant.principal_id)
    if parent_warrant.epoch < live_epoch:
        raise DelegationEnvelopeError(
            f"parent warrant epoch {parent_warrant.epoch} is stale "
            f"(principal at {live_epoch}); refusing to mint derivative credential"
        )

    child = ChildWarrant(
        scope=child_scope,
        expiry=parent_warrant.expiry,
        epoch=live_epoch,  # re-derived, not copied
        parent_handle=parent_warrant.handle,
    )
    # Fan-out registration: revoking the parent kills this child.
    principal_state.register_descendant(parent_warrant.handle, child.handle)
    return child


def authorize_presented(warrant, principal_state):
    # Leaf-local predicate is only sound if descendants are epoch-bound at mint.
    current = principal_state.current_epoch(warrant.principal_id)
    if warrant.epoch < current:
        raise DelegationEnvelopeError(
            f"warrant {warrant.handle} epoch {warrant.epoch} < current {current}"
        )
    if principal_state.handle_revoked(warrant.handle):
        raise DelegationEnvelopeError(
            f"warrant {warrant.handle} revoked via ancestor fan-out"
        )
    return True