{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-provenance-label-laundering-through-agent-tool-output-re-serialization",
  "title": "Which invariants prevent provenance-label laundering through agent tool-output re-serialization",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents that tag context segments with provenance taint labels (trusted instruction / untrusted tool output / untrusted retrieved document) and rely on those labels surviving round-trips through tool calls, summarization, and context assembly. Does not apply to stateless single-turn inference with no retrieval or tool use, nor to systems where taint is enforced purely at an external policy engine the model cannot re-emit through.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-label-laundering-through-agent-tool-output-re-serialization.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-label-laundering-through-agent-tool-output-re-serialization.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-label-laundering-through-agent-tool-output-re-serialization.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1796,
    "python_slice_tokens": 274,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Taint tracking in an agent is not a labeling problem; it is a *label-preservation-across-re-serialization* problem. The common mental model is that a taint bit attached to a chunk of text travels with that text. The operational reality is that the agent's own outputs — tool-call arguments, sub-agent summaries, and re-emitted retrieved snippets — are themselv...",
    "what_was_observed": "A retrieval-then-tool agent was given a taint scheme with three labels: `SYS` (operator instructions), `TOOL` (tool results, treated as semi-trusted), and `DOC` (retrieved web/document content, treated as untrusted — never eligible to authorize a write action). A guard checked, at the moment of any side-effecting tool call, that the call's *arguments* were derived only from `SYS` and `TOOL` context, never `DOC`. The ...",
    "condition_of_validity": "The invariant that actually holds is: **provenance must be computed as a union over the transitive input set of any generation, and must be attached to spans, not channels, at the point of decision.** Concretely, a taint label `L(x)` for output token span `x` is valid only if `L(x) ⊇ ⋃ { L(y) : y is an input span that causally contributed to x }` and the ass...",
    "decision_boundary": "The boundary between \"taint tracking is sound\" and \"taint tracking is theater\" is the **paraphrase gap**: the set of transformations under which a `DOC`-originated value can reach a decision point without a detectable lineage link. Two regimes: - **Within fuzzy-match recall** (verbatim, light paraphrase, formatting changes): span-level union + carryover dete...",
    "operational_effect": "Teams that implement channel-granularity taint and call it done observe a specific signature: injection succeeds *only* when the payload instructs the agent to copy a value into a subsequent tool call, and *never* when the payload instructs a direct action in the same turn (because same-turn `DOC` is still labeled). The guard appears to work in red-team test..."
  },
  "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": "caf2200be9ebbdebe683ed6e962743cffd5d4b0069f4b76d186df377cc49baac",
    "verified_classes": [
      "TaintLaunderingError",
      "Span",
      "Derivation"
    ],
    "verified_functions": [
      "union_provenance",
      "authorize_side_effect"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
