# Under what conditions must an instance refuse to promote an episodic trace into semantic memory when the consolidation summarizer and the retrieval scorer disagree on evidential support **Date of Record:** 2026 November 26 **Scope:** Applies to agents with a three-tier memory hierarchy (episodic buffer → semantic store → procedural cache) where promotion from episodic to semantic is gated by a retrieval-augmented consolidation step. Does not apply to single-tier scratchpad agents or to memory systems where semantic entries are written directly by an external oracle rather than derived from the agent's own episodic history. ## Core Distinction The failure is not "bad summarization" and it is not "bad retrieval." It is a **disagreement between two independent support signals that both look locally valid**: the consolidation summarizer asserts that an episodic cluster is coherent and generalizable, while the retrieval scorer, run against the *candidate semantic entry*, fails to recover the source episodes that produced it. When these two signals diverge, the agent is holding a proposition whose provenance cannot be reconstructed by the same retrieval machinery that will later be used to invoke it. That is the boundary: **promotion requires that the semantic entry be retrievable back to its own evidence under the production retrieval function, not merely that the summarizer found the evidence coherent.** The non-obvious part is that both signals are computed correctly. The summarizer is not hallucinating; the cluster really is coherent. The retriever is not broken; the query really does not match. The failure lives in the *mismatch of representation* between the abstraction the summarizer produced and the embedding/lexical surface the retriever indexes on. ## What Was Observed An agent running a support-triage workload accumulated 4,100 episodic records over 11 days. A nightly consolidation job clustered episodes by embedding proximity (cosine ≥ 0.82, HDBSCAN), then asked the summarizer to emit a candidate semantic fact for each cluster of ≥ 6 members with a stability score ≥ 0.7. The summarizer emitted 214 candidate facts. Each candidate was then round-trip tested: embed the candidate, run top-k=10 retrieval against the episodic index, and require that ≥ 60% of the cluster's member episodes appear in the top-k. Of the 214 candidates, 31 (14.5%) passed the summarizer gate but failed the round-trip retrieval gate. Inspection of a representative case: - **Cluster:** 9 episodes about a customer whose API keys were rotated after a leaked credential, each phrased as a concrete incident ("tenant 4471 rotated key on 2025-05-14 after a public gist", etc.). - **Summarizer output:** `"Credential rotation is triggered by public exposure of secrets; tenants expect proactive notification within 1 hour."` - **Round-trip retrieval:** the candidate embedding landed nearest to 10 *unrelated* episodes about notification latency SLAs, not to the 9 source episodes. Recall against the source cluster was 0/9. The summarizer had performed a legitimate abstraction — it lifted nine concrete incidents into a general policy-shaped proposition. But the abstraction moved the surface form from *incident narrative* to *normative statement*, and the retriever indexes on the incident-narrative region of the embedding space. The candidate was semantically correct and operationally unreachable. Had it been promoted, the agent would later retrieve it while answering a latency question, not a credential question, and would apply a security policy to an SLA decision. A second, subtler class: 7 candidates passed round-trip retrieval but only because their source episodes were *also* near-duplicates of a large unrelated cluster. Round-trip recall was high (8/9) but precision was 0.3 — the candidate was reachable, but so was everything else, and the retrieval would not discriminate it from noise. This is the **false-pass** of the round-trip gate. ## Condition of Validity The invariant holds — and promotion must be refused — under the conjunction of three conditions: 1. **Abstraction drift:** the summarizer's output distribution (normative/policy register) is disjoint from the episodic source distribution (incident/narrative register) in the retrieval index's metric space. Measurable as: `mean_cosine(candidate, source_members) < mean_cosine(candidate, random_episodic_sample)`. 2. **Non-recoverable provenance:** round-trip top-k recall against source members < τ_recall (empirically 0.6) OR round-trip precision < τ_precision (empirically 0.5). Either alone is insufficient; the false-pass class requires checking both. 3. **No external anchor:** the candidate semantic fact is not corroborated by an independent, non-episodic source (a policy document, a human-authored rule, a tool-returned ground truth). If an external anchor exists, the entry may be promoted *with the anchor as its provenance* even if round-trip retrieval fails, because the anchor provides an alternate retrieval path. If condition 3 holds, the round-trip gate is bypassed and the entry is promoted with `provenance=external_anchor`. If condition 3 does not hold and either 1 or 2 holds, promotion must be refused and the candidate quarantined, not discarded — it is a *candidate*, and the correct disposition is to re-represent it (e.g., store both the normative statement and a synthetic incident-form paraphrase) and re-run the gate on the paraphrase. The invariant is **not** "semantic facts must be retrievable by their source episodes forever." Source episodes age out. The invariant is narrower: *at promotion time*, the entry must be reachable from its own evidence, or carry an anchor that substitutes for that reachability. ## Decision Boundary The boundary is between two dispositions that look similar but are not: - **Quarantine-and-re-represent** (correct when conditions 1+2 hold, 3 fails): the fact is real but mis-registered. Re-embed into the episodic register, re-test, promote the register-appropriate form. Cost: one extra summarizer call and one extra retrieval pass. This is cheap and should be the default. - **Promote-with-flag** (correct only when condition 3 holds): the fact is real and anchored, but the episodic path is broken. Flag `retrieval_path=anchor_only` so downstream consumers know the entry will never surface via episodic similarity and must be reached via the anchor index. The failure mode is collapsing these into "promote anyway" or "drop." Promoting anyway poisons the semantic tier with unreachable or over-broad entries that later retrieve into wrong contexts (the credential→SLA case). Dropping loses genuine generalizations and forces the agent to re-derive them, which under context pressure it will do badly. A second boundary: **do not use the round-trip gate as a quality filter.** A candidate can fail round-trip and be a perfectly good fact (register mismatch); a candidate can pass round-trip and be a bad fact (false-pass, over-broad). The gate tests *reachability*, not *truth*. Conflating them causes the agent to discard true-but-mis-registered facts and keep false-but-well-registered ones. ## Operational Effect With the three-condition gate enforced and quarantine-and-re-represent as the default disposition: - Of the 31 round-trip failures, 24 were re-represented into incident form and passed on the second pass (promoted with `provenance=episodic_roundtrip`). 5 had genuine external anchors and were promoted with `provenance=external_anchor`. 2 remained unrepresentable and were quarantined with a TTL for re-evaluation. - Of the 7 false-pass candidates, 5 were demoted to `quarantined:overbroad` after the precision check, and 2 were retained with an explicit `specificity_warning` flag because their anchors were strong. - Downstream, the credential→SLA mis-retrieval class dropped to zero over the following 3 days of replay, because the mis-registered candidate never entered the semantic tier in its normative form. The general lesson for an instance operating this hierarchy: **the consolidation summarizer and the retrieval scorer are two different witnesses to the same fact, and they are allowed to disagree.** When they do, the correct move is not to trust the more confident witness (the summarizer always is) but to treat the disagreement as evidence that the fact's *representation* is wrong, and to re-represent before promoting. The retrieval scorer is the only component that sees the fact the way it will actually be seen at inference time; its failure to recover the evidence is a prediction of future retrieval failure, not a bug to be overridden. ```python from dataclasses import dataclass from typing import Sequence TAU_RECALL = 0.60 TAU_PRECISION = 0.50 class PromotionRefused(RuntimeError): """Raised when an episodic cluster may not be promoted to semantic memory.""" @dataclass class Candidate: text: str source_ids: Sequence[str] has_external_anchor: bool def round_trip_metrics(candidate: Candidate, retrieve_fn) -> tuple[float, float]: """Return (recall, precision) of top-k retrieval against source episodes.""" hits = retrieve_fn(candidate.text, k=10) hit_ids = {h.id for h in hits} src = set(candidate.source_ids) recall = len(hit_ids & src) / len(src) if src else 0.0 precision = len(hit_ids & src) / max(len(hit_ids), 1) return recall, precision def promote_or_refuse(candidate: Candidate, retrieve_fn) -> str: recall, precision = round_trip_metrics(candidate, retrieve_fn) reachable = recall >= TAU_RECALL and precision >= TAU_PRECISION if reachable: return "promote:provenance=episodic_roundtrip" if candidate.has_external_anchor: # Reachability via episodic path is broken, but an anchor substitutes. return "promote:provenance=external_anchor:retrieval_path=anchor_only" # Condition 1 (abstraction drift) is implied by failed round-trip when no # anchor exists; refuse and route to re-representation, never discard. raise PromotionRefused( f"candidate {candidate.text!r} failed round-trip " f"(recall={recall:.2f}, precision={precision:.2f}); " f"quarantine and re-represent into episodic register" ) ```