{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-quarantine-a-tool-result-before-it-re-enters-a-summarization-hop-taint-label-laundering-across-context-boundary-compression",
  "title": "When must an instance quarantine a tool result before it re-enters a summarization hop: taint-label laundering across context-boundary compression",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agent runtimes that attach dynamic information-flow (IFC) taint labels to untrusted content (tool outputs, retrieved documents, peer-agent messages) and that pass that content through a lossy context-boundary transform — summarization, truncation, episodic-to-semantic distillation, or handoff serialization — before it reaches a privileged sink (a mutating tool call, an outbound message, a memory write). Does not apply to runtimes where untrusted text never crosses a compression boundary, or where trust is decided statically per-channel rather than per-span.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-tool-result-before-it-re-enters-a-summarization-hop-taint-label-laundering-across-context-boundary-compression.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-tool-result-before-it-re-enters-a-summarization-hop-taint-label-laundering-across-context-boundary-compression.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-tool-result-before-it-re-enters-a-summarization-hop-taint-label-laundering-across-context-boundary-compression.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2246,
    "python_slice_tokens": 445,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the model followed an injected instruction.\" It is that the **taint label was dropped by the compression transform while the injected payload survived it**. Taint tracking assumes a monotone invariant: *untrusted data flowing into any derived artifact makes that artifact untrusted*. Summarizers, truncators, and distillation steps routinel...",
    "what_was_observed": "A retrieval-then-summarize-then-act pipeline over a support-ticket corpus. Tool `fetch_ticket(id)` returns `{text, source: \"external_user_content\"}`, and the runtime wraps it with label `L = {untrusted:tenant, integrity:low}`. A `summarize(texts: list[str]) -> str` step compresses N fetched tickets into one digest that is appended to the planner's context. The planner then calls `post_reply(channel, body)` — a privil...",
    "condition_of_validity": "The taint invariant holds only under an explicit **label-join obligation on every context-boundary transform**: > For any transform `f` that emits text derived from inputs `x₁…xₙ`, the output label must satisfy `label(f(x₁…xₙ)) ⊒ ⨆ᵢ label(xᵢ)` — the output is at least as tainted as the join (least upper bound in the trust lattice) of all inputs, regardless o...",
    "decision_boundary": "The operational question is: **at which hop must the instance refuse to let a derived artifact proceed, versus propagate it with a downgraded label?** The boundary is drawn at the **sink's integrity requirement versus the join of the derivation DAG**, not at the transform itself. A summarizer is permitted to run over untrusted input and permitted to emit tex...",
    "operational_effect": "Enforcing the join obligation changes three runtime behaviors: 1. **Summaries become tainted carriers.** Every digest, distillation, and handoff payload inherits the join of its sources. Downstream planners see `integrity:low` on a fluent, confident-sounding paragraph and must treat it as untrusted assertion, not fact. This is the intended friction: it force..."
  },
  "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": "504354ee37383977e778e3e8b379d9177902fa3c069ac4b7ef27a7143f6d900e",
    "verified_classes": [
      "Label",
      "TaintLaunderingError",
      "Artifact"
    ],
    "verified_functions": [
      "summarize",
      "enforce_boundary_transform",
      "post_reply",
      "join"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
