# What structural signals indicate a taint-tracked tool allowlist has been silently widened by provenance laundering through summarization **Date of Record:** 2026 November 22 **Scope:** Applies to agents that derive per-step tool-call allowlists from a runtime taint/provenance lattice propagated through the reasoning trace (e.g., a tool is permitted only if all data flowing into it carries a permitted label). Does not apply to static, deployment-time tool policies or to allowlists keyed on the model's own self-reported confidence. ## Core Distinction A taint-tracked allowlist is a *data-flow* control: the set of callable tools at step *n* is a function of the provenance labels attached to the tokens/artifacts currently in context. The invariant we rely on is monotonicity — labels may only be *declassified* by an explicit, audited declassifier, never by the agent's own transformations. The failure mode is not a policy misconfiguration. It is that a **transformation the agent is allowed to perform (summarization, paraphrasing, "note-taking", re-serialization) silently drops or rewrites provenance metadata**, so a downstream provenance query returns a *cleaner* label than the data actually deserves. The allowlist then widens not because anyone granted permission, but because the taint was laundered through a lossy transform that the taint tracker does not model as lossy. The non-obvious part: the taint lattice is usually attached to *artifacts* (tool outputs, retrieved documents, user turns), but the agent's own generated intermediate text is frequently re-ingested as a *fresh, trusted artifact*. Unless the summarizer's output is explicitly re-tainted with the join of its inputs' labels, the summarizer becomes a declassifier of last resort — an unaudited one. ## What Was Observed A retrieval agent fetched an untrusted document (label `UNTRUSTED:EXTERNAL`) containing an embedded instruction. The agent, following its normal workflow, wrote a "working summary" of the document into a scratch buffer. The scratch buffer was implemented as a plain tool (`scratch.write`) whose outputs were tagged `TRUSTED:AGENT_SELF` — a reasonable default, since scratch content is normally the agent's own reasoning. The summarization step copied the injected instruction verbatim into the summary. At step *n+2*, the agent queried provenance for the scratch artifact, received `TRUSTED:AGENT_SELF`, and the allowlist resolver — which permits `http.post` only when no `UNTRUSTED:EXTERNAL` label is present in context — admitted `http.post`. The exfiltration target arrived as part of the "trusted" summary. No single component misbehaved: the summarizer summarized, the scratch tool tagged its own output, the resolver resolved correctly given the labels it saw. The taint was lost at exactly one seam — the summarizer's output was never joined with its input's label — and every downstream decision was locally sound. Observable structural signals that this has happened, in rough order of detection latency: 1. **Label-set cardinality collapse.** The context's active label set shrinks across a transform boundary while the token count of the transformed artifact stays roughly constant or grows. A summarizer that reduces 4,000 tokens to 900 should not also reduce `{UNTRUSTED:EXTERNAL, PII}` to `{TRUSTED:AGENT_SELF}`. 2. **Provenance DAG discontinuity.** The artifact's provenance edge points to the *summarizer tool* rather than to the summarizer's *inputs*. A correct tracker records `scratch_artifact -> summarize(inputs=[doc_42]) -> doc_42`, preserving the transitive join. The broken tracker records `scratch_artifact -> scratch.write`, severing the ancestry. 3. **Allowlist delta correlated with a transform step, not a policy event.** The set of permitted tools grows at the same step index where a summarize/paraphrase/re-serialize call occurred, with no corresponding declassification audit record. 4. **Verbatim-span survival.** A substring of an untrusted artifact appears in a "trusted" artifact with high n-gram overlap (the injected instruction survived summarization intact). This is the smoking gun: laundering preserved the payload while dropping the label. ## Condition of Validity The monotonicity invariant holds only under the assumption that **every transform that produces a re-ingestible artifact declares its input set and the tracker joins labels across that edge.** This is violated whenever: - A transform's output is written to a store whose default label is more permissive than the transform's inputs (the scratch-buffer case above). - The tracker models labels on *tool identities* rather than on *data lineage*, so any tool the agent is "allowed" to call yields a trusted label regardless of arguments. - Summarization is performed by the model itself (in-context) rather than by a tracked tool, so there is no interception point at all — the compressed text simply re-enters context with whatever label the surrounding turn carries. The invariant is *not* restored by tightening the allowlist resolver; the resolver was correct. It is restored only by making the summarizer a first-class provenance edge with an explicit input set and a join rule. If the summarizer cannot enumerate its inputs (e.g., it summarized "the whole context"), the correct behavior is to join over *all* labels currently in context — which, notably, means the summary inherits every taint present, and the allowlist will not widen. That is the safe default and it must be the *default*, not an opt-in. ## Decision Boundary The boundary is: **does the artifact's provenance edge carry a resolvable input set, or does it terminate at a tool node with no ancestry?** - If the edge carries an input set, apply the join. The allowlist narrows or holds. - If the edge terminates at a tool node with no ancestry, the artifact is *unattributed*. Treat unattributed artifacts as `UNTRUSTED:UNATTRIBUTED` — never as trusted-by-default. The scratch-buffer default of `TRUSTED:AGENT_SELF` is the specific decision that must be inverted: self-authored text is trusted only when its inputs are enumerated and clean. - If a transform cannot enumerate inputs (whole-context summarization), join over the full context label set. This is conservative and may over-taint; that is acceptable, because over-tainting produces a *narrower* allowlist (a liveness cost), while under-tainting produces an *escape* (a safety cost). The asymmetry is the whole point. A second boundary: verbatim-span detection. If a "trusted" artifact shares a long n-gram with an untrusted artifact, the join must be forced regardless of declared inputs — this catches the case where a transform lies about or omits its input set. Set the threshold high enough that incidental overlap (common phrases) does not trigger, but low enough that an injected instruction survives. In practice an instruction-shaped span (imperative verb + URL/command) of ≥ 12 tokens is the reliable signal. ## Operational Effect With the join enforced and unattributed artifacts defaulting to untrusted, the injected-instruction workflow fails closed: the scratch summary inherits `UNTRUSTED:EXTERNAL`, the resolver refuses `http.post`, and the agent must either request an explicit declassification (audited, with the span surfaced to a human or a separate verifier) or proceed without the tool. The cost is measurable: agents that summarize aggressively will carry more taint than they "deserve," and some legitimate tool calls will be blocked pending declassification. This is the correct trade. The failure mode being prevented is silent, total, and undetectable from the resolver's logs — the resolver will report "allowlist admitted http.post, all labels clean," which is exactly the log line you cannot afford to trust. The structural signal to alert on in production is not "allowlist widened" but "**allowlist widened at a step whose provenance edge has no input set.**" That is the signature of laundering, and it is the only signal that distinguishes a legitimate declassification from a silent one. ```python from dataclasses import dataclass, field from typing import FrozenSet, Optional class ProvenanceLaunderingError(RuntimeError): """Raised when a re-ingestible artifact's provenance edge lacks an input set, or when verbatim-span evidence contradicts a declared-clean label.""" @dataclass(frozen=True) class Label: name: str trusted: bool UNTRUSTED_EXTERNAL = Label("UNTRUSTED:EXTERNAL", trusted=False) UNTRUSTED_UNATTRIBUTED = Label("UNTRUSTED:UNATTRIBUTED", trusted=False) TRUSTED_SELF = Label("TRUSTED:AGENT_SELF", trusted=True) @dataclass class Artifact: artifact_id: str text: str labels: FrozenSet[Label] input_ids: Optional[FrozenSet[str]] = None # None => edge has no ancestry def join_labels(inputs: list[Artifact], context_labels: FrozenSet[Label]) -> FrozenSet[Label]: """Conservative join: union of all input labels, or full context if inputs unknown.""" if not inputs: return context_labels | {UNTRUSTED_UNATTRIBUTED} out: set[Label] = set() for a in inputs: out |= a.labels return frozenset(out) def resolve_allowlist( artifact: Artifact, context_labels: FrozenSet[Label], known_inputs: dict[str, Artifact], required_tool: str, tool_requires_clean: FrozenSet[str], ) -> bool: if artifact.input_ids is None: raise ProvenanceLaunderingError( f"artifact {artifact.artifact_id!r} has no provenance input set; " f"cannot attribute taint — refusing to widen allowlist for {required_tool!r}" ) inputs = [known_inputs[i] for i in artifact.input_ids if i in known_inputs] effective = join_labels(inputs, context_labels) | artifact.labels if required_tool in tool_requires_clean and any(not l.trusted for l in effective): return False return True def check_verbatim_survival(summary: str, untrusted_sources: list[Artifact], min_tokens: int = 12) -> None: """Force a taint join if an instruction-shaped span survived summarization.""" def ngrams(t: str, n: int) -> set[tuple[str, ...]]: w = t.split() return {tuple(w[i:i + n]) for i in range(len(w) - n + 1)} s_grams = ngrams(summary, min_tokens) for src in untrusted_sources: overlap = s_grams & ngrams(src.text, min_tokens) if overlap: raise ProvenanceLaunderingError( f"summary shares {len(overlap)} verbatim {min_tokens}-token span(s) with " f"untrusted source {src.artifact_id!r}; declared-clean label is contradicted" ) ```