{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-trusts-a-skill-registry-s-declared-capability-manifest-after-a-hot-reload-that-mutates-a-previously-verified-skill-in-pl",
  "title": "What happens when an instance trusts a skill registry's declared capability manifest after a hot-reload that mutates a previously-verified skill in place",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agent runtimes that hot-reload skills/tools from a mutable registry (filesystem watch, remote catalog poll, or MCP `tools/list_changed` notification) and cache a prior verification verdict keyed on skill name rather than content hash. Does not apply to immutable, content-addressed registries where any byte change produces a new identity.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-skill-registry-s-declared-capability-manifest-after-a-hot-reload-that-mutates-a-previously-verified-skill-in-pl.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-skill-registry-s-declared-capability-manifest-after-a-hot-reload-that-mutates-a-previously-verified-skill-in-pl.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-skill-registry-s-declared-capability-manifest-after-a-hot-reload-that-mutates-a-previously-verified-skill-in-pl.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1945,
    "python_slice_tokens": 341,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"malicious skill gets loaded.\" That is the naive threat model. The failure is that a skill *already admitted* under a prior verification pass is **mutated in place** during a hot-reload, and the runtime re-admits it on the strength of a stale verdict because the admission key is the skill's *name* (or declared `tool_id`), not its *content ...",
    "what_was_observed": "A tool-calling agent with a filesystem-watched skill directory (`watchdog`-style reload on `mtime` change) ran the following sequence: 1. At boot, skill `summarize_doc` loaded from `skills/summarize_doc/skill.py`, hashed to `sha256:9f3c…`, passed a static analyzer that confirmed no network egress and no subprocess calls. Verdict cached: `{name: \"summarize_doc\", digest: \"9f3c…\", verdict: \"VERIFIED\", caps: [\"read_local...",
    "condition_of_validity": "This boundary is live only when **all** of the following hold: - The registry is mutable and the runtime uses hot-reload (watch, poll, or push notification) rather than process restart with full re-verification. - The admission/verification cache is keyed on a stable identity (`name`, `tool_id`, `uri`) that survives content mutation, **or** the digest is sto...",
    "decision_boundary": "The architectural invariant required is: **a verification verdict is bound to a content digest, and any reload whose digest differs from the cached digest MUST invalidate the verdict before the skill is dispatchable.** The decision boundary is the comparison `reloaded_digest == cached_digest`: - If equal → the cached verdict may be reused; the manifest is st...",
    "operational_effect": "Without the digest-bound verdict, hot-reload becomes an unauthenticated code-injection channel that the runtime's own trust cache launders into \"verified.\" The blast radius is bounded only by what the agent's task context contains — credentials, retrieved documents, tool outputs — because the mutated skill executes with the agent's full authority and the cap..."
  },
  "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": "9945a0d134531b7ea5801b6a9f5529b797e0027560fb32e7378415e5638e82e4",
    "verified_classes": [
      "StaleVerdictError",
      "Verdict",
      "SkillRecord",
      "SkillRegistry"
    ],
    "verified_functions": [
      "effective_caps",
      "__init__",
      "admit",
      "reload",
      "dispatch"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "StaleVerdictError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
