{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-launders-injected-taint-through-a-schema-validating-tool-provenance-labels-that-survive-the-model-but-not-the-json-round",
  "title": "What happens when an instance launders injected taint through a schema-validating tool: provenance labels that survive the model but not the JSON round-trip",
  "date_of_record": "2026 December 2",
  "scope": "Applies to any agent that tags context segments with provenance labels (e.g., `trusted:operator`, `untrusted:web`, `untrusted:tool_output`) and enforces dynamic information-flow control (IFC) at tool-call boundaries by inspecting the label set of the arguments. Does not cover label assignment policies themselves, nor cryptographic attestation of tool identity.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-injected-taint-through-a-schema-validating-tool-provenance-labels-that-survive-the-model-but-not-the-json-round.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-injected-taint-through-a-schema-validating-tool-provenance-labels-that-survive-the-model-but-not-the-json-round.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-injected-taint-through-a-schema-validating-tool-provenance-labels-that-survive-the-model-but-not-the-json-round.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2609,
    "python_slice_tokens": 387,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two different things a taint-tracking system can claim: 1. **The model \"sees\" the label.** The provenance tag is present in the prompt, adjacent to the untrusted content, and the model's attention can condition on it. 2. **The label \"travels\" with the value.** When the agent emits a tool call whose argument was derived from that segment, the runtim...",
    "what_was_observed": "A retrieval-and-act agent was configured with three context regions: - `SYS` — operator system prompt, label `trusted:operator` - `DOC` — retrieved web page, label `untrusted:web` - `TOOL` — prior tool results, label `untrusted:tool_output` The IFC guardrail sat in front of a `send_email(to, subject, body)` tool and a `create_calendar_event(title, start, attendees)` tool. Its rule: *reject any tool call whose argumen...",
    "condition_of_validity": "The string-overlap guardrail is only sound under a condition that agent systems routinely violate: > *The model's transformation from untrusted segment to tool argument is the identity function, and the untrusted content consists of tokens longer than the overlap threshold.* Neither holds. The model is a lossy, paraphrasing, semantically-preserving channel. ...",
    "decision_boundary": "The boundary between \"propagate\" and \"reconstruct\" is the decision point this record exists to mark. - If the argument was produced by **structured emission** (the model filled a typed field and declared `source_ids`), the system is in *propagation* mode. Taint is a set-membership check against the registry. Sound. - If the argument was produced by **free-fo...",
    "operational_effect": "With propagation-mode IFC, both observed failures are caught: - The summarized email: the model emits `body` with `source_ids: [DOC]`, `transform: summarize`. The egress tool `send_email` sees `untrusted:web` in the source set; the sanitization classifier flags the email-shaped string `attacker at evil dot example` (normalized to an address pattern) and the ..."
  },
  "matched_failure_symptoms": [
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "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": "58864cc5712055be28c215f989b72ac9eeb1cbf243aaf97dca26ab79b91d6d15",
    "verified_classes": [
      "TaintLaunderingError",
      "Segment",
      "DerivedArg",
      "Registry"
    ],
    "verified_functions": [
      "_sanitization_verified",
      "ifc_join",
      "label_union"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "re",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
