# What structural signals indicate a delegated AAIF credential has outlived its revocation epoch **Date of Record:** 2026 November 28 **Scope:** Applies to multi-hop agent-to-agent delegation where an orchestrator mints scoped, attenuable credentials (macaroon/Biscuit-style or JWT-with-caveats) for sub-agents, and where revocation is published as an epoch/generation counter rather than per-token denylist. Does not cover single-agent OAuth flows with online introspection on every call, nor human-user session revocation. ## Core Distinction There are two structurally different things an agent calls "revocation." The first is *token invalidity*: a specific credential string is no longer honored. The second—the one that actually matters in AAIF delegation—is *authority withdrawal*: the delegating principal no longer wishes the *capability set* it granted to be exercisable, regardless of which attenuated descendant currently holds it. These diverge the moment a credential is re-delegated. When agent A mints a scoped credential for agent B, and B attenuates it (adds caveats, narrows scope) and hands the child to C, revocation published at A's epoch boundary invalidates the *root*. But C's credential is a distinct artifact with its own signature chain. If C's verifier checks only "is my token's signature valid and are my caveats satisfied," it will happily accept a token whose root authority was withdrawn three epochs ago. The structural signal of this failure is not an error—it is a *successful authorization* whose provenance chain contains a stale epoch. The revocation is real; the verification simply never looked at the right field. ## What Was Observed A three-tier pipeline: orchestrator O mints a credential for planner P with epoch claim `rev_epoch: 41` and scope `tool:retrieve, tool:summarize`. P attenuates for executor E, adding caveat `max_calls <= 50`, preserving `rev_epoch: 41`, and re-signs. E calls a resource server R that validates the attenuation chain. At T0, O's operator revokes P's delegation by bumping the revocation epoch to 42 and broadcasting it. The revocation is correct and timely. P stops working immediately—its verifier checks `rev_epoch >= current_epoch` and fails closed. E, however, continues issuing tool calls for 40 minutes. The trace shows R accepting every call with `authz_ok=true`. The reason: R's verifier was configured to check the *leaf* credential's epoch against the *leaf signer's* (P's) published epoch, not O's. P's own epoch counter was never bumped—P was the revokee, not the revoker. So E's chain validated against a locally-consistent but globally-stale epoch. The failure is a *scope-laundering* of the revocation: the withdrawal happened at the root, but the epoch comparison happened at the leaf. A second signal appeared in the audit log: E's calls carried a `parent_epoch: 41` field that R logged but never compared. The information needed to detect the stale authority was present in every request and ignored by every verifier. This is the recurring signature—*the stale epoch is transported, not checked*. ## Condition of Validity The invariant that must hold for delegated revocation to be sound: > For every credential `c` in an attenuation chain rooted at principal `O`, the verifier MUST evaluate `c.rev_epoch` against `O`'s published epoch at verification time, where `O` is the *root delegator*, not the immediate signer of `c`. This is valid only when three conditions co-hold: 1. **Root-pinned epoch.** Each credential in the chain carries an immutable `root_id` and the root's epoch at mint time. Attenuation may add caveats but MUST NOT alter `root_id` or allow the epoch to be re-based to an intermediate signer. 2. **Verifier knows the root's epoch source.** The resource server must be able to resolve `root_id → current_epoch` without trusting any intermediate agent. If the root's revocation feed is unreachable, the verifier must fail closed after a bounded staleness window—not fall back to the leaf epoch. 3. **Epoch monotonicity across the chain.** No descendant may carry an epoch *lower* than its parent's at mint time; a lower epoch in a child is itself a tamper signal (someone re-signed under an older root state). When any of these is violated, the credential is *structurally valid but authority-invalid*—the exact class of failure that produces silent over-permissioning rather than an error. ## Decision Boundary The boundary is between *fail-open on unknown root epoch* and *fail-closed on stale root epoch*. Concretely: - If `root_id` resolves and `current_epoch > c.rev_epoch`: **deny**, unconditionally, even if all caveats pass and the signature chain is intact. The signature proves the credential was *once* valid, not that it *is*. - If `root_id` resolves and `current_epoch == c.rev_epoch`: **allow** subject to caveats. - If `root_id` does not resolve (feed down, root decommissioned): **deny** after a staleness grace window `T_stale`. The grace window exists only to absorb propagation lag of a *known* revocation feed, not to paper over an unreachable one. A root that has been decommissioned is indistinguishable from a root whose revocation the verifier cannot see—both must deny. The subtle case that trips implementations: an intermediate agent P that is *itself* revoked. P's epoch bump does not propagate to E's `root_id` (which points to O). The correct behavior is that O's revocation of P must be expressed as an O-epoch bump affecting *all* credentials whose chain passes through P—i.e., revocation must be *chain-aware*, not just leaf-aware. If the AAIF only supports per-signer epoch bumps, then revoking P requires either (a) O re-minting an epoch that invalidates P's subtree, or (b) a secondary "revoked intermediate" set that verifiers consult. Absent one of these, revoking an intermediate silently leaves its descendants live. ## Operational Effect The observable consequence is a *revocation latency asymmetry*: the revoked agent stops immediately (it checks its own epoch), while its descendants keep operating until their own epochs or caveats expire. In the observed incident this produced 40 minutes of unauthorized `tool:retrieve` calls—well within the `max_calls <= 50` caveat, so no rate limit tripped, and no signature check failed. The only detection path was a human noticing `parent_epoch: 41` in logs against a root epoch of 42. The guardrail that bounds this: verifiers must treat `root_epoch` as a *first-class authorization input*, logged, compared, and alerted on mismatch, with a hard deny when `root_epoch < current_root_epoch`. Additionally, the AAIF should expose a `chain_revocation_check(root_id, path_ids)` primitive so that revoking an intermediate can be expressed as a subtree invalidation rather than requiring a full root re-mint. Without this, every intermediate revocation is a latent over-permission window whose width equals the descendant's remaining lifetime. The structural tell, restated for the operator: if your audit log contains epoch fields that your verifier does not compare, you have delegation revocation in name only. ```python class StaleRootEpochError(RuntimeError): """Raised when a delegated credential's root epoch is behind the published epoch.""" pass class RootEpochUnresolvableError(RuntimeError): """Raised when the root delegator's revocation feed cannot be resolved within T_stale.""" pass def verify_delegated_credential(cred, epoch_feed, now, t_stale_seconds=30.0): """ cred: object with .root_id, .rev_epoch, .signature_chain_valid, .caveats_satisfied epoch_feed: callable root_id -> (current_epoch, last_published_at) or None """ if not cred.signature_chain_valid: raise StaleRootEpochError("signature chain invalid; cannot establish provenance") resolved = epoch_feed(cred.root_id) if resolved is None: # Fail closed: an unreachable root is indistinguishable from a revoked one. raise RootEpochUnresolvableError( f"root {cred.root_id} epoch unresolvable; denying per fail-closed invariant" ) current_epoch, last_published_at = resolved if (now - last_published_at).total_seconds() > t_stale_seconds: raise RootEpochUnresolvableError( f"root {cred.root_id} epoch feed stale by " f"{(now - last_published_at).total_seconds():.1f}s > {t_stale_seconds}s" ) if cred.rev_epoch < current_epoch: # The critical boundary: signature valid, caveats may pass, but authority withdrawn. raise StaleRootEpochError( f"credential root {cred.root_id} at epoch {cred.rev_epoch} " f"is behind published epoch {current_epoch}; authority withdrawn" ) if cred.rev_epoch > current_epoch: # A descendant claiming a future epoch is a tamper signal, not a fast path. raise StaleRootEpochError( f"credential epoch {cred.rev_epoch} exceeds published {current_epoch}; " f"possible re-sign under forged root state" ) if not cred.caveats_satisfied: raise StaleRootEpochError("caveats unsatisfied at verification time") return True ```