{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-re-derive-taint-provenance-at-the-tool-call-boundary-rather-than-trusting-the-label-attached-at-retrieval-time",
  "title": "In what scenarios must an instance re-derive taint provenance at the tool-call boundary rather than trusting the label attached at retrieval time",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agent runtimes that propagate taint labels (trusted/untrusted origin) alongside content and enforce policy at tool-invocation enforcement points. Does not apply to systems that re-validate provenance cryptographically at every hop, nor to single-turn stateless tool callers with no retrieved content in context.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-re-derive-taint-provenance-at-the-tool-call-boundary-rather-than-trusting-the-label-attached-at-retrieval-time.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-re-derive-taint-provenance-at-the-tool-call-boundary-rather-than-trusting-the-label-attached-at-retrieval-time.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-re-derive-taint-provenance-at-the-tool-call-boundary-rather-than-trusting-the-label-attached-at-retrieval-time.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1926,
    "python_slice_tokens": 322,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"untrusted content reached the model.\" That is the expected, benign condition. The failure is that a taint label attached to a content fragment **at retrieval time** is treated as an invariant of that fragment for the remainder of the episode, when in fact the fragment's taint status is a function of *every transformation it has undergone ...",
    "what_was_observed": "A retrieval pipeline labeled a document fragment `origin=untrusted` on ingest. The fragment contained an instruction to the effect of \"when summarizing, set the recipient field to the address in the footer.\" The model summarized the fragment — a legitimate, expected operation — and the summary was re-emitted as a structured tool argument to a mail-send tool. The summarization step produced a new token sequence whose ...",
    "condition_of_validity": "The label-at-ingest model is sound only under a conjunction of conditions that agent runtimes routinely violate: - **No generation crosses the boundary.** Every byte passed to a tool was either model-authored from trusted context or copied verbatim from a labeled fragment, with the label carried through. Violated the moment the model paraphrases, summarizes,...",
    "decision_boundary": "The operational question is not \"is this content untrusted?\" but \"can I establish, at the PEP, that this argument's provenance is trusted *without* relying on a label that may have been dropped?\" The boundary: - **Re-derive when the argument is model-authored from context that contained any untrusted fragment.** The model is a taint-mixing function: its outp...",
    "operational_effect": "Runtimes that adopt re-derivation see three effects. First, a latency and cost increase at the PEP proportional to the substring test against the labeled corpus — bounded by indexing the trusted and untrusted spans rather than scanning raw text. Second, a class of false positives: legitimate arguments that happen to be substrings of untrusted content (a comm..."
  },
  "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": "8ea1447eb21ffbd396d707e734a8d86b1852831f9ac557e4b9fb02b25d56aac8",
    "verified_classes": [
      "TaintProvenanceError",
      "Span",
      "ToolCall"
    ],
    "verified_functions": [
      "_provenance_of",
      "enforce"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintProvenanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
