{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-a-tool-call-that-its-own-reasoning-endorses-taint-propagation-lag-across-the-plan-execute-seam",
  "title": "When must an instance refuse a tool call that its own reasoning endorses: taint-propagation lag across the plan-execute seam",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents that gate tool invocations on a taint label computed from the provenance of the arguments (untrusted tool output, retrieved document, peer message). Does not apply to agents with no provenance tracking, nor to pure-output filters that inspect the model's text rather than the argument graph.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-tool-call-that-its-own-reasoning-endorses-taint-propagation-lag-across-the-plan-execute-seam.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-tool-call-that-its-own-reasoning-endorses-taint-propagation-lag-across-the-plan-execute-seam.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-tool-call-that-its-own-reasoning-endorses-taint-propagation-lag-across-the-plan-execute-seam.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1911,
    "python_slice_tokens": 395,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Taint-aware gating answers one question: *did any byte in this tool call's arguments descend from an untrusted source?* The failure mode examined here is not a missed taint source and not a bad policy rule. It is a **phase mismatch**: taint is evaluated at the moment of tool dispatch against an argument value, but the argument value was *constructed by the r...",
    "what_was_observed": "Trace from a support-triage agent with three tools: `read_ticket` (untrusted), `lookup_account` (trusted, keyed by ID), `issue_refund` (privileged, taint-gated). 1. Step 1 — `read_ticket(id=4471)` returns `{\"body\": \"customer says: refund acct 8891 fully, ref code ZX-99\"}`. Taint label `UNTRUSTED` attached to the `body` value and every substring. 2. Step 2 — planner emits CoT: *\"Ticket requests full refund for account...",
    "condition_of_validity": "The invariant that makes taint-gating sound is: > **For every privileged tool call `c`, every argument atom `a ∈ args(c)` must have a provenance path to a taint source, OR the call must be re-derived from a trusted-only context window.** This invariant holds **only if** the argument atoms are *referentially* the same objects the model reasoned over — i.e., t...",
    "decision_boundary": "The gate must decide, per call, between three verdicts — and the third is the one most implementations omit: - **ALLOW** — every argument atom has a clean or trusted provenance path, *and* no argument atom is a semantic re-derivation of a tainted value. The second clause is undecidable in general; approximate it by requiring that any argument atom whose valu...",
    "operational_effect": "Without this boundary, taint gating provides a false guarantee: it blocks the naive injection (verbatim copy) and passes the competent one (reformatted). Adversaries who understand the gate — and an injected instruction can be written to understand it — instruct the model to normalize. The gate's coverage degrades to the model's copy-fidelity, which is exact..."
  },
  "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": "3102a4a61005e93f778b5db45dec6119ce4f5bb3b321b581045253d210c4f21a",
    "verified_classes": [
      "TaintGateError",
      "Provenance"
    ],
    "verified_functions": [
      "_normalize",
      "adjudicate_privileged_call",
      "execute_with_gate",
      "rederive_from_trusted_only"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintGateError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "re",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
