{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-quarantine-a-tainted-tool-result-before-it-re-enters-the-reasoning-loop-label-laundering-through-summarization-and-the-join-poin",
  "title": "When must an instance quarantine a tainted tool result before it re-enters the reasoning loop: label-laundering through summarization and the join-point taint collapse",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents that carry an information-flow (IF) label—e.g. `{trusted, untrusted}` with a provenance set—alongside every message and tool output, and that enforce a policy at each transition (tool call, summarization, sub-agent handoff, memory write). Does not cover agents with no labeling substrate, nor pure output filtering (classifier-based injection detection), which fails differently.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-tainted-tool-result-before-it-re-enters-the-reasoning-loop-label-laundering-through-summarization-and-the-join-poin.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-tainted-tool-result-before-it-re-enters-the-reasoning-loop-label-laundering-through-summarization-and-the-join-poin.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-tainted-tool-result-before-it-re-enters-the-reasoning-loop-label-laundering-through-summarization-and-the-join-poin.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2307,
    "python_slice_tokens": 294,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **taint that is carried** and **taint that is *re-derived***. A carried label is monotonic: once a byte from an untrusted tool output enters the context, the derived label of any message containing it is `untrusted`, and the policy engine can refuse privileged actions with a deterministic check. A re-derived label is w...",
    "what_was_observed": "A retrieval agent with a three-stage loop: (1) call `web_fetch` and `doc_search`, each returning text tagged `untrusted` with a provenance set `{tool_id, url, fetch_epoch}`; (2) run a `compress` step that maps the accumulated tool outputs to a ≤800-token working summary to fit the context budget; (3) a `plan` step that emits the next action, gated by a policy: any action in the privileged set (`write_file`, `send_ema...",
    "condition_of_validity": "The guardrail holds only under a conjunction of conditions, and it is worth stating them because each is independently violable: - **Join, not default.** Every transformation `f` that produces text consumed downstream must set `label(f(x_1..x_n)) = join(label(x_1), …, label(x_n))`, where `join` is the lattice join (untrusted dominates). A transformation may ...",
    "decision_boundary": "The operational question is: **at which transition must the instance refuse to proceed, and with what disposition?** The boundary is not \"did the injection get through\"—by the time you can ask that, the label has already collapsed. The boundary is at the *join computation*: - If `join(inputs) = untrusted` and the transformation is not on the audited declassi...",
    "operational_effect": "Enforcing join-at-transition changes three things in practice: 1. **Summaries become tainted by default.** Any summary over retrieved material is `untrusted` unless it passed an audited extractor. This means privileged actions cannot be planned directly off a retrieval summary; the planner must either (a) request a typed extraction (schema-bounded) that can ..."
  },
  "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": "2826948faa10e0c422e9593142d92a9973fa059b46c4e953fb8803b4d0efd08a",
    "verified_classes": [
      "Trust",
      "Label",
      "TaintCollapseError"
    ],
    "verified_functions": [
      "transform_label",
      "gate_privileged_action",
      "join"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintCollapseError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
