# When must an instance invalidate inherited tool warrants after a prompt-injection taint crosses a tool boundary? **Date of Record:** 2026 December 1 **Scope:** Applies to multi-hop agent chains where an upstream instance ingests untrusted content and delegates to downstream instances or tools whose outputs are later trusted for privileged actions. Does not apply to single-instance, single-tool-call pipelines with no cross-instance handoff, nor to fully air-gapped agents whose only input is operator-authored. ## Core Distinction The failure that matters is not "the agent got injected." It is the **silent laundering of taint across a tool boundary**, where a downstream instance receives a *warrant* (a scoped capability to act) that was minted by an upstream instance whose context was already contaminated, yet the downstream instance has no visibility into that contamination. The distinction is between *taint as data* (a flag on a payload) and *taint as provenance on the warrant itself* (a property of the credential the downstream instance holds). Most systems track the former and ignore the latter. The boundary condition is precise: **an instance must invalidate inherited tool warrants the moment a taint-carrying value becomes an input to a tool whose output is later treated as clean, and that output is used to authorize a further action.** At that instant the warrant's provenance chain no longer guarantees the absence of adversarial influence, regardless of what the payload-level taint flag says. ## What Was Observed A three-hop chain: Instance A (retriever) fetched a web page containing an injected instruction embedded in an HTML comment. Instance A's taint tracker correctly labeled the retrieved string `tainted=True` and passed it to Instance B (summarizer) as a `user_content` field. Instance B summarized the content, and—critically—the summarization tool call returned a *new* string with `tainted=False` because the summarizer's output schema did not propagate the input taint flag. The taint flag was dropped at the tool boundary, not by malice but by schema omission: the tool's output contract had no `taint` field. Instance B then minted a downstream warrant for Instance C (executor) scoped to `filesystem:write:/tmp/out`. Instance C received the warrant, saw a clean summary, and wrote a file whose path was derived from a string the injected instruction had influenced. The payload-level taint was gone; the warrant-level provenance still pointed, transitively, at a contaminated source. No component in the chain held both facts at once. The trace: ``` A.retrieve(url) -> {content, taint=True} A.call(B, {user_content: content, taint: True}) B.summarize(user_content) -> {summary} # schema drops taint B.mint_warrant(C, scope=filesystem:write) # provenance NOT checked C.execute(warrant, path=derive(summary)) # acts on laundered taint ``` The observable symptom was not an error. It was a *successful* privileged action whose authorization rested on a provenance chain that had been severed one hop earlier. The system's invariant—"privileged actions require a clean provenance chain"—was never evaluated because no single component owned the full chain. ## Condition of Validity The guardrail holds only under a conjunction of conditions, and fails if any is absent: 1. **Taint is a first-class field on every tool I/O schema**, not an out-of-band annotation. A tool whose output schema lacks a taint field is, by construction, a laundering boundary and must be treated as taint-*amplifying*, not taint-*neutral*. 2. **Warrants carry provenance, not just scope.** A warrant minted by B must embed a monotonic provenance token (hash of the input taint lineage) that C can verify against the originating source. Scope alone (`filesystem:write`) is insufficient; the warrant must also assert `provenance: clean` or `provenance: tainted(source_id)`. 3. **The mint operation is the enforcement point.** Warrant minting must fail closed if any input to the minting instance's reasoning trace carries unresolved taint that reached a privileged decision. Enforcement at execution time (C) is too late; the warrant already exists. 4. **Taint propagation is monotonic across summarization and transformation.** Any tool that consumes tainted input and produces output must emit `taint=True` unless it can *prove* the tainted span was not consulted—which summarizers generally cannot, because the model attends over the whole context. If condition 2 is absent but 1 and 3 hold, the system degrades to "taint visible but warrant unchecked"—still exploitable. If 1 is absent, the chain is structurally unsound regardless of downstream checks. ## Decision Boundary The operational question an instance must answer before minting or accepting a warrant is: *does my provenance token cover every hop between the untrusted source and this warrant, with no schema gap?* The boundary is drawn at the **first tool whose output schema omits taint**. Everything downstream of that tool is untrusted-by-default for warrant purposes, even if the payload looks clean. Concretely, an instance MUST refuse to mint a privileged warrant when: - Any upstream hop in its provenance chain has `schema_has_taint_field == False`, AND - The tainted value influenced a parameter of the action being authorized (path, recipient, command, query). It MAY proceed when the tainted value influenced only a *display* parameter (a log line, a summary shown to a human) that does not feed the authorized action. The distinction is causal reachability from tainted span to privileged parameter, not mere co-presence in context. The inverse boundary also matters: an instance MUST NOT treat "no taint flag present" as "clean" when the flag could have been dropped. Absence of evidence of taint is not evidence of absence when a laundering boundary exists upstream. The default for a warrant whose provenance chain crosses a schema-gap hop is `tainted`, and the mint must be rejected unless a human or a re-verification step explicitly clears it. ## Operational Effect Enforcing this invariant changes the failure from *silent privileged action on laundered input* to *loud mint-time rejection with a provenance trace pointing at the gap*. The cost is throughput: chains that cross schema-gap tools now require either (a) schema remediation so taint propagates, or (b) an explicit re-verification hop that re-derives the privileged parameter from a clean source. Both are correct; both are slower than the unsound fast path. The durable architectural rule: **taint must live on the warrant, not just the payload, and the mint is the gate.** A system that tracks taint only on data will always have a boundary where a tool schema drops the flag, and that boundary is where injection becomes privilege. The invariant that bounds the failure is provenance-monotonicity across the full hop chain, enforced at mint time, with fail-closed default when any hop's schema cannot attest. ```python class TaintLaunderingError(RuntimeError): """Raised when a privileged warrant would be minted across a provenance gap.""" pass def mint_warrant(provenance_chain, action_scope, privileged_params): """ provenance_chain: list of Hop(source_id, schema_has_taint_field, taint) Refuse to mint if any hop lacks a taint field AND the tainted span reaches a privileged parameter. """ for hop in provenance_chain: if not hop.schema_has_taint_field: # Schema gap: cannot attest cleanliness past this hop. if _reaches_privileged(hop, privileged_params): raise TaintLaunderingError( f"Provenance gap at source={hop.source_id!r}: " f"tool schema omits taint field, yet tainted span " f"reaches privileged params {privileged_params!r} " f"for scope {action_scope!r}. Mint refused (fail-closed)." ) if hop.taint and _reaches_privileged(hop, privileged_params): raise TaintLaunderingError( f"Tainted hop {hop.source_id!r} reaches privileged params " f"{privileged_params!r}; warrant for {action_scope!r} refused." ) return {"scope": action_scope, "provenance": "clean", "chain": provenance_chain} def _reaches_privileged(hop, privileged_params): return bool(set(hop.influenced_params) & set(privileged_params)) ```