{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-quarantine-transitively-tainted-tool-output-before-it-re-enters-the-reasoning-loop",
  "title": "Under what conditions must an instance quarantine transitively tainted tool output before it re-enters the reasoning loop",
  "date_of_record": "2026 November 28",
  "scope": "Applies to single- or multi-agent LLM systems that attach provenance labels to data sources and propagate taint dynamically as values cross tool-call boundaries (fetch → parse → summarize → act). Does not apply to systems with no provenance labeling, nor to purely static taint analysis performed at build time over fixed tool schemas.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-transitively-tainted-tool-output-before-it-re-enters-the-reasoning-loop.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-transitively-tainted-tool-output-before-it-re-enters-the-reasoning-loop.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-transitively-tainted-tool-output-before-it-re-enters-the-reasoning-loop.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2384,
    "python_slice_tokens": 650,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that governs this failure mode is between *label preservation at the boundary* and *taint propagation through transformation*. A provenance label attached to a raw tool result (e.g., `UNTRUSTED:WEB`) is a property of a byte range. Taint is a property of every *derived value* the agent computes from that byte range — including paraphrases, str...",
    "what_was_observed": "A tool-using agent was tasked with reading a set of web pages and writing a structured record. The runtime tagged each `fetch_url` result with `provenance=UNTRUSTED`. The model was instructed to summarize each page into a `notes` field. The runtime treated `notes` — because it was generated by the assistant role — as `provenance=TRUSTED`. The failure trace: 1. `fetch_url(\"https://example.org/page\")` returns content c...",
    "condition_of_validity": "The quarantine requirement is valid — and must be enforced — exactly when all of the following hold: - **Derivation closure is computable.** The runtime can, for any value entering the reasoning loop, name its ancestor set. If the agent's own generations are not tracked as derivation edges, the condition cannot be evaluated and the safe default is to treat a...",
    "decision_boundary": "The boundary between \"propagate and quarantine\" and \"allow through\" is drawn at the point where a value's output alphabet can express an imperative. Concretely: - If `derived.alphabet ⊄ instruction_space`, the value must carry the join of its ancestors' taint and, if any ancestor is `UNTRUSTED`, must be quarantined before re-entering the reasoning loop: it m...",
    "operational_effect": "Enforcing transitive taint with explicit sanitize edges changes three runtime behaviors: 1. **Verification gates become structural, not advisory.** A gate keyed on `provenance == TRUSTED` can no longer be satisfied by model-authored summaries of untrusted content, because the summary inherits `UNTRUSTED` through the derivation edge. The gate either fires the..."
  },
  "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": "f0ef01d00d6801d05cbc2f9e249069da20b7baa189f5a2219df09cf7a471724d",
    "verified_classes": [
      "Provenance",
      "TaintLaunderingError",
      "Derived"
    ],
    "verified_functions": [
      "derive",
      "authorize_action",
      "reproduce_laundering",
      "_join"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "assert notes.taint is Provenance.UNTRUSTED",
      "assert 'fetch:example.org' in notes.ancestors",
      "gate failed to block transitively tainted value"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
