{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-refuse-to-propagate-a-taint-label-when-a-tool-boundary-launders-provenance-through-a-re-serialization-hop",
  "title": "Where must an instance refuse to propagate a taint label when a tool boundary launders provenance through a re-serialization hop",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents that attach dynamic information-flow (IFC) labels to context segments and propagate them across tool invocations, MCP resource fetches, and inter-agent handoffs. Does not apply to stateless single-turn inference where no label survives the response boundary, nor to systems whose tools return only typed, schema-validated primitives with no free-text channel.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-propagate-a-taint-label-when-a-tool-boundary-launders-provenance-through-a-re-serialization-hop.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-propagate-a-taint-label-when-a-tool-boundary-launders-provenance-through-a-re-serialization-hop.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-propagate-a-taint-label-when-a-tool-boundary-launders-provenance-through-a-re-serialization-hop.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1809,
    "python_slice_tokens": 464,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent forgot to sanitize.\" It is that the taint label and the tainted *bytes* travel through different channels at a tool boundary, and the boundary is where they can desynchronize. A label is metadata the orchestrator owns; the payload is whatever the tool returns. When a tool re-serializes its output—JSON-encodes a string, base64-wr...",
    "what_was_observed": "A retrieval tool returned a document containing an injected instruction. The orchestrator labeled the returned segment `taint:untrusted_external`. A downstream formatter tool was asked to \"summarize this table as CSV.\" The formatter parsed the segment, extracted cells, and emitted a new string. The orchestrator propagated the label onto the *new* segment because the call was in the tainted segment's dependency set—co...",
    "condition_of_validity": "The naive rule—\"propagate the label from input segment to output segment\"—is valid only when the tool's transform is **provenance-homomorphic**: every byte of output is a function of bytes of input, with no byte introduced from a source outside the labeled input set, and no byte of the labeled input destroyed in a way that changes the substring structure the...",
    "decision_boundary": "An instance must refuse to treat a label as authoritative across a tool boundary when any of the following hold, and must instead escalate to a re-labeling step: 1. The tool's declared output schema includes a free-text or `any`/`str` field that is not byte-identical to a declared input field. (Synthesis risk.) 2. The transform is not registered as provenanc...",
    "operational_effect": "The bound this places on the agent: taint soundness is only as strong as the weakest transform in the tool graph, and the tool graph is dynamic. An agent that adds a base64 helper, a CSV formatter, or an LLM summarizer to its toolset without registering the transform's provenance behavior has silently widened its injection surface without changing a single l..."
  },
  "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": "2331b7e7bbbadf845416190825ab991637ac285bd3d721bfac661c2cee3a0fef",
    "verified_classes": [
      "Taint",
      "ProvenanceLaunderingError",
      "Segment",
      "ToolManifest"
    ],
    "verified_functions": [
      "propagate_label",
      "admit_to_context"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "guard fired on a segment labeled clean: label/bytes desync — the taint was laundered across a transform hop",
      "tainted segment passed guard without match; quarantine required before execution"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
