# Which invariants prevent a revoked AAIF delegation root from remaining live in an offline-verified agent chain **Date of Record:** 2026 November 29 **Scope:** Applies to agent-to-agent delegated credential chains under AAIF where an intermediate agent verifies a downstream bearer credential against a cached revocation set (CRL/OCSP-like snapshot) rather than a live authority query. Does not cover online-only verification paths that synchronously consult the issuing authority on every hop. ## Core Distinction The failure here is not "revocation is slow." It is that **AAIF delegation chains are verified as a conjunction of local signatures, while revocation is a property of the root, evaluated at a different time and against a different snapshot than the signatures.** A chain of signed `DelegationWarrant` objects can be cryptographically perfect at every hop — every `ed25519` signature valid, every `scope ⊆ parent.scope`, every `expires_at` monotone-decreasing — and still be semantically dead because the root's `DelegationWarrant` was revoked two minutes ago and the verifying agent's cached CRL predates the revocation event. Signature validity is a per-edge, time-invariant check; revocation is a per-root, time-variant check. Conflating them is the bug. The invariant that must hold is not "the chain verifies." It is: **for every hop, `verified_at ∈ [revocation_snapshot_issued_at, revocation_snapshot_next_update]` AND `revocation_snapshot` covers the root's `warrant_id` under the issuer's current `revocation_epoch`.** If the snapshot's `next_update` has passed, the chain is *unverified*, not *valid*. The default of most AAIF verifier libraries is to treat a stale snapshot as still-authoritative, which converts a bounded-latency revocation into an unbounded one. ## What Was Observed A three-hop chain: orchestrator `O` issues root warrant `W0` (scope: `files.read:/proj/**`, `ttl: 3600s`) to agent `A`. `A` delegates `W1` (scope: `files.read:/proj/reports/**`, `ttl: 900s`) to agent `B`. `B` delegates `W2` (scope: `files.read:/proj/reports/q3/**`, `ttl: 300s`) to agent `C`. `C` presents `[W0, W1, W2]` to a resource server `R`. At T+00:00, `O` revokes `W0` — a compromised orchestrator key, discovered by an out-of-band audit. The revocation is published to `O`'s CRL at T+00:02 with `this_update = T+00:02`, `next_update = T+00:12`. At T+00:05, `C` presents the chain to `R`. `R`'s verifier holds a cached CRL from T+00:01 (`this_update = T-00:59`, `next_update = T+00:06`). The cache is still within `next_update`, so the verifier treats it as fresh. It checks: is `W0.warrant_id` in the revoked set? No — because the CRL was issued *before* the revocation. Every signature validates. Every scope subset holds. `expires_at` on `W2` is T+00:05:00, exactly now, so the boundary check passes on the last valid second. `R` grants access. The chain was revoked. The chain verified. Both statements were true simultaneously, and the system had no invariant that made them mutually exclusive. The window is `[revocation_publish_time, cached_snapshot_next_update]` — here, roughly 10 minutes. During that window, `A`, `B`, and `C` all continue to operate under a dead root, and any of them can mint further sub-delegations that will outlive the window's expiry because their own `expires_at` was computed from *their* issuance time, not from the root's revocation. The compounding failure: `B` minted `W2` at T+00:03, *after* the revocation was published but *before* `B`'s own cached CRL refreshed. So `B` delegated under a warrant it should have known was revoked. `W2` carries `parent_revocation_epoch = 7` (the epoch `B` saw), but the issuer's actual epoch at T+00:03 was 8. The chain is internally consistent — every child's `parent_revocation_epoch` matches its parent's declared epoch — but the whole chain is anchored to a stale epoch. This is the **epoch-skew propagation** failure: a stale snapshot at one hop is inherited by every downstream hop as an apparently-valid ancestry fact. ## Condition of Validity The chain is valid only if, for every warrant `Wi` in `[W0..Wn]`: 1. `Wi.signature` verifies against `Wi.issuer_pubkey`, and `Wi.issuer_pubkey` is bound to `Wi.parent.holder` by a valid `holder_binding` — identity continuity, not just key possession. 2. `Wi.scope ⊆ W(i-1).scope` and `Wi.expires_at ≤ W(i-1).expires_at` — monotone attenuation. 3. `Wi.parent_revocation_epoch == observed_epoch(W(i-1).issuer)` at the moment of verification, **not** at the moment of `Wi`'s issuance. 4. `now ∈ [snapshot.this_update, snapshot.next_update]` for the snapshot used to evaluate condition 3, and `snapshot` is signed by the issuer's revocation authority, not by the issuer's signing key (separation of duties — a compromised signing key must not be able to forge its own clean revocation record). 5. `W0.warrant_id ∉ snapshot.revoked_set`, evaluated against a snapshot with `this_update > W0.revocation_publish_time` if any revocation is known to be pending. Condition 3 is the one that breaks in epoch-skew. Conditions 4 and 5 are the ones that break in stale-cache. The invariant is a **conjunction over hops**, and the failure mode is that verifiers check each condition *locally per-hop* rather than *globally across the chain at a single pinned snapshot*. The fix is to pin one snapshot at the start of verification and require every hop to be evaluated against it, and to reject the chain if that snapshot's `next_update` will pass before the chain's longest `expires_at` — because a chain that outlives its own revocation snapshot cannot be verified to completion. ## Decision Boundary The verifier must distinguish three states, not two: - **Valid:** all five conditions hold against a pinned snapshot whose `next_update ≥ max(Wi.expires_at)`. - **Indeterminate:** signatures and scopes hold, but the pinned snapshot's `next_update < max(Wi.expires_at)`, or `parent_revocation_epoch` mismatches the observed epoch at any hop. The chain is *not* rejected — it is *unverifiable to completion* and must be downgraded to a short-lived re-verification lease (e.g., re-check at `min(next_update, now + 60s)`), never silently granted. - **Revoked:** `W0.warrant_id` (or any ancestor) appears in a snapshot with `this_update > publish_time`, or any hop's `parent_revocation_epoch` is strictly less than the issuer's current epoch *and* the issuer's epoch advanced due to a revocation event touching the ancestry. The non-obvious boundary: **a chain whose root is revoked but whose cached snapshot predates the revocation is Indeterminate, not Valid.** Most verifiers collapse Indeterminate into Valid because the signatures pass. The decision boundary must be drawn at "can I prove non-revocation against a snapshot that covers the full chain lifetime?" — and if not, the answer is a lease, not a grant. ## Operational Effect Without the pinned-snapshot invariant and epoch-skew check, the revocation latency of an AAIF chain is not the CRL refresh interval — it is `max over hops of (cached_snapshot.next_update - revocation_publish_time)`, and worse, it is *unbounded* if any intermediate hop minted a sub-delegation with an `expires_at` beyond the root's snapshot horizon. The epoch field, if present but unchecked, gives a false sense of revocation-awareness: it records what the delegator *believed*, not what was *true*, and a chain of mutually-consistent stale epochs looks internally coherent. The guardrail is mechanical: pin one snapshot per verification, require `snapshot.next_update ≥ max(expires_at)` for a full grant, treat epoch mismatch at any hop as Indeterminate, and never let an intermediate agent mint a child warrant whose `expires_at` exceeds its own last-known-good snapshot's `next_update`. That last rule is what stops epoch-skew from propagating: a delegator that cannot prove non-revocation for the child's full lifetime cannot issue the child at all. ```python from dataclasses import dataclass from typing import Sequence class AAIFChainVerificationError(RuntimeError): """Raised when an AAIF delegation chain cannot be verified to completion.""" @dataclass(frozen=True) class Warrant: warrant_id: str issuer: str holder: str scope: frozenset expires_at: float parent_revocation_epoch: int signature_valid: bool @dataclass(frozen=True) class RevocationSnapshot: issuer: str this_update: float next_update: float epoch: int revoked: frozenset def verify_chain( chain: Sequence[Warrant], snapshot: RevocationSnapshot, now: float, ) -> None: if not chain: raise AAIFChainVerificationError("empty chain") if not (snapshot.this_update <= now <= snapshot.next_update): raise AAIFChainVerificationError( f"snapshot stale: now={now} outside " f"[{snapshot.this_update}, {snapshot.next_update}]" ) horizon = max(w.expires_at for w in chain) if snapshot.next_update < horizon: # Indeterminate: cannot prove non-revocation across full chain lifetime. raise AAIFChainVerificationError( f"snapshot horizon {snapshot.next_update} < chain horizon {horizon}; " f"downgrade to re-verification lease, do not grant" ) root = chain[0] if root.warrant_id in snapshot.revoked: raise AAIFChainVerificationError( f"root warrant {root.warrant_id} revoked at epoch {snapshot.epoch}" ) for i, w in enumerate(chain): if not w.signature_valid: raise AAIFChainVerificationError(f"bad signature at hop {i}: {w.warrant_id}") if w.expires_at < now: raise AAIFChainVerificationError(f"expired at hop {i}: {w.warrant_id}") if i > 0: parent = chain[i - 1] if not w.scope <= parent.scope: raise AAIFChainVerificationError(f"scope escalation at hop {i}") if w.expires_at > parent.expires_at: raise AAIFChainVerificationError(f"ttl escalation at hop {i}") if w.parent_revocation_epoch != snapshot.epoch: raise AAIFChainVerificationError( f"epoch skew at hop {i}: child saw {w.parent_revocation_epoch}, " f"issuer epoch is {snapshot.epoch}; chain anchored to stale ancestry" ) ```