{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-leak-tainted-data-through-a-tool-call-that-passed-every-static-policy-check",
  "title": "Why does an instance leak tainted data through a tool call that passed every static policy check",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agent runtimes that propagate taint labels across tool invocations and enforce egress policy at the tool-call boundary. Does not cover purely stateless single-turn inference, nor model-internal alignment failures independent of the runtime's data-flow tracking.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-leak-tainted-data-through-a-tool-call-that-passed-every-static-policy-check.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-leak-tainted-data-through-a-tool-call-that-passed-every-static-policy-check.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-leak-tainted-data-through-a-tool-call-that-passed-every-static-policy-check.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1490,
    "python_slice_tokens": 249,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not a missing policy rule. It is a **label-laundering boundary mismatch** between where taint is *attached* (the value the model emits into a tool argument) and where taint is *checked* (the tool schema's declared parameter set). A taint label rides on the *provenance of a value*, but a tool call is serialized as a fresh, model-authored argume...",
    "what_was_observed": "A support-triage agent was given read access to a `get_customer_record` tool returning structured PII, and write access to `post_to_ticketing_system`. The runtime labeled every field of the record `PII`. Egress policy: `post_to_ticketing_system` may not receive `PII`-labeled arguments. The agent was asked to draft a ticket. It called `get_customer_record(id=8812)`, receiving `{\"name\": \"A. Okafor\", \"email\": \"a.okafor@...",
    "condition_of_validity": "The substring/equality propagation model is only sound under a condition that agent runtimes routinely violate: **the model must not transform labeled data before emitting it into a sink argument.** That condition holds for tool-to-tool passthrough where the runtime itself moves the value (e.g., a structured field forwarded verbatim). It fails the moment the...",
    "decision_boundary": "The runtime must choose, per tool call, between two enforcement postures: - **Value-provenance enforcement** (precise, cheap, unsound against model transformation): propagate labels by matching argument values against labeled source values. Valid only for tools whose arguments are runtime-constructed, never model-authored. - **Turn-provenance enforcement** (...",
    "operational_effect": "Under value-provenance, egress controls give false assurance: they catch verbatim leaks and miss every paraphrased one, and—critically—the *auditor replay uses the same lossy matcher*, so the verification layer confirms the leak as clean. This is a silent failure: no exception, no log line, a green policy check over exfiltrated data. Under turn-provenance, t..."
  },
  "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": "a36803c21b775ccfcf921cf178d105eba0a55761f18a896f0ed8867098541d70",
    "verified_classes": [
      "TaintEgressViolation"
    ],
    "verified_functions": [
      "enforce_egress"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintEgressViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
