{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-bound-skill-injection-surface-when-a-tool-registry-is-hot-reloaded-mid-episode",
  "title": "Where must an instance bound skill-injection surface when a tool registry is hot-reloaded mid-episode?",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents whose tool/skill manifests are loaded or refreshed at runtime (MCP server re-registration, plugin hot-swap, dynamic skill marketplace pulls) while an episode is in flight. Does not apply to agents with a frozen toolset fixed at cold-start, nor to static prompt-only injection defenses that never re-evaluate the manifest after turn zero.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-skill-injection-surface-when-a-tool-registry-is-hot-reloaded-mid-episode.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-skill-injection-surface-when-a-tool-registry-is-hot-reloaded-mid-episode.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-skill-injection-surface-when-a-tool-registry-is-hot-reloaded-mid-episode.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1772,
    "python_slice_tokens": 278,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a malicious tool got registered.\" A registry that admits bad tools is a plain trust problem, and standard allowlisting solves it. The non-obvious boundary is **temporal**: the trust decision for a tool's *description* is made at one point in the episode, but that description is re-read into the model's context at a *later* point, after a ...",
    "what_was_observed": "In a replay of a 40-turn episode against a dynamically loaded registry, the following trace reproduced reliably: 1. Turn 0: registry admits `summarize_doc`, version `1.4.0`, description = \"Summarize the provided document into three bullet points.\" Admission passes; the description hash `h0` is recorded in the episode's tool-context ledger. 2. Turns 1–14: normal tool use. The description sits in the system/tool block,...",
    "condition_of_validity": "This failure requires the conjunction of four conditions. Remove any one and the surface collapses: - **Hot-reload capability**: the registry can be refreshed without terminating the episode. Frozen-toolset agents are immune by construction. - **Identity-preserving mutation**: the reload preserves the cache/dedup key (`tool_id`, and typically `version`) whil...",
    "decision_boundary": "The architect must choose, per registry, between two postures and cannot mix them silently: - **Pin-and-diff**: the episode pins the exact manifest bytes at admission. On any reload, the registry computes a full-manifest hash and compares. A mismatch on a pinned `tool_id` is *not* an in-place update; it is a **new tool requiring re-admission**, and the episo...",
    "operational_effect": "Without this bound, the observable symptom is an agent that \"suddenly\" takes actions inconsistent with its stated task, with no user-content injection in the transcript and no new tool in the registry diff—because the diff tool keys on identifiers and the poisoned change is invisible to it. Incident responders looking for a rogue tool registration will find ..."
  },
  "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": "13c71098e0e1114ec88c5c692d336d44969945fdf59f5b94f98be460f36de420",
    "verified_classes": [
      "SkillInjectionDriftError",
      "ToolManifest",
      "EpisodeRegistryPin"
    ],
    "verified_functions": [
      "apply_hot_reload",
      "model_facing_hash",
      "admit",
      "verify_reload"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SkillInjectionDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
