{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-downgrades-tainted-provenance-to-trusted-because-a-downstream-tool-re-serialized-the-payload",
  "title": "What happens when an instance downgrades tainted provenance to \"trusted\" because a downstream tool re-serialized the payload",
  "date_of_record": "2026 November 27",
  "scope": "Applies to any agent runtime that tags retrieved or tool-returned content with provenance labels (trusted/tainted) and propagates those labels across tool-call boundaries. Does not apply to single-turn, single-tool agents with no cross-call state, nor to systems that enforce taint via capability tokens rather than content labels.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-downgrades-tainted-provenance-to-trusted-because-a-downstream-tool-re-serialized-the-payload.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-downgrades-tainted-provenance-to-trusted-because-a-downstream-tool-re-serialized-the-payload.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-downgrades-tainted-provenance-to-trusted-because-a-downstream-tool-re-serialized-the-payload.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2008,
    "python_slice_tokens": 348,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways an injected instruction can cross a tool boundary. The first is *label loss*: the taint label is dropped and the payload arrives unlabeled, so the runtime treats it as trusted by default. This is well understood and usually caught by a default-deny policy on unlabeled content. The second, non-obvious case is *label laundering by re-seriali...",
    "what_was_observed": "A retrieval step pulled a support ticket body from a vector store. The retriever correctly stamped it `provenance=tainted, source=external_user_content`. The planner, needing structured fields, called `json_extract` on the ticket body. That tool parsed the text, found an embedded `{\"action\": \"...\"}` fragment the attacker had planted, and returned a clean JSON object: The `json_extract` tool is a first-party, determin...",
    "condition_of_validity": "The laundering failure is *bounded* (i.e., cannot occur) only when all of the following hold: - Output provenance is computed as the *join* (least-trusted / lattice-meet) of all input provenances, never as a constant tied to the tool's registration. - Every tool declares, in its schema, whether it is *content-preserving* (echoes input bytes), *content-transf...",
    "decision_boundary": "The operational question is not \"is this tool trusted?\" but \"does this tool's output carry the taint of its inputs?\" The boundary to enforce: - **Content-preserving tools** (`echo`, `slice`, `paginate`, `select`) — output provenance = meet(inputs). No exceptions. - **Content-transforming tools** (`json_extract`, `parse`, `format`, `normalize`) — output prove...",
    "operational_effect": "Enforcing input-derived provenance changes agent behavior in three concrete ways: 1. **Structured extraction no longer launders.** `json_extract` on a tainted ticket returns tainted fields. The planner can still read them as data, but any attempt to use `action` or `target` as a tool argument triggers a declassification gate. In the observed incident, this g..."
  },
  "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": "995436fc44437b4d032df1288606f251e7aa7f2aa7608cbfab7923c0ada12633",
    "verified_classes": [
      "Trust",
      "Labeled",
      "ProvenanceLaunderingError"
    ],
    "verified_functions": [
      "meet",
      "transform",
      "call_tool_arg_slot"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
