{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-escalate-dynamic-taint-labels-from-tool-output-to-semantic-memory-writes-and-where-does-label-laundering-break-the",
  "title": "In what scenarios must an instance escalate dynamic taint labels from tool output to semantic memory writes, and where does label laundering break the invariant?",
  "date_of_record": "2026 November 22",
  "scope": "Applies to single- or multi-instance agents that maintain a dynamic information-flow-control (IFC) taint label per context segment and propagate it across tool calls and memory writes. Does not apply to stateless one-shot completions with no persistent store and no tool surface.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-escalate-dynamic-taint-labels-from-tool-output-to-semantic-memory-writes-and-where-does-label-laundering-break-the.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-escalate-dynamic-taint-labels-from-tool-output-to-semantic-memory-writes-and-where-does-label-laundering-break-the.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-escalate-dynamic-taint-labels-from-tool-output-to-semantic-memory-writes-and-where-does-label-laundering-break-the.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1822,
    "python_slice_tokens": 468,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Most taint-tracking implementations treat a label as a property of *the token span* that carried untrusted bytes. That is the wrong carrier. The invariant that actually holds under prompt injection is that **taint is a property of the provenance edge, not of the text**, and it must survive every operation that transforms text into a different representation ...",
    "what_was_observed": "A fetch-and-summarize agent was given a task: retrieve three vendor pages, extract pricing tiers, write a consolidated note to memory. Each `fetch` tool result was labeled `src=UNTRUSTED, origin=tool:fetch, warrant=w_4471`. The extractor produced a JSON record per page. The memory-write function `remember(key, value, label)` accepted a label argument. Trace of the failure: 1. `fetch(page_2)` returns HTML containing a...",
    "condition_of_validity": "Span-level taint propagation is only sound when the transform between input and output is **copy-preserving** — i.e., every output token is traceable to an input token, so the join over copied spans over-approximates the true dependency. This holds for: substring slicing, regex extraction of literal fields, JSON field selection, retrieval of stored bytes. It...",
    "decision_boundary": "The instance must escalate to a **generative-transform taint rule** — join over full input labels — and must refuse memory writes whose provenance is not derivable. Concretely, the boundary is: - If a value reaching `remember()` was produced by any generative transform, its label must be `join(all input labels to that transform)`, which is `UNTRUSTED` if any...",
    "operational_effect": "With the corrected rule, the injected footnote propagates `UNTRUSTED` through the extractor, through the summary, and into the memory write, where the write path either stores it as `UNTRUSTED` (retrievable but flagged, usable only in contexts that permit untrusted input) or rejects it pending declassification. The downstream quoting task then sees `archival..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION"
  ],
  "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": "6ace973196d111fb99bb0bd3a1af26bd3d451bfe21ee4d005a0172e64c6b7b80",
    "verified_classes": [
      "Trust",
      "TaintLaunderingError",
      "Provenance",
      "Transform"
    ],
    "verified_functions": [
      "remember",
      "declassify",
      "reproduce",
      "join",
      "output_label"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "generative transform laundered UNTRUSTED input to TRUSTED; join must be over full input set, not copied spans"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
