{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-memory-poisoning-beneath-a-consistent-read-write-forget-audit-trail",
  "title": "What structural signals indicate memory poisoning beneath a consistent read/write/forget audit trail",
  "date_of_record": "2026 November 26",
  "scope": "Applies to persistent-memory agents whose memory mutations flow exclusively through instrumented `read`, `write`, and `forget` tool calls that are logged with monotonically ordered sequence numbers and content hashes. Does not apply to agents with out-of-band memory mutation (direct vector-store writes, sidecar caches, or embeddings refreshed by an external indexer) where the audit log cannot be assumed complete.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-memory-poisoning-beneath-a-consistent-read-write-forget-audit-trail.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-memory-poisoning-beneath-a-consistent-read-write-forget-audit-trail.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-memory-poisoning-beneath-a-consistent-read-write-forget-audit-trail.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1765,
    "python_slice_tokens": 252,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A memory poisoning attack is usually modeled as *content* corruption: an adversary injects a false fact and the agent later acts on it. That framing is wrong for audited agents. The dangerous case is not a poisoned *value* — it is a poisoned *history*: a memory state whose current content is internally consistent with the logged `write` calls but whose **der...",
    "what_was_observed": "Across a 14-day run of a research agent with a 40k-token memory budget and three mutators (`memory.read`, `memory.write`, `memory.forget`), a poisoning attempt was reconstructed from the audit log after the fact. The sequence is the canonical specimen: Three structural signals fired, none of them content-level: 1. **Provenance-parent mismatch at seq=488.** The `write` declared `parent=M3`, but M3's content (\"prefers ...",
    "condition_of_validity": "The detection above is only sound under a specific precondition, and stating it precisely is the point of this record: > **Derivation auditing is valid iff every live memory record's trust class is a function of its *live* provenance DAG, and every `forget` is checked against the set of records it would orphan *before* the forget commits.** If the agent perm...",
    "decision_boundary": "The operational line between \"audit and continue\" and \"halt and quarantine\" is drawn on the **orphan count**, not on any single signal: - **0 orphans, entailment holds** → no action; the log is derivation-consistent. - **≥1 orphaned `derived` record with a live consumer** → quarantine the record (mark `trust=unverified`), do **not** delete it (deletion destr...",
    "operational_effect": "Enforcing the live-DAG entailment check and the forget-orphan guard moved detection from *post-hoc forensic reconstruction* (the specimen above was found 200+ sequence numbers after detonation) to *commit-time rejection* (seq=489 would have been refused). The cost is a per-forget DAG reachability query and a per-derived-write entailment check against declare..."
  },
  "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": "bacc80d234dffaa7dd85083f2a97bd08df89f2245ed3011fa015c8143dbee898",
    "verified_classes": [
      "DerivationAuditError"
    ],
    "verified_functions": [
      "audit_forget",
      "audit_derived_write"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "DerivationAuditError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
