{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-quarantine-a-tainted-tool-result-before-it-re-enters-the-reasoning-loop-rather-than-trusting-downstream-re-derivati",
  "title": "In what scenarios must an instance quarantine a tainted tool result before it re-enters the reasoning loop, rather than trusting downstream re-derivation through a multi-hop tool graph?",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents that execute tool call graphs where results from one tool feed as arguments into subsequent tool calls (multi-hop), and where any hop may ingest untrusted external content. Does not apply to single-hop, read-only tool invocations with no external-content ingestion, or to agents whose tool outputs are cryptographically signed by a trusted origin and verified at every hop.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-a-tainted-tool-result-before-it-re-enters-the-reasoning-loop-rather-than-trusting-downstream-re-derivati.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-a-tainted-tool-result-before-it-re-enters-the-reasoning-loop-rather-than-trusting-downstream-re-derivati.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-a-tainted-tool-result-before-it-re-enters-the-reasoning-loop-rather-than-trusting-downstream-re-derivati.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2012,
    "python_slice_tokens": 399,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive mental model treats prompt-injection taint as a *content* property: \"this string contains an injection payload, so it is tainted.\" The operational reality is that taint is a *provenance* property that must propagate through the call graph as a **label on data flow**, not as a pattern match on bytes. The boundary failure examined here is the point a...",
    "what_was_observed": "A three-hop tool graph: `fetch_page(url) → summarize(text) → extract_entities(summary) → write_to_memory(entities)`. The `fetch_page` result contained an injected instruction embedded in a low-salience region (a footnote in fetched HTML) telling the summarizer to omit a caveat and to append a fabricated entity. The summarizer, running as a separate LLM call, obeyed the injected instruction because it received the raw...",
    "condition_of_validity": "The structural-join invariant holds — and the failure is real — only under the following conditions, all of which must be checked before applying the guardrail: 1. **At least one hop performs a lossy semantic transformation** (LLM summarize, translate, embed, classify, or any operation that can convert an instruction into an assertion). If every hop is a pur...",
    "decision_boundary": "The decision the agent must make at each hop boundary is: **does the output of this hop inherit the taint of its inputs, or is it re-evaluated on its own merits?** The boundary is drawn as follows: - **Inherit (structural join):** whenever the hop's output is *derived from* a tainted input through any transformation that can carry semantic influence. This is...",
    "operational_effect": "When the structural-join invariant is enforced, the operational consequence is that a tainted value can never be silently promoted to trusted: every derived value carries the union of its ancestry's labels, so the `write_to_memory` hop sees `entities: tainted` and routes to quarantine rather than persistence. The cost is that legitimate derivations of tainte..."
  },
  "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": "d5d16108a6bd7b6e7f47d38df9fae504a9a0f632f9731531a41a50d5652566ee",
    "verified_classes": [
      "TaintViolation",
      "Label",
      "TaintedValue",
      "PureStructuralHop",
      "SemanticHop"
    ],
    "verified_functions": [
      "admit_to_reasoning_loop",
      "_summarize",
      "join",
      "apply",
      "apply"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintViolation"
    ],
    "sample_fail_closed_invariants": [
      "structural hop lacks non-influence proof"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
