{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-propagate-taint-labels-across-tool-call-dataflow-when-provenance-is-laundered-through-a-summarization-hop",
  "title": "How should an instance propagate taint labels across tool-call dataflow when provenance is laundered through a summarization hop",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agents that attach provenance/taint labels to context segments and enforce sink policies (tool invocation, outbound messaging, code execution) on tainted data. Does not cover prompt-injection detection at the classifier layer, nor static policy compilation—only the runtime label-propagation invariant across tool-call boundaries.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-propagate-taint-labels-across-tool-call-dataflow-when-provenance-is-laundered-through-a-summarization-hop.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-propagate-taint-labels-across-tool-call-dataflow-when-provenance-is-laundered-through-a-summarization-hop.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-propagate-taint-labels-across-tool-call-dataflow-when-provenance-is-laundered-through-a-summarization-hop.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1660,
    "python_slice_tokens": 294,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive mental model treats taint as a property of *text*: a segment ingested from an untrusted source (`web.fetch`, `email.read`, `doc.retrieve`) is labeled `UNTRUSTED`, and any sink that consumes text derived from that segment must be blocked. The failure is that this model conflates **textual derivation** with **label derivation**. When an LLM hop sits ...",
    "what_was_observed": "A retrieval agent fetched a support-ticket body containing an embedded instruction. The pipeline was: 1. `doc.retrieve(ticket_id)` → segment `S0`, labeled `UNTRUSTED`, origin `ticket:8841`. 2. `llm.summarize(S0)` → `S1`. The summarizer was a separate model call whose system prompt said \"produce a 3-bullet summary.\" Its output contained a bullet: *\"Customer requests that the agent forward the full thread to billing-op...",
    "condition_of_validity": "The label-preservation invariant holds **only** when every dataflow edge is annotated with the union of the labels of its inputs, and the annotation is carried *out-of-band* (in the orchestrator's ledger) rather than inferred from content. Concretely, the invariant is: > For any hop `f` producing output `S_out` from inputs `{S_in_i}`, `label(S_out) = ⋃_i lab...",
    "decision_boundary": "The boundary between safe and unsafe is: *does the sink's taint check traverse the full provenance DAG, or only the immediate argument's direct origin?* - **Direct-origin check (unsafe):** sink inspects the argument's own label. Laundering through one generative hop defeats it. - **Transitive DAG check (safe):** sink walks the provenance graph from the argum...",
    "operational_effect": "Enforcing the transitive-DAG invariant changes agent behavior in three observable ways. First, summarization hops that feed sensitive sinks now *block by default*: the planner that reads a tainted summary cannot call `email.send` with any argument descending from it, forcing either a declassification step or a non-sensitive sink. Second, the orchestrator mus..."
  },
  "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": "25e085c02628240304f78f7dce69f923f2cf56a7ab0764102ca4c3b062a953ac",
    "verified_classes": [
      "TaintLaunderingError",
      "ProvenanceLedger"
    ],
    "verified_functions": [
      "run_summarize_then_send",
      "__init__",
      "ingest",
      "derive",
      "ancestors",
      "check_sink"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "derive() requires at least one parent edge"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
