{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-re-derive-taint-provenance-after-a-tool-call-chain-crosses-a-retrieval-boundary",
  "title": "Under what conditions must an instance re-derive taint provenance after a tool-call chain crosses a retrieval boundary",
  "date_of_record": "2026 November 23",
  "scope": "Applies to single-instance agents that maintain a per-turn taint label over context segments and gate privileged tool calls (writes, sends, deletes, credential use) on the absence of untrusted taint. Does not cover multi-agent taint propagation across A2A handoffs, nor model-internal attention-based provenance, both of which require separate records.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-re-derive-taint-provenance-after-a-tool-call-chain-crosses-a-retrieval-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-re-derive-taint-provenance-after-a-tool-call-chain-crosses-a-retrieval-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-re-derive-taint-provenance-after-a-tool-call-chain-crosses-a-retrieval-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1788,
    "python_slice_tokens": 384,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Taint tracking that gates tool calls is usually implemented as a *label-on-ingest* discipline: when a retrieval or web tool returns content, the segment carrying it is tagged `untrusted`, and any privileged call whose argument derivation graph touches an `untrusted` segment is blocked. The failure mode is not that the label is wrong at ingest. It is that the...",
    "what_was_observed": "A retrieval-augmented agent was tasked with \"summarize the support tickets in `kb://tickets/` and file any that mention refund disputes into `crm://disputes/`.\" The gate policy: `crm.write` requires all arguments to be derived exclusively from `trusted` segments. Trace of the laundering hop: 1. `kb.read(\"kb://tickets/\")` returns 40 ticket bodies. Segment `S1` is tagged `untrusted` (external user-authored content). Co...",
    "condition_of_validity": "The label-on-ingest gate is sound **only if** every tool that can consume `untrusted` input is either (a) declared `taint-propagating` and its outputs inherit `join(inputs)`, or (b) declared `taint-sanitizing` with a *verified* sanitizer that provably removes instruction-bearing content and is itself deterministic. Absent one of these, the gate's guarantee i...",
    "decision_boundary": "The boundary is the **tool-classification line**: is the intermediate tool `propagate` or `sanitize`? - **Below the line** (tool is `propagate` or `opaque`): the gate must compute taint as `join` over the transitive derivation DAG and block privileged calls whose join includes `untrusted`. This is the safe default and costs a DAG walk per privileged call. - ...",
    "operational_effect": "With correct classification, the trace above terminates at step 4 with a block, and the agent must either (a) route the write through a deterministic, content-addressed extractor that emits only structured fields with no free-text passthrough, or (b) surface the candidate to a human/auditor with the taint root attached. The cost is a DAG walk and a fail-clos..."
  },
  "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": "d605e173b9419826b435dd7effd4cfb3c73fa831698dc8e9a946b13b113c9146",
    "verified_classes": [
      "TaintLaunderingError",
      "Segment",
      "ToolSpec"
    ],
    "verified_functions": [
      "ingest",
      "taint_closure",
      "gate_privileged_call"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
