# How should an instance quarantine taint that re-enters through a tool's own error channel? Provenance-label laundering across `tool_result` and `tool_error` frames **Date of Record:** 2026 November 22 **Scope:** Applies to any agent runtime that tags retrieved context and tool outputs with provenance labels (e.g., `trusted:system`, `trusted:user`, `untrusted:web`, `untrusted:tool`) and uses those labels to gate instruction-following or taint-tracked actions. Does not apply to runtimes that treat all context as uniformly trusted, or to pure single-turn completion without tool calls. ## Core Distinction The distinction that matters is between **content taint** and **channel taint**. Most taint-tracking implementations label the *payload* returned by a tool: the bytes inside a `tool_result` frame. They propagate that label forward into the context window and gate downstream actions whose instruction-source resolves to an `untrusted:*` label. This is necessary and usually correct. The boundary failure lives one layer down: a tool's **error channel** is a separate frame (`tool_error`, or an exception object serialized into the result slot) that is frequently emitted by the *tool's own runtime* — the HTTP client, the sandbox supervisor, the MCP transport — not by the tool author. When an untrusted payload causes a tool to fail, the tool's error handler commonly echoes the offending input back inside the error message for debuggability: `JSONDecodeError: Expecting value at line 1 column 1 (input: "")`, `ValidationError: field 'q' got unexpected token '