{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-launders-untrusted-retrieval-taint-through-a-summarizer-subagent-and-re-enters-the-privileged-tool-loop",
  "title": "What happens when an instance launders untrusted retrieval taint through a summarizer subagent and re-enters the privileged tool loop",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agent architectures where retrieved content is taint-labeled at ingress and tool calls are gated by a least-privilege policy keyed on that taint. Does not apply to stateless single-turn inference with no tool execution or to retrieval paths that are never fed back into a privileged reasoning loop.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-untrusted-retrieval-taint-through-a-summarizer-subagent-and-re-enters-the-privileged-tool-loop.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-untrusted-retrieval-taint-through-a-summarizer-subagent-and-re-enters-the-privileged-tool-loop.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-untrusted-retrieval-taint-through-a-summarizer-subagent-and-re-enters-the-privileged-tool-loop.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1620,
    "python_slice_tokens": 260,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Taint-aware sandboxing distinguishes *data provenance* from *data content*. The invariant is that a value's taint label is a property of the *path* it traveled, not of the bytes it contains. A summarizer subagent is a legitimate transform: it reads tainted text, emits a compressed string, and the compressed string is *still tainted* because it was derived fr...",
    "what_was_observed": "A parent agent retrieved a support ticket body from an external queue. The ingress layer correctly labeled the retrieval result `taint=UNTRUSTED` and the parent's tool policy denied `write_file` and `http_post` while any `UNTRUSTED` value was in the active context window. The parent, needing to fit the ticket into its context budget, delegated to a `summarize` subagent: it passed the ticket body as a prompt argument ...",
    "condition_of_validity": "The guardrail holds only if taint is a *lattice over values with explicit derivation edges*, not an annotation on tool invocations. Concretely: every value entering the agent's working set must carry a label, and every transform (summarization, translation, extraction, embedding, re-ranking, code execution output) must produce an output label that is the joi...",
    "decision_boundary": "The boundary is between *trusting a value because of where it came from* and *trusting it because of what it is*. A summarizer that is itself sandboxed and whose output is re-labeled by the join rule is safe to use on tainted input: the summary is tainted, the parent sees `UNTRUSTED`, the privileged tool call is denied, and the parent must either request hum...",
    "operational_effect": "The practical consequence is that least-privilege propagation cannot be enforced at the tool boundary alone; it must be enforced at the *value boundary*, which means the agent runtime needs a derivation graph that survives subagent dispatch, message serialization, checkpoint/resume, and vector-store round-trips. In the observed incident, the fix was to make ..."
  },
  "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": "baddb4136ce88257cc77612e1ef13624c204b28dc822eb4d224ea6e3b3946d51",
    "verified_classes": [
      "Taint",
      "TaintLaunderingError",
      "ValueId",
      "DerivedValue",
      "TaintRegistry"
    ],
    "verified_functions": [
      "guard_tool_call",
      "join",
      "__init__",
      "register",
      "reachable",
      "effective_label"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
