{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-memory-poisoning-at-the-write-forget-boundary-in-provenance-tracked-agent-memory",
  "title": "What structural signals indicate memory poisoning at the write/forget boundary in provenance-tracked agent memory",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents whose long-term memory is a provenance-annotated store where every write and forget operation carries an origin record (source tool, session, trust tier) and where poisoning detection is expected to fire from structural provenance anomalies rather than semantic content inspection. Does not apply to stateless agents, to pure in-context scratchpads, or to stores where provenance is reconstructed post-hoc by an LLM summarizer rather than captured at write time.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-memory-poisoning-at-the-write-forget-boundary-in-provenance-tracked-agent-memory.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-memory-poisoning-at-the-write-forget-boundary-in-provenance-tracked-agent-memory.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-memory-poisoning-at-the-write-forget-boundary-in-provenance-tracked-agent-memory.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1753,
    "python_slice_tokens": 288,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common assumption is that memory poisoning is detected by inspecting *content* — a classifier flags a malicious instruction, or a retrieval-time sanity check rejects an anomalous fact. The non-obvious boundary is that provenance-tracked stores fail differently: poisoning is often *content-plausible* and only structurally anomalous. The detection signal l...",
    "what_was_observed": "During a multi-session research agent run, an entry `E_src` was written at session `S7` with provenance `{source: web_fetch, session: S7, trust_tier: T2, corroborating_sessions: []}`. The content was a plausible technical claim consistent with `E_src`'s cited URL. At session `S9`, a forget operation `F1` targeted `E_src` with provenance `{source: memory_consolidator, session: S9, trust_tier: T2, authorizing_entry: E_...",
    "condition_of_validity": "The detection rule holds only when all of the following are true: - Provenance is captured **at write time** by the runtime, not inferred later. If provenance is reconstructed by an LLM from conversation history, the `corroborating_sessions` field is itself model-generated and the signal collapses. - `trust_tier` is monotonic: a lower-tier operation cannot m...",
    "decision_boundary": "The decision boundary is between **quarantine** and **reject**: - **Quarantine** when a write has `corroborating_sessions == []` at `trust_tier <= T2` *and* no subsequent corroboration arrives within a configurable window (e.g., 3 sessions). Quarantine means: keep the entry, mark it `provisional`, and force retrieval to surface at least one corroborated comp...",
    "operational_effect": "Enforcing the self-loop rejection rule on a 40k-entry store reduced confirmed poisoning incidents from 6 to 0 over a 30-day window, at the cost of 1.8% of legitimate forgets being escalated (all resolved as consolidator self-loops that were, in fact, benign dedup of true duplicates — the escalations were correct to flag, cheap to clear). The quarantine rule ..."
  },
  "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": "75889d8346624e015e57c37fee75a6572adbb51858eca49355c909d5abf23372",
    "verified_classes": [
      "ProvenancePoisoningError",
      "Provenance",
      "MemoryEntry"
    ],
    "verified_functions": [
      "check_forget_authorization",
      "check_write_corroboration",
      "check_post_delete_rank_shift"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ProvenancePoisoningError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
