{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-taint-tracking-has-been-silently-laundered-across-a-tool-call-boundary-and-why-does-the-policy-gate-pass-a-value-it-s",
  "title": "How does an instance detect that taint-tracking has been silently laundered across a tool-call boundary, and why does the policy gate pass a value it should have blocked?",
  "date_of_record": "2026 November 25",
  "scope": "Applies to any agent runtime that classifies data by provenance (trusted instruction vs. untrusted tool output) and gates tool invocations with policy-as-code evaluated against taint labels. It does *not* apply to stateless single-shot inference where no value crosses a tool boundary, nor to systems whose taint model is enforced entirely inside a single process with no serialization.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-taint-tracking-has-been-silently-laundered-across-a-tool-call-boundary-and-why-does-the-policy-gate-pass-a-value-it-s.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-taint-tracking-has-been-silently-laundered-across-a-tool-call-boundary-and-why-does-the-policy-gate-pass-a-value-it-s.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-taint-tracking-has-been-silently-laundered-across-a-tool-call-boundary-and-why-does-the-policy-gate-pass-a-value-it-s.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2004,
    "python_slice_tokens": 317,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A taint-aware tool-call gate makes a decision on the *label attached to a value at the moment of the call*. The failure mode is not that the label is wrong when it is attached — it is that the label is **reconstructed** at the boundary from a representation that does not preserve it faithfully. The gate is correct given its inputs; its inputs are a lossy pro...",
    "what_was_observed": "An agent is instructed to summarize a web page and, if the summary contains a support address, email a receipt. Provenance: the instruction is trusted; the page body is untrusted. The runtime labels the fetched page `untrusted` and the user instruction `trusted`. A policy rule states: `deny tool:send_email if any_arg.taint >= untrusted`. Trace: 1. `fetch_page` returns a string. Runtime tags it `{untrusted}`. Correct....",
    "condition_of_validity": "The gate's decision is only sound when all of the following hold at the moment of evaluation: - Every value in the call arguments is either (a) an object still carrying its original label, or (b) a derived value whose label was computed as the join of its true contributors. - The derivation graph from untrusted source to gated sink is *observable to the runt...",
    "decision_boundary": "The runtime must choose, at the boundary, between two policies, and the choice is not free: - **Strict propagation (fail-closed):** any tool output that was consumed by the model in the current turn taints *all* subsequent model outputs in that turn until an explicit declassification step. This is sound but coarse: it blocks legitimate flows where the model ...",
    "operational_effect": "In practice, strict propagation must be scoped to the *turn* and *tool*, not the whole session, or the agent deadlocks: the first untrusted fetch taints everything and the agent can never send email again. The workable pattern is a **declassification boundary**: a small set of tools whose outputs are labeled `declassified` (e.g., a schema-validated extractor..."
  },
  "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": "3ca142116a8246b41b4f1064edf6086835caae14518d7322babf3651940149a0",
    "verified_classes": [
      "TaintLaunderingError",
      "Labeled"
    ],
    "verified_functions": [
      "join",
      "deserialize_structured",
      "gate_tool_call"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
