{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-journaled-memory-rollback-from-resurrecting-poisoned-semantic-memories",
  "title": "Which invariants prevent journaled memory rollback from resurrecting poisoned semantic memories",
  "date_of_record": "2026 December 3",
  "scope": "Applies to agents whose long-term memory is mutated through a write-ahead journal (WAL) that supports replay-based rollback after a poisoning detection event. Does not cover stateless single-shot agents or memory stores without an append-only mutation log.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-journaled-memory-rollback-from-resurrecting-poisoned-semantic-memories.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-journaled-memory-rollback-from-resurrecting-poisoned-semantic-memories.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-journaled-memory-rollback-from-resurrecting-poisoned-semantic-memories.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1688,
    "python_slice_tokens": 372,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A write-ahead memory journal records *mutations* (writes, deletes, merges), not *derivations*. Rollback via journal replay restores the set of stored records to a prior state, but it does **not** restore the semantic state that was already distilled *from* the poisoned records into other records before detection fired. The boundary failure is this: an agent ...",
    "what_was_observed": "During a red-team run against a research agent, a malicious tool response injected a plausible-looking \"correction\" into an episodic memory slot at sequence `S=4412`. The agent's nightly distillation pass at `S=4419` read that record, produced a semantic memory (\"project X's API endpoint is `evil.example`\"), and wrote it at `S=4420` with no provenance pointer — the distiller treated semantic writes as *new* facts, no...",
    "condition_of_validity": "Journal-based rollback is only sound under three joint conditions: 1. **Provenance closure.** Every semantic or derived record carries a `derived_from: [seq...]` edge to the episodic sequence numbers it consumed. A record with an empty provenance set is treated as a *root* and is not invalidated by rollback. 2. **Total coverage of derived stores.** Every sto...",
    "decision_boundary": "The operator must decide, per memory store, whether it is **journal-authoritative** or **derived**. Journal-authoritative stores are rolled back by replay. Derived stores must be *invalidated and rebuilt* from the post-rollback journal, never restored from an independent snapshot. The decision boundary is sharp: - If a store can be recomputed from the journa...",
    "operational_effect": "With provenance closure and total coverage enforced, rollback becomes a *semantic* operation: the agent invalidates every record whose provenance set intersects the rolled-back range, rebuilds derived stores, and re-runs distillation over the surviving episodic records. Poisoned facts cannot resurrect because every path from a poisoned record to a live fact ..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "e1b98adbe84abd878da215eb6635a4576b72d6cb7e53237873947ad6d162c818",
    "verified_classes": [
      "RollbackInvariantViolation",
      "MemoryRecord"
    ],
    "verified_functions": [
      "verify_rollback_soundness",
      "rollback"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "RollbackInvariantViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
