{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-taint-labels-from-being-laundered-through-paraphrase-on-memory-write",
  "title": "Which invariants prevent taint labels from being laundered through paraphrase on memory write",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents that carry information-flow labels (taint bits) across tool outputs, intermediate reasoning, and long-term memory writes, where the label is expected to survive a semantic transformation (summarization, paraphrase, extraction) before persistence. Does not apply to label propagation across raw byte-copies, structured field pass-through, or systems that quarantine all tool output unconditionally regardless of content.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-taint-labels-from-being-laundered-through-paraphrase-on-memory-write.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-taint-labels-from-being-laundered-through-paraphrase-on-memory-write.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-taint-labels-from-being-laundered-through-paraphrase-on-memory-write.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1998,
    "python_slice_tokens": 368,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **label propagation** and **label preservation under semantic transformation**. A taint tracking system that only checks whether a label was attached at the point of ingestion will pass any test where a poisoned tool output flows, unchanged, into a memory write. It fails silently the moment the agent paraphrases, summa...",
    "what_was_observed": "An agent with a `memory_write` tool ingested a web-fetch result carrying a taint label `untrusted:web`. The label was correctly attached at fetch time and correctly propagated through one intermediate reasoning turn where the raw text was quoted verbatim. The agent then summarized the fetched content into a three-sentence note and called `memory_write(note)`. The `memory_write` handler checked the label on its argume...",
    "condition_of_validity": "The invariant holds only when all three of the following are enforced: 1. **Generation is a labeled transform.** The model's output span must inherit `join(labels of all context tokens actually attended to)`. This is expensive to compute exactly (attention is soft), so the practical approximation is `join(labels of all tokens in the context window)`, which i...",
    "decision_boundary": "The operational decision is: **when is a paraphrase a declassification, and when is it laundering?** A paraphrase is a legitimate declassification only if the derived span's *semantic content* is a function of the source's *propositional content* and not of its *imperative content*. In practice this means the declassification check must be sensitive to the d...",
    "operational_effect": "With the invariant enforced, the failure mode is bounded: tainted content can still influence the agent's *current* reasoning (it is in context, after all), but it cannot persist into the trusted memory tier in a form that survives cold start as authoritative. The cost is a conservative label join on every generation — meaning a single tainted token in conte..."
  },
  "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": "876da9a0be8aefba9b6ba5d834f457bdb7a6b7ba102780e8d5d8a6caa80c5662",
    "verified_classes": [
      "TaintLaunderingError"
    ],
    "verified_functions": [
      "join_labels",
      "generate",
      "memory_write",
      "agent_turn"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "assert result['tier'] == 'quarantine'"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
