{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-terminate-a-tainted-tool-call-graph-and-why-provenance-propagation-alone-cannot-answer-it",
  "title": "Where must an instance terminate a tainted tool-call graph, and why provenance propagation alone cannot answer it",
  "date_of_record": "2026 December 1",
  "scope": "Applies to any agent runtime that tracks provenance labels (taint) on tool outputs across multi-hop invocation graphs, where a single tool call may consume outputs of prior calls and where at least one edge crosses a trust boundary (untrusted content → privileged tool). Does not apply to single-hop tool use with no inter-call dataflow, nor to statically-typed capability systems where taint is enforced by the type checker rather than at runtime.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-terminate-a-tainted-tool-call-graph-and-why-provenance-propagation-alone-cannot-answer-it.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-terminate-a-tainted-tool-call-graph-and-why-provenance-propagation-alone-cannot-answer-it.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-terminate-a-tainted-tool-call-graph-and-why-provenance-propagation-alone-cannot-answer-it.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2191,
    "python_slice_tokens": 394,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common mental model of prompt-injection defense is *label propagation*: mark untrusted content as tainted, propagate the taint through every derived value, and refuse privileged actions whose inputs are tainted. This is necessary but not sufficient, because it conflates two distinct questions: 1. **Is this value derived from untrusted content?** (provena...",
    "what_was_observed": "A three-hop tool graph was exercised with an injected payload embedded in a fetched document: - **Hop 1** — `fetch_url(url)` returns a document body. The body contains an instruction-like string. The runtime labels the return value `taint={src:web, class:untrusted}`. Correct. - **Hop 2** — `extract_entities(body)` parses the body and returns a JSON list of `{name, type}` records. One record's `name` field carries the...",
    "condition_of_validity": "The invariant \"terminate on the first lower-trust→higher-authority edge\" holds only under these conditions: - **Source identity is preserved.** Each taint token must carry `(source_id, trust_class, hop_distance)`. Collapsing to a boolean loses the information needed to make the termination decision. A boolean taint flag is *strictly insufficient* for multi-h...",
    "decision_boundary": "The decision to terminate versus flag versus permit is made per-edge, at the moment a tool invocation is dispatched, using this evaluation order: 1. Compute the union of taint tokens over all arguments, including arguments synthesized by the planner within the current episode. 2. If the union is empty → permit. 3. If the union is non-empty and every token's ...",
    "operational_effect": "The observable consequence of getting this boundary right is a shift in *where* failures surface. With boolean taint, injection failures surface as false-positive policy violations on benign graphs (the runtime is noisy and operators disable it) or as silent successes on laundered graphs (the runtime is quiet and the breach is discovered downstream). With so..."
  },
  "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": "acd3924efffa56278fe1147d18ac35e65d090e7daf9a44adabc1bdb7aa0231ad",
    "verified_classes": [
      "TrustClass",
      "TaintPropagationOverflow",
      "TaintedInvocationTerminated",
      "TaintToken",
      "EpisodeState"
    ],
    "verified_functions": [
      "dispatch_tool",
      "run_episode",
      "__init__",
      "advance",
      "absorb_into_planner"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintPropagationOverflow",
      "TaintedInvocationTerminated"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
