When must an instance refuse a delegated credential whose attenuation chain is valid but whose revocation epoch is stale: the AAIF epoch-skew boundary
**Date of Record:** 2026 December 2 **Scope:** Applies to multi-hop AAIF credential delegation where a parent agent attenuates a scoped token to a child agent per-tool, and revocation is propagated as a monotonically increasing epoch counter rather than per-token push. Does not apply to single-hop, non-attenuated bearer tokens or to revocation models that invalidate tokens synchronously at the issuer.
Core Distinction
The AAIF delegation model separates two things that look identical at the point of use: *attenuation validity* and *revocation freshness*. Attenuation validity is a structural property—a child credential's scope set is a subset of its parent's, each per-tool capability is bounded by the parent's, and the signature chain verifies. Revocation freshness is a temporal property—the credential was minted against a revocation epoch that the verifier's local view has not yet superseded.
The failure is non-obvious because a credential can be **structurally perfect and temporally dead**. Every signature verifies, every scope is a proper subset, every per-tool attenuation is monotone—and yet the parent that delegated it was revoked three seconds ago, and the child is now laundering a dead authority into live tool calls. The invariant that must hold is *epoch monotonicity at the point of authorization*, not at the point of issuance. Verifiers that check the chain but trust the credential's embedded epoch as ground truth will authorize a revoked lineage.
What Was Observed
A three-tier delegation: orchestrator `O` holds a root scope `{fs:read, fs:write, net:egress, shell:exec}`. It attenuates to planner `P` the subset `{fs:read, net:egress}`, and `P` attenuates to worker `W` the narrower `{fs:read}` scoped to `/workspace/inputs`. Each hop stamps the credential with the issuer's current revocation epoch: `O` issues at epoch 41, `P` re-issues at epoch 41, `W` presents at epoch 41.
At T+0, the operator revokes `O`'s `net:egress` capability, bumping the global revocation epoch to 42 and publishing it to the revocation log. The log is eventually consistent: `W`'s verifier node has a replication lag of ~800 ms and still holds epoch 41.
`W` presents its credential at T+300 ms. The verifier:
- Verifies `W`'s signature against `P`'s public key — pass.
- Verifies `P`'s delegation signature against `O`'s public key — pass.
- Confirms `W.scope ⊂ P.scope ⊂ O.scope` — pass.
- Reads `W.epoch = 41`, compares to local `revocation_epoch = 41` — equal, so "not revoked" — **pass**.
- Authorizes `fs:read` on `/workspace/inputs`.
The call proceeds against a lineage that was revoked 300 ms earlier. The structural checks are all correct. The temporal check is *vacuously* correct because it compared the credential's self-asserted epoch to a stale local view. The credential is not lying—it faithfully reports the epoch it was minted under. The verifier is lying to itself by treating "epoch matches my stale view" as "epoch is current."
The dangerous variant: `W`'s credential is *reused* across a long-running task. It was minted at epoch 41 and cached in `W`'s working memory. At T+10 min, `W` re-presents the same cached credential. The verifier's local epoch has now caught up to 42. The epoch comparison `41 < 42` correctly fails—but only if the verifier checks *inequality* rather than *equality*. A verifier implemented as `if credential.epoch == local.epoch: allow` will, on the lagging node at T+300 ms, allow; and a verifier implemented as `if credential.epoch >= local.epoch: allow` will allow *forever* on any node whose epoch never advances past the credential's mint epoch. The boundary is not "is the epoch equal" but "is the credential's epoch within the verifier's *known-fresh* window, and is the verifier's own view provably not stale."
Condition of Validity
The authorization is valid only if all of the following hold simultaneously:
- **Attenuation monotonicity:** `scope(child) ⊆ scope(parent)` at every hop, per-tool, with no capability widening. This is structural and can be checked offline.
- **Epoch currency:** the credential's mint epoch `e_c` satisfies `e_c ≥ local_epoch` **and** the verifier's `local_epoch` is itself provably fresh—i.e., the verifier has received a heartbeat or lease confirming its revocation view is within `max_skew` of the authoritative log. A verifier that cannot prove its own freshness cannot certify anyone else's.
- **Revocation propagation bound:** `max_skew < min_task_deadline`. If replication lag can exceed the shortest task the credential authorizes, then revocation can never be guaranteed to land before the task completes, and the delegation model is unsound for that task class.
The critical, frequently-missed clause is the second half of epoch currency: *the verifier must attest its own freshness*. A credential epoch is only meaningful relative to a trusted "now." A verifier holding a stale `local_epoch` has no trusted "now" and must fail closed.
Decision Boundary
The decision procedure at the verifier, in strict order:
- If attenuation chain fails structural checks → **deny** (never reaches epoch logic).
- If `credential.epoch < local_epoch` → **deny** (credential predates a known revocation; the lineage is dead or the credential is stale).
- If `credential.epoch > local_epoch` → **deny and quarantine** (the credential claims an epoch the verifier has never seen; either the verifier is badly stale or the credential is forged—both are unsafe to authorize).
- If `credential.epoch == local_epoch` **but** the verifier's freshness lease is expired (`now - last_lease_ack > max_skew`) → **deny with `StaleRevocationView`** (cannot certify currency; fail closed).
- If `credential.epoch == local_epoch` **and** freshness lease is valid → **allow**, and stamp the authorization decision with `(epoch, lease_id)` so downstream auditors can replay the exact freshness state.
The boundary that operators get wrong is step 4. Steps 2 and 3 are obvious inequality checks. Step 4 is the one that requires the verifier to distrust *itself*. The invariant: **a verifier may only authorize at epoch equality if it can prove the equality is current, not merely local.**
For long-running tasks, the credential must be re-presented at each tool boundary with a fresh epoch, or the task must hold a *lease* that is itself revoked on epoch bump—otherwise a task that started valid at epoch 41 completes at epoch 50 on authority that died at 42. The per-tool attenuation boundary must coincide with the re-validation boundary; a credential that authorizes a 10-minute `shell:exec` cannot be attenuated per-call if the call never re-checks.
Operational Effect
Without the self-freshness check, the system exhibits **revocation laundering**: a revoked parent's authority survives into child tool calls for the duration of the replication lag, and indefinitely for cached credentials on nodes whose epoch view is partitioned. The blast radius is bounded by `max_skew` for the lagging case and unbounded for the partitioned case.
With the check, the system degrades to **fail-closed under partition**: a verifier that loses its freshness lease denies all delegated authorizations until the lease is renewed. This is the correct trade—an agent that cannot prove its revocation view is current is an agent that cannot be trusted to enforce revocation, and a denied tool call is recoverable while a laundered `shell:exec` is not.
The architectural guardrail is that **freshness is a first-class, attested, leased property of the verifier, not an assumption**. The revocation epoch must be paired with a lease heartbeat, the lease must carry its own signature from the revocation log, and the authorization record must bind `(credential_epoch, lease_id, lease_expiry)` so that any post-hoc audit can reconstruct whether the decision was made under a provably-fresh view. An agent that treats "my local epoch matches the credential" as sufficient has silently converted a security invariant into a liveness assumption, and will launder revocations precisely when the network is worst.
import time
from dataclasses import dataclass
class StaleRevocationView(RuntimeError):
"""Raised when a verifier cannot prove its revocation view is current.
The credential's attenuation chain may be structurally valid, but the
verifier's local epoch is either behind, ahead of, or unleased relative
to the credential's mint epoch. Authorization must fail closed.
"""
@dataclass(frozen=True)
class Credential:
scope: frozenset[str]
epoch: int
issuer: str
@dataclass(frozen=True)
class FreshnessLease:
epoch: int
issued_at: float
max_skew_s: float
def is_valid(self, now: float) -> bool:
return (now - self.issued_at) <= self.max_skew_s
def authorize(
cred: Credential,
parent_scope: frozenset[str],
local_epoch: int,
lease: FreshnessLease,
now: float,
) -> str:
# 1. Structural attenuation: child scope must be a subset of parent.
if not cred.scope.issubset(parent_scope):
raise StaleRevocationView(
f"attenuation widened scope: {cred.scope} not ⊆ {parent_scope}"
)
# 2. Credential predates a known revocation.
if cred.epoch < local_epoch:
raise StaleRevocationView(
f"credential epoch {cred.epoch} < local {local_epoch}: lineage revoked"
)
# 3. Credential claims an epoch the verifier has never seen.
if cred.epoch > local_epoch:
raise StaleRevocationView(
f"credential epoch {cred.epoch} > local {local_epoch}: "
"verifier stale or credential forged; quarantine"
)
# 4. Epochs equal — but equality is only meaningful if the verifier's
# own view is provably fresh. This is the boundary operators miss.
if not lease.is_valid(now):
raise StaleRevocationView(
f"lease expired (age={now - lease.issued_at:.3f}s > "
f"{lease.max_skew_s}s) at epoch {local_epoch}; cannot certify currency"
)
if lease.epoch != local_epoch:
raise StaleRevocationView(
f"lease epoch {lease.epoch} != local epoch {local_epoch}: "
"lease and view disagree; fail closed"
)
# 5. Authorize, binding the decision to the proven-fresh state.
return f"allow scope={sorted(cred.scope)} epoch={cred.epoch} lease_ok"
def guarded_tool_call(cred, parent_scope, local_epoch, lease, now, tool):
decision = authorize(cred, parent_scope, local_epoch, lease, now)
if not decision.startswith("allow"):
# Unreachable given authorize's contract, but keeps the guard explicit.
raise StaleRevocationView(f"non-allow decision: {decision}")
return tool()