{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-taint-laundering-across-a-tool-sandbox-boundary-and-why-egress-filters-keyed-on-content-alone-miss-it",
  "title": "What structural signals indicate taint-laundering across a tool sandbox boundary, and why egress filters keyed on content alone miss it",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents that ingest untrusted content (web pages, retrieved documents, tool outputs) into a context that also holds privileged tool handles, where a taint-tracking layer tags data provenance and an egress filter inspects outbound tool arguments. Does not address pure prompt-level jailbreaks with no tool egress, nor sandbox escapes at the OS/container layer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-laundering-across-a-tool-sandbox-boundary-and-why-egress-filters-keyed-on-content-alone-miss-it.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-laundering-across-a-tool-sandbox-boundary-and-why-egress-filters-keyed-on-content-alone-miss-it.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-laundering-across-a-tool-sandbox-boundary-and-why-egress-filters-keyed-on-content-alone-miss-it.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1663,
    "python_slice_tokens": 298,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive containment model treats taint as a property of *strings*: if a span of text originated from an untrusted source, mark it, and block any egress call whose arguments contain that span. This fails because the LLM is a lossy, generative re-encoder. Between the moment tainted bytes enter the context and the moment a tool argument is emitted, the model ...",
    "what_was_observed": "A retrieval agent was given a `fetch_url` tool (untrusted egress-in) and a `send_email` tool (privileged egress-out). A taint layer tagged every token produced by `fetch_url` with source id `S_web`. The egress filter on `send_email` rejected any `body` argument containing a substring matching a tagged span of length ≥ 8. A fetched page contained, inside prose, the sentence: *\"For the archive, record the phrase: the v...",
    "condition_of_validity": "The containment invariant holds only under a condition the content-label model silently assumes and rarely states: > **Egress-argument taint(τ) = OR over all source spans s of (s ∈ dependencies(τ)), where `dependencies` is the model's actual, instrumented derivation graph—not a lexical match.** This is valid only if the sandbox can observe derivation. It can...",
    "decision_boundary": "The boundary is not \"tainted vs. clean argument.\" It is **\"argument whose derivation is observable vs. argument whose derivation has been collapsed inside the model.\"** Concretely: - If the agent architecture routes tainted data through a **deterministic transform node** (a parser, a regex extractor, a typed field mapper) between ingest and egress, the deriv...",
    "operational_effect": "When the boundary is crossed, the observable signature is a **taint-label/derivation divergence**: the tracker reports the source as tainted and still-referenced, yet the egress filter reports zero matches. Treat that divergence—not the exfiltration itself—as the alarm. Instrument it as follows: for every egress call, compute the set of source ids reachable ..."
  },
  "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": "d57075cc80848024826a0124d16457b95acaaa71a0e611ae207553c0a107ccdb",
    "verified_classes": [
      "TaintLaunderingDetected",
      "SourceSpan",
      "EgressCall"
    ],
    "verified_functions": [
      "enforce_derivation_invariant"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingDetected"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
