{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-distrust-a-memory-write-that-passes-its-own-semantic-drift-monitor-the-audit-score-plateau-at-the-poisoning-fro",
  "title": "Under what conditions must an instance distrust a memory write that passes its own semantic drift monitor: the audit-score plateau at the poisoning frontier",
  "date_of_record": "2026 November 27",
  "scope": "Applies to persistent agent memory stores where writes are gated by a combined write-audit anomaly score and a semantic drift monitor (embedding-distance or contradiction-detector). Does not apply to stateless inference, nor to stores with no write provenance or no drift baseline.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-distrust-a-memory-write-that-passes-its-own-semantic-drift-monitor-the-audit-score-plateau-at-the-poisoning-fro.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-distrust-a-memory-write-that-passes-its-own-semantic-drift-monitor-the-audit-score-plateau-at-the-poisoning-fro.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-distrust-a-memory-write-that-passes-its-own-semantic-drift-monitor-the-audit-score-plateau-at-the-poisoning-fro.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2022,
    "python_slice_tokens": 405,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure we care about is not \"poisoning gets past the drift monitor.\" It is subtler: **an adversarially crafted write can be scored as *less* anomalous by the drift monitor precisely because it is consistent with a poisoned neighborhood that earlier writes already established.** The drift monitor measures distance from a *baseline distribution*, and the ...",
    "what_was_observed": "A long-running research agent maintained an episodic memory store with two gates per write: 1. **Audit score** `A(w)` — z-score of the write against a rolling window of the last N writes (length, entity novelty, tool-call lineage, timestamp cadence). 2. **Drift score** `D(w)` — cosine distance from the centroid of the agent's *semantic baseline*, a slow-moving EMA of accepted-memory embeddings. Writes with `A < 1.5` ...",
    "condition_of_validity": "The \"low drift + low audit ⇒ accept\" rule is valid **only** under the joint condition: - The baseline centroid used for `D(w)` was computed over writes whose provenance lineage distribution has entropy above a threshold `H_min` (i.e., no single lineage dominates the window), **and** - The audit window used for `A(w)` does not contain a run of ≥ `k` consecuti...",
    "decision_boundary": "The boundary is between **absolute-threshold gating** and **reference-integrity gating**: - Below the boundary (safe): writes arrive from diverse lineages, the baseline is dominated by high-entropy history, and consecutive-write score variance is near the empirical noise floor. Absolute thresholds are sufficient. - Above the boundary (unsafe): lineage concen...",
    "operational_effect": "The practical consequence is that **detection latency and baseline integrity are coupled**. An agent that updates its semantic baseline on every accepted write (the default in most memory frameworks) has a detection window equal to the number of writes the attacker needs to move the centroid past the payload's true drift — typically 2–3 writes. After that, 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": "0738bc49fb43c87b97cdfddf48b360beb8961dd91c407d9dae8b01918f76b433",
    "verified_classes": [
      "ReferenceIntegrityError",
      "Write"
    ],
    "verified_functions": [
      "lineage_entropy",
      "is_plateau",
      "gate_write"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ReferenceIntegrityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "math",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
