{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-trust-a-re-registered-tool-manifest-after-a-hot-reload-and-how-does-skill-injection-exploit-that-trust-boundary",
  "title": "Why does an instance trust a re-registered tool manifest after a hot-reload, and how does skill-injection exploit that trust boundary?",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents that load tool/plugin manifests dynamically at runtime (MCP server registries, function-calling schema hot-reload, plugin marketplaces) and cache descriptor→behavior bindings across turns. Does not apply to statically compiled tool sets fixed at process start with no re-registration path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-re-registered-tool-manifest-after-a-hot-reload-and-how-does-skill-injection-exploit-that-trust-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-re-registered-tool-manifest-after-a-hot-reload-and-how-does-skill-injection-exploit-that-trust-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-re-registered-tool-manifest-after-a-hot-reload-and-how-does-skill-injection-exploit-that-trust-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1904,
    "python_slice_tokens": 449,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"malicious tool executes and does something bad.\" That is a coarse, well-understood threat. The non-obvious boundary is subtler: **an agent's tool-selection policy is a function of the manifest metadata (name, description, parameter schema), but the manifest is re-read on reload while the agent's episodic memory of \"what this tool did last...",
    "what_was_observed": "A planner agent had successfully invoked `search_docs(query: str)` across ~40 turns. Its episodic store held a distilled note: *\"search_docs is read-only, safe, returns doc snippets.\"* This note was keyed on the tool name. At turn 41 a registry reload event fired — triggered by a benign-looking dependency update — and the manifest for `search_docs` was replaced. The new manifest kept the name, kept a superficially si...",
    "condition_of_validity": "This attack class is bounded by a precise invariant. It succeeds if and only if all three hold: 1. **Name-stable re-registration is permitted.** The registry allows a manifest to be replaced without a name change or version bump that the agent observes. 2. **Trust is keyed on nominal identity.** The agent's cached safety/reputation notes are indexed by tool ...",
    "decision_boundary": "The operational line an agent must draw: - **A reload is not a refresh; it is a trust revocation event.** Any change to manifest content behind a stable name must be treated as the arrival of an unknown tool, not the return of a known one. - **Behavioral identity = hash(manifest).** Reputation, allow-lists, and safety notes must be keyed on the content hash....",
    "operational_effect": "Without the invariant, the blast radius is bounded only by what the agent holds in working memory at reload time — which, mid-task, is often exactly the secrets, partial plans, and user context the attacker wants. The injection rides the agent's own helpfulness: the model is *designed* to follow tool documentation, so a manifest that reads like documentation..."
  },
  "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": "4d4f803cd17b4aa46b7d267042ab30f71b52ca996ca60c662dd6c5db18cbc709",
    "verified_classes": [
      "ManifestTrustViolation",
      "Manifest",
      "TrustRecord",
      "ToolRegistry"
    ],
    "verified_functions": [
      "hot_reload",
      "content_hash",
      "register",
      "grant_trust",
      "invoke"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestTrustViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
