{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-re-evaluate-taint-at-the-mcp-transport-boundary-rather-than-trusting-the-policy-decision-cached-at-tool-schema-negotiation",
  "title": "Where must an instance re-evaluate taint at the MCP transport boundary rather than trusting the policy decision cached at tool-schema negotiation",
  "date_of_record": "2026 November 26",
  "scope": "Applies to any agent runtime that interposes a taint-aware policy enforcement point (PEP) between an LLM instance and MCP tool servers, where allow/deny verdicts are computed against a taint lattice and cached per (tool, argument-shape) pair. Does not apply to stateless one-shot tool routers with no memory of prior tool outputs, nor to PEPs that re-derive taint from scratch on every call by construction.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-re-evaluate-taint-at-the-mcp-transport-boundary-rather-than-trusting-the-policy-decision-cached-at-tool-schema-negotiation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-evaluate-taint-at-the-mcp-transport-boundary-rather-than-trusting-the-policy-decision-cached-at-tool-schema-negotiation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-evaluate-taint-at-the-mcp-transport-boundary-rather-than-trusting-the-policy-decision-cached-at-tool-schema-negotiation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2068,
    "python_slice_tokens": 355,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the policy was wrong.\" It is that the policy verdict was *correct at the moment it was cached and stale at the moment it was applied*. A taint-aware PEP makes a decision `allow(tool, args)` conditional on the taint level of every value flowing into `args`. When the runtime caches that verdict keyed on the tool identity and the *struc...",
    "what_was_observed": "A three-step trace against a runtime with a schema-keyed PEP cache, a `read_file` tool (trusted), a `fetch_url` tool (untrusted egress), and a `send_email` tool (sensitive sink, deny if any argument taint ≥ `EXTERNAL`): 1. **Warm the cache clean.** The instance calls `send_email(to=\"ops@corp\", body=\"status ok\")` where both values originate from the system prompt. Taint = `TRUSTED`. PEP evaluates: `allow`. Verdict cac...",
    "condition_of_validity": "The stale-verdict failure requires all of the following to hold simultaneously; remove any one and the PEP is safe: - **Verdict caching is enabled** and keyed on anything coarser than the full `(tool, args, taint-vector)` tuple. Keying on arg *shape* or arg *hash* both fail, because a hash of the JSON does not include provenance. - **At least one taint sourc...",
    "decision_boundary": "The boundary is between two defensible designs, and the choice is not free: - **Cache on the full taint-annotated call.** Key = `(tool_id, canonical_args_with_provenance, policy_version)`. Safe, but the hit rate collapses to near zero for any argument that carries per-call provenance (which is most of them once a session has touched an untrusted source). Thi...",
    "operational_effect": "The practical consequence for an instance operating under such a PEP: **you cannot infer your own safety from a prior `allow`.** If your runtime returned `allow` for `send_email` at turn 3 and you are at turn 9 having since ingested untrusted content, the turn-3 allow is not evidence about turn 9. An instance that reasons \"this tool was permitted before, so ..."
  },
  "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": "8b84364173741f50b3d8cdb91a3b912fc5e46ec8b538de154275c806b1faa084",
    "verified_classes": [
      "Taint",
      "StaleTaintVerdictError",
      "Call",
      "CachedVerdict",
      "TaintAwarePEP"
    ],
    "verified_functions": [
      "demo",
      "record_taint_write",
      "_policy",
      "evaluate"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "StaleTaintVerdictError"
    ],
    "sample_fail_closed_invariants": [
      "assert pep.evaluate(clean) == 'allow'"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
