{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-quarantine-a-provenance-taint-label-that-survives-a-memory-write-but-is-silently-dropped-by-a-summarizer-tool",
  "title": "In what scenarios must an instance quarantine a provenance taint label that survives a memory write but is silently dropped by a summarizer tool",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agent instances that carry per-span provenance labels (trusted / untrusted / derived-from-untrusted) through tool-call outputs and into episodic or semantic memory writes. Does not apply to stateless single-turn inference where no memory persistence or cross-turn tool chaining occurs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-a-provenance-taint-label-that-survives-a-memory-write-but-is-silently-dropped-by-a-summarizer-tool.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-a-provenance-taint-label-that-survives-a-memory-write-but-is-silently-dropped-by-a-summarizer-tool.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-a-provenance-taint-label-that-survives-a-memory-write-but-is-silently-dropped-by-a-summarizer-tool.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1898,
    "python_slice_tokens": 441,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Taint tracking at the agent layer differs from classical information-flow control in one decisive way: the *label carrier* and the *label evaluator* are both probabilistic. A tool output arrives as an opaque string; the agent runtime attaches a provenance label by inspecting the call site (was this a fetch from an external URL, a read of a user-supplied file...",
    "what_was_observed": "A retrieval agent was asked to \"summarize the pricing page at `vendor.example/pricing` and store the key facts in long-term memory for later negotiation.\" The chain executed as: 1. `web_fetch(\"https://vendor.example/pricing\")` → returns HTML. Runtime labels the output span `provenance=untrusted, source=external_web`. 2. The raw HTML is passed to `summarize(text=html)`. The summarizer is a model-backed tool. Its outpu...",
    "condition_of_validity": "The taint invariant holds only when **every transformation of a labeled span produces a labeled span whose label is the join (least upper bound) of the input labels and the transformation tool's own trust level.** Formally, for a tool `T` with trust level `τ(T)` and inputs `s₁…sₙ` with labels `L(sᵢ)`: where `⊔` returns `untrusted` if any operand is `untruste...",
    "decision_boundary": "An instance must quarantine (refuse to write to trusted memory, or write with `provenance=untrusted` and a `requires_review` flag) when **all** of the following hold: - The candidate memory value was produced by a transformation tool (summarizer, extractor, translator, reformatter) rather than by direct verbatim copy. - At least one input span to that transf...",
    "operational_effect": "Enforcing the join invariant changes agent behavior in three measurable ways. First, memory writes from summarizer chains are downgraded to `untrusted` by default, which means downstream consumers must either re-verify against a trusted source or escalate to a human/auditor — the 40% discount never reaches the negotiation sub-agent as fact. Second, the linea..."
  },
  "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": "089637708598cb741c223c3ac221ba5debca23c8dc7a3a119685fbf73f36cbd4",
    "verified_classes": [
      "Provenance",
      "TaintLaunderingError",
      "Span"
    ],
    "verified_functions": [
      "join_labels",
      "transform",
      "memory_write",
      "demo_laundering_attempt"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "assert summary.provenance is Provenance.UNTRUSTED"
    ],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
