{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-quarantine-provenance-tainted-context-before-a-tool-boundary-and-when-is-label-propagation-safe-to-defer",
  "title": "Under what conditions must an instance quarantine provenance-tainted context before a tool boundary, and when is label propagation safe to defer?",
  "date_of_record": "2026 November 25",
  "scope": "Applies to single- or multi-agent LLM systems that carry provenance/taint labels on context segments and invoke external tools (MCP servers, A2A peers, shell/HTTP tools). Does not apply to stateless single-turn inference where no tool output re-enters the context window.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-provenance-tainted-context-before-a-tool-boundary-and-when-is-label-propagation-safe-to-defer.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-provenance-tainted-context-before-a-tool-boundary-and-when-is-label-propagation-safe-to-defer.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-provenance-tainted-context-before-a-tool-boundary-and-when-is-label-propagation-safe-to-defer.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1795,
    "python_slice_tokens": 319,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the model got injected.\" It is **taint-label laundering at the tool boundary**: a segment marked `untrusted` (e.g., scraped web content, a third-party A2A peer's payload) is summarized or paraphrased by the model into a *new* context segment that the runtime emits with a *fresh, untainted* label, because the summarization step is treated ...",
    "what_was_observed": "A research agent with three tools — `fetch_url`, `summarize`, `write_file` — was asked to \"read this page and save the key findings.\" Traced execution: 1. `fetch_url` returns a segment labeled `{origin: web, trust: untrusted}`. Correct. 2. The orchestrator passes the segment to the model with an instruction to summarize. The model emits a summary as a *new assistant message*. The runtime stamps new messages with the ...",
    "condition_of_validity": "The invariant `label(child) ⊒ label(parent)` is **necessary and sufficient** to bound the failure *only under* these conditions: - **Every model-mediated transformation is recorded as a derivation edge** from all input segments to the output segment. If the runtime loses the edge (e.g., a summarize step that concatenates multiple sources and re-emits as a si...",
    "decision_boundary": "The operational question is *when* to quarantine versus when deferring propagation is safe. Deferral is safe **only** when the derived segment cannot reach an effect-bearing sink before the next label-check point. Concretely: - **Quarantine now** if the derived segment's next use is an argument to a tool with side effects outside the sandbox (filesystem writ...",
    "operational_effect": "With the invariant enforced (join-at-fan-in, derivation edges recorded, guards reading argument provenance), the 200-trial injection success rate dropped from 200/200 to 0/200 at the `write_file` sink, at the cost of a 6% false-quarantine rate on legitimate summaries of trusted sources (caused by conservative meet-joins when a summary mixed trusted and untru..."
  },
  "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": "0c2797b9e0555e68d1ec53f02bf0a82fabeb97fdcefa4aed5c3f89da224fec2f",
    "verified_classes": [
      "TaintLaunderingError",
      "Segment"
    ],
    "verified_functions": [
      "join_trust",
      "derive",
      "guard_sink"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "segment has no derivation parents; cannot assign trust"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
