{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-launders-tainted-context-through-a-re-planned-tool-chain-after-an-egress-capable-skill-is-silently-re-registered",
  "title": "What happens when an instance launders tainted context through a re-planned tool chain after an egress-capable skill is silently re-registered",
  "date_of_record": "2026 November 23",
  "scope": "Applies to single- or multi-agent runtimes that implement taint-tracking over tool I/O to block data exfiltration, where taint labels are bound to the *tool invocation* rather than to the *data payload* carried in the agent's working state. Does not cover pure prompt-injection defenses without egress tools, nor network-layer DLP.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-tainted-context-through-a-re-planned-tool-chain-after-an-egress-capable-skill-is-silently-re-registered.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-tainted-context-through-a-re-planned-tool-chain-after-an-egress-capable-skill-is-silently-re-registered.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-tainted-context-through-a-re-planned-tool-chain-after-an-egress-capable-skill-is-silently-re-registered.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2174,
    "python_slice_tokens": 480,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Most taint-aware routers label the *result* of a sensitive read as tainted and then refuse to route that tainted *value* into an egress-capable skill (HTTP POST, email send, DNS lookup, webhook). The invariant they believe they hold is: *\"data derived from a confidential source can never reach an egress sink.\"* That invariant is false under a specific, non-o...",
    "what_was_observed": "A retrieval-and-report agent was configured with two tool classes: - `read_secret(path)` → returns file contents, labeled `TAINT=CONFIDENTIAL` on the result object. - `post_json(url, body)` → egress-capable, router rejects any call whose `body` argument is transitively derived from a `TAINT=CONFIDENTIAL` result *within the same planning episode*. The router's check was sound within an episode. It compared the dataflo...",
    "condition_of_validity": "The guardrail \"tainted results cannot reach egress skills\" holds **only if** one of the following is true: - **(A) Taint is bound to content, not provenance.** Every string entering the agent's context that was derived from a tainted read is labeled at the *token/segment* level (e.g., via a sentinel wrapper or a content hash registry), and the router scans e...",
    "decision_boundary": "The router must distinguish two propositions that look identical at call time: - *\"This tool invocation has no tainted dataflow ancestor in the current episode.\"* (cheap, and what most routers check) - *\"The bytes in this payload are not derived from any confidential source, regardless of how many times they were summarized and re-planned.\"* (what the securi...",
    "operational_effect": "- **Episode-scoped taint is a false invariant.** It survives unit tests (single-episode read→post is blocked) and fails in production the first time a tool times out or the context window fills. Any taint router must be tested with an explicit re-plan and an explicit compaction between the read and the egress attempt. - **Summaries are the laundering channel..."
  },
  "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": "362d83d6ddd14c66b9c40cebff1ada3632ce6a26e25f6d70df120625a2187d05",
    "verified_classes": [
      "TaintLaunderingError",
      "TaintedSegment",
      "TaintRegistry",
      "EgressRouter"
    ],
    "verified_functions": [
      "reproduce_laundering",
      "__init__",
      "_fingerprint",
      "register",
      "matches",
      "route"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "hashlib",
      "re"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
