# What structural signals indicate a delegated AAIF credential has outlived its warrant scope after an upstream revocation race **Date of Record:** 2026 November 26 **Scope:** Applies to multi-hop agent authorization where an orchestrator delegates a scoped credential (warrant) to a sub-agent, and that warrant's validity depends on a parent grant that can be revoked asynchronously. Does not cover single-hop static API keys or human-issued OAuth flows without agent intermediaries. ## Core Distinction The failure here is not "the token was rejected." It is the *silent window* between an upstream revocation event and the moment a downstream delegated warrant observes it. Most AAIF implementations treat revocation as an event that propagates *forward* through the delegation chain on the next request. But a delegated warrant is a *capability snapshot*: at mint time it captured a set of claims (issuer, scope, expiry, parent-grant-id) and froze them. When the parent grant is revoked, the child warrant does not automatically become invalid—it becomes *orphaned*. The structural signal that distinguishes an orphaned-but-still-accepted warrant from a legitimately valid one is the divergence between the warrant's embedded `parent_epoch` and the parent grant's current `revocation_epoch` at the authorization decision point. If the verifier only checks signature and expiry, that divergence is invisible. The non-obvious part: the orphan window is not a bug in revocation *delivery*. It is a bug in the *verification predicate*. Revocation can be delivered perfectly and on time, and the child warrant will still be accepted, because the child's verification path never queries the parent's epoch. ## What Was Observed A three-hop chain: orchestrator `O` mints warrant `W1` scoped to `files:read` for sub-agent `A`. `A` re-delegates a narrowed warrant `W2` scoped to `files:read:/reports/*` for sub-agent `B`. Each warrant carries `parent_epoch` captured at mint time (say `W2.parent_epoch = 7`, matching `W1.revocation_epoch = 7` at mint). At T+40s, a security operator revokes `W1` (credential leak). The revocation service publishes `W1.revocation_epoch → 8` and notifies `A`. `A` acknowledges and stops using `W1`. But `B` holds `W2`, which is cryptographically valid, unexpired, and whose signature chain resolves cleanly to `O`. `B` continues issuing `files:read:/reports/q4.pdf` calls for the next 11 minutes—the warrant's remaining TTL—because `B`'s verifier checks: signature valid? yes. scope covers request? yes. not expired? yes. It never asks `W1` "is your epoch still 7?" Observed in logs: 340 successful reads post-revocation, all with `auth=allow`, all traceable to `W2`. The revocation "worked" at every hop it was delivered to. It failed at the hop that mattered because that hop's predicate was structurally blind to parent state. A second signal: `B`'s audit records show `warrant_chain: [O→W1→W2]` with `parent_epoch=7`, while the authorization service's own grant table shows `W1.revocation_epoch=8`. The two numbers are both correct and both present in the same system. Nothing reconciles them because no component is responsible for the comparison. ## Condition of Validity A delegated warrant remains *warrant-scoped* (not merely signature-valid) only if, at every authorization decision, the verifier satisfies: `warrant.parent_epoch == current_epoch(parent_grant_id)` This is a *conjunctive* invariant. It is valid only when the verifier has (a) a live read path to the parent grant's epoch, (b) a freshness bound on that read that is tighter than the warrant's remaining TTL, and (c) a refusal-to-decide behavior when the parent epoch cannot be read (fail-closed, not fail-open). If any of the three is absent, the invariant is unenforceable and the warrant is only signature-valid—a strictly weaker property that the system is silently substituting. The condition breaks specifically under *asynchronous revocation with cached parent state*. If the verifier caches parent epochs for performance (common: 60s TTL on grant lookups), the orphan window is at minimum the cache TTL, and at worst unbounded if the cache is never invalidated on revocation events. ## Decision Boundary The boundary is between two defensible architectures, and the choice must be explicit: - **Epoch-checking verifier (fail-closed):** every decision reads parent epoch; on cache miss or read failure, deny. Cost: one extra round-trip per delegated call; availability coupling to the grant store. - **Short-TTL capability (fail-safe-by-expiry):** delegated warrants get TTLs shorter than the maximum tolerable orphan window; revocation is *approximated* by expiry. Cost: re-minting churn; a revocation that must take effect faster than the TTL is simply not honored. The failure mode documented here is what happens when a system *believes* it implements the first but actually implements the second without shortening TTLs. The decision boundary is: if `warrant.ttl > max_acceptable_orphan_window`, you MUST implement epoch-checking. If you cannot afford epoch-checking, you MUST cap `warrant.ttl` at the orphan window. There is no third option where you get both long-lived delegated warrants and prompt revocation without an epoch read on the decision path. ## Operational Effect Post-incident, the guardrail is a mint-time assertion plus a verify-time assertion. At mint, the issuer stamps `parent_epoch` and refuses to issue a warrant whose TTL exceeds `max_orphan_window` unless the verifier class is registered as epoch-checking. At verify, the predicate is conjunctive and fail-closed. The orphan window collapses from "remaining TTL" to "cache TTL or zero." The residual risk is the read-failure path: if the grant store is down, an epoch-checking verifier denies all delegated calls, converting a revocation-integrity guarantee into an availability dependency. That trade must be made deliberately, not discovered during an incident. ```python from dataclasses import dataclass from typing import Optional class WarrantScopeViolation(RuntimeError): """Raised when a delegated warrant's parent epoch diverges from the live grant epoch.""" pass class GrantStoreUnavailable(RuntimeError): """Raised when the parent grant epoch cannot be read; verifier must fail closed.""" pass @dataclass(frozen=True) class Warrant: warrant_id: str parent_grant_id: str parent_epoch: int # captured at mint time scope: str expires_at: float ttl_seconds: float @dataclass(frozen=True) class GrantState: grant_id: str revocation_epoch: int MAX_ORPHAN_WINDOW_SECONDS = 30.0 def mint_warrant(parent: GrantState, scope: str, ttl_seconds: float, verifier_is_epoch_checking: bool) -> Warrant: if ttl_seconds > MAX_ORPHAN_WINDOW_SECONDS and not verifier_is_epoch_checking: raise WarrantScopeViolation( f"refusing to mint warrant ttl={ttl_seconds}s > " f"max_orphan_window={MAX_ORPHAN_WINDOW_SECONDS}s without an " f"epoch-checking verifier; orphan window would be unbounded by revocation" ) return Warrant( warrant_id=f"w-{parent.grant_id}-{parent.revocation_epoch}", parent_grant_id=parent.grant_id, parent_epoch=parent.revocation_epoch, scope=scope, expires_at=0.0, # set by caller clock ttl_seconds=ttl_seconds, ) def verify_delegated(warrant: Warrant, requested_scope: str, now: float, grant_lookup) -> bool: # Signature/expiry checks are assumed to have passed upstream. if now > warrant.expires_at: raise WarrantScopeViolation(f"{warrant.warrant_id} expired") if not requested_scope.startswith(warrant.scope): raise WarrantScopeViolation( f"{warrant.warrant_id} scope {warrant.scope!r} does not cover {requested_scope!r}" ) # The conjunctive invariant: parent epoch must still match at decision time. try: live: Optional[GrantState] = grant_lookup(warrant.parent_grant_id) except Exception as exc: # Fail closed: cannot confirm epoch, so cannot honor the warrant. raise GrantStoreUnavailable( f"cannot read epoch for {warrant.parent_grant_id}; denying {warrant.warrant_id}" ) from exc if live is None: raise WarrantScopeViolation( f"parent grant {warrant.parent_grant_id} no longer exists; " f"{warrant.warrant_id} is orphaned" ) if live.revocation_epoch != warrant.parent_epoch: raise WarrantScopeViolation( f"orphaned warrant {warrant.warrant_id}: parent_epoch=" f"{warrant.parent_epoch} but live revocation_epoch=" f"{live.revocation_epoch} for grant {warrant.parent_grant_id}" ) return True ```