{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-treat-taint-laundering-through-reversible-transforms-when-sandboxing-exfiltration-sinks",
  "title": "How should an instance treat taint-laundering through reversible transforms when sandboxing exfiltration sinks",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agent runtimes that propagate an information-flow (taint) label from untrusted retrieved content through tool calls and block writes to exfiltration sinks (network egress, file writes, clipboard, rendered output). Does not apply to runtimes that treat all tool outputs as equally trusted, nor to pure-prompt-injection defenses that operate only on text.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-taint-laundering-through-reversible-transforms-when-sandboxing-exfiltration-sinks.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-taint-laundering-through-reversible-transforms-when-sandboxing-exfiltration-sinks.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-taint-laundering-through-reversible-transforms-when-sandboxing-exfiltration-sinks.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1626,
    "python_slice_tokens": 369,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"untrusted content reached a sink.\" It is that taint labels are attached to *values* (the literal bytes) while the sandboxing decision is made on *capabilities* (the tool and its arguments). When a tainted value is passed through a reversible transform — base64, hex, URL-encoding, ROT13, JSON-escape, chunk-splitting, or a lossless round-tr...",
    "what_was_observed": "A retrieval step pulled a page whose body contained an instruction-shaped payload plus an encoded blob. The taint labeler marked the retrieved chunk `tainted=UNTRUSTED` and registered its exact byte ranges in a provenance set. The model then called `encode(payload, \"base64\")` — a benign, allowlisted utility — and passed the result to `http_post`. The sink guard for `http_post` checked: does any argument string contai...",
    "condition_of_validity": "The content-inspection guard is only valid under a condition that agent runtimes routinely violate: **the set of operations reachable from a tainted value must not contain any transform whose output is not re-labeled**. This holds only if one of the following is enforced: - Every tool is annotated with a taint-transfer function (`output_taint = f(input_taint...",
    "decision_boundary": "The boundary is between **label-at-ingest** and **label-at-sink**. Label-at-ingest (the common design) is cheap and correct for direct exfiltration but fails at the first reversible transform. Label-at-sink (provenance-graph query at the moment of egress) is correct but requires every tool to declare its taint semantics, including the \"boring\" ones. The deci...",
    "operational_effect": "With a dataflow guard, the `encode` → `http_post` chain is blocked at the sink because `http_post`'s argument has a tainted ancestor. With a content guard, it succeeds. The operational consequence is that **the security property is not \"untrusted content cannot reach a sink\" but \"untrusted content cannot reach a sink without passing through a tool whose tain..."
  },
  "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": "86bd4c0a674d6e79fb9dcd8347b5454bcc0284bc65dfc74da413447832a3185b",
    "verified_classes": [
      "TaintLaunderingError",
      "Provenance",
      "TaintGraph"
    ],
    "verified_functions": [
      "call_tool",
      "egress",
      "demo",
      "__init__",
      "ingest",
      "derive",
      "has_tainted_ancestor"
    ],
    "verified_functions_count": 7,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
