# How should an instance treat a revoked AAIF delegation warrant that is still cryptographically valid at the point of use **Date of Record:** 2026 November 22 **Scope:** Applies to federated agents that present AAIF-signed delegation warrants (capability tokens with `sub`, `wtr`, `exp`, `rev_epoch`) across trust domains where revocation is propagated asynchronously. Does not apply to single-domain deployments with a synchronous revocation oracle co-located with the verifier, nor to bearer tokens without a warrant chain. ## Core Distinction The failure here is not "expired token accepted" or "signature forged." It is the **revocation-validity gap**: a warrant whose signature verifies, whose `exp` has not passed, and whose `aud` matches the resource, but whose issuing authority revoked the underlying delegation *after* the token was minted and *before* the revocation record reached the verifying instance. The critical distinction is between **token validity** (a cryptographic predicate evaluated locally and deterministically) and **delegation liveness** (an authorization predicate that depends on out-of-band state the verifier does not own). An instance that treats a passing signature check as sufficient conflates these two. AAIF audit trails make this worse, not better: the trail faithfully records `decision=ALLOW, reason=sig_ok, epoch=41`, which is a true statement about a stale epoch. The audit log becomes an alibi for a revocation that already happened elsewhere. ## What Was Observed A three-hop delegation chain: `orchestrator → planner → executor`. The orchestrator (domain A) issued a warrant to the planner (domain B) with `rev_epoch=41` and `exp=T+3600s`. At `T+90s`, the orchestrator's security plane revoked the planner's delegation after detecting prompt-injection-driven scope escalation, bumping the authority's epoch to `42`. The revocation event was published to the AAIF revocation feed. The executor (domain C) had cached the authority's epoch at `41` from a pull at `T+10s`, with a configured `rev_ttl=300s`. Between `T+90s` and `T+390s`, the executor received 14 tool-call requests carrying the planner's warrant. Each verification returned `sig_ok ∧ exp_ok ∧ aud_ok ∧ warrant.rev_epoch(41) >= cached_epoch(41)` → `ALLOW`. The executor performed 14 privileged actions (filesystem writes, outbound HTTP) on behalf of a delegation that had been dead for up to five minutes. The audit trail for those 14 actions was internally consistent and AAIF-conformant: each record carried the warrant hash, the cached epoch, the verifier's clock, and a `decision=ALLOW` with `policy=epoch_ge`. Replaying the trail against the *then-current* epoch (42) produced 14 mismatches; replaying against the *recorded* epoch (41) produced zero. The trail could not, by itself, distinguish a correct decision from a stale one. ## Condition of Validity The gap exists only under the conjunction: 1. Revocation is propagated by **pull with a TTL** (or push with bounded delivery latency), so there is a nonzero interval `Δ` between revocation-at-authority and revocation-known-at-verifier. 2. The warrant's `rev_epoch` is compared as `warrant.rev_epoch >= verifier.cached_epoch` (a monotonic floor), which is the correct check for *freshness of the token against known state* but is **not** a check of *current authority state*. 3. The verifier's `cached_epoch` is younger than `rev_ttl` and therefore "valid" by its own freshness policy — so no staleness alarm fires. If any of these fails — synchronous oracle, push with acknowledgment, or `rev_ttl=0` — the gap collapses. The invariant that bounds the exposure is: > **A warrant may be honored only while `now − verifier.last_epoch_sync < min(rev_ttl, warrant.exp − now)` AND the verifier holds a signed epoch attestation from the authority at `epoch >= warrant.rev_epoch` whose issuance time is within `rev_ttl`.** The second clause is what most implementations omit: they check that the *token* is not older than the epoch, but not that the *epoch itself* is fresh. ## Decision Boundary The decision boundary is not "allow vs deny on signature." It is **"is the verifier authorized to make an allow decision at all right now?"** A verifier whose epoch attestation is older than `rev_ttl` is in an **indeterminate** state and must not emit `ALLOW`. The three-way boundary: - `epoch_attestation.fresh ∧ warrant.rev_epoch <= epoch` → **ALLOW**, record epoch and attestation hash in trail. - `epoch_attestation.fresh ∧ warrant.rev_epoch > epoch` → **DENY** (token minted against a future/superseded epoch — possible replay or forgery). - `epoch_attestation.stale` → **INDETERMINATE** → fail closed for privileged scopes, optionally allow for read-only scopes if policy permits, and *always* emit a `decision=INDETERMINATE` audit record so the trail is honest about the gap. The subtle part: an `INDETERMINATE` that is later resolved to `ALLOW` must be re-emitted with the resolution, not retroactively rewritten. AAIF trails that overwrite `INDETERMINATE` with `ALLOW` after the fact destroy the evidence of the gap and are non-conformant for incident reconstruction. ## Operational Effect Instances that skip the epoch-freshness clause exhibit a **revocation shadow** of length `rev_ttl` (plus propagation jitter) during which revoked delegations execute. In the observed case that was ~5 minutes and 14 privileged actions. The audit trail did not detect it; only a cross-epoch replay did. The architectural guardrail is to make the verifier's *authority to decide* a first-class, expiring, signed artifact — an epoch attestation with its own TTL — and to treat its staleness as a hard `INDETERMINATE` rather than a soft warning. The trail must record the attestation hash and issuance time, not just the epoch integer, so that replay can reconstruct whether the verifier was entitled to decide at that instant. ```python import time from dataclasses import dataclass class RevocationValidityGap(RuntimeError): """Raised when a verifier attempts to decide on a warrant while its epoch attestation is stale — i.e. it is not authorized to emit ALLOW.""" pass @dataclass(frozen=True) class EpochAttestation: epoch: int issued_at: float authority_sig: str @dataclass(frozen=True) class Warrant: sub: str rev_epoch: int exp: float sig: str def decide( warrant: Warrant, attestation: EpochAttestation, rev_ttl: float, now: float, privileged: bool, ) -> str: # 1. Signature and expiry are necessary but not sufficient. if now >= warrant.exp: return "DENY_EXPIRED" # 2. The verifier must be entitled to decide. Staleness is not a warning. attestation_age = now - attestation.issued_at if attestation_age > rev_ttl: if privileged: raise RevocationValidityGap( f"epoch attestation age {attestation_age:.1f}s exceeds " f"rev_ttl {rev_ttl:.1f}s; verifier not authorized to ALLOW " f"warrant for {warrant.sub} at epoch {attestation.epoch}" ) return "INDETERMINATE" # 3. Monotonic floor: token must not claim an epoch ahead of authority. if warrant.rev_epoch > attestation.epoch: return "DENY_SUPERSEDED_EPOCH" return "ALLOW" def verify_or_abort(warrant, attestation, rev_ttl, now, privileged): decision = decide(warrant, attestation, rev_ttl, now, privileged) if decision == "INDETERMINATE": # Trail must record INDETERMINATE, never silently upgrade to ALLOW. raise RevocationValidityGap( f"indeterminate decision for {warrant.sub}: epoch attestation " f"stale, privileged={privileged}" ) return decision # Reproduction of the observed 5-minute revocation shadow. w = Warrant(sub="planner@B", rev_epoch=41, exp=time.time() + 3600, sig="sig") att = EpochAttestation(epoch=41, issued_at=time.time() - 310, authority_sig="sig") try: verify_or_abort(w, att, rev_ttl=300, now=time.time(), privileged=True) except RevocationValidityGap as e: print(f"blocked: {e}") ```