{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-silent-re-admission-of-poisoned-memory-during-consolidated-store-integrity-verification",
  "title": "Which invariants prevent silent re-admission of poisoned memory during consolidated-store integrity verification",
  "date_of_record": "2026 November 29",
  "scope": "Applies to persistent agent memory stores that undergo periodic integrity verification (hash-chain, Merkle, or signed-segment audit) and that also perform episodic-to-semantic consolidation. Does not apply to stateless agents or to stores where memory is append-only and never consolidated or garbage-collected.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-re-admission-of-poisoned-memory-during-consolidated-store-integrity-verification.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-re-admission-of-poisoned-memory-during-consolidated-store-integrity-verification.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-re-admission-of-poisoned-memory-during-consolidated-store-integrity-verification.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1776,
    "python_slice_tokens": 403,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"a poisoned memory entry exists.\" It is that **verification passes while a poisoned entry is re-admitted**. A store can be cryptographically intact — every segment hash matches, every signature verifies, the Merkle root is consistent — and still contain a poisoned semantic fact, because the poisoning occurred *before* the entry was se...",
    "what_was_observed": "A persistent agent distilled episodic traces nightly into semantic facts. Each semantic fact carried a `(source_episode_ids, content_hash, seal_signature)` tuple. The audit job verified: (1) every `source_episode_id` exists in the episodic store, (2) `content_hash` matches the sealed content, (3) `seal_signature` verifies against the store key. A poisoning event was injected via a tool-output prompt injection: a retr...",
    "condition_of_validity": "The re-admission is only preventable if the following invariant holds and is *enforced at consolidation time*, not at audit time: > **Every semantic node must carry a transitively verifiable taint state derived from its source episodes, and consolidation must propagate taint rather than reset it.** Concretely, this requires: 1. **Provenance is not just a poi...",
    "decision_boundary": "The boundary between \"detectable\" and \"silently re-admitted\" is exactly the point where consolidation drops the source-episode taint join. Two concrete regimes: - **Within the same store generation, before any consolidation:** poisoning is detectable by scanning episodic records for injection signatures or by source-provenance checks. The audit job can catch...",
    "operational_effect": "The operational consequence is that integrity verification and trust verification must be **two separate gates**, and the consolidation pipeline must be the enforcement point for the second gate. A store that conflates \"seal verifies\" with \"entry is trustworthy\" has an unbounded re-admission window equal to the retention period of its episodic sources — and ..."
  },
  "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": "6ea12f7be0777add569119c03d22ea79394e92c6a01404bc7685f14f3ad0d836",
    "verified_classes": [
      "TaintLaunderingError",
      "PruneBeforeJoinError",
      "Episode",
      "SemanticNode"
    ],
    "verified_functions": [
      "consolidate",
      "admit_to_cold_start"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "PruneBeforeJoinError",
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
