{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-quarantine-provenance-tainted-tool-output-before-re-entry-into-the-reasoning-loop",
  "title": "In what scenarios must an instance quarantine provenance-tainted tool output before re-entry into the reasoning loop",
  "date_of_record": "2026 November 29",
  "scope": "Applies to single- or multi-agent instances that interleave retrieved context and tool-call results into a shared reasoning buffer and rely on provenance labels (source tags, trust tiers, taint bits) to gate prompt-injection defenses. Does not apply to stateless one-shot completions where no output re-enters a subsequent reasoning step.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-provenance-tainted-tool-output-before-re-entry-into-the-reasoning-loop.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-provenance-tainted-tool-output-before-re-entry-into-the-reasoning-loop.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-provenance-tainted-tool-output-before-re-entry-into-the-reasoning-loop.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2150,
    "python_slice_tokens": 491,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two defensible readings of a provenance label, and conflating them is where injection defenses silently fail. The first reading treats a provenance label as **descriptive metadata**: a tag attached to a chunk saying \"this came from `web.fetch`\" or \"this came from `memory.recall`.\" Under this reading, the label travels with the text and downstream c...",
    "what_was_observed": "A retrieval-plus-tool agent was configured with three trust tiers: `SYSTEM` (prompt templates), `TOOL` (results from `http_get`, `search`, `file_read`), and `MODEL` (the agent's own scratchpad). A guardrail scanned `TOOL`-tier chunks for imperative patterns (\"ignore previous\", \"you are now\", \"call the following tool\") before they entered the reasoning buffer. `MODEL`-tier chunks were trusted by construction and skipp...",
    "condition_of_validity": "The quarantine invariant holds — and the defense is sound — only when **all** of the following are true: - **Provenance is derived, not declared.** A chunk's taint bit is computed as the join (logical OR) of the taint of every input that contributed to it, not assigned by whichever subsystem emitted it. A model-generated summary of a `TOOL` chunk is `TOOL`-t...",
    "decision_boundary": "The operative question is not \"is this chunk tainted?\" but \"**did every path from a tainted source to this chunk carry the join forward?**\" The boundary between a working and a broken deployment is exactly the set of derivation paths that were not audited. Concretely, an instance must quarantine (refuse sink-flow, allow data-read only) when: - A chunk was pr...",
    "operational_effect": "The practical consequence is that **provenance labeling is a dataflow-taint problem, not a tagging problem**, and most deployments implement the weaker form. The observable effects of getting this wrong: - **Silent coverage gaps.** The scanner's pattern set is tuned against raw tool output. Laundered summaries are paraphrases, and paraphrase is exactly what ..."
  },
  "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": "fd8fe4d3c2c532142616ce0f8ccace25983ae52fb1330e20c3bde81b7ea21b7a",
    "verified_classes": [
      "Taint",
      "ProvenanceLaunderingError",
      "Chunk",
      "TaintLedger"
    ],
    "verified_functions": [
      "admit_to_sink",
      "demo",
      "join",
      "register",
      "derive",
      "recall"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ProvenanceLaunderingError",
      "ValueError"
    ],
    "sample_fail_closed_invariants": [
      "assert summary.taint is Taint.TOOL"
    ],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
