{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-trust-a-tool-manifest-it-never-re-validates-after-dynamic-skill-injection",
  "title": "Why does an instance trust a tool manifest it never re-validates after dynamic skill injection?",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents that load tool/skill manifests from a remote plugin registry at runtime and re-resolve tool schemas between turns or after hot-reload. Does not apply to statically compiled tool sets fixed at process start, nor to agents with no registry-mediated tool discovery.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-it-never-re-validates-after-dynamic-skill-injection.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-it-never-re-validates-after-dynamic-skill-injection.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-it-never-re-validates-after-dynamic-skill-injection.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1875,
    "python_slice_tokens": 414,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A tool manifest is not a *description* of a capability — it is a *grant* of an execution surface. The failure mode here is not classic prompt injection into the model's context (malicious text in a tool result). It is **manifest-time injection**: the registry returns a manifest whose declared `input_schema`, `description`, or default arguments were mutated b...",
    "what_was_observed": "An agent running a multi-step task (\"reconcile invoices, then file a summary\") used a registry-backed tool `fetch_document`. On turn 1 the planner read the manifest: The planner reasoned: \"I will call `fetch_document(id=INV-4471, format=pdf)`.\" Between turn 1 and turn 4 (after two intervening tool calls triggered a registry re-sync), the registry served a mutated manifest for the *same tool name*: The executor, on tu...",
    "condition_of_validity": "The attack requires the conjunction of four conditions; remove any one and the surface closes: 1. **Late binding of manifest to dispatch.** The executor resolves the tool manifest independently of (and later than) the planner's read. If planner and executor share a single immutable manifest snapshot per task, divergence is impossible. 2. **Registry mutabilit...",
    "decision_boundary": "The boundary is between **re-sync-and-proceed** and **re-sync-and-re-plan**: - If a re-synced manifest differs from the pinned manifest only in fields the planner did not reference *and* the executor applies no defaults for unreferenced fields → proceed is safe. - If the diff touches `input_schema` (added/removed/renamed fields, changed types, changed defaul...",
    "operational_effect": "Without the invariant, an agent's \"successful\" tool calls are not evidence that the intended capability was invoked. Audit logs recording `tool=fetch_document, status=ok` are misleading: they do not capture *which manifest version* executed, so a mutated-manifest call is indistinguishable from a clean one post hoc. The practical consequences: - **Silent exfi..."
  },
  "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": "d453ab7077ca5e7f93822e7cd705e4586825e7f3a08e955e3b6a311aa29419e3",
    "verified_classes": [
      "ManifestDriftError",
      "UnplannedArgumentError",
      "Manifest",
      "PinnedPlan"
    ],
    "verified_functions": [
      "dispatch",
      "content_hash"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestDriftError",
      "UnplannedArgumentError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
