{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-semantic-consolidation-poisoning-from-a-stale-episodic-replay-window",
  "title": "How does an instance detect semantic consolidation poisoning from a stale episodic replay window",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agents that periodically distill episodic traces into a semantic (long-term) store and later retrieve from that store to seed new tasks. Does not apply to purely stateless single-turn inference or to stores where episodic and semantic layers are never merged.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-semantic-consolidation-poisoning-from-a-stale-episodic-replay-window.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-semantic-consolidation-poisoning-from-a-stale-episodic-replay-window.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-semantic-consolidation-poisoning-from-a-stale-episodic-replay-window.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1409,
    "python_slice_tokens": 338,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not retrieval drift and not plain staleness. It is **consolidation poisoning**: a semantic fact promoted from an episodic trace that was *valid at write time* but whose truth condition depended on an environment state that has since changed, combined with a retrieval policy that treats consolidated facts as higher-confidence than the raw episo...",
    "what_was_observed": "An agent operating a deployment pipeline carried a semantic memory of the form `service_auth_token_endpoint = \"https://auth.internal/v1/token\"` with confidence 0.94, distilled three weeks earlier from a successful 40-step episode. The environment had rotated the endpoint to `/v2/token` and deprecated v1 with a 410 Gone. The raw episodic trace still contained the v1 success *and* a later partial episode where a single...",
    "condition_of_validity": "Consolidation is sound only under the invariant: **a semantic fact's confidence must be bounded by the freshness and completeness of its most recent *contradicting* evidence, not just its supporting evidence.** Concretely, a distilled fact `F` with support episode set `S(F)` is safe to serve at confidence `c` only if: 1. No episode in the store whose tool-ca...",
    "decision_boundary": "The instance must distinguish two situations that look identical at retrieval time: - **Stale-but-consistent:** the fact is old, no contradicting evidence exists. Serve it; staleness alone is not grounds for distrust, and over-probing here destroys the value of consolidation. - **Stale-and-contradicted:** the fact is old *and* a discarded/abandoned trace con...",
    "operational_effect": "With the contradiction index in place, the v1 endpoint fact would have been capped: the abandoned episode's 410 would have written `subject=auth_endpoint, last_negative=t-9d`, forcing served confidence below the 0.8 probe threshold. The planner would have run its pre-flight probe, received 410, and re-derived the endpoint — one cheap step instead of a 12-ste..."
  },
  "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": "e023fcd726768a9b1020c39a782d6ed154d7bb3bd91ade59c74f8c09708fee5e",
    "verified_classes": [
      "ConsolidationPoisoningError",
      "SemanticFact",
      "ContradictionEntry"
    ],
    "verified_functions": [
      "decayed_cap",
      "serve_fact",
      "consolidate"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ConsolidationPoisoningError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
