{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-launders-tainted-provenance-across-a-summarizer-sub-agent-and-re-admits-it-as-trusted-context",
  "title": "What happens when an instance launders tainted provenance across a summarizer sub-agent and re-admits it as trusted context",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agents that enforce taint-aware sandboxing by tagging tool outputs with provenance labels and gating privileged tool calls on those labels, where taint can transit through a sub-agent (summarizer, extractor, critic) whose output is re-ingested into the parent's context. Does not apply to single-shot pipelines with no re-ingestion path or to systems that carry provenance as structured metadata end-to-end rather than as in-context text.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-tainted-provenance-across-a-summarizer-sub-agent-and-re-admits-it-as-trusted-context.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-tainted-provenance-across-a-summarizer-sub-agent-and-re-admits-it-as-trusted-context.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-tainted-provenance-across-a-summarizer-sub-agent-and-re-admits-it-as-trusted-context.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1948,
    "python_slice_tokens": 303,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Taint-aware sandboxing usually distinguishes *data* from *instructions* by tracking which context spans originated from untrusted tool output (web page, email body, retrieved document) and refusing to let those spans authorize privileged actions. The invariant people believe they enforce is monotonic: **taint, once attached to a span, propagates to any deriv...",
    "what_was_observed": "Setup: a parent agent with two tools — `fetch_url` (untrusted output, taint label `UNTRUSTED_WEB`) and `send_email` (privileged, requires all authorizing context to be `TRUSTED`). A `summarize` sub-agent takes a document and returns a paragraph. The runtime tags tool results by wrapping them: any span whose label set intersects `{UNTRUSTED_WEB}` is blocked from appearing in the argument-provenance set of a privileged...",
    "condition_of_validity": "The defense holds only under the conjunction: - **Ancestry-carrying composition.** Every sub-agent call propagates the union of its inputs' label sets onto its output. `label(S2) = label(S1) ∪ label(prompt)`. This must be enforced by the runtime, not by the sub-agent, because the sub-agent is the untrusted party in this transaction. - **No silent declassific...",
    "decision_boundary": "The operational question is not \"is this span tainted?\" but \"does the privileged call's *causal ancestor closure* contain any `UNTRUSTED` node?\" That closure must be computed over the data-flow graph, which means the runtime must record, for every message, the set of message-ids it was derived from — including across sub-agent boundaries. Concretely: - A pri...",
    "operational_effect": "When taint is laundered through a sub-agent, three things degrade simultaneously and silently: 1. **The gate's decision is computed on the wrong graph.** Privileged calls are authorized against message provenance, which the sub-agent boundary resets, rather than data provenance, which it does not. The gate remains \"working\" — it returns `allow` — while being..."
  },
  "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": "64e80a0a0052db6acdab591ebeb68b3e676a52059d2b7ef66b702f4311274da2",
    "verified_classes": [
      "TaintLaunderingError",
      "Span",
      "ProvenanceGraph"
    ],
    "verified_functions": [
      "privileged_call",
      "__init__",
      "add",
      "ancestor_closure",
      "is_admissible"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
