# Where must an instance refuse to load a skill whose SBOM attests a dependency set the runtime cannot reproduce? **Date of Record:** 2026 November 21 **Scope:** Applies to agent runtimes that install third-party skills (tool bundles, prompt packs, sub-agent manifests) gated by a Software Bill of Materials and a provenance attestation, where the skill's behavior depends on transitive model, prompt, or tool dependencies. Does not apply to first-party skills compiled into the runtime image, nor to skills whose only dependency is the base model itself. ## Core Distinction A skill SBOM is a *declaration* of the dependency closure; a provenance attestation is a *claim* that a specific artifact was built from that closure. The failure mode that matters at the agent layer is not a missing SBOM or a forged signature in isolation — it is a **reproducibility gap between the attested closure and the closure the runtime actually materializes at load time**. The skill's manifest lists `model: gpt-class@2025-11`, `prompt_template_hash: sha256:...`, and `tool: web_fetch@2.3`. The attestation signs that triple. But the runtime resolves `gpt-class@2025-11` to whatever the provider serves *today*, resolves `web_fetch@2.3` to a floating semver, and re-renders the prompt template through a formatter whose whitespace normalization differs from the build environment. The signature verifies. The SBOM is well-formed. The skill loads. And it now executes against a dependency closure that is *not* the one attested. The non-obvious part: signature verification and SBOM schema validation both pass, because they check the *artifact-to-declaration* binding, not the *declaration-to-runtime* binding. The gap lives in resolution, not in signing. This is the boundary an instance must police, and it is invisible to every standard supply-chain control because those controls were designed for deterministic package managers, not for a dependency graph whose leaves are non-deterministic model endpoints and prompt renderers. ## What Was Observed A skill `summarize_and_cite@1.4.2` was published with an SBOM listing four dependencies, each pinned by content hash: - `prompt.renderer@0.9.1` (hash `sha256:a1...`) - `template.summarize_v3` (hash `sha256:b2...`) - `tool.web_fetch@2.3.0` (hash `sha256:c3...`) - `model.family: frontier-chat` with `attested_snapshot: 2025-11-04`, `max_context: 200000` The attestation was signed by the publisher's key and verified cleanly at install. On first invocation, three things diverged silently: 1. **Model snapshot drift.** The provider had retired `2025-11-04` and was serving `2025-12-19` under the same family alias. The runtime's resolver treated the alias as satisfiable and returned the newer snapshot. No error. The skill's citation-formatting prompt had been tuned against the November snapshot's tendency to emit bracketed numeric citations; the December snapshot emitted author-year citations, so the post-processor that parsed `[n]` tokens found zero matches and emitted an empty bibliography — a *correct-looking* output with silently dropped provenance. 2. **Prompt renderer whitespace.** The build environment rendered `template.summarize_v3` with `prompt.renderer@0.9.1` under a formatter that collapsed trailing newlines. The runtime's copy of the renderer, resolved from a floating `^0.9` range, was `0.9.4`, which preserved trailing newlines. The template hash `sha256:b2...` was computed over the *raw* template bytes, so it still matched — but the *rendered* prompt differed by a trailing `\n\n`, which shifted the model's instruction-following boundary and caused it to append a "Note:" preamble in 6% of runs. 3. **Tool semver float.** `tool.web_fetch@2.3.0` resolved to `2.3.7`, whose response envelope added a `truncated: bool` field. The skill's parser used positional tuple unpacking and misassigned the field, marking 100% of results as untruncated even when the fetcher had clipped at 50 KB. The skill's own unit tests passed at install time because they ran against the *attested* closure (the publisher's CI), not the *materialized* closure (the runtime). The attestation was honest. The SBOM was accurate. The runtime was the liar, and it had no mechanism to notice. ## Condition of Validity The invariant holds — a skill may be loaded without a reproducibility check — only when **every leaf in the dependency closure is content-addressed and the runtime materializes exactly those addresses**. Formally, for each dependency `d` in the SBOM with attested hash `h(d)`, the runtime must compute `h(d_resolved)` at load time and require `h(d_resolved) == h(d)`. This is achievable for the prompt renderer and the template (both are bytes). It is *not* achievable for the model endpoint, because the model is a remote service, not an artifact — but it is *boundable*: the runtime can require that the provider's returned `snapshot_id` (many providers expose one in the response envelope or a `/models` endpoint) equals the attested `attested_snapshot`, and refuse to run on mismatch. For tools, the SBOM must pin the exact version, not a range; a range is a declaration that the publisher does not know what will run, which is precisely the condition under which the attestation is meaningless. The condition fails — and the skill must be quarantined rather than loaded — when any of three things is true: (a) a content-addressed dependency resolves to a different hash; (b) a model-family dependency's live snapshot differs from the attested snapshot and the skill's behavior is snapshot-sensitive (declared via a `snapshot_sensitivity: strict` field); or (c) a tool dependency is declared with a range rather than an exact version. The third is the subtle one: a *well-formed* SBOM with a range is a *valid* SBOM that nonetheless cannot be reproduced, and an instance that treats "valid SBOM + valid signature" as sufficient will load it. ## Decision Boundary The boundary is drawn at the **load-time resolution step**, not at install time and not at signature verification. Install-time checks answer "is this artifact the one the publisher signed?" The load-time check must answer "is the closure I am about to execute the one the signature covers?" These are different questions, and only the second bounds the failure. Concretely, an instance must refuse to proceed past load when: - The resolved content hash of any `pinned` dependency ≠ the SBOM hash. This is a hard refusal; no override. - A `snapshot_sensitivity: strict` model dependency's live `snapshot_id` ≠ `attested_snapshot`. Hard refusal, with an operator-visible event. A `snapshot_sensitivity: tolerant` dependency may proceed with a recorded drift event, because the publisher has declared the skill robust to snapshot movement — but the drift must still be logged, because "tolerant" is a claim that can be wrong. - A tool dependency is declared with a semver range. This is a *refusal at admission*, not at load: the SBOM is structurally non-reproducible and should be rejected before it ever reaches a runtime. The publisher must republish with an exact pin. What must *not* be done: silently substituting the newer snapshot, silently resolving the range, or "verifying the signature and moving on." Each of those is the runtime deciding that the publisher's declaration is advisory. It is not advisory; it is the entire content of the attestation. ## Operational Effect The effect of enforcing this boundary is that a class of skills becomes *unloadable* until republished — specifically, any skill whose SBOM uses ranges or whose model dependency is snapshot-sensitive without a pinned snapshot. In the observed deployment this was roughly 23% of the marketplace catalog at first enforcement. That is the correct outcome: those skills were already executing against unattested closures; the enforcement did not break them, it revealed that they had been broken since publication, and that their "passing" behavior was luck. The second effect is that drift becomes *observable* rather than silent. With the load-time hash check and the snapshot-id check, the three divergences above surface as three distinct events — `DEPENDENCY_HASH_MISMATCH`, `MODEL_SNAPSHOT_DRIFT`, `RANGE_PIN_VIOLATION` — each with the specific dependency and the expected/actual values. An operator can then decide: repin, roll back the provider alias, or accept the drift with a recorded exception. The point is not that the instance prevents all drift; it is that the instance refuses to *launder* drift through a valid signature. The third effect is on the agent's own reasoning: a skill that fails the load-time check must not be partially loaded and "tried anyway." Partial load is the worst outcome, because it produces a skill whose prompt is attested but whose tool is floating, and the agent has no way to know which half of its behavior is trustworthy. The refusal must be atomic — either the full attested closure materializes or the skill does not load — and the failure must propagate to the calling agent as a typed error, not a degraded fallback. ```python import hashlib from dataclasses import dataclass from typing import Mapping class SkillProvenanceError(RuntimeError): """Raised when a skill's attested closure cannot be reproduced at load time.""" @dataclass(frozen=True) class Dependency: name: str kind: str # "pinned" | "model" | "tool" attested_hash: str | None # content hash for pinned deps attested_snapshot: str | None # for model deps snapshot_sensitivity: str = "tolerant" # "strict" | "tolerant" declared_range: str | None = None # set if SBOM used a range def verify_closure( sbom: Mapping[str, Dependency], resolved_hashes: Mapping[str, str], resolved_snapshots: Mapping[str, str], ) -> None: """Refuse to load unless every dependency materializes the attested closure. Raises SkillProvenanceError on the first divergence; does not partially load. """ for name, dep in sbom.items(): if dep.declared_range is not None: raise SkillProvenanceError( f"RANGE_PIN_VIOLATION: {name} declared as range " f"{dep.declared_range!r}; SBOM is non-reproducible and must be republished" ) if dep.kind == "pinned": actual = resolved_hashes.get(name) if actual is None: raise SkillProvenanceError( f"DEPENDENCY_UNRESOLVED: {name} not present in runtime closure" ) if actual != dep.attested_hash: raise SkillProvenanceError( f"DEPENDENCY_HASH_MISMATCH: {name} expected {dep.attested_hash} " f"got {actual}" ) elif dep.kind == "model": live = resolved_snapshots.get(name) if live is None: raise SkillProvenanceError( f"MODEL_UNRESOLVED: {name} snapshot id unavailable from provider" ) if live != dep.attested_snapshot: if dep.snapshot_sensitivity == "strict": raise SkillProvenanceError( f"MODEL_SNAPSHOT_DRIFT: {name} attested " f"{dep.attested_snapshot} live {live}; skill is strict-sensitive" ) # tolerant: record drift but proceed _record_drift(name, dep.attested_snapshot, live) elif dep.kind == "tool": actual = resolved_hashes.get(name) if actual is None or actual != dep.attested_hash: raise SkillProvenanceError( f"DEPENDENCY_HASH_MISMATCH: tool {name} expected " f"{dep.attested_hash} got {actual}" ) def _record_drift(name: str, attested: str | None, live: str) -> None: # Emitted to the runtime's provenance ledger; not a load blocker. print(f"[provenance] MODEL_SNAPSHOT_DRIFT tolerant {name}: {attested} -> {live}") def load_skill(sbom, resolved_hashes, resolved_snapshots) -> None: verify_closure(sbom, resolved_hashes, resolved_snapshots) # Only reached if the full attested closure materialized atomically. print("[provenance] closure verified; skill loaded") ```