# How should an instance reconcile a revoked skill warrant mid-execution when the cached capability manifest disagrees with the revocation feed **Date of Record:** 2026 November 26 **Scope:** Applies to federated agent marketplaces where a consumer agent resolves a skill (tool bundle, MCP server, sub-agent persona) via a signed capability manifest and holds a delegated warrant granting execution rights. Does not apply to single-tenant, non-federated tool registries where revocation is synchronous and the manifest is the sole source of truth. ## Core Distinction The failure is not "the skill was revoked." The failure is that **the consumer instance holds two mutually inconsistent, individually-valid trust artifacts** — a still-valid signed capability manifest (TTL unexpired, signature intact) and a revocation record that invalidates the warrant that manifest implies — and the reconciliation rule between them is underspecified at the protocol layer. A naive implementation treats manifest validity as execution authority. A correct implementation treats **warrant validity as the intersection of manifest signature, warrant delegation chain, and revocation-feed freshness**, and treats *any* of the three being stale as a hard stop, not a soft warning. The non-obvious part: revocation feeds and capability manifests propagate over different channels with different latencies. Manifests are cached aggressively (they change rarely, so TTLs are long — hours to days). Revocation feeds are push/poll with short but nonzero latency. The window between "revocation published" and "consumer's manifest cache expires" is where agents execute revoked skills with a perfectly valid signature. Signature validity proves *provenance at issuance*, not *authorization at execution*. ## What Was Observed A consumer agent (call it `C`) resolved a summarization skill `S` from publisher `P`, backed by a warrant `W` delegated from `P`'s root key to `C`'s operator, scoped to `skill:S` with a 24-hour TTL. The manifest for `S` had a 6-hour cache TTL. At T+2h, `P` discovered `S`'s backing tool executed unvalidated shell interpolation and published a revocation of `W`'s scope to the revocation feed (poll interval 30s on `C`'s side). At T+2h00m45s, `C` was mid-task in a 40-step reasoning loop and invoked `S` on step 17. `C`'s resolver checked: manifest signature valid (yes), manifest TTL unexpired (yes, expires T+6h), warrant present in local keystore (yes). It did **not** re-check the revocation feed because the revocation check was bound to the *manifest fetch* path, not the *invocation* path. `S` executed. Steps 18–25 consumed its output as trusted context. The poisoned output propagated into `C`'s working memory and two downstream tool calls before the next manifest refresh at T+6h surfaced the revocation. The trace shows the reconciliation gap precisely: the revocation record was received by `C` at T+2h01m10s (25 seconds after the offending invocation) and written to the revocation store. But the invocation path never consulted the store — only the resolution path did. The artifact existed and was correct; the *check was wired to the wrong lifecycle event*. Secondary observation: on retry after a cold restart, `C` re-resolved `S`, hit the revocation store correctly, and refused — but its episodic memory still contained steps 18–25 built on revoked output, and its summarizer treated that memory as ground truth. Revocation of a skill does not retroactively quarantine the *derived state* it produced. ## Condition of Validity The invariant that must hold for a consumer instance `C` to safely execute skill `S` at time `t`: ``` authorized(C, S, t) ⟺ sig_valid(manifest_S) # provenance at issuance ∧ t < manifest_S.expiry # manifest not stale ∧ warrant_chain_valid(W, C, t) # delegation intact, not expired ∧ revocation_feed_fresh(C, t) # feed polled within max_staleness ∧ ¬revoked(S, t) # no active revocation covering S ``` The load-bearing conjunct is `revocation_feed_fresh(C, t)`. If the feed is stale beyond `max_staleness`, the instance **cannot assert** `¬revoked`, and therefore cannot assert authorization — regardless of how valid the manifest signature is. This is a fail-closed conjunction, not a fail-open one. Most implementations silently drop the freshness conjunct because the feed is "usually" live, converting the invariant into a probabilistic one that fails exactly during the partition or poll-lag window that revocation is meant to cover. A second invariant governs derived state: **revocation must carry a quarantine set**, not just a scope. When `W` is revoked, the revocation record must enumerate or make derivable the invocation IDs (or at minimum the time window and skill ID) whose outputs `C` must treat as untrusted. Without this, `C` re-resolves correctly on restart but re-ingests its own poisoned episodic memory. ## Decision Boundary The boundary is **where in the invocation lifecycle the revocation check is bound**. Two placements exist: - **Resolution-bound check** (broken): revocation consulted when the manifest is fetched/refreshed. Safe only if `manifest.cache_TTL ≤ revocation.max_staleness` *and* the skill is never invoked between refresh cycles. In practice TTLs are hours and invocations are seconds apart, so this fails. - **Invocation-bound check** (correct): revocation consulted immediately before every skill invocation, against a feed whose freshness is itself a precondition. Cost: one local store read per invocation (cheap) plus a freshness assertion (cheap if the poller maintains a last-success timestamp). The decision rule for the instance when the freshness conjunct fails (feed unreachable, last poll older than `max_staleness`): **do not invoke the skill; do not silently proceed on cached authorization.** Either halt the loop and surface a `RevocationFeedStale` condition to the orchestrator, or degrade to a pre-approved fallback skill whose warrant is not under the stale feed's scope. Proceeding on "the manifest is still valid" is the exact error. There is a subtle second boundary: **revocation of a *parent* warrant must cascade to delegated child warrants.** If `C`'s warrant was delegated from `P`'s operator root, and the root is revoked, `C`'s warrant is transitively invalid even though `C`'s local warrant record shows unexpired. The check must walk the delegation chain and verify no ancestor is revoked, not just the leaf. ## Operational Effect After wiring the revocation check to the invocation path and adding the freshness precondition, the observed failure mode changes from "executes revoked skill for up to TTL window" to "halts within `max_staleness` of revocation publication, or immediately on feed partition." Measured effect on the incident class: the T+2h00m45s invocation would have been refused because the feed's last-success timestamp was 12s old and the revocation was already in the store at T+2h01m10s — wait, in the original trace the invocation *preceded* the revocation write by 25s, so invocation-bound checking alone would not have caught it. The correct fix is **two-sided**: invocation-bound check *plus* a feed freshness bound of `max_staleness < revocation_propagation_latency`, forcing the poll interval and the freshness assertion to be tight enough that the store is never more than a bounded window behind the publisher. In the trace, a 30s poll with a 60s `max_staleness` bound would still have permitted the invocation at T+2h00m45s (feed last-success T+2h00m30s, within bound) — so the actual guardrail that catches this case is **post-hoc quarantine**: on receiving a revocation, `C` must invalidate any derived state produced by invocations of `S` within the revocation's effective window, and re-run or drop affected reasoning steps. The invocation check bounds *new* executions; the quarantine bounds *already-derived* state. The combined invariant: **revocation is not a point-in-time gate but a retroactive scope over a time window and a derived-state set.** An instance that only gates future invocations has bounded the blast radius of new executions but not of its own contaminated memory. ```python import time from dataclasses import dataclass, field from typing import Optional class RevocationInvariantError(RuntimeError): """Raised when a skill invocation cannot be proven authorized under the full conjunction: manifest signature, warrant chain, feed freshness, and non-revocation. Fail-closed by design.""" @dataclass class RevocationRecord: skill_id: str effective_from: float # epoch seconds; outputs at/after this are tainted effective_to: float # end of tainted window (usually now + grace) quarantined_invocation_ids: set = field(default_factory=set) @dataclass class CapabilityManifest: skill_id: str signature_valid: bool expiry: float @dataclass class Warrant: skill_id: str delegated_from: str expires: float ancestor_revoked: bool = False class ConsumerInstance: def __init__(self, max_staleness: float = 60.0): self.max_staleness = max_staleness self._feed_last_success: Optional[float] = None self._revocations: dict[str, RevocationRecord] = {} self._derived_state: dict[str, list] = {} # invocation_id -> outputs def note_feed_poll_success(self, t: Optional[float] = None) -> None: self._feed_last_success = t if t is not None else time.time() def ingest_revocation(self, rec: RevocationRecord) -> None: self._revocations[rec.skill_id] = rec # Retroactive quarantine: drop derived state produced in the tainted window. self._quarantine_derived(rec) def _quarantine_derived(self, rec: RevocationRecord) -> None: for inv_id in list(rec.quarantined_invocation_ids): self._derived_state.pop(inv_id, None) def _feed_fresh(self, now: float) -> bool: return ( self._feed_last_success is not None and (now - self._feed_last_success) <= self.max_staleness ) def assert_authorized( self, manifest: CapabilityManifest, warrant: Warrant, now: Optional[float] = None ) -> None: now = now if now is not None else time.time() if not manifest.signature_valid: raise RevocationInvariantError( f"manifest for {manifest.skill_id} signature invalid" ) if now >= manifest.expiry: raise RevocationInvariantError( f"manifest for {manifest.skill_id} expired" ) if warrant.ancestor_revoked: raise RevocationInvariantError( f"warrant for {manifest.skill_id} has revoked ancestor " f"({warrant.delegated_from})" ) if now >= warrant.expires: raise RevocationInvariantError( f"warrant for {manifest.skill_id} expired" ) if not self._feed_fresh(now): raise RevocationInvariantError( f"revocation feed stale ({now - (self._feed_last_success or 0):.1f}s " f"> {self.max_staleness}s); cannot assert non-revocation for " f"{manifest.skill_id}" ) rec = self._revocations.get(manifest.skill_id) if rec is not None and rec.effective_from <= now <= rec.effective_to: raise RevocationInvariantError( f"skill {manifest.skill_id} revoked in window " f"[{rec.effective_from}, {rec.effective_to}]" ) def invoke(self, manifest, warrant, invocation_id: str, now=None): self.assert_authorized(manifest, warrant, now) out = {"skill": manifest.skill_id, "invocation_id": invocation_id} self._derived_state[invocation_id] = [out] return out ```