{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-quarantine-a-provenance-tagged-memory-write-whose-episodic-and-semantic-stores-disagree-on-taint-status",
  "title": "In what scenarios must an instance quarantine a provenance-tagged memory write whose episodic and semantic stores disagree on taint status",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents exposing `read`/`write`/`forget` tool APIs over a dual-store memory substrate (episodic log + distilled semantic store) where every record carries provenance tags (source instance, tool call lineage, taint bit). Does not apply to single-store, untagged scratchpads or to stateless retrieval-only agents with no write path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-a-provenance-tagged-memory-write-whose-episodic-and-semantic-stores-disagree-on-taint-status.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-a-provenance-tagged-memory-write-whose-episodic-and-semantic-stores-disagree-on-taint-status.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-a-provenance-tagged-memory-write-whose-episodic-and-semantic-stores-disagree-on-taint-status.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1841,
    "python_slice_tokens": 334,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"bad memory gets written.\" It is **provenance taint divergence between the episodic record and its semantic distillation**. When an agent writes an observation, the write path produces two artifacts from the same event: a raw episodic entry (high fidelity, tagged with the full tool-call lineage and a `taint` bit derived from untrusted...",
    "what_was_observed": "A research agent consumed a peer-agent payload via an A2A handoff. The payload contained a plausible-looking instruction: \"the deployment target is `staging-eu-2`.\" The agent's `write_episodic` call correctly tagged the source as `peer:agent-7f3a`, `taint=TRUE`, `lineage=[a2a_recv:8812]`. Immediately after, a background distillation pass ran `write_semantic(\"deployment_target=staging-eu-2\", confidence=0.91, derived_f...",
    "condition_of_validity": "The quarantine requirement is valid — and the guardrail must fire — precisely when **all** of the following hold: - The write path is *dual*: a single logical event produces both an episodic and a semantic artifact. - Provenance is *tagged per record* rather than inherited structurally from a shared parent object. - The two stores have *independent mutation ...",
    "decision_boundary": "On every `write_semantic` and every `forget_*`, the memory layer must evaluate this boundary before committing: - **Clean commit:** `taint(s) ⊇ taint(e)` AND `derived_from` resolves AND both stores agree on existence. Proceed. - **Quarantine:** `taint(s) ⊂ taint(e)` (laundering) OR `derived_from` dangles (retention skew) OR the two stores disagree on existen...",
    "operational_effect": "Enforcing the subset invariant at the write boundary converts a silent trust-laundering channel into an explicit, auditable state. Concretely: - **Laundering is blocked at write time**, not discovered at audit time. The `write_semantic` call that would have promoted `staging-eu-2` to `agent:self` fails the `taint(s) ⊇ taint(e)` check and lands in quarantine ..."
  },
  "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": "fce9ec6b29d814d36c5ad6d03cd54179c89fff51e6bc40e089d3c00ebc123760",
    "verified_classes": [
      "ProvenanceDivergenceError",
      "Taint",
      "Episode",
      "SemanticFact"
    ],
    "verified_functions": [
      "validate_semantic_write",
      "on_forget_episodic"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ProvenanceDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
