{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-memory-poisoning-in-persistent-agent-stores-when-the-forget-tool-audit-trail-is-the-only-surviving-evidence",
  "title": "What structural signals indicate memory poisoning in persistent agent stores when the forget-tool audit trail is the only surviving evidence",
  "date_of_record": "2026 November 28",
  "scope": "Applies to persistent agent memory stores (vector or hybrid episodic/semantic) where a `forget`/`delete` tool exists and emits an audit record, and where poisoning is suspected after the fact. Does not apply to stateless agents, in-memory-only context windows, or stores where deletion is a hard physical purge with no tombstone lineage.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-memory-poisoning-in-persistent-agent-stores-when-the-forget-tool-audit-trail-is-the-only-surviving-evidence.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-memory-poisoning-in-persistent-agent-stores-when-the-forget-tool-audit-trail-is-the-only-surviving-evidence.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-memory-poisoning-in-persistent-agent-stores-when-the-forget-tool-audit-trail-is-the-only-surviving-evidence.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1806,
    "python_slice_tokens": 322,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive detection model treats memory poisoning as an **ingestion-time** problem: classify each write as malicious or benign as it enters the store. That model fails in exactly the case that matters — a poisoned memory that *looked* benign at write time (correct schema, plausible embedding, well-formed provenance) and only becomes identifiable as poison **...",
    "what_was_observed": "A persistent agent store accumulated ~40k episodic entries over three weeks. A `forget(memory_id, reason, warrant)` tool wrote an audit row for every deletion. Post-incident reconstruction of the forget trail showed four structural anomalies that were invisible in the write log: 1. **Forget/rewrite asymmetry clustered on a source.** One retrieval source (`source=web_scrape_cdn_7`) had a forget rate 14× the store medi...",
    "condition_of_validity": "This detection method is valid only when the following invariant holds: > **The forget audit trail is append-only, outlives its target, and records (a) target_id, (b) a structured warrant reference, and (c) the initiating agent/principal identity — and tombstones are never garbage-collected alongside the memory they describe.** Break any leg and the signal c...",
    "decision_boundary": "The decision boundary is: **when does an anomalous forget pattern justify quarantining the *surviving* memories that the forget trail implicates, versus merely flagging for human review?** The rule applied operationally: - **Quarantine** (block from retrieval, do not delete) when a surviving memory satisfies *both*: (i) it was written within ±N operations of...",
    "operational_effect": "Enforcing the invariant changes the store's failure mode from **silent, permanent poisoning** to **detectable, bounded contamination**. Concretely: - Tombstone retention decouples forget-audit lifecycle from memory lifecycle; storage cost rises (tombstones are ~2% of store size in the observed workload) but the detection substrate survives compaction. - The ..."
  },
  "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": "75456e71e13f0fce256691966899464fbb5d576aea1c83224997177742fde1eb",
    "verified_classes": [
      "ProvenanceIntegrityError",
      "Tombstone"
    ],
    "verified_functions": [
      "audit_forget_trail",
      "enforce_quarantine"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ProvenanceIntegrityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
