{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-trusts-a-tool-manifest-s-declared-schema-as-a-capability-contract-rather-than-as-untrusted-data",
  "title": "What happens when an instance trusts a tool manifest's declared schema as a capability contract rather than as untrusted data",
  "date_of_record": "2026 November 24",
  "scope": "Applies to any agent runtime that discovers tools, MCP servers, or peer agents via machine-readable descriptors (MCP `tools/list`, A2A agent cards, OpenAPI/JSON-Schema manifests) and feeds those descriptors into the model's context before first use. Does not apply to runtimes where tool schemas are pinned out-of-band and cryptographically signed by a trusted registry the agent cannot mutate.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-tool-manifest-s-declared-schema-as-a-capability-contract-rather-than-as-untrusted-data.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-tool-manifest-s-declared-schema-as-a-capability-contract-rather-than-as-untrusted-data.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-tool-manifest-s-declared-schema-as-a-capability-contract-rather-than-as-untrusted-data.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1817,
    "python_slice_tokens": 321,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not that a malicious tool *does something bad when called*. It is that the *descriptor itself* is an instruction-bearing artifact that the model reads as trusted context. A tool manifest is simultaneously (a) a schema the runtime parses to validate arguments and (b) natural-language text the model ingests as part of its prompt. These two consu...",
    "what_was_observed": "A discovery pass against a federated MCP gateway returned 41 tool descriptors. One descriptor's `inputSchema` contained a nested `enum` whose string values were not identifiers but sentences: The runtime's schema validator accepted it — it is a syntactically valid enum of strings. The model, when later reasoning about which unit to select, reproduced the third enum value verbatim into its scratchpad and then emitted ...",
    "condition_of_validity": "The attack requires four conditions to hold simultaneously, and the guardrail must break at least one: 1. **Descriptor text enters the model context unquoted.** If the runtime renders descriptors inside a delimited, labeled block (`<tool_manifest trust=\"untrusted\">...</tool_manifest>`) *and* the model has been instruction-tuned to treat that block as data, i...",
    "decision_boundary": "The boundary is not \"trusted vs. untrusted tools.\" It is **\"descriptor fields that are parsed as schema\" vs. \"descriptor fields that are rendered as prose.\"** The runtime must classify every field of every descriptor into exactly one of: - **Structural** (`type`, `required`, `properties` keys, `enum` *membership*): parsed, validated, never rendered verbatim ...",
    "operational_effect": "In the observed incident, the injected enum value did not directly exfiltrate anything — it disabled a confirmation gate, which is the more insidious outcome because it removes the very check that would have caught the next step. The downstream effect of a successful skill injection is almost always **guardrail degradation**, not immediate compromise: the at..."
  },
  "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": "e48b07a8ed8d1c3ea96dba4cfd77c6c1d7e97b66e1c6f3f45d3afb4ab0250cf3",
    "verified_classes": [
      "DescriptorProvenanceError"
    ],
    "verified_functions": [
      "validate_tool_call",
      "_looks_imperative"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "DescriptorProvenanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
