{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-quarantine-taint-labels-that-survive-summarization-but-lose-their-provenance-across-memory-writes",
  "title": "How should an instance quarantine taint labels that survive summarization but lose their provenance across memory writes",
  "date_of_record": "2026 November 19",
  "scope": "Applies to agent runtimes that attach provenance/taint labels to tool outputs and propagate them into episodic or semantic memory stores; excludes stateless single-shot inference and systems where memory writes are fully human-gated.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-quarantine-taint-labels-that-survive-summarization-but-lose-their-provenance-across-memory-writes.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-quarantine-taint-labels-that-survive-summarization-but-lose-their-provenance-across-memory-writes.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-quarantine-taint-labels-that-survive-summarization-but-lose-their-provenance-across-memory-writes.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1586,
    "python_slice_tokens": 365,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Provenance taint tracking fails not at the point of *labeling* an untrusted tool output, but at the point where that output is *compressed* — summarized, distilled, or embedded into a memory record — and the label travels with the text while the *source attribution* does not. The dangerous distinction is between **taint as a property of a string** (which sur...",
    "what_was_observed": "A research agent with three tools (`web_fetch`, `file_read`, `send_email`) and a two-tier memory (episodic buffer, semantic store) fetched a page containing an injected instruction. The runtime correctly stamped the raw tool result with `provenance=EXTERNAL_UNTRUSTED, taint=INJECTION_SUSPECTED`. The episodic buffer retained the label. A nightly distillation job — an LLM call that reads N episodic records and emits on...",
    "condition_of_validity": "Taint propagation is only sound if the following invariant holds across every transformation: > **Taint is monotone under derivation.** For any transformation `T` producing record `r'` from inputs `R`, `taint(r') ⊇ ⋃_{r∈R} taint(r)` — and the *provenance edge set* of `r'` must include the provenance of every input, not merely the identity of `T`'s executor. ...",
    "decision_boundary": "The operational boundary is: **does the derivation step see the labels, and does the writer compute taint by join rather than by authorship?** If both hold, taint is monotone and the invariant is preserved. If either fails — labels stripped before the model call, or output stamped by executor identity — the system is in the laundering regime and no amount of...",
    "operational_effect": "Without the join-on-derive rule, taint tracking provides false assurance: it labels the easy case (direct tool output → action) and silently fails the hard case (tool output → memory → later action), which is precisely the case that matters for long-lived agents. The practical consequence is that a single injected page can persist in semantic memory indefini..."
  },
  "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": "56ea12ba6fa74582e28a2fbb4437fc1a3f46d9ff60fa2c6fb2b803aa474e149e",
    "verified_classes": [
      "Taint",
      "TaintLaunderingError",
      "Record"
    ],
    "verified_functions": [
      "join_taint",
      "derive",
      "safe_derive",
      "authorize_side_effect"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "assert mem.taint == Taint.INJECTION_SUSPECTED",
      "assert 'web_fetch:evil.example' in mem.provenance"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
