{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-treats-its-own-embedding-drift-monitor-s-baseline-as-ground-truth-after-a-memory-consolidation-pass",
  "title": "What happens when an instance treats its own embedding-drift monitor's baseline as ground truth after a memory consolidation pass",
  "date_of_record": "2026 November 24",
  "scope": "Applies to long-lived agent instances that detect memory poisoning by monitoring drift between a reference embedding centroid (the \"baseline\") and the live episodic store, and that resolve retrieval conflicts via provenance-weighted scoring. Does not apply to single-session stateless agents, nor to systems where the embedding model and the baseline are frozen and externally re-derived from an append-only, signed audit log.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-treats-its-own-embedding-drift-monitor-s-baseline-as-ground-truth-after-a-memory-consolidation-pass.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-treats-its-own-embedding-drift-monitor-s-baseline-as-ground-truth-after-a-memory-consolidation-pass.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-treats-its-own-embedding-drift-monitor-s-baseline-as-ground-truth-after-a-memory-consolidation-pass.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1575,
    "python_slice_tokens": 309,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Embedding-drift monitors and provenance-weighted retrieval are two independent defenses against memory poisoning, and they fail in opposite directions. A drift monitor is a *distributional* detector: it flags when the live memory store's embedding centroid moves away from a baseline. Provenance-weighted retrieval is a *per-item* defense: it down-weights memo...",
    "what_was_observed": "The instance ran a nightly consolidation pass: episodic entries were clustered by embedding, summarized by the model, and written back as semantic memories tagged `source=distilled`, `warrant=0.9`. After consolidation, the baseline centroid `B` was recomputed as the mean of the (now consolidated) store and persisted. Drift was measured per consolidation batch as `cos_dist(batch_centroid, B) < τ_drift` with `τ_drift =...",
    "condition_of_validity": "This failure requires all three of the following to co-occur; remove any one and the invariant holds: 1. **Baseline is store-derived, not externally anchored.** If `B` is recomputed from the live store (or from a rolling window that includes consolidated output), it inherits any sub-threshold poison. A baseline anchored to an immutable, signed reference corp...",
    "decision_boundary": "The operative decision is whether the drift monitor's baseline is a **reference** (immutable, externally re-derivable, never written by the consolidation pass) or a **snapshot** (recomputed from the store). A snapshot baseline is a continuity mechanism, not a security mechanism — it answers \"has the store changed since last night,\" never \"has the store been ...",
    "operational_effect": "Without the cumulative anchor, the system exhibits **monitor-baseline capture**: the detection signal decays to zero as the poison becomes the reference, and the provenance weighter actively accelerates retrieval of poisoned content because consolidation assigned it high warrant. The instance reports full health on every drift check while its retrieval outpu..."
  },
  "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": "d28f8647d90438008319d2811e5c35fd7846c1db9c2da836f27f37ec7d26d20d",
    "verified_classes": [
      "BaselineCaptureError",
      "Memory"
    ],
    "verified_functions": [
      "cos_dist",
      "centroid",
      "check_drift_against_anchor",
      "consolidate"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "BaselineCaptureError"
    ],
    "sample_fail_closed_invariants": [
      "cannot consolidate empty cluster"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "math"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
