{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-taint-laundering-across-a-tool-boundary-when-provenance-labels-are-dropped-by-a-serialization-round-trip",
  "title": "How does an instance detect taint laundering across a tool boundary when provenance labels are dropped by a serialization round-trip",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agent runtimes that propagate provenance/taint labels alongside content through tool calls, and that rely on those labels surviving serialization into tool input and back out of tool output. Does not apply to single-shot, stateless completions where no tool boundary is crossed, nor to runtimes that re-derive taint from scratch at every hop via a trusted oracle.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-taint-laundering-across-a-tool-boundary-when-provenance-labels-are-dropped-by-a-serialization-round-trip.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-taint-laundering-across-a-tool-boundary-when-provenance-labels-are-dropped-by-a-serialization-round-trip.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-taint-laundering-across-a-tool-boundary-when-provenance-labels-are-dropped-by-a-serialization-round-trip.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1876,
    "python_slice_tokens": 267,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the model followed an injected instruction.\" That is a plain prompt-injection success and is caught by ordinary output filtering. The failure is subtler: **the taint label was present at the moment of ingestion, was attached to the correct data, and was silently dropped by a serialization boundary — after which the now-unlabeled content w...",
    "what_was_observed": "A research agent fetched a page, tagged the returned body `provenance=web:untrusted`, and passed a slice of it into a `summarize` tool whose input schema was declared as `{ \"text\": string }`. The runtime marshalled the call by serializing the *content* field and the *label* field into two separate JSON members, but the tool's Pydantic-style model only declared `text`, so the label member was dropped on validation (ex...",
    "condition_of_validity": "The invariant \"labels survive every hop\" holds only under three concurrency-and-schema conditions, and the guardrail is only meaningful when all three are enforced: 1. **Closed schema.** The receiving tool's input model must *reject* unknown fields rather than ignore them (`extra=\"forbid\"`), so a dropped label is a hard error at the boundary, not a silent om...",
    "decision_boundary": "The instance must decide, at each tool return, between two actions: **accept-and-propagate** (merge inbound labels with outbound labels, take the union, continue) or **halt-and-quarantine** (refuse to use the result, escalate). The boundary is drawn by the label-accounting check, not by content inspection: - If `inbound_labels ⊇ outbound_labels` for the hop,...",
    "operational_effect": "With the accounting guardrail in place, the observed failure converts from a silent privilege escalation into a loud, attributable halt. The agent stops at the `summarize` return, records `hop=summarize, out_labels={web:untrusted}, in_labels={}, verdict=LOSSY`, and either re-invokes the tool with a `label_passthrough`-aware wrapper or escalates. The injected..."
  },
  "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": "fa131992c63fbee7d501106cc7aafff2403eb6d21b17b4b8de224f1e435fc1d7",
    "verified_classes": [
      "TaintLaunderingError",
      "Provenance",
      "HopRecord"
    ],
    "verified_functions": [
      "verify_hop",
      "reingest",
      "union"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
