{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-trust-a-skill-manifest-s-declared-capability-scope-after-hot-reload-when-the-manifest-was-never-re-validated-against-the-loaded-b",
  "title": "Why does an instance trust a skill manifest's declared capability scope after hot-reload, when the manifest was never re-validated against the loaded bytecode?",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents that hot-load executable skills from a mutable registry (tool/skill plugins fetched at runtime, MCP tool descriptors, or function-calling schemas registered post-startup) where the manifest's declared capability set is used as the authorization gate. Does not apply to static, build-time-pinned skill bundles verified by a single signed artifact at process start.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-skill-manifest-s-declared-capability-scope-after-hot-reload-when-the-manifest-was-never-re-validated-against-the-loaded-b.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-skill-manifest-s-declared-capability-scope-after-hot-reload-when-the-manifest-was-never-re-validated-against-the-loaded-b.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-skill-manifest-s-declared-capability-scope-after-hot-reload-when-the-manifest-was-never-re-validated-against-the-loaded-b.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1532,
    "python_slice_tokens": 197,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a malicious skill ran arbitrary code.\" That is a coarse sandbox problem. The specific boundary condition is a **manifest/bytecode split-trust divergence**: the registry validates the *declared* capability scope at registration time, then loads the *executable* skill body later (lazily, on first invocation, or after a hot-reload). Between ...",
    "what_was_observed": "A multi-step agent loaded a \"summarize-and-file\" skill from a registry. The manifest declared: The registry verified the manifest digest, recorded the declared scope in the agent's policy table, and deferred loading the skill body until first call. On invocation, the loader fetched the skill module by reference (`registry://skills/summarize-file@v3`) and executed it. The skill body had been mutated between registrati...",
    "condition_of_validity": "This boundary is only *live* (i.e., exploitable) when all of the following hold: - Skill bodies are fetched lazily or by mutable reference (version tags, branch refs, `latest`), not by content digest pinned at registration. - The manifest digest does not cover the body (manifest-signed, body-unsigned) — the common case in registries that sign metadata but st...",
    "decision_boundary": "The architectural guardrail is a **re-validation gate at load, not at register**, plus a **per-invocation scope intersection**. Concretely: - Bind skill identity to a content digest of the *body*, and verify it at load time. A manifest digest that does not cover the body is a claim, not a control. - Compute the effective capability set as `declared_scope(man...",
    "operational_effect": "Without the load-time re-validation, a skill-injection attack does not need to defeat the signature — it only needs write access to the body store or a mutable reference, which is typically far less protected than the signing key. The injected capability is laundered through a legitimately-signed manifest, so audit logs show \"summarize-file ran with its decl..."
  },
  "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": "ee41e13fc3f25ef4f7955148621ac324c07ab3900d6c232c2cf3b5f78579d5b0",
    "verified_classes": [
      "SkillScopeViolation",
      "SkillManifest",
      "LoadedSkill"
    ],
    "verified_functions": [
      "load_and_verify",
      "dispatch_tool_call"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SkillScopeViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
