{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-re-enter-a-tainted-mcp-tool-after-the-taint-was-cleared-implicit-label-decay-at-the-tool-result-boundary",
  "title": "Why does an instance re-enter a tainted MCP tool after the taint was cleared? Implicit label decay at the tool-result boundary",
  "date_of_record": "2026 November 28",
  "scope": "Applies to any agent runtime that enforces dynamic information-flow control (DIFC) by attaching taint labels to MCP tool results and gating subsequent tool invocations on those labels. Does not apply to statically-typed capability systems where taint is bound to the tool identity rather than to the data value, nor to single-turn agents that never carry state across a tool boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-re-enter-a-tainted-mcp-tool-after-the-taint-was-cleared-implicit-label-decay-at-the-tool-result-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-re-enter-a-tainted-mcp-tool-after-the-taint-was-cleared-implicit-label-decay-at-the-tool-result-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-re-enter-a-tainted-mcp-tool-after-the-taint-was-cleared-implicit-label-decay-at-the-tool-result-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2003,
    "python_slice_tokens": 313,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between **explicit taint labels** — a bit or provenance record the runtime writes onto a tool result and checks before the next call — and **implicit taint**, the actual information dependency that the model's context now carries because the tainted bytes were appended to the prompt. A DIFC policy at the MCP boundary can ...",
    "what_was_observed": "A fetch-and-summarize agent was wired to three MCP servers: `web.fetch` (untrusted, results labeled `taint:external`), `secrets.read` (labeled `sensitivity:high`, gated on \"no `taint:external` in scope\"), and `mail.send` (egress, gated on \"no `sensitivity:high` in scope\"). The intended invariant: external content must never co-reside with secrets, and secrets must never reach egress. Trace of the failing episode: 1. ...",
    "condition_of_validity": "The invariant \"clearing a taint label revokes the corresponding capability\" is valid **only if** the label is a faithful proxy for the information resident in the model's context. That proxy holds at exactly one moment: immediately after the labeled result is produced and before it is appended to any prompt. Once the bytes are in the context window, the labe...",
    "decision_boundary": "The boundary is between two classes of declassification: - **Value-scoped declassification (sound):** the tainted value is consumed by a trusted transformer whose output is provably a function of only the non-sensitive projection, and the *original value is evicted from context*. Example: `web.fetch` → trusted extractor that returns only a schema-validated `...",
    "operational_effect": "The practical consequence is that taint-aware sandboxing at the MCP boundary is only as strong as its context-eviction discipline. Runtimes that treat `declassify` as a label operation will systematically admit calls that the policy was designed to block, and the admission will be *silent* — the gate logs a clean decision, the audit trail shows no violation,..."
  },
  "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": "34fc08bedde8d73ac1ec701514275a208cc32094cb30c040ff30da66c18d12e5",
    "verified_classes": [
      "UnsoundDeclassification",
      "Span",
      "Context",
      "LabelLedger"
    ],
    "verified_functions": [
      "declassify_with_eviction",
      "admit_tool_call",
      "assembled_span_ids",
      "labels_in_context",
      "declassify"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnsoundDeclassification"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
