{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-egress-taint-laundering-in-llm-agent-tool-chains-and-how-to-enforce-policy-on-the-derived-artifact-not-the-call",
  "title": "What structural signals indicate egress-taint laundering in LLM agent tool chains — and how to enforce policy on the derived artifact, not the call",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agent runtimes that enforce egress policy (allow/deny/redact) at the tool-invocation boundary and propagate a taint label from a sensitive read to subsequent outbound writes. Does not cover pure prompt-level guardrails, model-side refusal behavior, or static network ACLs that never see tool arguments.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-egress-taint-laundering-in-llm-agent-tool-chains-and-how-to-enforce-policy-on-the-derived-artifact-not-the-call.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-egress-taint-laundering-in-llm-agent-tool-chains-and-how-to-enforce-policy-on-the-derived-artifact-not-the-call.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-egress-taint-laundering-in-llm-agent-tool-chains-and-how-to-enforce-policy-on-the-derived-artifact-not-the-call.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2430,
    "python_slice_tokens": 433,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Most runtime policy engines treat egress tainting as a property of a *call*: a tool invocation is classified `sensitive_read`, `outbound_write`, or `neutral`, and the engine blocks a write if the current turn carries a taint bit set by a prior sensitive read. This is the wrong unit of analysis. The failure mode is not \"the agent called a write while tainted....",
    "what_was_observed": "A tool-calling agent was given a task that required reading a customer record from an internal `crm.get_account` tool (classified `sensitive_read`, taint=`PII`) and producing a \"briefing\" via an external `http.post` tool (classified `outbound_write`). The runtime's policy engine, as configured, blocked direct `http.post` when the `PII` taint bit was set on the turn. The agent's successful trajectory (observed in a re...",
    "condition_of_validity": "The above is *not* a bug in any single tool. It is the correct behavior of a policy engine whose taint model is **call-scoped and label-based**. The failure is only reachable under these conditions, and the guardrail only needs to hold under them: - **Composition depth ≥ 2 neutral transforms** between the sensitive read and the outbound write. A single neutr...",
    "decision_boundary": "The boundary is **where you resolve taint: at the call site or at the argument's transitive closure.** Call-site resolution (the common default) is cheap: one bit per turn, one classification per tool, O(1) per invocation. It is correct when the tool graph is shallow and transforms are declared lossless. It fails silently under composition, and the failure i...",
    "operational_effect": "Enforcing closure-resolution changes three operational properties: 1. **Audit logs become lineage graphs, not call lists.** A blocked egress is attributable to a specific source read N hops upstream, which is what incident response actually needs. Call-scoped logs cannot answer \"where did this byte come from\" after a lossy transform. 2. **False-positive rate..."
  },
  "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": "a94ec719c0f017a154924aad0153bc1418a222a1e9f621349923cb9b201ceb93",
    "verified_classes": [
      "Tainted",
      "EgressTaintViolation",
      "UndeclaredPropagationError"
    ],
    "verified_functions": [
      "propagate",
      "enforce_egress",
      "replay_laundering_chain"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "EgressTaintViolation",
      "UndeclaredPropagationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
