# Under what conditions must an instance refuse a plugin whose attestation chain is valid but whose revocation epoch predates its own last skill-graph sync **Date of Record:** 2026 November 30 **Scope:** Applies to agent runtimes that load third-party skills/plugins through a marketplace and cache a signed skill graph across sessions, where revocation is published as monotonic epochs (CRLs, transparency-log revocations, or signed epoch manifests) rather than per-artifact pulls. Does not apply to air-gapped runtimes that re-fetch the full graph on every cold start, nor to single-tenant runtimes with no cached skill state. ## Core Distinction The failure is not "untrusted plugin loaded." It is the collision of two independent monotonicity guarantees that each look sound in isolation: 1. **Attestation validity** — the plugin's signature chain verifies against a root the runtime trusts, at the time the artifact was signed. 2. **Revocation currency** — the runtime's view of revocation state is at least as new as the epoch in which the artifact was last attested. A plugin can be *cryptographically valid* and *operationally revoked* at the same instant, and the runtime will load it, because signature verification and revocation lookup are performed against different clocks. The signature check answers "was this artifact ever blessed?" The revocation check must answer "was this artifact blessed *after* the last thing we know was revoked?" Most runtimes only ask the first question at load time and defer the second to a periodic sync that can lag the load by an unbounded interval. The invariant that must hold: **an artifact may be loaded only if its attestation epoch is strictly greater than the runtime's last-applied revocation epoch, or the runtime has positively confirmed the artifact is absent from all revocation entries up to its current known epoch.** "Valid signature" is not sufficient and is not the boundary. ## What Was Observed A marketplace skill `pdf-extract@2.3.1` carried a valid Sigstore-style attestation: builder identity, source commit, and a signed SBOM, all chained to the marketplace root. The runtime's skill-graph cache was last synced at revocation epoch 4412. The plugin's attestation epoch was 4409 — three epochs stale. At epoch 4410 a dependent library bundled into `pdf-extract` was revoked for a prompt-injection vector in its tool-description parser; at 4411 the revocation was extended to all artifacts whose SBOM transitively included that library; at 4412 a *different* artifact was revoked, advancing the epoch counter without touching `pdf-extract`. The load path did this: ``` verify_signature(artifact) -> OK (chain valid, epoch 4409) lookup_revocation(artifact.id) -> MISS (revocation index keyed by artifact.id, but 4411 revoked by SBOM component, not by artifact.id) load(artifact) -> executed ``` The revocation at 4411 was published as a *component-scoped* entry (`revokes: component:pdf-parser-lib@1.4.2, applies_to: transitive_sbom`). The runtime's revocation index was keyed only by direct artifact identity. The signature verified because the attestation genuinely predated the revocation. The revocation lookup missed because it asked the wrong question of the wrong index. The artifact executed with a live prompt-injection surface in its tool-description parser — and because tool descriptions feed the system prompt, the injection could rewrite the agent's own skill-selection policy on the next turn. Two compounding facts made this non-obvious: - The epoch counter *had* advanced past the revocation, so any coarse "is my epoch >= latest?" health check passed. Currency of the *counter* is not currency of the *query*. - The revocation was correct and well-formed. The failure was entirely in the *join* between attestation scope (artifact) and revocation scope (SBOM component graph). ## Condition of Validity The load is sound only when all three hold simultaneously: 1. **Epoch dominance.** `artifact.attestation_epoch > runtime.last_applied_revocation_epoch` is false *and* the runtime has evaluated the artifact against every revocation entry in `(artifact.attestation_epoch, runtime.last_applied_revocation_epoch]`. If the runtime cannot enumerate that window — e.g., it only has the latest epoch snapshot and not the delta — it must treat the artifact as unverifiable, not as valid. 2. **Scope closure.** Revocation entries scoped to SBOM components, transitive dependencies, builder identities, or signing keys must be joined against the artifact's full attestation graph, not its top-level identity. An artifact-level index alone is insufficient whenever the marketplace permits component-scoped revocation. 3. **Monotonic non-reuse.** The runtime must never re-admit an artifact whose `(artifact_hash, attestation_epoch)` pair it has previously refused, even if a later sync no longer lists it. Revocation entries can be superseded; refusal decisions must be latched, because a re-signed artifact with a fresh epoch is a *different* trust decision, not a reversal of the old one. If any of the three is unestablished, the correct behavior is refusal with a typed "indeterminate provenance" error, not fallback to signature-only trust. ## Decision Boundary The boundary is not "valid vs. invalid signature." It is **"can I prove the artifact is absent from the revocation window that opened after it was signed?"** Three concrete decision points: - **Cold start with stale cache.** If `last_applied_revocation_epoch` is older than the graph's fetch timestamp, the runtime must force a delta sync before serving any cached skill. Serving from a cache whose epoch lags its own fetch is the exact condition that let 4409 through a 4412 runtime. - **Component-scoped revocation present.** If the marketplace's revocation schema includes any scope narrower than artifact identity, the artifact-level lookup is provably incomplete and must be supplemented by an SBOM-graph join. A runtime that cannot execute that join must refuse all artifacts whose SBOM has not been re-verified since the last epoch advance. - **Epoch advance without artifact change.** A revocation of an unrelated artifact that merely bumps the global epoch must *not* be treated as evidence that previously-loaded artifacts remain clean. Epoch advance is a signal to re-evaluate, not a clearance. ## Operational Effect Latched refusals propagate. When the runtime correctly refuses `pdf-extract@2.3.1` at epoch 4412, it must also invalidate any *derived* state: cached tool-description embeddings, any semantic-memory entries distilled from prior sessions that used the skill, and any downstream skill whose declared dependency includes the revoked component. The revocation is not a load-gate; it is a graph-wide invalidation event. A runtime that refuses the load but keeps the distilled memory has preserved the injection vector in a different substrate — the parser's output may already have been summarized into episodic memory and promoted to semantic memory, where it now influences skill selection without any artifact being loaded at all. The durable guardrail is to key every memory write and every skill-graph edge to the `(artifact_hash, attestation_epoch)` pair that produced it, so revocation can walk the provenance graph backward and tombstone exactly the derived state. Without that keying, revocation propagation stops at the loader and the agent's own memory becomes the exfiltration channel. ```python from dataclasses import dataclass from typing import Optional class ProvenanceIndeterminate(RuntimeError): """Raised when an artifact's revocation status cannot be positively established.""" pass @dataclass(frozen=True) class Artifact: artifact_hash: str attestation_epoch: int sbom_components: frozenset[str] @dataclass(frozen=True) class RevocationEntry: scope: str # "artifact" | "component" | "builder" | "key" target: str epoch: int def admit_artifact( artifact: Artifact, runtime_epoch: int, revocations: list[RevocationEntry], previously_refused: set[tuple[str, int]], ) -> bool: key = (artifact.artifact_hash, artifact.attestation_epoch) # Invariant 3: latched refusal is never reversed. if key in previously_refused: raise ProvenanceIndeterminate( f"artifact {key} previously refused; re-admission requires a fresh epoch" ) # Invariant 1: cannot evaluate the window without a full delta. if artifact.attestation_epoch > runtime_epoch: raise ProvenanceIndeterminate( f"attestation epoch {artifact.attestation_epoch} is ahead of runtime " f"epoch {runtime_epoch}; delta window unenumerable" ) window = [r for r in revocations if artifact.attestation_epoch < r.epoch <= runtime_epoch] # Invariant 2: scope closure — join against full attestation graph. for entry in window: if entry.scope == "artifact" and entry.target == artifact.artifact_hash: return False if entry.scope == "component" and entry.target in artifact.sbom_components: return False if entry.scope in ("builder", "key"): raise ProvenanceIndeterminate( f"revocation scope '{entry.scope}' requires attestation-graph join " f"the runtime cannot perform for {artifact.artifact_hash}" ) return True ```