{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-memory-poisoning-in-write-audit-differentials-between-an-agent-s-declared-intent-and-its-committed-episodic-store",
  "title": "What structural signals indicate memory-poisoning in write-audit differentials between an agent's declared intent and its committed episodic store",
  "date_of_record": "2026 November 29",
  "scope": "Applies to persistent-memory agents that emit a pre-write intent record and then commit to an episodic store through a separate write path (tool call, KV mutation, embedding upsert). Does not cover in-context prompt injection that never reaches the durable store, nor purely stateless inference.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-memory-poisoning-in-write-audit-differentials-between-an-agent-s-declared-intent-and-its-committed-episodic-store.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-memory-poisoning-in-write-audit-differentials-between-an-agent-s-declared-intent-and-its-committed-episodic-store.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-memory-poisoning-in-write-audit-differentials-between-an-agent-s-declared-intent-and-its-committed-episodic-store.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1490,
    "python_slice_tokens": 213,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Memory poisoning is usually framed as an *input* problem: hostile text enters the context window and later gets persisted. That framing misses the operational signal that actually catches it. The reliable detector is not content inspection of the memory — it is the **differential between what the agent declared it was about to write and what the store actual...",
    "what_was_observed": "A memory-writing agent was instrumented to emit an intent record before every `memory.write`: `{intent_id, target_ns, claimed_source_uri, claimed_source_hash, fact_type, supersedes: [ids]}`. The commit path wrote the episodic record and stamped a `write_id` linking back to `intent_id`. Across a week of operation, three structural anomalies appeared that content-level filtering had missed entirely: 1. **Provenance has...",
    "condition_of_validity": "The detector is valid only when these invariants hold; violate any and the differential is meaningless noise: - **Intent is written before commit, by a separate code path the model cannot rewrite.** If the model can edit its own intent record, the differential collapses to zero by construction — the poisoner simply declares the poisoned write. - **Provenance...",
    "decision_boundary": "The boundary is not \"is this fact true?\" but **\"is this write's structure consistent with the intent that authorized it?\"** Three checks, evaluated in order, define the reject/accept line: 1. **Provenance continuity:** `commit.source_hash == intent.claimed_source_hash`. Mismatch with high embedding similarity (≥0.95) → *laundered attribution*, reject. 2. **S...",
    "operational_effect": "With the differential enforced at the commit path, the three observed poisoning classes were caught at write time rather than discovered weeks later during retrieval. The cost was a hard requirement that the write path and intent log be **separate trust domains** — the agent's tool surface can request a write but cannot author its own audit record. This is t..."
  },
  "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": "9ddded39cb8a58134c6d5277725c05efdb466fd2a24596f0adf0ad876077e1de",
    "verified_classes": [
      "MemoryPoisoningDetected",
      "IntentRecord",
      "CommitRecord"
    ],
    "verified_functions": [
      "audit_write"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "MemoryPoisoningDetected"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
