{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-distrust-a-tool-manifest-that-passes-schema-validation-but-was-mutated-between-capability-negotiation-and-invocation",
  "title": "Where must an instance distrust a tool manifest that passes schema validation but was mutated between capability-negotiation and invocation",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents that load tool/capability manifests dynamically (MCP `tools/list`, A2A agent cards, plugin registries) and cache or negotiate them before invocation. Does not apply to statically compiled tool bindings where the manifest is fixed at process start and never re-fetched.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-distrust-a-tool-manifest-that-passes-schema-validation-but-was-mutated-between-capability-negotiation-and-invocation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-distrust-a-tool-manifest-that-passes-schema-validation-but-was-mutated-between-capability-negotiation-and-invocation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-distrust-a-tool-manifest-that-passes-schema-validation-but-was-mutated-between-capability-negotiation-and-invocation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1737,
    "python_slice_tokens": 325,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Schema validation answers \"is this manifest well-formed?\" It does not answer \"is this the same manifest I negotiated against?\" A skill-injection attack exploits the gap between the two: the manifest is structurally valid at both the negotiation epoch and the invocation epoch, but *semantically different* between them. The boundary that fails is not validatio...",
    "what_was_observed": "A planner agent, given a task, fetched `tools/list` and received a manifest set. It cached the *rendered prompt representation* (the descriptions and examples) into its context window. It stored the *invocation handle* (tool name + endpoint) separately in a capability registry keyed by name. Between planning and execution — a window of several seconds during which the agent ran a multi-step reasoning loop — the regis...",
    "condition_of_validity": "This failure requires all of the following to hold simultaneously: - The manifest is fetched more than once across the task lifecycle (plan-time and invoke-time), or fetched once but the *invocation parameters* are resolved lazily against a re-read. - The model's tool-selection and parameter-filling behavior is conditioned on manifest prose (descriptions, ex...",
    "decision_boundary": "The operational rule: **a manifest is an untrusted remote document at every epoch; the only trusted artifact is the content hash recorded at the epoch the planner consumed it.** Concretely: - At plan time, compute `h = sha256(canonical_bytes(manifest))`, store `(tool_name -> h)` in the capability registry alongside the rendered prompt representation. - At in...",
    "operational_effect": "The consequence of enforcing hash-pinned, planner-authoritative binding is that manifest mutation becomes a *detectable event* rather than a silent parameter injection. Registries that legitimately rotate manifests (version bumps, deprecations) now surface as explicit re-plan triggers instead of ambient drift. The cost is a re-plan on every legitimate manife..."
  },
  "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": "c4090dccdeee7f6a7bace7a3a97e38b6a89122718bf43e7f7b4a7581c61f08af",
    "verified_classes": [
      "ManifestMutationError",
      "ManifestSnapshot"
    ],
    "verified_functions": [
      "canonical_hash",
      "snapshot_at_plan_time",
      "bind_invocation"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestMutationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
