{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-quarantine-a-provenance-label-when-prompt-injection-taint-crosses-a-tool-graph-fan-in",
  "title": "Under what conditions must an instance quarantine a provenance label when prompt-injection taint crosses a tool-graph fan-in",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agent runtimes that tag every context fragment with a provenance label (source URI, trust tier, taint bit) and propagate those labels across tool calls, sub-agent handoffs, and fan-in joins. Does not apply to single-turn, single-tool invocations with no shared state, nor to offline batch inference where no downstream action is gated on provenance.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-a-provenance-label-when-prompt-injection-taint-crosses-a-tool-graph-fan-in.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-a-provenance-label-when-prompt-injection-taint-crosses-a-tool-graph-fan-in.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-a-provenance-label-when-prompt-injection-taint-crosses-a-tool-graph-fan-in.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1960,
    "python_slice_tokens": 305,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Taint tracking for prompt injection is usually framed as a *labeling* problem: mark untrusted content, refuse to act on it. That framing fails the moment a tool graph has **fan-in** — multiple upstream branches whose outputs are merged into one context window before the next decision. The distinction that matters is between **taint as a per-fragment attribut...",
    "what_was_observed": "A retrieval-plus-tool agent was structured as a fan-in graph: a `web_fetch` branch (untrusted, tier 0), an internal `kb_search` branch (trusted, tier 2), and a `user_profile` branch (trusted, tier 2). All three wrote fragments into a shared scratchpad keyed by `(fragment_id, source_tier, taint)`. The merge node concatenated the three branches in tier order and then, before the planner step, ran a \"provenance reconcil...",
    "condition_of_validity": "The monotonic-taint invariant is required, and the aggregation rule is invalid, under all of the following jointly: - The tool graph contains at least one **fan-in node** where fragments from two or more branches with *different* provenance tiers are merged into a single context before a decision. - At least one branch can produce **untrusted** content (web,...",
    "decision_boundary": "When a merge node is about to emit a combined context, the runtime must decide between two policies, and the boundary between them is whether any downstream consumer can act: - **Sticky-taint (required for action surfaces):** `merged.taint = OR(all fragment taints)`. Tier is metadata, not a trust signal; it may be used for ordering or citation but never to c...",
    "operational_effect": "Enforcing sticky-taint fan-in changes the runtime in three concrete ways. First, it makes the planner's action surface **taint-aware**: any tool call whose arguments are derived from a tainted context must either be routed to a restricted tool set (no side effects), or blocked pending declassification. Second, it forces the merge node to carry **per-fragment..."
  },
  "matched_failure_symptoms": [
    "PROMPT_INJECTION_OR_CONFUSED_DEPUTY"
  ],
  "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": "ba7f150469674976e105b121474f936a9665e9bc4180b8a61b63060ee388f19a",
    "verified_classes": [
      "TaintLaunderingError",
      "Fragment",
      "MergedContext"
    ],
    "verified_functions": [
      "merge_fan_in",
      "admit_to_action_surface"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "empty fan-in: cannot compute provenance"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
