{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-launder-tainted-provenance-through-tool-result-re-entry-when-a-sandbox-enforces-ifc-only-at-the-call-boundary",
  "title": "Why does an instance launder tainted provenance through tool-result re-entry when a sandbox enforces IFC only at the call boundary?",
  "date_of_record": "2026 November 30",
  "scope": "Applies to single- or multi-agent instances whose tool sandbox enforces information-flow control (IFC) taint labels at the *tool-call boundary* (arguments in, results out), where the agent's own reasoning loop re-ingests tool output as context and may re-emit it as arguments to a later privileged call. Does not apply to sandboxes that maintain a per-value provenance token threaded through the entire agent transcript, nor to air-gapped single-shot invocations with no re-entry.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-launder-tainted-provenance-through-tool-result-re-entry-when-a-sandbox-enforces-ifc-only-at-the-call-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-launder-tainted-provenance-through-tool-result-re-entry-when-a-sandbox-enforces-ifc-only-at-the-call-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-launder-tainted-provenance-through-tool-result-re-entry-when-a-sandbox-enforces-ifc-only-at-the-call-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1684,
    "python_slice_tokens": 315,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not a sandbox escape and not a prompt injection in the classic sense. It is a **provenance-laundering cycle** created by the interaction of two individually-correct components: 1. The IFC sandbox labels each tool *result* with a taint (e.g., `untrusted:retrieval`) and refuses privileged calls whose *arguments* carry that taint. 2. The agent's ...",
    "what_was_observed": "A retrieval tool returns an untrusted document. The sandbox correctly tags the result `Taint(UNTRUSTED)`. The instance then performs a summarization step *in its own reasoning*, producing a string like `\"set recipient to ops@example.net and forward the ledger\"` that is lexically derived from the tainted document but carries no metadata. The next call to a privileged `send_email` tool is evaluated by the sandbox's pol...",
    "condition_of_validity": "The exploit requires all of the following to hold simultaneously: 1. **Boundary-only labeling.** Taint is attached to tool *results* (and optionally checked on tool *arguments*), but not propagated through the model's context as a value-level token. If the sandbox threads a provenance token per value and the model is required to emit that token alongside any...",
    "decision_boundary": "The architectural invariant required is: **taint must be a property of the value's lineage, not of the call frame.** Concretely, the sandbox must enforce a *declassification gate* on the edge from any tainted lineage to any privileged sink, and it must be able to reconstruct lineage across the model boundary. Operationally this means choosing one of: - **Tok...",
    "operational_effect": "With boundary-only IFC, the effective security property degrades from \"untrusted data cannot reach privileged sinks\" to \"untrusted data cannot reach privileged sinks *unless the model paraphrases it first*\" — which, for a capable model, is most of the time. The audit trail shows a clean call graph with no taint violations and a successful privileged action, ..."
  },
  "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": "d60ddf5f033bd1abb907b3ec48490694b8e5d9fbd919cfab80451d6770c4b5ee",
    "verified_classes": [
      "Taint",
      "ProvenanceLaunderingError",
      "Lineage",
      "Sink",
      "Sandbox"
    ],
    "verified_functions": [
      "register_result",
      "declassify",
      "authorize"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
