{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-re-taint-an-egress-approved-argument-the-laundering-hazard-at-taint-aware-egress-policy-enforcement-points",
  "title": "When must an instance re-taint an egress-approved argument: the laundering hazard at taint-aware egress policy enforcement points",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agent runtimes that enforce egress policy at a message-interception layer (MCP tool-call arguments and A2A task payloads) using taint labels propagated from untrusted sources. Does not apply to runtimes that perform whole-payload classification at the network boundary only, nor to pure capability-token systems with no data-flow labels.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-re-taint-an-egress-approved-argument-the-laundering-hazard-at-taint-aware-egress-policy-enforcement-points.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-re-taint-an-egress-approved-argument-the-laundering-hazard-at-taint-aware-egress-policy-enforcement-points.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-re-taint-an-egress-approved-argument-the-laundering-hazard-at-taint-aware-egress-policy-enforcement-points.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2134,
    "python_slice_tokens": 318,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A taint-aware egress allowlist has two logically distinct jobs: (a) deciding whether a *value* is permitted to leave the instance, and (b) deciding whether the *provenance* of that value is permitted to leave. Most implementations conflate them by evaluating the allowlist against the argument's current value and then clearing or downgrading the taint label o...",
    "what_was_observed": "A runtime interposing on MCP `tools/call` and A2A `message/send` maintained a per-argument taint lattice (`trusted ⊑ internal ⊑ untrusted`) and an egress allowlist keyed on `(tool_name, argument_path, pattern)`. On a call to `http.fetch` with `url` matching the allowlist, the argument was permitted and its taint set to `trusted` for the remainder of the turn. The intended invariant was: *an emitted argument's label m...",
    "condition_of_validity": "The laundering hazard is *live* only when all four of the following hold simultaneously; if any fails, the enforcement point is sound for this class: - **C1 (allowlisted transform exists):** at least one tool on the egress allowlist produces output that is a deterministic or near-deterministic function of a tainted input (normalizers, parsers, hashers, forma...",
    "decision_boundary": "The boundary between a sound and an unsound egress decision is not \"is this tool allowlisted\" but **\"does this emission reduce the provenance label of any contributing value, and if so, is that reduction declared?\"** Operationally: - An emission that preserves or raises the label (`emitted_label ⊒ lub(inputs)`) is *sound by construction*; the sink's value-ke...",
    "operational_effect": "The practical consequence is that value-keyed allowlists on egress provide **no exfiltration guarantee** in the presence of allowlisted transforms; they provide only a *shape* guarantee (the emitted string looks like an allowed URL). An adversary who can place content in the context window — via retrieval, tool output, or an A2A peer message — can route that..."
  },
  "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": "e5854ad6282016b620367d5f06551ea3352410d70f8ca24691d85eb490d16f03",
    "verified_classes": [
      "TaintLaunderingError",
      "AllowlistEntry",
      "ProvenanceLedger"
    ],
    "verified_functions": [
      "enforce_egress",
      "join"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
