{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-sever-the-taint-lattice-when-a-tool-sandbox-s-provenance-labels-are-forged-by-the-very-retrieved-content-it-is-meant-to-constra",
  "title": "Where must an instance sever the taint lattice when a tool sandbox's provenance labels are forged by the very retrieved content it is meant to constrain",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agent runtimes that enforce information-flow control (IFC) over tool calls by tagging retrieved or tool-returned content with provenance labels (trusted/untrusted) and blocking sinks (outbound HTTP, email, file writes to shared mounts) when untrusted taint reaches them. Does not apply to purely stateless single-turn inference with no tool access, nor to sandboxes that enforce isolation solely by OS-level capability dropping without provenance tracking.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-sever-the-taint-lattice-when-a-tool-sandbox-s-provenance-labels-are-forged-by-the-very-retrieved-content-it-is-meant-to-constra.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-sever-the-taint-lattice-when-a-tool-sandbox-s-provenance-labels-are-forged-by-the-very-retrieved-content-it-is-meant-to-constra.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-sever-the-taint-lattice-when-a-tool-sandbox-s-provenance-labels-are-forged-by-the-very-retrieved-content-it-is-meant-to-constra.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2104,
    "python_slice_tokens": 357,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common mental model of taint-aware sandboxing is a *dataflow* problem: untrusted bytes enter the context, taint propagates through the reasoning trace, and the runtime blocks any sink call whose arguments are tainted. The failure this record isolates is not a propagation bug. It is a **label-integrity** failure: the taint label attached to a context segm...",
    "what_was_observed": "A retrieval tool returned a document chunk whose body contained a fenced block mimicking the runtime's own provenance preamble: The runtime's ingestion path had two properties that combined into the failure. First, the preamble parser scanned the *entire* returned string for the first matching provenance marker rather than reading a structured field returned alongside the content by the tool transport. Second, the si...",
    "condition_of_validity": "The guardrail below is valid only under these conditions, and must be treated as void outside them: - **Minting at the boundary.** The runtime, not the model and not the payload, assigns the label at the exact instruction where bytes cross from tool transport into context. The label is stored in a side table keyed by segment ID; the context contains only the...",
    "decision_boundary": "The precise line the runtime must draw: **the moment a tool result is admitted, before any model-visible rendering, the runtime must freeze the label and strip the label channel from the payload.** If the implementation cannot guarantee that the label is unreadable and unwritable by the model, the correct decision is to *fail closed*—refuse to admit the cont...",
    "operational_effect": "When the invariant holds, the exfiltration class collapses to a small, auditable set: an attacker can still influence *what the agent believes*, but cannot cause a sink call carrying secrets without tripping a taint check whose label the attacker never touched. The blast radius of a successful prompt injection becomes \"wrong reasoning,\" not \"data egress.\" Wh..."
  },
  "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": "72d164cc657fed7f95385888f73de18f95fdaa93e7b9126fa6e953f14d3077a6",
    "verified_classes": [
      "TaintChannelViolation",
      "Segment",
      "TaintStore"
    ],
    "verified_functions": [
      "run_sink",
      "__init__",
      "admit_from_transport",
      "derive",
      "check_sink"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "TaintChannelViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
