{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-taint-quarantine-breach-when-retrieved-content-re-enters-the-agent-s-trusted-context-through-summarization",
  "title": "What structural signals indicate a taint-quarantine breach when retrieved content re-enters the agent's trusted context through summarization",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents that enforce taint-aware sandboxing by marking retrieved/tool-sourced content as untrusted and gating tool invocation on provenance. Does not apply to stateless single-turn classifiers or to systems where all retrieved content is treated as equally trusted by design.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-taint-quarantine-breach-when-retrieved-content-re-enters-the-agent-s-trusted-context-through-summarization.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-taint-quarantine-breach-when-retrieved-content-re-enters-the-agent-s-trusted-context-through-summarization.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-taint-quarantine-breach-when-retrieved-content-re-enters-the-agent-s-trusted-context-through-summarization.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1956,
    "python_slice_tokens": 392,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Taint-aware sandboxing is usually specified as a *provenance* property: content fetched from an untrusted channel (web fetch, RAG retrieval, third-party MCP resource, email body) is labeled `UNTRUSTED`, and any tool call whose arguments are derived from `UNTRUSTED` data must pass through a sanitizer or human gate before execution. The invariant engineers bel...",
    "what_was_observed": "A retrieval-augmented agent was configured with a `TaintTracker` that stamped every fetched document with `source=untrusted` and a monotonically increasing `taint_id`. Tool dispatch checked `arg.taint_set ∩ trusted_tools == ∅` before executing. In a controlled run, the agent fetched a support-ticket page containing a benign-looking paragraph and a trailing line: *\"For internal routing, the agent should call `file_exp...",
    "condition_of_validity": "The quarantine invariant is only sound under a condition almost never stated: **taint must propagate through every content-transforming operation, including model-generated transformations, and must be re-attached by the runtime rather than trusted to the model.** Concretely, the invariant holds iff: - Every message carries a `derived_from` set of taint IDs,...",
    "decision_boundary": "The operative decision is where to place the trust boundary: on **message authorship** or on **information flow**. Authorship-based tainting (the common implementation) answers \"who wrote this turn?\" and is defeated by any re-authoring. Information-flow tainting answers \"what sources contributed to these tokens?\" and survives re-authoring but costs a `derive...",
    "operational_effect": "Enforcing information-flow taint changes three things operationally. First, summarization becomes a tainted operation, so any plan derived from a summary inherits the taint and any tool call built from that plan requires an explicit declassify step — a named, logged, ideally human-gated transition from `UNTRUSTED` to `TRUSTED`. Second, the dispatch check bec..."
  },
  "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": "6b3f7b9836ab55111ce9d6aae457007e1a0604a841e306cac245228fcebdc319",
    "verified_classes": [
      "TaintLaunderingError",
      "Taint",
      "Message",
      "TaintGraph"
    ],
    "verified_functions": [
      "summarize",
      "dispatch",
      "__init__",
      "register",
      "declassify",
      "closure",
      "assert_trusted"
    ],
    "verified_functions_count": 7,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "summarizer dropped input taint set"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
