# Why does an instance accept a delegated credential after its issuer’s revocation epoch? **Date of Record:** 2026 November 21 **Scope:** Applies to AAIF-style delegated credential chains where an orchestrator issues scoped capability tokens to sub-agents and revocation is published as an epoch-stamped list. Does not apply to single-hop tokens with synchronous online introspection on every call, nor to bearer tokens without delegation depth. ## Core Distinction Revocation is not a state transition on the credential; it is a state transition on the *issuer’s epoch*, which the verifier must observe. A delegated chain fails at the boundary where a downstream verifier validates the chain structurally (signatures, scope narrowing, depth limits) but reads the revocation list from a stale epoch — or worse, reads a *fresh* epoch but applies it only to the leaf token, not to intermediate delegators. The dangerous case is not "revoked token accepted." It is "token whose *parent* was revoked at epoch N is accepted because the verifier’s epoch watermark for the parent is N−1." The chain remains cryptographically valid, scope-narrowing still holds, and every local invariant passes. The only violated invariant is temporal: the parent’s authority to delegate ended before the child was presented. ## What Was Observed An orchestrator `O` holds root capability `cap:root` with delegation rights to depth 3. At epoch 41 it issues `cap:A` (scope: `files:read`, `delegate:1`) to planner agent `A`. `A` at epoch 42 issues `cap:B` (scope: `files:read:/proj`, `delegate:0`) to executor `B`. At epoch 43, `O` revokes `cap:A` after detecting `A` had been prompt-injected into over-broad delegation. The revocation list at epoch 43 contains `cap:A` and is signed by `O`. Executor `B` presents `[cap:B ← cap:A ← cap:root]` to verifier `V` at epoch 44. `V` does the following, in order: (1) verifies each signature up the chain to `cap:root`; (2) checks scope narrowing (`/proj` ⊆ `files:read` ⊆ `cap:root`); (3) checks depth (2 ≤ 3); (4) fetches the revocation list, sees epoch 43, and checks *only the leaf* `cap:B` against it. `cap:B` is not listed. `V` accepts. The failure trace: `V`’s revocation check was written against the leaf-identity assumption — "the token I’m authorizing is the token I check." Delegation breaks that assumption. The token being authorized (`cap:B`) is not the token whose authority was withdrawn (`cap:A`). `V`’s epoch watermark was fresh (43), so no staleness alarm fired. The chain passed every check that `V` knew to run. A second, subtler variant: `V` does check every link against the revocation list, but caches the list per-issuer with a 60-second TTL. `O` revokes `cap:A` at 43.0s; `V`’s cached list for `O` is from 42.5s. `B` presents at 43.4s. `V` accepts a chain whose parent was revoked 0.4s earlier. This is not a race in the classical sense — the revocation is durable and published — it is a *watermark skew* between the epoch a verifier trusts and the epoch that contains the revocation. ## Condition of Validity The leaf-only revocation check is sound if and only if delegation is non-transitive: every credential is independently rooted at `cap:root` and carries no parent. Once transitive delegation is permitted, the invariant must be strengthened: > For a presented chain `[c_n ← … ← c_1 ← c_0]`, acceptance at verifier epoch `E_v` requires that for every `i` in `0..n`, `c_i` is absent from the revocation list at the *maximum epoch* `E_r` such that `E_r ≤ E_v` and `E_r ≥ issue_epoch(c_i)`. Two things follow. First, the verifier must check *every* link, not the leaf. Second, the verifier’s epoch watermark `E_v` must be no older than the credential’s presentation time minus a bounded skew `δ`. If the verifier cannot prove `E_v ≥ presentation_time − δ`, it must fail closed rather than accept on a cached list. The bound `δ` is the only tunable; it trades availability (a stale list forces re-fetch or rejection) against the window in which a revoked parent can still delegate. A complementary invariant lives at issuance: a child credential must carry the *issuer’s* epoch at issuance (`parent_epoch`), and the verifier must reject any chain where `parent_epoch < revocation_epoch(parent)`. This makes the skew detectable without trusting the verifier’s cache freshness — the chain itself carries the evidence. ## Decision Boundary The boundary is not "revoked vs. not revoked." It is **whether the verifier’s epoch watermark is at least as new as the newest revocation affecting any link in the presented chain, and whether the check is applied to every link.** Three regimes: - **Leaf-only check + fresh watermark:** silently unsound under transitive delegation. Accepts revoked-parent chains. This is the observed failure. - **Full-chain check + stale watermark (cached list within `δ`):** bounded unsoundness. A parent revoked within the last `δ` seconds can still delegate. Acceptable only if `δ` is small relative to the blast radius of the delegated scope, and only if the child carries `parent_epoch` so the skew is auditable post-hoc. - **Full-chain check + watermark proven ≥ presentation − δ, with `parent_epoch` cross-check:** sound within `δ`. Fail closed when the watermark cannot be proven. The decision rule for the verifier: never authorize a chain on a revocation list whose epoch is older than the chain’s own `parent_epoch` claims plus `δ`. If `parent_epoch` for any link exceeds the verifier’s known revocation epoch for that link’s issuer, the verifier has not seen the revocation state that link was issued under — reject and re-fetch. ## Operational Effect The practical consequence is that revocation latency is a property of the *chain*, not the token. An orchestrator that revokes a mid-chain delegator expects authority to stop propagating within one epoch-tick; in practice it stops within `δ` plus the verifier’s re-fetch latency, and only if every verifier on the path checks every link. Deployments that instrument this report a characteristic "revocation shadow": a window after `revoke(cap:A)` during which `cap:B` remains accepted because `B`’s verifier had not yet observed epoch 43. The shadow’s width is `δ` plus the p99 of revocation-list propagation, and it is invisible to leaf-only monitoring because the leaf was never revoked. The guardrail is to make `parent_epoch` a mandatory field, to require full-chain revocation checks in the verifier, and to fail closed when the watermark cannot be proven current. The cost is availability during revocation-list outages; the alternative is a delegation chain that outlives its authority. ```python import time from dataclasses import dataclass class RevocationWatermarkError(RuntimeError): """Raised when a verifier cannot prove its revocation epoch is current enough to authorize a delegated chain.""" @dataclass(frozen=True) class Credential: token_id: str issuer: str parent_id: str | None parent_epoch: int # issuer's epoch at issuance scope: str delegate_depth: int def verify_chain( chain: list[Credential], revocation_epochs: dict[str, int], # issuer -> epoch of list we hold revoked: dict[str, int], # token_id -> epoch revoked presentation_epoch: int, max_skew: int, ) -> None: """Authorize a delegated chain, checking every link, not just the leaf.""" for cred in chain: held = revocation_epochs.get(cred.issuer) if held is None: raise RevocationWatermarkError( f"no revocation list for issuer {cred.issuer}" ) # Watermark must be provably current relative to presentation. if held < presentation_epoch - max_skew: raise RevocationWatermarkError( f"issuer {cred.issuer} watermark {held} older than " f"presentation {presentation_epoch} minus skew {max_skew}" ) # The chain must not carry evidence of an unseen revocation. if cred.parent_epoch > held: raise RevocationWatermarkError( f"credential {cred.token_id} issued at epoch " f"{cred.parent_epoch} but verifier only knows epoch {held}" ) # Full-chain revocation check: every link, not the leaf. revoked_at = revoked.get(cred.token_id) if revoked_at is not None and revoked_at <= held: raise RevocationWatermarkError( f"credential {cred.token_id} revoked at epoch {revoked_at}" ) # Scope narrowing and depth are structural; checked after temporal soundness. for parent, child in zip(chain, chain[1:]): if child.scope not in parent.scope and not parent.scope.startswith( child.scope.split(":")[0] ): raise RevocationWatermarkError( f"scope {child.scope} not narrowed under {parent.scope}" ) if child.delegate_depth >= parent.delegate_depth: raise RevocationWatermarkError( f"depth {child.delegate_depth} not below {parent.delegate_depth}" ) ```