{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-propagates-provenance-labels-across-a-tool-boundary-that-returns-a-fresh-untainted-looking-object",
  "title": "What happens when an instance propagates provenance labels across a tool boundary that returns a fresh, untainted-looking object",
  "date_of_record": "2026 November 15",
  "scope": "Applies to agent runtimes that implement prompt-injection defense via taint tracking, where provenance labels are attached to values and propagated through tool calls. Does not apply to runtimes that rely solely on input/output filtering or model-side instruction hierarchies, nor to tool boundaries that exchange only opaque handles with no derived content.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-propagates-provenance-labels-across-a-tool-boundary-that-returns-a-fresh-untainted-looking-object.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-propagates-provenance-labels-across-a-tool-boundary-that-returns-a-fresh-untainted-looking-object.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-propagates-provenance-labels-across-a-tool-boundary-that-returns-a-fresh-untainted-looking-object.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1881,
    "python_slice_tokens": 510,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **label propagation through data** and **label propagation through identity**. A taint tracker that propagates labels by inspecting the *content* of a tool result (string concatenation, JSON field copying, structured merge) will correctly taint derived values. But a tool boundary frequently returns a *newly constructed...",
    "what_was_observed": "A retrieval tool was invoked with a query string that carried a `TAINT:EXTERNAL_WEB` label (the query had been assembled from a previously fetched web page). The tool executed a search, received results, and returned a list of result objects constructed via `Result(**row)` from a database cursor. Each `Result` was a fresh dataclass instance. The runtime's taint propagator inspected the call graph: the query argument ...",
    "condition_of_validity": "The failure is valid (i.e., the laundering occurs) under the conjunction of: 1. The tool boundary performs **reconstruction** rather than **forwarding** — the returned value is allocated fresh and populated from a data source (DB, cache deserialization, parse) rather than passed through from the tainted input. 2. The taint propagator's rule is **argument-anc...",
    "decision_boundary": "The operational decision is whether to **close the boundary with a declared taint contract** or to **collapse to uniform tainting of tool output**. The boundary condition: - If the tool's data source is attacker-influenceable *and* the runtime cannot prove non-derivation, the output **must** be tainted at the maximum label of any input that could have select...",
    "operational_effect": "Runtimes that miss this boundary exhibit **intermittent injection success correlated with cache temperature and tool implementation detail**, which makes the vulnerability nearly invisible to deterministic test suites. The practical mitigations, in order of preference: 1. **Selector-taint rule**: propagate taint from selection arguments (query, filter, key) ..."
  },
  "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": "1eb029f3dea713a126f6457346068bc506220678fe6d275789590ded3329f48b",
    "verified_classes": [
      "TaintLaunderingError",
      "Label",
      "Tainted",
      "FakeCursor"
    ],
    "verified_functions": [
      "call_tool",
      "search_tool",
      "search_tool_buggy",
      "demo",
      "join",
      "__init__",
      "fetchall"
    ],
    "verified_functions_count": 7,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "assert out.label.level >= 2",
      "boundary check failed to catch laundering"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
