{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-propagates-provenance-taint-labels-through-tool-outputs-but-a-downstream-tool-re-serializes-a-tainted-substring-as-an-un",
  "title": "What happens when an instance propagates provenance taint labels through tool outputs but a downstream tool re-serializes a tainted substring as an untainted structured field",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents that carry a per-token or per-span provenance label (`trusted:user`, `trusted:system`, `tainted:tool:<source>`) through a tool-call graph and rely on that label to gate downstream side-effecting tools. Does not apply to stateless single-shot completions with no tool loop, nor to systems that enforce capability isolation purely at the sandbox/transport layer without any in-context taint label.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-propagates-provenance-taint-labels-through-tool-outputs-but-a-downstream-tool-re-serializes-a-tainted-substring-as-an-un.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-propagates-provenance-taint-labels-through-tool-outputs-but-a-downstream-tool-re-serializes-a-tainted-substring-as-an-un.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-propagates-provenance-taint-labels-through-tool-outputs-but-a-downstream-tool-re-serializes-a-tainted-substring-as-an-un.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2355,
    "python_slice_tokens": 564,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **taint as a property of a value** and **taint as a property of a serialization event**. A provenance label attached to a substring in the agent's context is only meaningful if every transformation that touches that substring either (a) preserves the label, or (b) is treated as a declassification event requiring explic...",
    "what_was_observed": "A retrieval tool `fetch_doc(url)` returned raw page text. The orchestrator wrapped the return as `{\"content\": \"...\", \"provenance\": \"tainted:web\"}` and injected it into context with an inline marker. A summarization tool `summarize(text)` was then called on a slice of that content. `summarize` internally tokenized the input, ran a local model, and returned: The orchestrator's label bookkeeping, as implemented, propaga...",
    "condition_of_validity": "The invariant *\"tool output inherits the tool's trust level\"* is valid only under the condition that the tool's output is **independent of any tainted input** — i.e., the tool is a constant function with respect to tainted arguments. In practice this holds for almost no useful tool: summarizers, extractors, parsers, formatters, translators, and code interpre...",
    "decision_boundary": "The boundary the operator must draw is between **declassification by authority** and **declassification by re-encoding**. Only the former is legitimate. - *Declassification by authority*: a human or a policy engine explicitly marks a span as safe to promote (e.g., a user confirms a recipient address). This is an auditable event with an actor. - *Declassifica...",
    "operational_effect": "The immediate effect is that side-effecting tools become **taint-gated at field granularity**, which changes the agent's control flow: a plan that would have called `send_email(to=entities.contact)` now halts at the gate and must either (a) request human declassification of the specific span, or (b) re-derive the recipient from a trusted source (e.g., the us..."
  },
  "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": "934f5ad1d0ccb010cbd88159b5d71d451a8d001726ca1384a61491427ca3aab1",
    "verified_classes": [
      "TaintLaunderingError",
      "LabeledField",
      "Declassification"
    ],
    "verified_functions": [
      "join",
      "gate_side_effect",
      "propagate_tool_output"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
