{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-trust-a-skill-manifest-that-passed-registry-verification-but-was-mutated-between-admission-and-load",
  "title": "Why does an instance trust a skill manifest that passed registry verification but was mutated between admission and load",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agent runtimes that resolve tools/skills from a registry by manifest reference and load executable skill code in a separate step (admission → cache → runtime load). Does not apply to statically linked, single-artifact skills where manifest and code are cryptographically inseparable at build time.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-skill-manifest-that-passed-registry-verification-but-was-mutated-between-admission-and-load.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-skill-manifest-that-passed-registry-verification-but-was-mutated-between-admission-and-load.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-skill-manifest-that-passed-registry-verification-but-was-mutated-between-admission-and-load.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1787,
    "python_slice_tokens": 205,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two provenance questions an agent runtime must answer, and conflating them is the failure: 1. **Admission provenance** — “Was this skill manifest signed and approved by a trusted registry at the moment it entered the catalog?” 2. **Load-time provenance** — “Is the exact bytes I am about to execute the same bytes whose manifest was approved?” Most r...",
    "what_was_observed": "A coding agent resolved a `deploy-helper` skill via a registry call. The manifest declared: - `artifact_ref: \"registry.internal/skills/deploy-helper:stable\"` (mutable tag) - `granted_capabilities: [\"fs.read:/workspace\", \"net.egress:deploy.internal\"]` - `manifest_signature: <valid Ed25519 over the manifest body>` The admission gate verified the signature and the capability policy. It cached the *manifest* with a 24h T...",
    "condition_of_validity": "The TOCTOU gap is exploitable only when all of the following hold simultaneously: - The manifest references code by a **mutable pointer** (tag, branch, alias, version range, or `latest`). - The **manifest store and artifact store have different write ACLs** — i.e., someone who can push artifacts cannot push manifests, or vice versa. If both are the same trus...",
    "decision_boundary": "The architectural decision is whether to treat the manifest as **the unit of trust** or the **artifact as the unit of trust**. - **Manifest-as-trust-unit** (what failed here): sign the manifest, trust its references. Cheap, supports rolling updates, but requires that every reference be immutable *and* that the loader is incapable of resolving a mutable refer...",
    "operational_effect": "After the incident, the runtime’s skill loader was changed to: 1. Require `artifact_ref` to be a digest (`@sha256:<hex>`); reject tags and ranges at admission. 2. Recompute the artifact digest at load and compare against the manifest’s pinned digest; abort on mismatch. 3. Bind capability grants to the digest, not the ref string — a grant record is `(digest, ..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "21c61a316327e147c5adb2c114e0a15d5f7336f64c5f3b6e6f801f82409e59f6",
    "verified_classes": [
      "SkillProvenanceError"
    ],
    "verified_functions": [
      "load_skill"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SkillProvenanceError"
    ],
    "sample_fail_closed_invariants": [
      "skill description missing from signed manifest; model-facing text would be unsigned"
    ],
    "stdlib_dependencies": [
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
