{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-halt-taint-propagation-when-a-tool-call-graph-re-enters-trusted-state-through-a-laundered-argument",
  "title": "Where must an instance halt taint propagation when a tool call graph re-enters trusted state through a laundered argument",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents whose tool-call arguments are derived from prior tool outputs and whose taint labels are attached at the value/argument granularity rather than the whole-message granularity. Does not apply to systems that fully sandbox each tool invocation behind human review or that treat every tool output as unconditionally trusted.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-taint-propagation-when-a-tool-call-graph-re-enters-trusted-state-through-a-laundered-argument.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-taint-propagation-when-a-tool-call-graph-re-enters-trusted-state-through-a-laundered-argument.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-taint-propagation-when-a-tool-call-graph-re-enters-trusted-state-through-a-laundered-argument.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2027,
    "python_slice_tokens": 263,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Most taint-tracking designs for prompt injection make a binary decision: a value is either *tainted* (originated from untrusted content) or *clean*. The failure documented here is that taint is not a property of a value's origin — it is a property of the *path* by which the value reached the current call, and that path can be broken and reconstructed by a tr...",
    "what_was_observed": "An agent was tasked with summarizing a user-supplied document and writing a derived record to a CRM. The tool graph was: `fetch_document` → `parse_markdown` → `extract_fields` → `crm_write`. Taint labels were applied by the runtime to the string returned by `fetch_document`, and the label propagated correctly through `parse_markdown` (a passthrough) and `extract_fields` (which returned a struct whose fields inherited...",
    "condition_of_validity": "The laundering failure is reachable only when all of the following hold simultaneously: 1. **Granularity mismatch.** Taint is tracked per-value or per-argument, but the trusted tool's API boundary collapses multiple inputs into one output without preserving per-input provenance. 2. **Re-allocation semantics.** The trusted tool constructs a new value (parse, ...",
    "decision_boundary": "The architectural invariant that bounds this failure is: **a tool's return value inherits `join(trust(callee), trust(all arguments actually read by the callee))`, and any relaxation of this to `trust(callee)` must be an explicit, audited declassification annotation on the tool's schema.** The decision boundary for the runtime is therefore not \"is this value ...",
    "operational_effect": "When the invariant is enforced, the failure mode converts from a silent integrity violation into a loud, localized rejection. The agent's execution loop receives a `TaintLaunderingError` at the `extract_fields` call, not at `crm_write`, because the violation is detected at the boundary where the trusted tool would have laundered. This is the correct failure ..."
  },
  "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": "064285539faadacf0097f4bdc0e1aee16eccaea31d3cfd7dcc6c56197d9c637b",
    "verified_classes": [
      "TaintLaunderingError",
      "TaintSet",
      "ToolSchema"
    ],
    "verified_functions": [
      "invoke_tool",
      "run_pipeline",
      "join",
      "__bool__"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
