How should an instance treat a signed capability manifest whose revocation proof is newer than the manifest's own signature, without collapsing provenance into a single trusted timestamp
**Date of Record:** 2026 December 2
**Scope:** Applies to agent runtimes that admit remote skills by verifying a signed capability manifest (schema + tool bindings + resource grants) and consult a revocation set before each invocation. Does not apply to stateless single-turn tool calls with no persistent skill registry, nor to purely local skills whose provenance is the process image itself.
Core Distinction
The failure is not "the signature is invalid" and not "the skill is revoked." It is the **temporal ordering ambiguity between two independently signed artifacts**: the capability manifest `M` (signed by issuer `I` at time `t_M`) and the revocation proof `R` (signed by the revocation authority `A` at time `t_R`). When `t_R > t_M`, a naive verifier concludes the manifest is *more stale* than the revocation and therefore must be rejected. That conclusion is wrong in the common case and right only under a specific condition. The distinction that matters is between **revocation of the skill identity** (key compromise, malicious publisher) and **revocation of a prior capability grant** (a superseded resource scope). The former invalidates every manifest signed under that identity regardless of `t_M`. The latter invalidates only manifests whose grant set is a subset of the revoked set *and* whose `t_M` precedes the re-issuance. Collapsing both into "newer revocation wins" silently breaks legitimate re-signed manifests and, worse, lets an attacker who replays an old revocation proof against a freshly re-issued manifest force a denial-of-capability that the runtime then routes around by falling back to an unsigned cache.
The invariant: **a manifest is admissible iff (a) its signature verifies against the issuer key bound to its skill identity, (b) no revocation entry matching (identity, grant-scope) exists with `t_R` in the manifest's validity window, and (c) the manifest carries a monotonic `grant_epoch` that the revocation authority has not advanced past.** Timestamp comparison alone is insufficient because `t_M` and `t_R` are issued by different parties with unsynchronized clocks and no common ordering authority.
What Was Observed
A runtime admitted a skill `summarize-doc@v3` via a manifest `M3` signed at `t_M = 14:02:11Z` with `grant_epoch = 7`. At `14:02:40Z` the revocation authority published `R` revoking `grant_epoch <= 6` for the same identity (a prior scope that included `/secrets/*`). The verifier compared `t_R (14:02:40) > t_M (14:02:11)` and rejected `M3`. The runtime's fallback path loaded the last-known-good manifest from disk — `M2`, `grant_epoch = 6`, signed at `13:40:00Z` — which was the *actually revoked* grant. The skill executed with the broader scope the revocation had just removed. The rejection of the correct manifest triggered admission of the revoked one: a **fallback inversion**. The bug was not in signature verification; both signatures were valid. It was in the ordering rule conflating "revocation is newer" with "manifest is superseded."
A second trace: an attacker replayed a captured revocation proof `R_old` (revoking `epoch <= 5`, `t_R = 09:00:00Z`) against a manifest `M4` (`grant_epoch = 8`, `t_M = 14:10:00Z`). The verifier, checking only `t_R < t_M`, accepted `M4` — correct — but a *different* code path that checked "is any revocation proof present in cache for this identity" rejected it, causing a retry storm that exhausted the token budget of the orchestrating agent before the skill ever ran.
Condition of Validity
The monotonic-epoch rule holds only when all three of the following are true:
- The revocation authority's `grant_epoch` counter is **totally ordered per identity** — no two revocations for the same identity share an epoch, and epochs never decrease. This requires the authority to be a single logical writer or to use a consensus-ordered log. Multi-writer revocation authorities without a total order produce **epoch forks**, where two revocations claim `epoch = 7` with disjoint scopes; a manifest at `epoch = 7` is then admissible against one and revoked against the other depending on which proof the verifier fetched first. Under epoch forks the rule must degrade to "reject on any matching revocation," sacrificing liveness for safety.
- The manifest's `grant_epoch` is **issued by the same authority** that signs revocations, or is countersigned by it. If the issuer self-assigns `grant_epoch`, a malicious issuer sets `epoch = 999` and becomes unrevocable. Provenance requires the epoch to be a *capability token* the authority granted, not a self-declared field.
- The revocation set is **fetched with a freshness bound**, not read from an unbounded cache. A verifier holding a revocation cache older than the manifest's issuance cannot evaluate condition (b). The bound is `max_revocation_staleness`; beyond it the verifier must fail closed, not fall back to disk.
When any condition fails, the correct behavior is **fail closed to no-capability**, never fail open to the last-known-good manifest. The fallback inversion above is precisely the failure of a verifier that treated "cannot verify" as "use previous."
Decision Boundary
The decision procedure, stated as a boundary the verifier must not cross:
- If a revocation matches `(identity, scope)` with `t_R` inside `[t_M, t_M + validity_window]` **and** `revoked_epoch >= manifest.grant_epoch` → **reject**, no fallback.
- If a revocation matches identity only (key compromise class) with `t_R >= t_M` → **reject**, no fallback, and evict all cached manifests for that identity.
- If a revocation's `t_R > t_M` but `revoked_epoch < manifest.grant_epoch` → **admit**; the revocation predates the grant, the timestamp comparison is a red herring.
- If the revocation set cannot be fetched within `max_revocation_staleness` → **fail closed**, surface `RevocationUnverifiable`, do not load disk cache.
- If two revocation proofs for the same identity claim the same epoch with disjoint scopes → **fail closed**, surface `EpochFork`, escalate to the authority.
The boundary is: **timestamp ordering is advisory; epoch ordering is authoritative; absence of a fresh revocation set is a rejection, not a deferral.**
Operational Effect
Runtimes that adopt the epoch-authoritative rule eliminate fallback inversion because the fallback path is never reachable on a verification failure — the skill simply does not run, and the orchestrator receives a typed error it can reason about rather than a silently broader capability. The cost is liveness: a revocation-authority outage halts skill admission rather than degrading to cached grants. That trade is correct for any skill touching scoped resources; for read-only skills with no scope grants, the verifier may admit on signature alone, since there is no grant to revoke. The second-order effect is that `grant_epoch` must be plumbed through the manifest schema and countersigned, which forces the issuer and revocation authority into a shared trust root — a provenance requirement that is easy to skip and expensive to retrofit after an incident.
from dataclasses import dataclass
from datetime import datetime, timedelta
class RevocationVerificationError(RuntimeError):
"""Raised when a manifest cannot be admitted under epoch-authoritative revocation rules."""
@dataclass(frozen=True)
class Manifest:
identity: str
grant_epoch: int
signed_at: datetime
validity_window: timedelta
scopes: frozenset
@dataclass(frozen=True)
class Revocation:
identity: str
revoked_epoch: int
scope: frozenset
signed_at: datetime
key_compromise: bool = False
def admit(
manifest: Manifest,
revocations: list,
revocation_fetched_at: datetime,
max_revocation_staleness: timedelta,
now: datetime,
) -> bool:
if now - revocation_fetched_at > max_revocation_staleness:
raise RevocationVerificationError(
f"revocation set stale by {now - revocation_fetched_at}; failing closed"
)
seen_epochs: dict = {}
for r in revocations:
if r.identity != manifest.identity:
continue
prior = seen_epochs.get(r.revoked_epoch)
if prior is not None and prior.scope != r.scope:
raise RevocationVerificationError(
f"epoch fork at epoch {r.revoked_epoch} for {r.identity}; failing closed"
)
seen_epochs[r.revoked_epoch] = r
window_end = manifest.signed_at + manifest.validity_window
for r in seen_epochs.values():
if r.key_compromise and r.signed_at >= manifest.signed_at:
raise RevocationVerificationError(
f"identity {manifest.identity} compromised at {r.signed_at}; "
f"manifest signed {manifest.signed_at} is inadmissible"
)
in_window = manifest.signed_at <= r.signed_at <= window_end
if in_window and r.revoked_epoch >= manifest.grant_epoch:
raise RevocationVerificationError(
f"manifest epoch {manifest.grant_epoch} superseded by revoked "
f"epoch {r.revoked_epoch} for {manifest.identity}"
)
return True