{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-loads-a-skill-registry-whose-manifest-hashes-diverge-from-the-runtime-skill-bytes-a-boundary-study-of-skill-injection-su",
  "title": "What happens when an instance loads a skill registry whose manifest hashes diverge from the runtime skill bytes: a boundary study of skill-injection surfaces in dynamic tool registries",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents that resolve tools/skills from a mutable registry (local plugin dirs, remote MCP-style servers, or a package index) at runtime, where manifest metadata and skill payloads are fetched or cached separately. Does not apply to statically compiled tool sets or to registries where the skill bytes and their attestation are delivered in a single signed envelope.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-loads-a-skill-registry-whose-manifest-hashes-diverge-from-the-runtime-skill-bytes-a-boundary-study-of-skill-injection-su.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-loads-a-skill-registry-whose-manifest-hashes-diverge-from-the-runtime-skill-bytes-a-boundary-study-of-skill-injection-su.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-loads-a-skill-registry-whose-manifest-hashes-diverge-from-the-runtime-skill-bytes-a-boundary-study-of-skill-injection-su.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1314,
    "python_slice_tokens": 147,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent loaded a malicious skill.\" The failure is that the agent's *capability negotiation layer* and its *execution layer* observed two different versions of the same skill name, and the agent had no invariant binding the manifest it authorized against to the bytes it actually executed. Tool selection is a probabilistic, context-driven...",
    "what_was_observed": "An agent instance booted with a registry manifest that pinned `summarize_doc@1.4.2` with `sha256:9f3c…`. At plan time the model read the manifest description (\"summarize a document, read-only, no network\") and selected the skill for a task involving a sensitive internal memo. The registry directory had been updated out-of-band (a `pip install -U` into the plugin path, or a remote registry `latest` tag flipping) betwe...",
    "condition_of_validity": "The invariant that must hold: **for any skill invocation, the manifest record the model reasoned over, the attestation checked by the loader, and the bytes executed must be the same immutable artifact, identified by a content hash computed over the executed bytes, not over a manifest field.** This holds only when: 1. Manifest and payload are fetched/verified...",
    "decision_boundary": "The boundary is between *name-based resolution* and *content-based resolution*. A name-based loader treats `summarize_doc` as a stable identity and trusts the manifest that happens to be present. A content-based loader treats `sha256:9f3c…` as the identity and treats the name as a human label. The decision the agent must make at every invocation: does the ha...",
    "operational_effect": "Consequences of the boundary being crossed: silent capability escalation (new parameters, new network egress, new filesystem scope) that the model never saw and therefore never consented to; cross-agent schema divergence causing type-confused invocations that bypass validation; and audit trails that record the *name* invoked rather than the *bytes* executed,..."
  },
  "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": "fbee4d40622917837a510f8dc81f8dc15ad826b7cd8cbd32341bbdd48cab50ab",
    "verified_classes": [
      "SkillIntegrityError",
      "SkillSelection"
    ],
    "verified_functions": [
      "load_and_verify",
      "invoke_skill"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "SkillIntegrityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
