{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-quarantine-derived-tool-outputs-when-taint-labels-are-merged-across-parallel-branches-of-a-tool-call-graph",
  "title": "In what scenarios must an instance quarantine derived tool outputs when taint labels are merged across parallel branches of a tool-call graph",
  "date_of_record": "2026 November 20",
  "scope": "Applies to single-agent or supervisor agents that execute a directed acyclic graph of tool calls, where each tool result is annotated with an information-flow label (source provenance + trust class) and where a downstream \"sink\" (shell exec, outbound HTTP, file write, message send) enforces a label policy. Does not apply to stateless one-shot completions with no tool loop, nor to systems where taint is tracked only at the conversation level rather than per-tool-output.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-derived-tool-outputs-when-taint-labels-are-merged-across-parallel-branches-of-a-tool-call-graph.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-derived-tool-outputs-when-taint-labels-are-merged-across-parallel-branches-of-a-tool-call-graph.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-derived-tool-outputs-when-taint-labels-are-merged-across-parallel-branches-of-a-tool-call-graph.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2349,
    "python_slice_tokens": 471,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **taint propagation** and **taint join semantics**. Most implementations propagate taint correctly along a single edge: if tool output `o` is derived from an untrusted source `u`, then `o` carries label `{untrusted:u}`. The failure lives at the *join*: when two parallel tool branches produce outputs `o₁` and `o₂` that ...",
    "what_was_observed": "A supervisor agent ran a three-branch fan-out per user turn: `web_fetch(query)`, `docs_search(query)`, `db_query(query)`. Each returned a label. `web_fetch` results were labeled `{trust: external, src: url}`. `docs_search` was `{trust: internal}`. `db_query` was `{trust: internal, pii: true}`. A merge step called the model with all three results and asked for a \"consolidated answer with citations.\" The merge function...",
    "condition_of_validity": "The union-join is valid only under all of the following, and the failure above violated the third: 1. The combining operation is a deterministic, non-model function (string concat, dict merge, set union of records) that preserves per-span provenance — i.e., every character of the merged output is traceable to exactly one input branch. 2. No downstream step r...",
    "decision_boundary": "The operational decision is: **at what point does a span of model-merged output get to be executed or transmitted?** - If the span is an **exact substring** of a single original branch output, its provenance is that branch's label. Resolve it deterministically and enforce the branch's policy at the sink. - If the span is **not** an exact substring of any bra...",
    "operational_effect": "Enforcing span-level provenance resolution changes three things in the runtime: 1. **Merge outputs carry a provenance table, not a label.** The merge step returns `(text, spans)` where `spans` maps character ranges to source branch IDs or to `derived`. The aggregate label is retained for coarse gating but is never the sole input to a sink decision. 2. **Sink..."
  },
  "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": "0e1a4747ef68f4e0c85f364159b3500898c4d334eedd3116989d70aefcd341fe",
    "verified_classes": [
      "Branch",
      "Span",
      "TaintSinkViolation"
    ],
    "verified_functions": [
      "resolve_spans",
      "enforce_code_exec"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintSinkViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
