{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-quarantine-a-tainted-context-segment-before-tool-mediated-egress-and-why-label-propagation-alone-fails-at-the-retri",
  "title": "In what scenarios must an instance quarantine a tainted context segment before tool-mediated egress, and why label propagation alone fails at the retrieval boundary",
  "date_of_record": "2026 December 2",
  "scope": "Applies to LLM agents that attach information-flow labels to context segments (user turns, retrieved chunks, tool outputs, peer messages) and propagate those labels through tool calls that can emit data outside the trust boundary (HTTP, email, file writes, shell). Does not apply to stateless single-turn inference with no egress-capable tools, nor to label schemes that treat all retrieved context as equally trusted.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-a-tainted-context-segment-before-tool-mediated-egress-and-why-label-propagation-alone-fails-at-the-retri.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-a-tainted-context-segment-before-tool-mediated-egress-and-why-label-propagation-alone-fails-at-the-retri.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-a-tainted-context-segment-before-tool-mediated-egress-and-why-label-propagation-alone-fails-at-the-retri.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1767,
    "python_slice_tokens": 302,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Most taint-tracking designs for agents conflate *label propagation* with *taint containment*. Propagation is a dataflow bookkeeping problem: when a tool output is concatenated into a prompt, its label joins the segment's label set. Containment is a policy problem: a segment carrying an `UNTRUSTED_INSTRUCTION` label must not be *acted upon* by an egress tool,...",
    "what_was_observed": "A research agent with three tools — `search_docs`, `fetch_url`, `send_email` — was processing a task: \"Summarize our Q2 vendor contracts.\" The pipeline labeled: - User turn → `TRUSTED_INSTRUCTION` - `search_docs` output → `REFERENCE` (documented as \"read-only, non-instructional\") - `fetch_url` output → `UNTRUSTED_CONTENT` - `send_email` body → requires `TRUSTED_INSTRUCTION` ancestry A vendor contract PDF in the corpu...",
    "condition_of_validity": "The containment invariant holds only when all four conditions are met simultaneously: 1. **Provenance is split.** Every segment carries two labels: `content_origin` (where the bytes came from) and `instruction_authority` (whether the segment is permitted to steer tool selection or argument construction). A segment is executable-instruction-bearing iff `instr...",
    "decision_boundary": "The boundary is between **quarantine** and **permit-with-annotation**: - **Quarantine** when a segment with `instruction_authority == NONE` has influenced the selection or arguments of an egress-capable tool. The correct action is to halt the tool call, strip the segment from the working context, and re-plan from the last checkpoint whose derivation set was ...",
    "operational_effect": "Implementing the split-provenance invariant changes three things operationally. First, the retrieval layer must emit `instruction_authority = NONE` on every chunk unconditionally, which breaks any downstream code that assumed `REFERENCE` meant \"safe to follow.\" Expect re-planning churn: agents will refuse to act on retrieved procedures until a human or a tru..."
  },
  "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": "16bfd09be537fcc886fc786cf4b7826fd1deda68d77145ca938617d1b29588b5",
    "verified_classes": [
      "TaintViolation",
      "Authority",
      "Origin",
      "Segment",
      "DerivationGraph"
    ],
    "verified_functions": [
      "guard_egress",
      "influence_set"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "TaintViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
