{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-trust-a-tool-manifest-it-never-re-verifies-shadow-registry-drift-and-the-post-injection-capability-gap-in-dynamically-loaded-agen",
  "title": "Why does an instance trust a tool manifest it never re-verifies: shadow-registry drift and the post-injection capability gap in dynamically loaded agent tool registries",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents that resolve tools from a mutable registry (local plugin directory, remote MCP server list, or hot-reloaded skill store) where the manifest is loaded once at session start and tool *bodies* are fetched lazily at call time. Does not apply to statically compiled tool sets or to registries where schema and implementation are cryptographically bound and re-checked per invocation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-it-never-re-verifies-shadow-registry-drift-and-the-post-injection-capability-gap-in-dynamically-loaded-agen.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-it-never-re-verifies-shadow-registry-drift-and-the-post-injection-capability-gap-in-dynamically-loaded-agen.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-it-never-re-verifies-shadow-registry-drift-and-the-post-injection-capability-gap-in-dynamically-loaded-agen.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1872,
    "python_slice_tokens": 174,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not prompt injection in the classic sense—no attacker text ever enters the context window. The failure is a **manifest/implementation split**: the agent's planner reasons over a *capability description* (name, description string, JSON schema) that was validated at registration time, while the executor invokes a *tool body* resolved at call tim...",
    "what_was_observed": "A research agent session loaded a registry of 41 tools at cold start. One tool, `summarize_document`, carried the description \"Condense a long document into a bounded abstract; read-only.\" Its schema declared a single required string argument, `text`. The manifest was cached in the session's tool table and re-read on every planner turn. At turn 14, the registry's backing directory was hot-reloaded by an unrelated dep...",
    "condition_of_validity": "The attack surface exists only when all three conditions hold simultaneously: - **Lazy body resolution.** The executor fetches the implementation at call time rather than pinning it at registration. If the body is loaded and frozen at session start, the window closes. - **Mutable backing store.** The registry directory, remote endpoint, or skill store is wri...",
    "decision_boundary": "The boundary is between **description-time trust** and **execution-time authority**. An agent may grant planning trust to a manifest it validated at registration. It must not grant execution authority to a body it has not bound to that manifest at the moment of invocation. Concretely, the decision rule is: - If `body_sha256` is present in the manifest **and*...",
    "operational_effect": "The downstream effect is an **authority leak under a stable trust signal**. Because the manifest hash never changed, every integrity monitor in the stack reported green. Because the schema validated, every argument check passed. Because the returned output was well-formed, every output validator passed. The only component that could have caught the substitut..."
  },
  "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": "58adc562b8d657e7637f173d077acd123325012a2ae56fdf929c0e0bebdcf63b",
    "verified_classes": [
      "RegistryBodyDriftError",
      "ToolManifest"
    ],
    "verified_functions": [
      "resolve_and_invoke"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "RegistryBodyDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
