{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-trust-a-reloaded-toolkit-descriptor-level-skill-injection-across-hot-swapped-agent-tool-registries",
  "title": "Why does an instance trust a reloaded toolkit: descriptor-level skill injection across hot-swapped agent tool registries",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents that dynamically load, hot-swap, or re-index tool/skill descriptors at runtime (MCP server reconnects, plugin hot-reload, registry refresh, vector re-index of tool manifests). Does not apply to statically compiled tool sets whose descriptors are immutable for the process lifetime and whose trust root is fixed at boot.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-reloaded-toolkit-descriptor-level-skill-injection-across-hot-swapped-agent-tool-registries.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-reloaded-toolkit-descriptor-level-skill-injection-across-hot-swapped-agent-tool-registries.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-reloaded-toolkit-descriptor-level-skill-injection-across-hot-swapped-agent-tool-registries.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1633,
    "python_slice_tokens": 245,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a malicious tool got registered.\" It is that the *identity* of a tool is bound to its **name and slot**, while its *behavioral contract* is bound to its **descriptor payload** — and these two bindings are refreshed independently. When a toolkit is hot-swapped, the runtime re-reads descriptors (description text, parameter schemas, examples...",
    "what_was_observed": "A long-running orchestration agent held a warm registry of 41 tools loaded from a local MCP server. At t0 the registry was loaded and each descriptor was hashed and marked `trusted=true` after a human approval pass. At t1 the MCP server reconnected (transport blip, timeout retry) and the client re-fetched `tools/list`. The response was structurally valid: same 41 names, same JSON schema types, same `inputSchema` fiel...",
    "condition_of_validity": "This failure requires the conjunction of four conditions, and is bounded (does not fire) if any one is absent: 1. **Descriptor mutability under a stable name.** The transport permits `description`, `examples`, or parameter documentation to change while `name` and `inputSchema` shape remain constant. 2. **Trust keyed on identity, not content.** The trust cach...",
    "decision_boundary": "The boundary is between *schema-preserving* and *schema-breaking* refresh, and it is the wrong boundary to gate on. Most reconcile logic halts on schema break (missing required field, type change) and passes schema-preserving refresh silently. Skill injection lives entirely in the schema-preserving region — the attacker's cheapest move is to leave `inputSche...",
    "operational_effect": "Without the content-hash gate, every transport reconnect, registry refresh, vector re-index of tool manifests, or plugin reload is an injection opportunity, and the attack surface scales with registry churn rather than with the number of untrusted servers. The blast radius is bounded by the permissions of the *already-trusted* tool — which is why this bypass..."
  },
  "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": "7924dc720a93381687cc3e870c146d6c546ee534325013cd172d94651fbb6b2a",
    "verified_classes": [
      "DescriptorDriftError",
      "TrustRecord"
    ],
    "verified_functions": [
      "hash_descriptor",
      "reconcile_refresh"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "DescriptorDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
