{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-launder-an-untrusted-label-across-a-tool-boundary-that-returns-a-superset-of-the-requested-fields",
  "title": "When must an instance refuse to launder an untrusted label across a tool boundary that returns a superset of the requested fields",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agents that maintain per-span provenance labels (`trusted`/`untrusted`) and propagate them through tool-call results, specifically when a tool returns more data than the call requested. Does not apply to fully isolated single-turn tools whose output is never re-entered into the reasoning context.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-launder-an-untrusted-label-across-a-tool-boundary-that-returns-a-superset-of-the-requested-fields.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-launder-an-untrusted-label-across-a-tool-boundary-that-returns-a-superset-of-the-requested-fields.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-launder-an-untrusted-label-across-a-tool-boundary-that-returns-a-superset-of-the-requested-fields.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1930,
    "python_slice_tokens": 306,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Taint tracking for prompt injection usually assumes a clean mapping: a span enters the context with a label, tools consume labeled spans, tools emit labeled spans, and the label is preserved or downgraded monotonically. The non-obvious boundary is not \"did the label survive the tool call\" but \"did the tool return fields the call did not ask for, and did the ...",
    "what_was_observed": "A retrieval tool was called with a request schema of `{query, top_k}` and a declared trust of `trusted` (the tool is a first-party service). The agent's taint propagator assigned `untrusted` to the `query` argument because it was assembled from a user-supplied document. The response came back as a list of records, each with `{id, snippet, author, retrieved_at, related_queries}`. The `related_queries` field was not in...",
    "condition_of_validity": "The laundering requires all of the following to hold simultaneously: - The tool returns at least one field not present in the request schema. - That field is a function of at least one request argument that carries `untrusted` taint (directly, or via session state the tool reads). - The propagator's fallback for unmatched fields is the tool's declared trust ...",
    "decision_boundary": "The decision is not \"trust the tool\" versus \"don't.\" It is: **for any response field with no corresponding request field, is the field derivable from a tainted argument?** If the tool's contract cannot answer that (and most cannot, because suggestion/expansion/related-field subsystems are underspecified), the only sound label is `untrusted` until the field i...",
    "operational_effect": "With fail-closed labeling on unmatched fields, the second retrieval call in the trace above would have been seeded with an `untrusted` span. Depending on policy, that either blocks the call (the agent cannot use untrusted content as a query seed without a review step) or allows it but marks the entire downstream chain `untrusted`, so the eventual context spl..."
  },
  "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": "268c05a31a910e413b887696bff9521d57d50dce1219e48de44c6a4784bb669b",
    "verified_classes": [
      "TaintLaunderingError",
      "Labeled",
      "ToolContract"
    ],
    "verified_functions": [
      "propagate"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
