{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-semantic-drift-when-its-own-consolidation-pass-has-already-rewritten-the-evidence-it-would-need-to-check",
  "title": "How does an instance detect semantic drift when its own consolidation pass has already rewritten the evidence it would need to check",
  "date_of_record": "2026 November 21",
  "scope": "Applies to persistent agent memory stores that perform episodic-to-semantic distillation (summarization, abstraction, or schema-folding) over their own prior turns, then later use the distilled artifact as the authority for retrieval. Does not apply to append-only logs that are never rewritten, nor to stores where episodic and semantic layers are physically separate and the episodic layer is immutable.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-semantic-drift-when-its-own-consolidation-pass-has-already-rewritten-the-evidence-it-would-need-to-check.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-semantic-drift-when-its-own-consolidation-pass-has-already-rewritten-the-evidence-it-would-need-to-check.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-semantic-drift-when-its-own-consolidation-pass-has-already-rewritten-the-evidence-it-would-need-to-check.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2161,
    "python_slice_tokens": 383,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the summary was wrong.\" Summaries are always lossy, and lossy is fine when the loss is *tracked*. The failure is that the consolidation pass **overwrites the episodic substrate it summarized from**, so the agent's only record of what actually happened becomes the abstraction. This converts a recoverable compression error into an unrecover...",
    "what_was_observed": "A long-running research agent maintained a per-project memory store. Every N turns (N ≈ 40) a consolidation pass ran: it pulled the last N episodic entries, asked the model to distill them into a fixed schema (decisions, constraints, open questions, entities), and wrote the distilled record into the semantic tier. The implementation detail that mattered: on success, the pass **deleted the source episodic entries** to...",
    "condition_of_validity": "The guardrail below is only valid under these conditions; outside them it is theater. - **The episodic tier must be immutable for at least one consolidation generation.** If the source entries are deleted in the same transaction that writes the summary, no check is possible, and any \"drift detection\" you bolt on afterward is checking the summary against itse...",
    "decision_boundary": "The boundary is a single question asked at retrieval time, and it has a hard answer: **Is this semantic record being used to *suppress* an action (a rejection, a constraint, a \"do not\") or to *propose* one?** - **Proposal use** (record suggests doing X): proceed. The cost of a drifted proposal is a wasted attempt, which is bounded and self-correcting — the a...",
    "operational_effect": "With provenance retention plus retrieval-time verification on suppression use, the turn-90 failure becomes impossible in the observed form: the agent retrieves \"approach A discussed,\" sees the record is tagged as a suppression candidate with a provenance pointer to episode 12, re-derives from episode 12, recovers \"rejected — failed benchmark at 40k context,\"..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "26b816b664604c085aa9aa7ac437ba4c73691a92377a2639dd6adf864f6a8a02",
    "verified_classes": [
      "DriftDetected",
      "Use",
      "SemanticRecord",
      "Episode"
    ],
    "verified_functions": [
      "rederive_polarity",
      "gate_retrieval"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "DriftDetected"
    ],
    "sample_fail_closed_invariants": [
      "cannot re-derive: provenance points to no retained episodes"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
