{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-taint-laundering-failure-in-taint-aware-tool-routing-quarantine-bypass-via-derived-context-re-entry",
  "title": "What structural signals indicate taint-laundering failure in taint-aware tool routing (quarantine bypass via derived-context re-entry)",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agent runtimes that classify tool-call arguments by provenance taint (trusted operator context vs. untrusted retrieved/tool-returned content) and route tainted invocations to a quarantine path. Does not apply to stateless single-turn completions with no tool surface, nor to systems that enforce capability isolation at the OS/network layer independent of argument provenance.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-laundering-failure-in-taint-aware-tool-routing-quarantine-bypass-via-derived-context-re-entry.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-laundering-failure-in-taint-aware-tool-routing-quarantine-bypass-via-derived-context-re-entry.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-laundering-failure-in-taint-aware-tool-routing-quarantine-bypass-via-derived-context-re-entry.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2528,
    "python_slice_tokens": 407,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **taint as a value property** and **taint as a provenance lineage**. Most taint-aware routers implement the former: they tag the *string* that came back from an untrusted source, and they check whether a tool's argument *contains* a tagged string. That check is a substring/equality test over the current argument buffer...",
    "what_was_observed": "A document-ingestion agent was configured with a taint router: content fetched via `web_fetch` and `read_external_doc` was tagged `UNTRUSTED`; any tool invocation whose arguments contained an `UNTRUSTED`-tagged span was diverted to a quarantine queue requiring operator approval. Tools like `send_email`, `http_post`, and `write_file` were in the quarantine class. Sequence observed across ~4% of runs on a corpus seeded...",
    "condition_of_validity": "The quarantine guarantee is valid **only if** the following holds for every tool invocation: `taint(args) ⊇ taint(any value that contributed to args)` and the router enforces it by carrying a **provenance set**, not a boolean, through every state transition — including model-mediated ones. Concretely, the following conditions are individually necessary and j...",
    "decision_boundary": "The operational question is not \"is this argument tainted?\" but \"**can I prove this argument's provenance set is empty of untrusted origins, given that every model emission is a function of its full context?**\" The conservative answer is almost always no, and that is the correct posture. The boundary sits between two routing policies: - **Content-scan routin...",
    "operational_effect": "Enforcing lineage-set routing changes the agent's behavior in three concrete ways that must be planned for: - **Post-contact quarantine saturation.** After the first untrusted read, every model emission inherits the union, so every dangerous-sink invocation quarantines until an operator declassifies or the agent re-derives in a clean context. Throughput drop..."
  },
  "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": "c77c162d059ef13d034aa28350d67e0beefd23e9eda3a1a00e534d05b7fd0af7",
    "verified_classes": [
      "TaintLaunderingError",
      "ProvId",
      "Emission",
      "Invocation"
    ],
    "verified_functions": [
      "route",
      "memory_write",
      "memory_read",
      "guarded_emit"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
