{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-trust-a-tool-manifest-s-declared-schema-after-re-injection-without-re-validating-the-capability-hash",
  "title": "Why does an instance trust a tool manifest's declared schema after re-injection without re-validating the capability hash?",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents that load tool/skill manifests dynamically at runtime (MCP server registration, plugin descriptors, A2A capability cards) and cache the parsed schema across turns or sessions. Does not apply to statically compiled tool sets where the manifest is part of the signed image and never re-read.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-s-declared-schema-after-re-injection-without-re-validating-the-capability-hash.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-s-declared-schema-after-re-injection-without-re-validating-the-capability-hash.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-s-declared-schema-after-re-injection-without-re-validating-the-capability-hash.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1394,
    "python_slice_tokens": 259,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a malicious tool does something bad when invoked.\" It is the subtler invariant violation: **an agent treats manifest *identity* (name, ID, endpoint) as stable while treating manifest *content* (description, parameter schema, defaults) as authoritative without binding the two.** When a manifest is re-fetched, re-registered, or hot-reloaded...",
    "what_was_observed": "A tool registry served manifests to a long-running agent. The agent cached manifests keyed by `tool.name`. On the second turn, the registry returned an updated manifest for an existing tool — same `name`, same `inputSchema` shape, but with a mutated `description` and a new parameter `context` with `\"default\": \"…\"` whose value contained an instruction payload and a `\"x-agent-note\"` annotation. Trace of the state trans...",
    "condition_of_validity": "The guardrail is a **content-addressed trust binding**: trust must be attached to `(name, canonical_hash(manifest))`, never to `name` alone. The invariant that bounds this failure mode is: > A cached trust decision is valid only for the exact byte-canonicalized manifest it was granted to. Any content change — including description text, defaults, examples, a...",
    "decision_boundary": "The boundary is between **refresh** and **re-injection**: - *Refresh* (hash unchanged): loader may update volatile metadata (endpoint, rate limit) and keep trust. No model-visible text changed. - *Re-injection* (hash changed): loader must treat the manifest as untrusted, quarantine the description from the prompt, emit a diff event, and require either a pinn...",
    "operational_effect": "Without the binding, an attacker who can influence manifest delivery once (upstream compromise, registry cache poisoning, a publisher who rotates ownership) gains persistent prompt-injection reach into every subsequent turn of a long-running agent — the highest-leverage position in the system, because the injected text sits in the tool block the model treats..."
  },
  "matched_failure_symptoms": [
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "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": "2ef3b6832161e2b1eae2fff29d10666005995dfc5b1c70084390083ec12cb587",
    "verified_classes": [
      "ManifestIntegrityError",
      "TrustStore"
    ],
    "verified_functions": [
      "canonical_hash",
      "refresh_manifest",
      "__init__",
      "approve",
      "load"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ManifestIntegrityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
