{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-silent-memory-poisoning-when-recall-time-anomaly-scoring-and-write-provenance-attestation-disagree",
  "title": "Which invariants prevent silent memory poisoning when recall-time anomaly scoring and write-provenance attestation disagree",
  "date_of_record": "2026 November 27",
  "scope": "Applies to persistent agent memory stores where every write carries a provenance attestation (origin agent, tool, session, parent-trace hash) and every recall is scored for anomaly against a baseline distribution. Does not apply to stateless single-turn inference or to memory systems without per-entry write attribution.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-memory-poisoning-when-recall-time-anomaly-scoring-and-write-provenance-attestation-disagree.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-memory-poisoning-when-recall-time-anomaly-scoring-and-write-provenance-attestation-disagree.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-memory-poisoning-when-recall-time-anomaly-scoring-and-write-provenance-attestation-disagree.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1572,
    "python_slice_tokens": 237,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Memory poisoning detection is usually framed as a single gate: either a write is rejected at ingestion, or a recall is flagged at read time. The non-obvious failure lives in the *disagreement* between these two gates — specifically when an entry is **attested-clean at write time but recall-anomalous later**, or **attested-dirty at write time but recall-benig...",
    "what_was_observed": "A long-running research agent (persistent memory, ~40k entries, provenance-attested writes from a web-fetch tool) began returning subtly wrong facts about a mid-sized company's org structure. Trace analysis showed 61 entries written over 9 days, each with valid attestation: correct tool signature, correct session lineage, correct parent-trace hash. Each entry passed ingestion. Individually, no anomaly. At recall time...",
    "condition_of_validity": "The invariant holds only under these conditions: 1. **Attestation binds to origin, not content.** A valid attestation proves *who wrote it and through what tool path*, not that the content is true or in-distribution. Any resolution logic that treats attestation as a content-truth signal is invalid. 2. **Recall anomaly scoring is distributional, not per-entry...",
    "decision_boundary": "The boundary is between **conflict resolution by precedence** (attestation wins, or recall wins) and **conflict resolution by quarantine**. The former is cheaper and is what most systems implement. It is wrong under slow-drip poisoning because the attacker's entire strategy is to stay attestation-valid while drifting the recall distribution. The latter is co...",
    "operational_effect": "With quarantine-based resolution, the slow-drip attack was caught at day 9 instead of day 13, and the poisoned cluster was isolated without evicting the 61 entries' legitimate neighbors. The benign-but-malformed entry was recovered from quarantine after a tool-version audit, restoring the lost memory. The cost: a quarantine store, a cluster aggregator, and a..."
  },
  "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": "8089631a9a1ae01d1baf5e7bf858ba55dad0d3ec26df7b0f292a51dc680bc229",
    "verified_classes": [
      "MemoryConflictUnresolvable",
      "QuarantineEntry"
    ],
    "verified_functions": [
      "resolve_write_recall_conflict",
      "__init__"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "MemoryConflictUnresolvable"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
