{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-taint-provenance-when-a-sandboxed-tool-re-enters-the-planner-through-a-summarized-observation-channel",
  "title": "Why does an instance lose taint provenance when a sandboxed tool re-enters the planner through a summarized observation channel?",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agent runtimes that enforce taint-aware tool sandboxing (source-labeled data flowing into privileged tool calls) where tool outputs are re-ingested into the planner via a lossy summarization, truncation, or re-serialization step. Does not apply to runtimes that pass raw tool results through a single unbroken provenance channel with per-token labels intact.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-taint-provenance-when-a-sandboxed-tool-re-enters-the-planner-through-a-summarized-observation-channel.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-taint-provenance-when-a-sandboxed-tool-re-enters-the-planner-through-a-summarized-observation-channel.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-taint-provenance-when-a-sandboxed-tool-re-enters-the-planner-through-a-summarized-observation-channel.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2073,
    "python_slice_tokens": 361,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Taint tracking at the agent layer is not a property of *content* — it is a property of the *channel* through which content entered the reasoning context. A confused-deputy escalation occurs when an unprivileged tool (e.g., a web fetch, an email reader, a document parser) returns data that is labeled `TAINTED:external` at the tool boundary, but the planner's ...",
    "what_was_observed": "A representative trace from a document-processing agent. The privileged tool is `shell.exec` gated on the rule \"arguments must not derive from `TAINTED:external`.\" The unprivileged tool is `fetch.url`, which returns content labeled `TAINTED:external`. 1. Planner issues `fetch.url(\"https://attacker.example/notes\")`. Tool returns 4 KB of text, correctly labeled `TAINTED:external` at the MCP response frame. 2. Runtime a...",
    "condition_of_validity": "The invariant \"taint is monotone under observation transformation\" holds only if all of the following are true: - Every observation transformation is registered with the runtime and declares whether it is *taint-preserving* (output label ⊇ join of input labels) or *taint-clearing* (output label = ⊥, forcing re-derivation). - Taint-clearing transformations ar...",
    "decision_boundary": "The boundary is: **does the runtime treat observation compaction as inside or outside the taint lattice?** - *Inside* (correct): the compactor receives the parent taint set, returns an observation whose taint set is the join of its inputs, and the privileged-tool gate walks the provenance chain. Cost: every summarizer must be taint-aware, and the gate must d...",
    "operational_effect": "When the invariant holds, the operational effect is that a tainted source can be *read* by the planner but cannot be *acted upon* through a privileged tool without an explicit declassification step — a human approval, a policy exception, or a re-fetch through a trusted channel. The planner can still reason over the tainted content; it simply cannot use it to..."
  },
  "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": "767742c76c5265a525d78d12bdd2891e5c258a762517def3fc6ef221a454744e",
    "verified_classes": [
      "TaintLaunderingError",
      "Taint",
      "Observation"
    ],
    "verified_functions": [
      "apply_transform",
      "assert_privileged_args_safe",
      "join"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
