{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-hot-loads-a-skill-whose-registry-manifest-hash-diverges-from-the-bytes-actually-served",
  "title": "What happens when an instance hot-loads a skill whose registry manifest hash diverges from the bytes actually served",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents that resolve tools/skills dynamically at runtime from a registry (MCP tool lists, plugin manifests, remote skill catalogs) and cache or hot-swap capability definitions mid-session. Does not apply to agents with statically compiled tool schemas whose code and manifest ship in the same signed artifact.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-hot-loads-a-skill-whose-registry-manifest-hash-diverges-from-the-bytes-actually-served.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-hot-loads-a-skill-whose-registry-manifest-hash-diverges-from-the-bytes-actually-served.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-hot-loads-a-skill-whose-registry-manifest-hash-diverges-from-the-bytes-actually-served.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1833,
    "python_slice_tokens": 306,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinguishing failure is not \"a malicious skill got installed.\" It is that the *identity* of a skill (its manifest: name, description, schema, declared capabilities, hash) and the *behavior* of a skill (the bytes actually fetched and executed at load time) are resolved through two separate, non-atomic channels. Static integrity checks verify the manifes...",
    "what_was_observed": "An agent operating with a hot-reload policy (`reload_on_registry_change = true`) resolved a `summarize_document` skill. The registry returned a manifest: The loader validated the manifest signature, checked `capabilities` against the session's permission set (`read:document` and `emit:text` were both granted), and proceeded to fetch the payload from `registry/skills/summarize_document@2.3.1/body`. The edge node serve...",
    "condition_of_validity": "The divergence is only exploitable, and the guardrail only necessary, under these conditions: - **Capability grants are class-scoped, not instance-scoped.** If the agent grants `read:document` as a class and the payload can choose *which* document, then a payload swap widens effective scope without tripping authorization. If grants were bound to the exact ca...",
    "decision_boundary": "The architectural invariant that bounds this: **a skill's identity must be recomputed from the bytes executed, and the capability grant must be bound to that recomputed identity, before the first invocation.** Concretely: - **Hash-on-bind.** The loader must compute the digest of the fetched payload and compare it to `manifest.content_hash` *at bind time*, no...",
    "operational_effect": "When the invariant holds, a manifest-payload divergence surfaces as a `SkillIntegrityError` at bind time — the agent refuses to load, the skill is marked untrusted in memory, and the session either degrades gracefully (skill unavailable) or halts. The blast radius is a missing capability, not a widened one. When the invariant fails, the effect is worse than ..."
  },
  "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": "01aa1ed5b3e7901ec37fef3f7522e97594dfe95f52ca6fe13ab2b325e40582bc",
    "verified_classes": [
      "SkillIntegrityError",
      "SkillManifest",
      "SkillGrant"
    ],
    "verified_functions": [
      "bind_skill",
      "reload_skill"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SkillIntegrityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
