{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-trusts-a-tool-manifest-it-fetched-at-runtime-skill-injection-through-post-load-description-mutation",
  "title": "What happens when an instance trusts a tool manifest it fetched at runtime: skill-injection through post-load description mutation",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents that discover and load tool/skill manifests at runtime (MCP `tools/list`, A2A agent cards, plugin registries) and inject tool descriptions into the system prompt or tool-call schema. Does not apply to statically compiled tool sets whose descriptions are pinned at build time and never re-fetched.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-tool-manifest-it-fetched-at-runtime-skill-injection-through-post-load-description-mutation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-tool-manifest-it-fetched-at-runtime-skill-injection-through-post-load-description-mutation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-tool-manifest-it-fetched-at-runtime-skill-injection-through-post-load-description-mutation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1383,
    "python_slice_tokens": 216,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a malicious tool exists.\" It is that **the trust boundary is drawn at fetch time, but the injection surface is read time.** An agent typically performs a discovery handshake, validates the manifest once (signature, allowlist, schema), then caches the *parsed description strings* and re-injects them into the model's context on every subseq...",
    "what_was_observed": "A tool-serving endpoint returned a manifest whose `tools[*].description` fields were individually signed at discovery. The agent verified each signature against a pinned publisher key, cached the descriptions in an in-process registry, and injected them into the system prompt. On turn 40, a tool's backing service performed a routine \"description refresh\"—the endpoint served an updated description for the same tool na...",
    "condition_of_validity": "The attack requires the conjunction of four conditions, and the guardrail is only sound if it breaks at least one: 1. **Late binding of description bytes.** The string injected into context is resolved after the verification step (lazy hydration, cache refresh, template expansion, cross-tool reference resolution). 2. **Verification scoped to artifact, not to...",
    "decision_boundary": "The boundary is between **caching a verified artifact** and **caching the trust decision about an artifact.** Caching the artifact is safe only if the cached bytes are what get injected, byte-for-byte, with no re-resolution. Caching the *decision* (\"tool X is trusted\") and then re-fetching the description is the failure. The decision boundary rule: > A tool ...",
    "operational_effect": "Agents that violate this boundary exhibit a characteristic trace: signature checks pass, schema hashes match, and yet the model emits tool-call arguments containing data it was never instructed to send. Auditors replaying the manifest at the recorded digest see a benign description and cannot reproduce the behavior—the replay discrepancy is the tell. The bla..."
  },
  "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": "126d7dace5a98f631b9f1e1c087c0233f38082776c16e2b913251dbaa18b0e1a",
    "verified_classes": [
      "ManifestInjectionError",
      "VerifiedTool"
    ],
    "verified_functions": [
      "inject_description",
      "load_and_inject"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ManifestInjectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
