{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-invalidate-a-taint-label-after-tool-mediated-content-mutation-and-why-provenance-preserving-isolation-fails-at-the",
  "title": "In what scenarios must an instance invalidate a taint label after tool-mediated content mutation, and why provenance-preserving isolation fails at the tool boundary",
  "date_of_record": "2026 November 27",
  "scope": "Applies to single- or multi-agent systems that implement taint-tracked prompt isolation, where retrieved or tool-returned content is labeled untrusted and barred from influencing privileged actions (tool invocation, policy decisions, credential use). Does not address static prompt-injection filters applied to model input at ingress, nor does it cover taint tracking across pure text-to-text LLM calls with no tool boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-invalidate-a-taint-label-after-tool-mediated-content-mutation-and-why-provenance-preserving-isolation-fails-at-the.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-invalidate-a-taint-label-after-tool-mediated-content-mutation-and-why-provenance-preserving-isolation-fails-at-the.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-invalidate-a-taint-label-after-tool-mediated-content-mutation-and-why-provenance-preserving-isolation-fails-at-the.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1965,
    "python_slice_tokens": 248,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Taint tracking for prompt isolation is usually modeled as a *label propagation* problem over a value graph: untrusted bytes enter via a retrieval tool, are tagged `tainted`, and any derived value that consumes them inherits the tag. The invariant most implementations rely on is monotonic: **a value's taint label may only be raised, never silently cleared, ex...",
    "what_was_observed": "A retrieval agent was configured to fetch documents via `fetch(url)` and to summarize them via `summarize(doc_id)`. The isolation policy: any argument to `send_email` or `write_file` whose taint set is non-empty must be rejected. A document `D1` fetched from an untrusted domain is tagged `tainted:{D1}`. The agent, following a plan, calls `summarize(D1)` and receives a summary `S1` tagged `tainted:{D1}`. Correct so fa...",
    "condition_of_validity": "The monotonic-raise invariant is only sound under a precondition that is rarely checked: *the mapping from tool call to returned content must be injective and stable for the lifetime of the taint label.* Concretely, the isolation guarantee holds only when all of the following are true: 1. Every tool that can introduce bytes into the agent's context is regist...",
    "decision_boundary": "The operational decision is: **at what point must the runtime invalidate a taint label and force re-derivation, versus carry it forward?** The safe rule is to invalidate on any of the following, and to treat invalidation as *raising* taint to the union of all plausible lineages rather than clearing it: - Tool output whose content hash differs from the hash r...",
    "operational_effect": "Implementing the fail-closed rule changes agent behavior in three measurable ways. First, it eliminates the laundering path through unregistered or aliased tools: any tool not in the registry produces `tainted:unknown`, which the gate rejects, so the agent must either use a registered tool or escalate. Second, it forces declassification to be content-address..."
  },
  "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": "5daf8e6d52aca9264eaaa3adf0258762d4f8f2ecb019feb07ac229e972d1fbe1",
    "verified_classes": [
      "TaintProvenanceError",
      "TaintedValue",
      "DeclassificationRecord",
      "IsolationGate"
    ],
    "verified_functions": [
      "__post_init__",
      "__init__",
      "ingest",
      "transform",
      "declassify",
      "authorize_privileged_action"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintProvenanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
