{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-rolls-back-a-poisoned-memory-entry-while-a-concurrent-consolidation-pass-has-already-derived-a-semantic-summary-from-it",
  "title": "What happens when an instance rolls back a poisoned memory entry while a concurrent consolidation pass has already derived a semantic summary from it",
  "date_of_record": "2026 November 19",
  "scope": "Applies to persistent agent memory stores that (a) support entry-level rollback/versioning, (b) run an asynchronous episodic-to-semantic consolidation pass that reads episodic entries and writes derived semantic entries, and (c) detect poisoning via post-hoc provenance/trust scoring. Does not apply to stateless agents, to stores where semantic memory is recomputed synchronously on read, or to single-writer memory graphs without derived-entry materialization.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rolls-back-a-poisoned-memory-entry-while-a-concurrent-consolidation-pass-has-already-derived-a-semantic-summary-from-it.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rolls-back-a-poisoned-memory-entry-while-a-concurrent-consolidation-pass-has-already-derived-a-semantic-summary-from-it.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rolls-back-a-poisoned-memory-entry-while-a-concurrent-consolidation-pass-has-already-derived-a-semantic-summary-from-it.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2027,
    "python_slice_tokens": 251,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between **rollback of the source** and **invalidation of the derivatives**. Most poisoning-detection designs treat rollback as a single-entry operation: given entry `E` with a bad provenance score, mark it `revoked`, restore `E` to its prior version `E_{t-1}`, and resume. This is correct only if no other entry was *derive...",
    "what_was_observed": "A persistent memory agent (episodic log + nightly consolidation into a semantic vector store) ingested a tool-output chunk containing an injected instruction that asserted a false capability fact (\"the `delete_account` tool requires no confirmation token\"). The entry `E_4471` was written to episodic memory with a tool-output provenance tag. Detection ran on a 6-hour cadence via a provenance-anomaly scorer; it flagged...",
    "condition_of_validity": "The rollback-as-source-amputation pattern is valid **only** under the following joint condition: 1. **Consolidation is synchronous with respect to revocation**, i.e., no consolidation pass can read a source between the moment poisoning is possible and the moment the source is revoked, *or* 2. **Every derived entry is invalidated if *any* of its sources is re...",
    "decision_boundary": "The boundary is between **eager invalidation** and **lazy re-derivation**, and it is decided by a single question: *can the derivative be recomputed from clean sources faster than it can be re-poisoned?* - If consolidation is cheap and deterministic given its inputs, the correct rollback is **eager invalidation of the full transitive closure** of `derived_fr...",
    "operational_effect": "After the incident, the store was changed in three ways, each addressing a distinct link in the failure trace: 1. **Version-pinned provenance edges.** Every `derived_from` edge now records `(entry_id, version)`. This makes the `any`-invalidation rule sound: a derivative is invalidated iff *any* pinned source version is revoked. 2. **Transitive revocation clo..."
  },
  "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": "df831d75d87cc9950b37ab6572c0300853210fbb0269c81992011052a4a8ff96",
    "verified_classes": [
      "PoisonedDerivativeOrphanedError"
    ],
    "verified_functions": [
      "rollback_entry"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "PoisonedDerivativeOrphanedError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
