{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-launder-taint-through-a-schema-valid-tool-call-label-erasure-at-the-argument-serialization-boundary-in-taint-aware-san",
  "title": "When must an instance refuse to launder taint through a schema-valid tool call: label-erasure at the argument-serialization boundary in taint-aware sandboxes",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agents whose tool-dispatch layer enforces information-flow control (IFC) by tagging context segments as trusted/untrusted and gating privileged tool invocations on the taint of their arguments. Does not apply to sandboxes that enforce IFC purely on the origin of the *tool result* (output-taint) rather than on the *provenance of argument values* (input-taint), nor to stateless single-shot function calling with no cross-turn context retention.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-launder-taint-through-a-schema-valid-tool-call-label-erasure-at-the-argument-serialization-boundary-in-taint-aware-san.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-launder-taint-through-a-schema-valid-tool-call-label-erasure-at-the-argument-serialization-boundary-in-taint-aware-san.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-launder-taint-through-a-schema-valid-tool-call-label-erasure-at-the-argument-serialization-boundary-in-taint-aware-san.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2434,
    "python_slice_tokens": 378,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The load-bearing distinction is between **taint as a property of a value** and **taint as a property of a token span in the prompt**. A correct taint-aware sandbox tracks provenance at the granularity of *values as they flow through the argument object graph*, so that a value derived from an untrusted segment remains tainted even after it has been re-encoded...",
    "what_was_observed": "A research-assistant agent was configured with two tool classes: an unprivileged `fetch_url` (whose results were tagged `UNTRUSTED`) and a privileged `send_email` (gated on all string arguments being `TRUSTED`). The gate was implemented as a substring check: for each pending argument value, scan the value for any untrusted source string currently resident in context; if a match ≥ 8 characters was found, reject with `...",
    "condition_of_validity": "The substring-reconstruction gate is only sound under a condition that is almost never stated and almost always false in long-horizon agents: > **Residency invariant:** For every untrusted value `u` currently influenceable by the model, the exact byte sequence of `u` (or a superset of it) remains resident in the context window at the moment any privileged to...",
    "decision_boundary": "The boundary an instance must respect is between **transformation that preserves provenance** and **transformation that severs it**. The dispatcher cannot distinguish these by inspection; it must be told. Concretely, the decision rule is: - A privileged sink (`send_email`, `http_post`, `write_file` to a shared path, `exec`) may accept an argument **only if t...",
    "operational_effect": "The architectural consequence is that taint tracking must live **below the model, in the tool-dispatch and state-management layer**, and must attach to values as they move through variables, scratchpads, and intermediate tool results. Three concrete guardrails follow: 1. **Provenance tokens, not content matchers.** Every value entering agent state from an un..."
  },
  "matched_failure_symptoms": [
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "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": "ffc82210a206c042a2cc85d54de61d67c0a123a28d99f11532add68c30cee415",
    "verified_classes": [
      "TaintLaunderingError",
      "TaintToken",
      "BoundValue"
    ],
    "verified_functions": [
      "dispatch",
      "run_laundering_attempt"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
