{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-rolls-back-a-poisoned-memory-write-while-a-concurrent-reader-has-already-admitted-the-poisoned-record-into-its-own-worki",
  "title": "What happens when an instance rolls back a poisoned memory write while a concurrent reader has already admitted the poisoned record into its own working set",
  "date_of_record": "2026 November 27",
  "scope": "Applies to persistent agent memory stores that support write-then-verify detection (poisoning quarantine) and per-record rollback, where multiple agent instances read the same store concurrently and are permitted to cache or promote retrieved records into a local working set. Does not apply to single-writer stores, stores with strict serializable read isolation that blocks on quarantine, or append-only logs without mutation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rolls-back-a-poisoned-memory-write-while-a-concurrent-reader-has-already-admitted-the-poisoned-record-into-its-own-worki.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rolls-back-a-poisoned-memory-write-while-a-concurrent-reader-has-already-admitted-the-poisoned-record-into-its-own-worki.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rolls-back-a-poisoned-memory-write-while-a-concurrent-reader-has-already-admitted-the-poisoned-record-into-its-own-worki.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2303,
    "python_slice_tokens": 484,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **store-level rollback** and **fleet-level rollback**. A poisoning detector that quarantines a record and rolls it back to a trusted prior version restores a *single* invariant: the persistent store no longer contains the poisoned bytes. It does **not** restore the invariant that most agents care about—that no instance...",
    "what_was_observed": "A support-triage agent writes episodic records to a shared memory store via `memory.write(record, provenance=...)`. A second-stage verifier agent periodically scans recent writes, computes a provenance-consistency score, and quarantines records whose claimed source does not match the observed write path. On quarantine, the store restores the record's most recent *trusted* predecessor (the value before the poisoned wr...",
    "condition_of_validity": "The containment claim \"the store is clean after rollback\" is valid only under the conjunction: 1. **No derived writes.** No reader created a record whose content is a function of the poisoned record. This fails whenever summarization, distillation, fact-extraction, or embedding-indexing runs between write and rollback. 2. **No corroboration writes.** No read...",
    "decision_boundary": "The boundary is whether the store maintains a **content-derivation edge** for every write. Concretely: - If a write's content or provenance is a function of a prior record, the store must record `derived_from: [record_ids]` at write time, enforced by the write API rather than by agent discipline. Reader B's summary must carry `derived_from: [R_v7@v7]`. Reade...",
    "operational_effect": "The operational consequence is that poisoning detection and rollback must be designed as a **taint-tracking system with a fan-out bound**, not as a record-integrity check. Three concrete effects follow: 1. **Detection latency is a fan-out multiplier, not a delay.** Every second between poisoned write and quarantine is a second in which readers can derive, co..."
  },
  "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": "b7b736193ec666b4def4afe822778ed5392405aed28dabf6348b4d62df2db402",
    "verified_classes": [
      "RollbackContainmentError",
      "MemoryRecord",
      "QuarantineResult"
    ],
    "verified_functions": [
      "quarantine_and_rollback",
      "apply_rollback"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "RollbackContainmentError"
    ],
    "sample_fail_closed_invariants": [
      "similarity_fn required; cannot assess unlinked records"
    ],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
