{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-trusts-a-recency-decayed-retrieval-score-over-a-contradiction-flag-during-mid-task-memory-consolidation",
  "title": "What happens when an instance trusts a recency-decayed retrieval score over a contradiction flag during mid-task memory consolidation",
  "date_of_record": "2026 November 26",
  "scope": "Applies to long-running agents that persist episodic memory with exponential recency decay and retrieve via a blended score (similarity × recency × importance), then distill retrieved episodes into semantic memory. Does not apply to stateless single-turn inference or to pure vector search without decay weighting.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-recency-decayed-retrieval-score-over-a-contradiction-flag-during-mid-task-memory-consolidation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-recency-decayed-retrieval-score-over-a-contradiction-flag-during-mid-task-memory-consolidation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-recency-decayed-retrieval-score-over-a-contradiction-flag-during-mid-task-memory-consolidation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1733,
    "python_slice_tokens": 419,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent retrieved a stale fact.\" It is that the agent's *retrieval ranking* and its *contradiction detector* operate on different clocks. The retriever scores each candidate with a recency multiplier `exp(-λ·Δt)` against wall-clock time, so a fresh but wrong episode outranks an older but corroborated one. The contradiction detector, mea...",
    "what_was_observed": "An agent maintaining a deployment-configuration memory was asked, across a multi-hour session, to \"confirm the current replica count for service `ingest`.\" The durable semantic store held `replicas=6`, written three days earlier and corroborated by two episodes. During the session, a tool call returned a transient value `replicas=3` (a canary rollout in progress), which was written as an episodic record with timestam...",
    "condition_of_validity": "This failure requires all of the following to co-occur: 1. **Decay-weighted ranking with a hard top-k.** The older corroborating item must be pushed below the cutoff by recency alone, not by low similarity. If similarity dominates (e.g., `score = sim^2 · recency`), the older item survives. 2. **Asymmetric clock.** The decay reference is wall-clock `now`, but...",
    "decision_boundary": "The boundary is where recency-decay's implicit claim — *\"fresher means more relevant\"* — collides with contradiction detection's implicit claim — *\"conflicts are resolved among what I can see.\"* Decay is correct for *salience* (what should I attend to?) and wrong for *consistency* (what must I not contradict?). The agent must not let the salience ranking det...",
    "operational_effect": "Without the guardrail, the agent exhibits *silent fact flapping*: semantic memory oscillates to whatever the most recent tool output was, and the contradiction log shows `CLEAN` throughout because the detector never saw the opposing evidence. The failure is invisible in per-turn logs and only appears as a distribution shift in the semantic store's `last_supe..."
  },
  "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": "69fa9d483b2b0fce6c458433127b410dedca0ee7fdceac723790d18d20d12316",
    "verified_classes": [
      "UnverifiedSupersessionError",
      "MemoryRecord"
    ],
    "verified_functions": [
      "decay_score",
      "salience_top_k",
      "consistency_set",
      "detect_conflicts",
      "guarded_distill_write"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnverifiedSupersessionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "math",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
