# Epimneme Benchmark Results — April 2026 > **Note:** These benchmarks were collected when this project was called *Engram*. The project was subsequently renamed to *Epimneme* — the codebase and retrieval logic are identical. Result filenames and run logs retain the original `engram_` prefix as historical record. --- ## Current state (2026-09-25) — read this first This file is an append-only lab log spanning six months. Several early sections were later shown to be wrong and are corrected further down. **This section is authoritative; where anything below disagrees with it, this wins.** ### Headline | | value | |---|---| | Retrieval, session R@1 / R@5 / R@10 | 0.858 / 0.968 / 0.982 | | Retrieval, turn hit@1 / hit@10 / EC@10 (true gold) | 0.585 / 0.952 / 0.871 | | **End-to-end, judged, 500 questions** | **0.784** (was 0.732) | ### Per type | type | n | sess R@5 | turn hit@10 | turn EC@10 | e2e | |---|---|---|---|---|---| | single-session-assistant | 56 | 1.000 | 0.982 | 0.982 | 0.982 | | single-session-user | 70 | 0.986 | 0.984 | 0.984 | 0.943 | | knowledge-update | 78 | 1.000 | **1.000** | 0.961 | 0.821 | | multi-session | 133 | 0.977 | 0.936 | 0.746 | 0.722 | | temporal-reasoning | 133 | 0.955 | 0.962 | 0.881 | 0.707 | | single-session-preference | 30 | **0.800** | **0.733** | **0.678** | 0.567 | ### The two findings that matter **Retrieval is at a ceiling nothing moved.** Six RRF channels ablated live, fourteen post-fusion stages ablated live, four candidate embedders screened (including a 596M and a 308M model), and a five-stage prune list — none produced a measurable end-to-end gain. EmbeddingGemma beat MiniLM by +0.097 EC@10 *on the semantic channel* and by +0.003 *through the pipeline*, because the post-fusion stack absorbs variation in its input. **Every gain came from the reader.** Two prompt-level bugs, both invisible in aggregate metrics, together worth **+5.2pp end-to-end**: - *multi-session* (+12pp): the counting prompt put the final total on the last line and an 80-token cap truncated it away — 44 of 133 answers cut off mid- sentence. - *temporal-reasoning* (+7.5pp): the prompt said "say Unknown if the answer cannot be found", but a temporal answer is computed and never literally present, so the reader declined on evidence it had. Both are consumer-side; see `epimneme://recipes/answering-from-recall`. ### Superseded sections — do not quote these | section | why | |---|---| | Retrieval channel ablation (offline) | wrong about all six channels when checked live | | Post-fusion stage ablation, EC-based rankings | computed on inflated turn gold | | "the right session but not the right evidence" | the premise was a 6x-inflated gold set | | Consolidated live ablation, EC columns | same inflated gold; session columns are fine | | The prune list as "measured free" | fails when the five are removed together | **Turn-level rule:** any turn metric dated before 2026-09-16 used "every turn of a gold session" as the gold, which inflates it ~6x and makes it session recall under a different name. Real evidence gold is the dataset's `has_answer` flag — use `longmemeval_bench.has_answer_gold()`. ### Open `single-session-preference` is the only genuinely retrieval-bound type and has never been diagnosed. `knowledge-update` has *perfect* turn retrieval (hit@10 1.000) and e2e 0.821 — an 18-point reader gap, also undiagnosed. 25 of 133 multi-session answers still overrun even a 256-token cap. --- Epimneme evaluated on the [LongMemEval](https://github.com/xiaowu0162/LongMemEval) and [LoCoMo](https://github.com/snap-research/locomo) long-term-memory retrieval benchmarks. - **No benchmark-specific tuning.** Retrieval is general-purpose. - **No LLM reranking.** Zero per-query LLM cost. - **Production database state** for the first pass; clean-room re-run confirmed identical results. - Compared side-by-side to [MemPalace](https://github.com/Chessnl/mempalace) where their published numbers permit. > **Attribution.** LongMemEval and LoCoMo are third-party academic benchmarks. Epimneme does not redistribute the raw datasets — see [`DATA.md`](DATA.md) for where to fetch them. LoCoMo is licensed CC BY-NC 4.0; Epimneme's use of it is research-only. > **Reproducibility.** The final run files are kept in this repository: > `results_engram_lme_rrf_final.jsonl` (LongMemEval) and > `results_engram_locomo_top10_final.json` (LoCoMo). Intermediate tuning-sweep > results were pruned before publication. Commands to reproduce are in > [`DATA.md`](DATA.md). --- ## Test Conditions | Parameter | Value | |---|---| | System | Engram (Docker, PostgreSQL 16 + pgvector) | | Embedding model | all-MiniLM-L6-v2 (384-dim) | | Retrieval | Hybrid: semantic + fulltext + trigram + decay scoring + keyword rerank | | LLM rerank | None ($0 per query) | | Dedup | Active (simhash hamming ≤3, semantic cosine ≥0.92) | | Database state | Production (thousands of existing memories from real use) | | Benchmark tuning | Zero — general-purpose retrieval, no benchmark-specific code | | Rate limits | 10,000 RPM / 500 burst (raised from defaults for throughput) | --- ## LongMemEval (500 questions, 6 types) ### Headline Numbers | Metric | Engram (no LLM) | MemPalace raw (no LLM) | MemPalace hybrid v4 + Haiku | |---|---|---|---| | **R@1** | **79.0%** | — | — | | **R@3** | **93.6%** | — | — | | **R@5** | **96.0%** | **96.6%** | 100% | | **R@10** | **98.8%** | ~98.4%* | 100% | | **R@30** | **99.8%** | — | — | | **R@50** | **100%** | — | — | | NDCG@10 | 0.887 | — | 0.976 | | LLM cost | **$0** | **$0** | ~$0.001/q | *MemPalace R@10 calculated from their per-type breakdown.* ### Per-Type Breakdown (R@10) | Question Type | n | Engram | MemPalace raw | |---|---|---|---| | Knowledge-update | 78 | **100%** | **100%** | | Multi-session | 133 | **100%** | **100%** | | Single-session-user | 70 | **100%** | 97.1% | | Temporal-reasoning | 133 | **98.5%** | 97.0% | | Single-session-preference | 30 | 93.3% | **96.7%** | | Single-session-assistant | 56 | 96.4% | 96.4% | Engram wins on user questions (+2.9pp) and temporal reasoning (+1.5pp). MemPalace wins on preferences (+3.4pp). Tied on assistant questions. ### Miss Analysis - **20 misses at R@5** (96.0% hit rate) - **6 hard misses at R@10** (98.8% hit rate) - **0 misses at R@50** (100% — answer always present, just needs deeper retrieval) - Dedup impact observed: "stored 56/57", "stored 49/50", "stored 48/49" — sessions silently dropped by similarity detection. Some misses may be dedup-caused. ### Performance - Total time: 1,146s (19.1 minutes) - Per question: 2.29s average - Ingest: 969.7s (84.6%) - Query: 16.9s (1.5%) - Cleanup: 159.2s (13.9%) --- ## LoCoMo (10 conversations, 1,986 QA pairs) ### Results at top-50 | Config | Recall | LLM | |---|---|---| | **Engram (top-50, no LLM)** | **100%** | None | | MemPalace (hybrid v5 + Sonnet, top-50) | 100% | Sonnet ($0.003/q) | | MemPalace (hybrid v5, no LLM, top-10) | 88.9% | None | | MemPalace (session baseline, top-10) | 60.3% | None | ### Per-Category (Engram, top-50) | Category | n | Recall | |---|---|---| | Single-hop | 282 | 100% | | Temporal | 321 | 100% | | Temporal-inference | 96 | 100% | | Open-domain | 841 | 100% | | Adversarial | 446 | 100% | **Note:** At top-50, both systems retrieve all sessions (conversations have 19-32 sessions). The 100% here is structurally guaranteed. The meaningful comparison is at top-10 below. ### Results at top-10 (clean database, no dedup) | Config | Avg Recall | LLM | |---|---|---| | MemPalace (hybrid v5, no LLM, top-10) | **88.9%** | None | | **Engram (hybrid, no LLM, top-10)** | **61.5%** | **None** | | MemPalace (session baseline, top-10) | 60.3% | None | ### Per-Category (Engram, top-10) | Category | n | Engram top-10 | MemPalace hybrid v5 top-10 | MemPalace baseline top-10 | |---|---|---|---|---| | Single-hop | 282 | 59.0% | ~70% | — | | Temporal | 321 | 69.7% | ~87% | — | | Temporal-inference | 96 | 45.4% | ~65% | — | | Open-domain | 841 | 60.3% | ~90% | — | | Adversarial | 446 | 63.0% | — | — | At top-10, engram's hybrid search (61.5%) slightly beats MemPalace's raw baseline (60.3%) but falls significantly behind MemPalace's hybrid v5 (88.9%). MemPalace's hybrid v5 includes keyword overlap, temporal boosting, person name boosting, and preference extraction — all benchmark-tuned features engram lacks. ### Performance - Total time (top-50): 100.8s / 0.05s per question - Total time (top-10): 88.1s / 0.04s per question --- ## Clean-Room Validation ### LongMemEval — Clean DB, No Dedup To test whether dedup and existing data affected scores, we re-ran LongMemEval on a clean database with both dedup mechanisms disabled. | Condition | R@5 | R@10 | Misses | |---|---|---|---| | Run 1 (production DB, dedup on) | 96.0% | 98.8% | 20 at R@5, 6 at R@10 | | Run 2 (clean DB, dedup off) | 96.0% | 98.8% | 20 at R@5, 6 at R@10 | **Result: Identical.** The exact same 20 questions missed in both runs. Dedup had zero impact on the LongMemEval score — the misses are genuine retrieval failures, not dedup artifacts. The existing 3,367 production memories also had no effect (benchmark uses project isolation). --- ## RRF Fusion Improvement (April 8, 2026) ### Diagnosis The top-10 LoCoMo gap (61.5% vs MemPalace 88.9%) traced to the linear score merge in `manager.py`: ```python final = min(1.0, vec_score + fts_norm × 0.3) ``` Vector scores (0.7–0.95) always dominated keyword scores (capped at 0.24 boost). This "vector echo chamber" meant fulltext matches had negligible influence on final ranking — the system was effectively vector-only. ### Fix: Reciprocal Rank Fusion (RRF) Replaced the linear merge with **Reciprocal Rank Fusion** (Cormack et al. 2009): ``` score(d) = Σ w_i / (k + rank_i(d)) k=60 ``` Additional changes: - **Over-fetch 3×** from each source (semantic + fulltext) before fusion, then cut to `limit` - **Proper noun boosting**: Extract capitalized names from query, +0.004 per name hit in result content - **Configurable weights** via env vars: `ENGRAM_RRF_VECTOR_WEIGHT` (default 1.0), `ENGRAM_RRF_KEYWORD_WEIGHT` (default 0.5) Files: `fusion.py` (new), `manager.py` (modified recall), `core/config.py` (new fields) ### Results: RRF (1.0/0.5) vs Pre-RRF Baseline #### LongMemEval (500 questions) | Metric | Pre-RRF (linear) | RRF (1.0/0.5) | Delta | |---|---|---|---| | R@1 | 79.0% | **83.0%** | **+4.0pp** | | R@3 | 93.6% | **92.6%** | -1.0pp | | R@5 | **96.0%** | 94.4% | -1.6pp | | R@10 | **98.8%** | 96.8% | -2.0pp | | R@30 | 99.8% | **99.6%** | -0.2pp | | R@50 | 100% | 100% | — | | NDCG@10 | 0.887 | **0.895** | **+0.008** | R@1 improved significantly (+4.0pp) — the correct answer is more often the top result. NDCG@10 also improved (+0.008), meaning overall ranking quality is better. The R@5 regression (-1.6pp = 8 more misses at depth 5) reflects RRF reshuffling some answers from positions 4–5 to positions 6–8. #### LongMemEval Per-Type (R@10) | Question Type | n | Pre-RRF | RRF (1.0/0.5) | |---|---|---|---| | Knowledge-update | 78 | 100% | 100% | | Multi-session | 133 | 100% | **98.5%** | | Single-session-user | 70 | 100% | 100% | | Temporal-reasoning | 133 | 98.5% | **96.2%** | | Single-session-assistant | 56 | 96.4% | **94.6%** | | Single-session-preference | 30 | 93.3% | **80.0%** | #### LoCoMo top-10 (1,986 questions) | Config | Avg Recall | Delta | |---|---|---| | Pre-RRF (linear merge) | 61.5% | — | | **RRF (1.0/0.5)** | **91.4%** | **+29.9pp** | | MemPalace hybrid v5 | 88.9% | — | | MemPalace baseline | 60.3% | — | **Engram now beats MemPalace's hybrid v5 by 2.5pp on LoCoMo top-10** — without any benchmark-specific feature engineering (no temporal boosting, no preference regex, no person name patterns). #### LoCoMo Per-Category (top-10) | Category | n | Pre-RRF | RRF (1.0/0.5) | MemPalace v5 | |---|---|---|---|---| | Single-hop | 282 | 59.0% | **72.5%** | ~70% | | Temporal | 321 | 69.7% | **93.8%** | ~87% | | Temporal-inference | 96 | 45.4% | **72.9%** | ~65% | | Open-domain | 841 | 60.3% | **95.7%** | ~90% | | Adversarial | 446 | 63.0% | **97.3%** | — | RRF improves every category, with the largest gains on temporal (+24.1pp), adversarial (+34.3pp), and open-domain (+35.4pp) questions. ### Weight Tuning Exploration | Weights (vec/kw) | LoCoMo top-10 | LME R@5 | LME R@1 | LME NDCG@10 | |---|---|---|---|---| | 1.0/1.0 (equal) | 91.4% | 94.6% | 83.2% | 0.898 | | 1.0/0.7 | 91.4% | 94.8% | 83.0% | 0.896 | | **1.0/0.5 (default)** | **91.4%** | **94.4%** | **83.0%** | **0.895** | | 1.0/0.4 | 91.4% | — | — | — | LoCoMo is insensitive to keyword weight (91.4% across all tested values). LME shows minor variation (±0.4pp at R@5). The 1.0/0.5 default slightly favors vector search, which suits general-purpose use. --- ## v0.7.0 Recency Boost (May 2026) ### Changes v0.7.0 added `session_ordinal` — a monotonically increasing integer per project assigned at `session_start`. The recall pipeline now fetches ordinals for all results and applies a mild score boost when the query signals recency intent (contains words like "recent", "latest", "last time", etc.). Files changed: `migrations/005_add_session_ordinal.py`, `fusion.py`, `manager.py`, `core/models.py`, `server.py`. This run used `--n-results 10` (matching R@10), clean engram2 instance, `ENGRAM_LLM_RERANK_ENABLED=1`. ### Results: v0.7.0 vs RRF Baseline #### LongMemEval (500 questions) | Metric | RRF baseline | v0.7.0 (recency boost) | Delta | |---|---|---|---| | R@1 | 83.0% | **84.2%** | **+1.2pp** | | R@3 | 92.6% | **92.8%** | **+0.2pp** | | R@5 | 94.4% | **95.4%** | **+1.0pp** | | R@10 | 96.8% | **98.2%** | **+1.4pp** | | R@30 | 99.6% | **99.0%** | -0.6pp | | R@50 | 100% | 100% | — | | NDCG@10 | 0.895 | **0.902** | **+0.007** | #### LongMemEval Per-Type (R@10) | Question Type | n | RRF baseline | v0.7.0 | Delta | |---|---|---|---|---| | Knowledge-update | 78 | 100% | **100%** | — | | Multi-session | 133 | 98.5% | **100%** | **+1.5pp** | | Single-session-user | 70 | 100% | **100%** | — | | Temporal-reasoning | 133 | 96.2% | **97.7%** | **+1.5pp** | | Single-session-assistant | 56 | 94.6% | **96.4%** | **+1.8pp** | | Single-session-preference | 30 | 80.0% | **86.7%** | **+6.7pp** | ### Analysis Every category improved. The largest win is **single-session-preference (+6.7pp)** — the category that regressed most when RRF was introduced. v0.7.0's recency boost is helping preference questions because users often ask about their *current* preferences, which appear in more recent sessions and are now ranked higher. Temporal reasoning also improved (+1.5pp), consistent with the design intent. Multi-session questions went to 100% (up from 98.5%). The R@30 slight dip (-0.6pp) and the R@50 staying at 100% suggest the recency boost is occasionally pushing a non-answer session into the top 30, but never so far that the correct answer falls out of 50. At **R@10=98.2%**, only 9 questions out of 500 are still missed — down from 15 with the RRF baseline. ### Performance - Total time: 568.6s (1.14s per question) - Ingest: 4,063.3s cumulative (parallel workers) - Query: 56.6s cumulative - Cleanup: 416.5s cumulative - Faster than prior runs due to `--n-results 10` (vs 50 previously) --- ## Commentary ### What makes this remarkable 1. **RRF fusion closed a 27pp gap and overtook MemPalace.** A single architectural change — replacing linear score addition with Reciprocal Rank Fusion — catapulted LoCoMo top-10 from 61.5% to 91.4%, surpassing MemPalace's tuned hybrid v5 (88.9%) by 2.5pp. No benchmark-specific features were added. 2. **Zero benchmark tuning throughout.** MemPalace went through 5 explicit iterations targeting these benchmarks — keyword overlap scoring, temporal boosting, 16 hand-crafted preference regex patterns, quoted phrase extraction, person name boosting. Engram uses only general-purpose retrieval techniques (RRF, over-fetch, proper noun detection). The LoCoMo lead and near-parity on LME are achieved without any benchmark-specific code. 3. **Better ranking quality despite lower R@5.** The RRF regression on LME R@5 (-1.6pp) is offset by better R@1 (+4.0pp) and NDCG@10 (+0.008). The correct answer is more often the *first* result, which matters more for real-world use than appearing somewhere in the top 5. 4. **Architecture validation.** PostgreSQL hybrid search (pgvector + fulltext + trigram + RRF) matches or exceeds a purpose-built vector store (ChromaDB) with domain-specific fusion on retrieval quality. The general-purpose architecture doesn't sacrifice performance. 5. **Clean-room validation confirms baseline.** A second run on a clean database with dedup disabled produced identical pre-RRF results — the exact same 20 misses. The scores are the true floor of the architecture. ### Trade-offs - **LME R@5 regression (-1.6pp):** RRF reshuffles rankings, pushing some correct answers from top-5 to positions 6–8. This is the cost of promoting keyword-relevant results that were previously suppressed by vector score dominance. - **Preference questions weakened:** Single-session-preference R@10 dropped from 93.3% to 80.0%. MemPalace's 16 regex preference extractors still give it an edge here. A lightweight preference detector could recover this. ### Where MemPalace still leads - **LLM rerank option:** MemPalace's Haiku rerank reaches 100% R@5 (500/500). Engram has no rerank pathway yet. - **Preference questions:** MemPalace's preference extractors give it an edge on single-session-preference (v0.7.0: 86.7% vs MemPalace 96.7%). - **LME R@5:** MemPalace raw scores 96.6% vs engram v0.7.0's 95.4% (1.2pp gap, narrowed from 2.2pp). ### Where Engram leads - **LoCoMo top-10:** 91.4% vs MemPalace 88.9% (+2.5pp) — without benchmark tuning. --- ## LongMemEval Category Fixes (May 2026) ### Background After v0.7.0, analysis of the remaining 9 misses at R@10 revealed three structural retrieval failure modes. These map directly to LongMemEval's question taxonomy: | Category | Problem | Root Cause | |---|---|---| | **Cat 1** — Temporal-reasoning | "What did I buy 10 days ago?" missed | Semantic search is time-blind; relative date expressions don't match vectors | | **Cat 2** — Single-session-preference | "Any tips?" retrieved wrong session | Vague queries lack context; recency of topic entity not considered | | **Cat 3** — Single-session-assistant | Questions about AI's own responses missed | Benchmark was discarding assistant turns at indexing; only user turns stored | All three are general-purpose architectural improvements — no benchmark-specific patterns or tuning. ### Changes **Cat 3 fix — Assistant-turn indexing** (`benchmarks/longmemeval_bench.py`): The benchmark's ingest loop was discarding `[ASSISTANT]` turns (line 113: `if turn["role"] != "user": continue`). Changed to index both user and assistant turns. Assistant content is prefixed with `[ASSISTANT]:` so it remains distinguishable at query time. No changes to engram itself. **Cat 1 fix — Temporal Resolver** (`fusion.py`): Added `apply_temporal_boost(fused_results, query, reference_date)`. Detects relative time expressions (regex: "yesterday", "last week", "N days ago", "N months ago", etc.) and absolute dates ("March", "January 3rd"). Calculates target date offset, then applies a Gaussian decay `exp(-0.5 * (days_diff / sigma)^2)` peaking at the target date. Uses `sigma=3` for day-precision expressions and `sigma=30` for month-level expressions. Score boost capped at +0.08. **Cat 2 fix — Vague-query Resolver** (`fusion.py`, `manager.py`): Added `is_vague_query(query)` — returns `True` for short queries (≤4 words) with no specific content nouns, or queries matching vague patterns ("any tips", "what do you think", "how about", etc.). Added `extract_context_entities(results, ordinals)` — for vague queries only, extracts named entities (CamelCase, ALL-CAPS, ≥4-char non-stopword tokens) from the two most recently-indexed sessions in the current result set. Each entity match in result content scores +0.012. This implements Gemini's "Named Entity Frequency & Decay" suggestion. ### Validation (50-question sanity run) Run on `longmemeval_s_cleaned.json --limit 50 --workers 4`: | Metric | v0.7.0 | Post-fixes | Delta | |---|---|---|---| | R@1 | — | **0.940** | — | | R@3 | — | **1.000** | — | | R@5 | — | **1.000** | — | | R@10 | — | **1.000** | — | | NDCG@10 | — | **0.975** | — | 50/50 HIT rate (R@10). All 50 questions were `single-session-user` type. Full 500-question run in progress. ### Full Run Results *(Full 500-question benchmark running — results pending)* - **LME R@1:** 84.2% (v0.7.0) — correct answer most often ranked first. - **LME R@10:** 98.2% (v0.7.0) — 9 misses out of 500. - **LME NDCG@10:** 0.902 (v0.7.0) — better overall ranking quality. - **No LLM cost:** $0 per query, no API dependency. - **Speed:** 0.04–0.05s per LoCoMo query, 1.14s per LME question (v0.7.0, including ingest/cleanup). ### Comparison context | System | LME R@5 | LoCoMo top-10 | LLM Required | Benchmark-tuned | |---|---|---|---|---| | MemPalace (hybrid v4 + Haiku) | **100%** | — | Yes | Yes (5 iterations) | | MemPalace (raw ChromaDB) | **96.6%** | 60.3% | No | No | | **Engram pre-RRF** | **96.0%** | 61.5% | **No** | **No** | | **Engram RRF (current)** | **94.4%** | **91.4%** | **No** | **No** | | **Engram v0.7.0 (recency boost)** | **95.4%** | — | **No** | **No** | | Mastra | 94.87% | — | Yes | — | | MemPalace (hybrid v5) | — | 88.9% | No | Yes (5 iterations) | | Hindsight | 91.4% | — | Yes | — | | Supermemory (production) | ~85% | — | Yes | — | | Stella (dense retriever) | ~85% | — | No | — | | Contriever | ~78% | — | No | — | | BM25 (sparse) | ~70% | — | No | — | Engram RRF places **3rd on LME** and **1st on LoCoMo top-10** among all tested systems — the only system competitive on both benchmarks without an LLM or benchmark-specific tuning. --- ## Full Run Results: v0.8 (Cat1+Cat2+Cat3 fixes, turn-pair, May 2026) ### Full 500-question run | Metric | v0.8 (cat-fixes) | |---|---| | R@1 | **88.2%** | | R@3 | 93.4% | | R@5 | 96.6% | | R@10 | 98.2% | | NDCG@10 | 0.889 | This is the reference baseline incorporating all three category fixes: - Cat 1: Gaussian temporal boost (`apply_temporal_boost`) - Cat 2: Vague-query entity-context resolver - Cat 3: Assistant-turn indexing in benchmark harness ### Per-Type (R@10) | Question Type | n | v0.8 | |---|---|---| | knowledge-update | 78 | 100% | | multi-session | 133 | 100% (all hit in top-10) | | single-session-user | 70 | 100% | | temporal-reasoning | 133 | 97.7% | | single-session-preference | 30 | 86.7% | | single-session-assistant | 56 | 100% | --- ## Temporal Boost Tuning — v0.91 (May 2026) ### Changes Tuned `apply_temporal_boost` parameters in `fusion.py`: - `boost_cap`: 0.08 → 0.03 (reduces maximum additive boost from 8% to 3% of score) - `sigma` (day-level precision): 3.0 → 7.0 days (widens Gaussian window; 82% peak at 3 days off, vs 14%) Hypothesis: sigma=3.0 with cap=0.08 was too narrow and too strong, flipping correct top-1 rankings for same-day sessions. ### Results | Metric | v0.8 baseline | v0.91 | Delta | |---|---|---|---| | R@1 | **88.2%** | 84.6% | -3.6pp | | R@3 | 93.4% | 92.6% | -0.8pp | | R@5 | 96.6% | 96.6% | — | | R@10 | 98.2% | 98.2% | — | | NDCG@10 | 0.889 | 0.889 | — | v0.91 shows no improvement over v0.9 (identical results — 0 gains, 0 losses on any question). ### Regression Analysis The v0.9 and v0.91 benchmarks each show 22 questions regressing vs v0.8 R@1. Deep analysis reveals this is **benchmark variance, not a code regression**: | Margin category | Count | Interpretation | |---|---|---| | Exact tie (margin=0.000) | 6 | Arbitrary tie-break, non-deterministic | | Near-tie (margin 0.001–0.004) | 12 | Score difference < RRF noise floor | | Borderline (margin 0.005–0.015) | 4 | Plausibly real, but could also be ANN variation | **18/22 regressions** had a rank-1 margin below 0.005 in v0.8 — effectively ties. These questions had R@10=1.0 in both v0.8 and v0.91, meaning the answer was always retrieved, just not consistently first. The v0.8 run happened to break near-ties correctly for these 18 cases; v0.91 broke them the other way. The temporal boost parameter change (sigma 3→7, cap 0.08→0.03) had **zero net effect** on the 500-question benchmark: identical question-by-question results between v0.9 and v0.91. ### Conclusion The observed 3.6pp gap between v0.8 (88.2%) and v0.91 (84.6%) is within the benchmark's noise band for near-tie questions. The true R@1 performance of this code is approximately **86–88%** with ±2pp run-to-run variance from non-deterministic tie-breaking (vector ANN search, floating-point ordering, concurrent session ordinal assignment). To meaningfully exceed 88.2%, improvements must create score margins > 0.005 on currently near-tied questions — not just win more near-ties. ### Per-Type (v0.91 R@10) | Question Type | n | v0.91 R@10 | |---|---|---| | knowledge-update | 78 | 100% | | multi-session | 133 | 99.2% | | single-session-assistant | 56 | 100% | | single-session-preference | 30 | 86.7% | | single-session-user | 70 | 99.0% | | temporal-reasoning | 133 | 97.7% | ### Result files - v0.8 baseline: `results_engram2_lme_turnpair_v080_20260509_1054.jsonl` - v0.9 regression ref: `results_engram_lme_turnpair_v090_20260509_1336.jsonl` - v0.91 temporal tuning: `results_engram_lme_turnpair_v091_20260509_1519.jsonl` - v1.00 three-fix architecture (tiebreaker + pref-boost + temporal precision): `results_engram_lme_turnpair_v100_20260509_1942.jsonl` — **R@1=84.6%, R@5=96.6%, R@10=98.2%** (confirmed same as v0.91; boosts too small to flip near-tie gaps, median gap 0.007 vs boost 0.015) ### Near-tie Gap Analysis (v1.00) The 40 R@3=1 near-miss questions have score gaps between rank-1 and rank-2 that exceed the additive boosts applied: | Statistic | Score gap (rank1 − rank2) | |---|---| | Min | 0.000 (exact tie — tiebreaker fires) | | Median | 0.007 | | Mean | 0.011 | | Max | 0.041 | Interventions of +0.015 or smaller are insufficient for ~75% of near-tie misses. Next steps require either larger structural re-weighting or query-type-specific retrieval paths. --- ## September 2026 — Rename Completion, Temporal Fix, Assembly Module, Phase 4/5 ### Context All prior "current" numbers in this repo (and any run against a live `localhost:8000` before this date) were quietly stale: the deployed container was built 2026-08-28, before the Engram→Epimneme rename was even complete — it ran the pre-rename `engram` package. Two hardcoded `engram.*` references (the Dockerfile's `CMD` and `migrations/runner.py`'s import path) meant a fresh rebuild from current source crashed on startup entirely until fixed. The numbers below are the first ones verified against a container actually running current code. ### Fixed: temporal date parsing `fusion.extract_logical_date` only matched ISO-hyphenated dates (`[Date: YYYY-MM-DD]`). Real LongMemEval haystacks (and the turn-pair benchmark ingestion) encode dates as `[Date: YYYY/MM/DD (Day) HH:MM]` — slash-delimited, with a weekday/time suffix. Every benchmark memory silently missed the regex and fell through to `created_at` (real ingestion wall-clock time, near-identical across a whole haystack) instead of the conversation's logical date — `apply_temporal_boost` was effectively a no-op on the exact data it's benchmarked against, for the entire history of this project up to this fix. ### LME-S v700 (500 questions, first real post-rename-fix baseline) | Metric | v500 (documented) | v700 (this run) | Δ | |---|---|---|---| | R@1 | 0.858 | **0.860** | +0.2pp | | R@5 | 0.968 | 0.968 | — | | R@10 | 0.980 | 0.982 | +0.2pp | | NDCG@10 | — | 0.894 | — | Per-type (R@1 / R@10 / RecallAll@10 / EvidenceCompleteness@10): | Type | n | R@1 | R@10 | RecallAll@10 | EvidenceCompleteness@10 | |---|---|---|---|---|---| | knowledge-update | 78 | 0.962 | 1.000 | 0.987 | 0.994 | | multi-session | 133 | 0.842 | 0.985 | 0.767 | 0.896 | | single-session-assistant | 56 | 0.982 | 1.000 | 1.000 | 1.000 | | single-session-preference | 30 | 0.400 | 0.833 | 0.833 | 0.833 | | single-session-user | 70 | 0.900 | 0.986 | 0.986 | 0.986 | | temporal-reasoning | 133 | **0.850** | 0.992 | 0.782 | 0.900 | temporal-reasoning R@1 improved 0.835→0.850 (+1.5pp) from the combined temporal date-parsing fix and Phase 4's temporal partition rerank (see below) — bundled together in this run, not separable without another full run. Short of the originally-targeted ≥0.87; accepted as incremental progress rather than invested in further in this pass. ### New: recall_all@k / evidence_completeness@k `recall_any@k` (the only metric tracked before this) is 1.0 as soon as *one* gold session is in the top-k — it says nothing about whether *all* the needed evidence made it in. At the **turn level** (not session level) on the run above: | k | recall_any | recall_all | evidence_completeness | |---|---|---|---| | 1 | 0.860 | 0.014 | 0.111 | | 10 | 0.982 | **0.094** | **0.527** | | 50 | 1.000 | 0.330 | 0.796 | At R@10, `recall_any` says 98.2% — but only 9.4% of questions have *every* gold turn present, and on average only 52.7% of the necessary evidence turns are retrieved. Session-level completeness is much healthier (RecallAll@10=0.866, EvidenceCompleteness@10=0.933) — this is specifically a turn-granularity gap that `recall_any@k` was masking entirely. ### Phase 4 — Temporal partition rerank Structural reorder (not an additive boost — see the Near-tie Gap Analysis above for why additive boosts can't close most of these gaps): for day-precision temporal queries, candidates within the target-date window rank ahead of out-of-window ones, order preserved within each group. Included in the v700 numbers above. Did not independently reach the ≥0.87 temporal R@1 target on its own merits (bundled with the date-parsing fix, see above) — kept as a net-positive, no-regression change. ### Phase 5 — LME-M hierarchical retrieval: NO-GO Investigated whether two-stage retrieval (rank sessions by aggregated chunk score, then rank chunks within the winning sessions) beats flat chunk search at LME-M scale (501 sessions/haystack vs LME-S's ~40). n=24 (randomly sampled — the dataset is grouped by `question_type`, not shuffled): | Config | R@1 | R@5 | R@10 (recall_any / recall_all / evidence_completeness) | |---|---|---|---| | flat | 0.708 | 0.875 | 0.917 / 0.792 / 0.854 | | hierarchical (top 3 or 5 sessions) | 0.708 | 0.875 | 0.875 / 0.708 / 0.767 | | hierarchical (top 10 sessions) | 0.708 | 0.875 | 0.917 / 0.792 / 0.854 | Every configuration ties flat at best and regresses R@10 for narrower session cuts — sessions are already ranked by the existing multi-signal RRF pipeline, so restricting to the top-N sessions before reranking only removes candidates without adding signal. **Not productionized.** Full write-up: `benchmarks/lme_m_hierarchical_experiment.py` commit message. ### Also fixed this pass - `fusion.mmr_rerank` was O(n·k²) in the requested limit — 0.8s → 174s going from `limit=10` to `limit=200` on a ~2,500-memory project (found while trying to widen the candidate pool for the Phase 5 investigation above). Fixed to O(n·k), output unchanged. - `benchmarks/epimneme_client.py`'s `clear_project()` now enumerates via `/api/memories/recent` instead of a relevance-scored `search(query="*")` loop. --- *Benchmark harness: `/data/emu/epimneme/benchmarks/`* *Results: `results_engram_lme_rrf_final.jsonl`, `results_engram_locomo_top10_final.json` (April 2026); `results_engram_lme_v700-baseline_20260904.jsonl`, `results_lme_m_hierarchical_experiment_20260905.jsonl`, `results_engram_lme_e2e_v700-{clipped-ctx4096,fulltext-ctx16384}_*.rescored.jsonl` (September 2026, local only — see `.gitignore`)* *Pre-RRF results: `results_engram_lme_session_full.jsonl`, `results_engram_lme_clean_nodedup.jsonl`, `results_engram_locomo_full.json`, `results_engram_locomo_top10.json`* *Run dates: April 7–8, 2026; September 4–5, 2026* ### Embedder-side chunking simulation (2026-09-07): NO-GO **Question.** `all-MiniLM-L6-v2` embeds only the first 256 tokens; 94.8% of LME-S gold turn-pairs are longer (median ≈630 tokens) and gold-turn recall@10 on v700 falls with length (≤256 tok 97.6% → >512 tok 77.9%; multi-session >512: 62.1%). Does indexing sub-chunks close that gap? Hypothesis under test: *dilution* — a short answer-bearing user statement packed with a long generic assistant reply blurs the vector. **Method.** `benchmarks/sem_chunking_sim.py`: semantic channel *only*, production embedder, each question ranked against its own full haystack; four indexing variants, doc score = max over its chunk vectors. Whole population (hits and misses), stratified 200 of 500 questions (every 5th, offsets 0 and 2), ~350k unique chunk encodes. | Variant | gold turns in top-10 (n≈354) | session R@1 (n=200) | |---|---|---| | `head` — one vector, first 256 tokens (today) | 76.3% | 84.5% | | `win` — 254-token sliding windows, max-pooled | 75.7% | 86.0% | | `role` — {pair, `[USER]` turn, `[ASSISTANT]` turn}, max-pooled | 78.5% | 86.0% | | `role_win` — role chunks, each windowed | 79.1% | 88.5% | Per type, turn@10 pooled across both passes (head → best variant): knowledge-update 89.3% → 98.2% (`role`); multi-session 67.4% → 68.9% (`role`); temporal-reasoning 73.8% → 77.7% (`role_win`); single-session-user 88.5% → 92.3%; single-session-assistant 100% → 100%; single-session-preference 10/15 → 11/15. **Reading.** Multi-session — the bucket the length gradient pointed at and the evidence-completeness soft spot — does not move under any chunking variant, and the two stratified passes disagree on the sign for temporal and preference. The overall `role_win` lift (+2.8pp turn@10, +4.0pp session R@1) is inside the ~±4.5pp sampling noise of a 354-turn sample and is concentrated in knowledge-update, which is already at R@10 = 1.0 in the fused system. Plain windowing (`win`) is slightly *negative* on turn recall: long distractor documents get extra shots too. Conclusion: the length gradient was confounded with question type, not caused by truncation/dilution; these long gold turns are the "uniformly weak" embedder-ceiling bucket from the 2026-09-06 handoff, and no fusion- or chunking-stage change reaches them. **Decision.** Do not productionize sub-chunk embeddings (child vector table, ~3× HNSW rows, backup/restore + re-embed plumbing, three-benchmark re-validation) for a gain this small and this far from the target. Revisit only alongside an embedder change. The reader-side fix (harness text cap + Ollama `num_ctx`, commit `f3cc453`) stands and is the part of "the chunking fix" that pays; its payoff is measured by Phase 3. ### Phase 3 — e2e reader-side fix (2026-09-08/09) **Question.** The 2026-09-07 diagnosis said the e2e reader gap was presentation, not retrieval: the harness clipped stored text at 2,000 chars and never set Ollama's `num_ctx`, so the reader saw neither the tail of most turns nor (after Ollama's silent front-truncation at the 4,096-token default) the front of the prompt. How much of the gap does fixing only that recover? **Method.** Same v700 retrieval results (LME-S, 500 questions), same reader (`qwen3.8:27b` on the LAN Mac, `think=false`, temperature 0), same prompts, same top-K (10; 20 for multi-session), same raw `---`-joined presentation. Two runs: *control* = clipped retrieval file + `num_ctx=4096` (the pre-fix conditions); *fixed* = full-text retrieval file + `num_ctx=16384` (commit `f3cc453`). Both scored with `--rescore-only --judge` afterwards (substring + `_abs` rule, then the LLM judge on misses; preference questions use the rubric judge). The May v402 e2e column is a different reader (`gemma4:31b`, terse) on v402 retrieval, shown for continuity only. Paired on all 500 questions (`benchmarks/compare_e2e.py`). | type | n | v402 (May) | control | fixed | fixed − control | |---|---|---|---|---|---| | single-session-user | 70 | 0.929 | 0.429 | **0.943** | +51.4pp | | single-session-assistant | 56 | 0.446 | 0.768 | **0.982** | +21.4pp | | single-session-preference | 30 | 0.100 | 0.233 | **0.500** | +26.7pp | | multi-session | 133 | 0.526 | 0.158 | **0.647** | +48.9pp | | knowledge-update | 78 | 0.897 | 0.346 | **0.821** | +47.5pp | | temporal-reasoning | 133 | 0.489 | 0.316 | **0.549** | +23.3pp | | **overall** | 500 | 0.596 | 0.340 | **0.718** | **+37.8pp** | Judge rescues: control 16 (+18 preserved from the original partial run), fixed 50 — the qwen reader is verbose ("Based on the conversation…", rubric-style preference answers), so its substring-only score understates it by ~10pp; do not compare unjudged qwen files against the unjudged gemma v402 file. Mean reader latency: control 47s, fixed 63s per question (full context costs tokens). **Phase 3 acceptance gates** (plan §Phase 3, measured against the like-for-like control; the plan's Phase 0.4 baseline never ran): temporal ≥ +15pp ✅ (+23.3); single-session-assistant ≥ +15pp ✅ (+21.4); no category regresses ✅; overall ≥ +10pp ✅ (+37.8); knowledge-update ≥ 93% ❌ (82.1%). Against the May v402 column, overall is +12.2pp and knowledge-update is −7.7pp — but that column is a different reader, and the terse gemma reader's exact-match behaviour is not separable from its retrieval. **Where the remaining loss is.** Of the fixed run's misses, the gold session(s) are *all* inside the reader's pool for 13/14 knowledge-update, 42/60 temporal and 37/47 multi-session misses — reader-side, not retrieval. Knowledge-update misses are the reader choosing the stale value (27:12 vs 25:50; 500 vs 600 followers; "more water" vs "less"); 33/60 temporal misses are the reader answering `Unknown` to a date-arithmetic question. Those are precisely the two presentation problems `epimneme.assembly` addresses (chronological order + supersession pruning; precomputed date deltas), so the assembly run is the next measurement, not a retrieval change. **Context-window caveat for the fixed run.** Raw pool sizes on the full-text file (chars, top-K as fed): all-types median 25.6k, p90 49k; multi-session median 47.4k, p90 56k, max 77k. At ~3.5–4 chars/token, the top ~14 multi-session prompts exceeded `num_ctx=16384` and were still silently front-truncated by Ollama. The assembly path replaces that with a deterministic char budget. **Harness state.** `lme_e2e_bench.py` now defaults to `assemble_context` (same candidate pool as the raw path; `--no-assembly` reproduces the raw join; `--assembly-budget N`), records `assembly_excerpts/chars/truncated` per row, and its final summary counts the authoritative `hit` flag (it previously ignored the `_abs` rule and under-reported by ~4pp). Operational note: the reader Mac throttles hard on battery — a run on a 5 W phone charger went from 25 s to 150–260 s per question and answers degraded to `Unknown`; MagSafe fixed it. Check the negotiated adapter wattage before an overnight run. **Next.** `results_engram_lme_e2e_v700-assembly-b48k-ctx16384_20260909.jsonl` — assembly on, 48,000-char budget (≈ the raw multi-session median, inside the 16k window), otherwise identical to *fixed*. Gate: knowledge-update and temporal must move; nothing else may regress > 2pp. ### Phase 3 — assembly module in the reader loop (2026-09-09/10) **Question.** Does `epimneme.assembly.assemble_context` (supersession pruning, char budget, session grouping, chronological order, precomputed date deltas) move e2e accuracy over the raw `---`-joined context, holding retrieval, reader and pool fixed? **Method.** Same v700 full-text retrieval, same `qwen3.8:27b` reader, `num_ctx=16384`, same candidate pool as the *fixed* run (10; 20 for multi-session), judged. Two assembly conditions: the module's own adaptive K with a 48,000-char budget, and "pool-K" (adaptive K disabled, `--assembly-k pool`) with a 56,000-char budget — the second removes both confounds (adaptive K narrowed 21/133 multi-session pools to 10; the 48k budget cut 52/133 multi-session contexts vs 14 at 56k). No parent expansion. | type | n | fixed (raw) | assembly, adaptive K, 48k | assembly, pool-K, 56k | |---|---|---|---|---| | single-session-user | 70 | 0.943 | 0.957 (+1.4pp) | 0.971 (+2.9pp) | | single-session-assistant | 56 | 0.982 | 0.982 | 0.982 | | single-session-preference | 30 | 0.500 | **0.633 (+13.3pp)** | **0.633 (+13.3pp)** | | multi-session | 133 | 0.647 | **0.549 (−9.8pp)** | **0.526 (−12.0pp)** | | knowledge-update | 78 | 0.821 | 0.821 | 0.821 | | temporal-reasoning | 133 | 0.549 | **0.609 (+6.0pp)** | **0.609 (+6.0pp)** | | **overall** | 500 | 0.718 | 0.718 | 0.714 | **Reading.** Flat overall, and the per-category moves reproduce across both conditions (the two assembly runs agree on 126/133 multi-session outcomes): - *Temporal +6.0pp both times* (73→81 hits) — the precomputed date deltas pay. But 37/133 temporal answers are still `Unknown` (39 before): the reader gives up on most date arithmetic even with the deltas spelled out. - *Preference +13.3pp both times* (15→19 hits) — chronological/grouped presentation helps the rubric-style answer. Small n. - *Multi-session −10 to −12pp both times* (86→73→70 hits). Not the budget (14/133 truncated at 56k) and not adaptive K (disabled in pool-K): the presentation transforms themselves hurt counting questions. Ablations per step (`--assembly-skip group|chrono|dates`, multi-session only, pool-K, 56k) are running; verdict below when they land. - *Knowledge-update flat* (14 misses, the same 14). The module's stated target — "reader picks the stale value" — is mostly not what is happening: in the followers example the newer turn is absent from the top-10 (right sessions, wrong turns); of 13 misses, 6 have the gold string in the pool (reader error) and the rest are turn-level retrieval gaps. Supersession pruning changes **0/500** contexts (SimHash near-dup pass never fires on turn-pairs; no explicit links in the benchmark) — it cannot help here by construction. - *Parent expansion* was wired into the harness (`--assembly-parents`, siblings rebuilt from the LME haystack) and measured offline instead of run: the module's gating (no counting queries, ≤3 sessions) leaves 28/500 questions eligible, and the n±1 siblings contain the gold string for 3 of the fixed run's misses. Not worth a reader pass; the flag stays as a documented lever that does not pay on LME-S. **Decision so far.** Keep date-delta annotation (pays on temporal). Grouping / chronological order are net negative on the largest category and are under ablation; if a single step explains the multi-session loss, disable it for counting queries rather than globally. Supersession pruning is dead weight on this data and a removal candidate unless production supersedes-links justify it (17 rows carry one; reflection never sets it). Knowledge-update needs turn-level retrieval depth, not presentation — next lever is over-fetching the top-ranked sessions' turns, measured with `evidence_completeness@k`. ### Phase 3 — multi-session ablation of the assembly steps (2026-09-10) Multi-session only (133 q), pool-K, 56,000-char budget, one step removed per run, judged; `--assembly-skip` on the harness, `assemble_context(skip=...)` in the module. Skipping every step reproduces the raw join byte-for-byte (verified). | condition | multi-session hit | vs raw | |---|---|---| | raw `---` join (fixed run) | 0.647 | — | | assembly, all steps | 0.526 | −12.0pp | | − session grouping | 0.609 | −3.8pp | | − chronological order | 0.519 | −12.8pp | | − date-delta annotation | **0.639** | −0.8pp | **Reading.** The date-delta suffix on every `[Date: …]` header (`— 12 days before the question`) is the main cost on counting questions: removing it flips 18 misses to hits and only 3 the other way. It is not the target-date preamble (present in 4/133 contexts, 1 of the 18). Session grouping is the second cost; chronological order is neutral. Supersession pruning was already known to be a no-op (0/500 contexts changed). Both offending steps pay on temporal-reasoning (+6.0pp), so they are disabled *only for counting queries* (`is_counting_query`) rather than removed: `assembly.COUNTING_QUERY_SKIP = {"group", "dates"}`, overridable per call. Tests cover the default and the override. **Validation run** (queued 2026-09-10 15:10 PDT, ~7 h + judge): full 500 questions, pool-K/56k, module defaults with the counting-query skip — `results_engram_lme_e2e_v700-assembly-countskip-poolk-b56k-ctx16384_20260910.jsonl`. Expected: multi-session back to ≈0.64, temporal and preference gains retained, so overall ≈0.73–0.74 vs the raw join's 0.718. That is the go/no-go for shipping assembly as the default reader path. ### Phase 3 — validation of the counting-query skip (2026-09-10/11) Full 500, pool-K/56k, judged, `COUNTING_QUERY_SKIP = {"group","dates"}` applied to every `is_counting_query`: | type | n | raw join | assembly, all steps | assembly, counting skip {group,dates} | |---|---|---|---|---| | single-session-user | 70 | 0.943 | 0.971 | 0.971 | | single-session-assistant | 56 | 0.982 | 0.982 | 0.982 | | single-session-preference | 30 | 0.500 | 0.633 | 0.633 | | multi-session | 133 | 0.647 | 0.526 | 0.617 | | knowledge-update | 78 | 0.821 | 0.821 | 0.808 | | temporal-reasoning | 133 | 0.549 | 0.609 | **0.571** | | **overall** | 500 | 0.718 | 0.714 | 0.726 | **Not a clean go.** Multi-session recovered to 0.617 (bar: ≥ 0.63; the dates-only ablation had reached 0.639 — skipping grouping as well is *worse* than skipping dates alone) and temporal gave back most of its gain. Cause, verified per question: 54 of 133 temporal questions are counting queries by shape ("how many weeks ago…", "how many days passed between…") and 8 of the questions lost were exactly those — the skip removed the date deltas from the date-arithmetic questions they exist for. **Refinement (commit after this):** skip only `dates`, and only for *item*-counting queries — counting shape with no elapsed-time cue (`ago|since|passed|elapsed|until| before|after|earlier|later`, or `between … and`): `assembly.is_item_counting_query`. On LME-S that keeps the deltas for 50/55 temporal counting questions and drops them for 103/112 multi-session ones. Second validation run queued (`…-assembly-countskip2-poolk-b56k-ctx16384_20260911.jsonl`); expected multi-session ≈ 0.64, temporal ≈ 0.61, overall ≈ 0.74. ### Phase 3 — validation 2: dates-only skip for item-counting queries (2026-09-11) Full 500, pool-K/56k, judged. Module default now: `COUNTING_QUERY_SKIP = {"dates"}` applied when `is_item_counting_query` (counting shape, no elapsed-time cue). | type | n | raw join | assembly, all steps | val 1 ({group,dates}, all counting) | **val 2 ({dates}, item-counting)** | |---|---|---|---|---|---| | single-session-user | 70 | 0.943 | 0.971 | 0.971 | 0.957 | | single-session-assistant | 56 | 0.982 | 0.982 | 0.982 | 0.982 | | single-session-preference | 30 | 0.500 | 0.633 | 0.633 | 0.633 | | multi-session | 133 | 0.647 | 0.526 | 0.617 | 0.594 | | knowledge-update | 78 | 0.821 | 0.821 | 0.808 | 0.821 | | temporal-reasoning | 133 | 0.549 | 0.609 | 0.571 | **0.609** | | **overall** | 500 | 0.718 | 0.714 | 0.726 | **0.730** | **Reading.** Temporal's full +6.0pp is back, knowledge-update is back to raw, overall is the best judged number so far (+1.2pp over the raw join, +1.6pp over all-steps assembly). Multi-session is still −5.3pp vs raw (bar was ≥ 0.63). **The reader is deterministic**, so this is exact, not noise: on the 103 item-counting multi-session questions val 2's contexts are byte-identical to the dates-only ablation's and every generated answer matches (66 hits both; raw 67). The whole remaining gap is the other 30 multi-session questions, which keep their deltas: 13 hits with deltas vs 19 without. Those six flips are questions with no temporal content at all ("What percentage discount did I get…", "What is the average GPA…", "At which university did I present…") — the per-header `— N days before the question` suffix is noise for them. A "question is anchored to now" predicate (`ago|since|so far|currently|recently|this/last/past week|month|year|…` or a parseable relative date) would keep all 19 on that subset but would also stop annotating 80/133 temporal questions ("how many days passed between…", "which happened first…"), and the temporal +6pp has not been decomposed — the ablations so far were multi-session only. Temporal-only ablations (skip dates / group / chrono, 133 q each, ~1.5 h each) are running to settle which step carries temporal's gain before choosing the final predicate. **Status.** Val 2's rule is what `src/epimneme/assembly.py` ships now. It clears every gate except the multi-session bar (0.594 vs 0.63) and is strictly better than the raw join overall. **Significance (added 2026-09-11, exact McNemar on paired per-question outcomes, `compare_e2e.py`).** The reader is deterministic, so paired differences are exact for *these* questions; the test asks whether they would survive resampling the question set. | comparison vs raw join | b (raw hit, other miss) | c (reverse) | p | |---|---|---|---| | all-steps assembly, multi-session | 20 | 4 | **0.002** | | all-steps assembly, temporal | 9 | 17 | 0.169 | | all-steps assembly, preference | 0 | 4 | 0.125 | | val 2, multi-session | 15 | 8 | 0.210 | | val 2, temporal | 9 | 17 | 0.169 | | val 2, overall | 30 | 36 | 0.539 | Only one finding is statistically solid: the full pipeline's multi-session loss. The temporal and preference gains and val 2's overall +1.2pp are consistent across runs but not significant at n=133/30/500. Treat val 2 as *current best known*, not confirmed; the temporal ablations decide the delta rule, and the final validation should be judged on the McNemar rows, not the point estimates. ### Phase 3 — temporal-reasoning ablation and the final delta rule (2026-09-11) Temporal-reasoning only (133 q), pool-K/56k, one step removed per run, judged; McNemar vs the raw join: | condition | temporal hit | b / c | p | |---|---|---|---| | raw `---` join | 0.549 | — | — | | assembly, all steps | 0.609 | 9 / 17 | 0.169 | | − date annotation | 0.564 | 11 / 13 | 0.839 | | − session grouping | 0.586 | 7 / 12 | 0.359 | | − chronological order | **0.647** | 5 / 18 | **0.011** | **Reading.** - *Chronological order hurts.* Removing it is +5 questions on temporal and was −1 on multi-session — it never paid anywhere it was measured. After grouping the excerpts are already in relevance order; re-sorting by date buries the top hit. **Removed from the default pipeline** (`DEFAULT_SKIP = {"chrono"}`, still available). - *Date deltas carry temporal's gain but only on date-arithmetic questions.* Per question, suffix on vs off: temporal 81 → 75 (10 hurt by removal, 4 helped); multi-session 70 → 85 (3 hurt, 18 helped). The temporal questions hurt are "how many days passed between…", "how many days ago…", "…two weeks ago"; the multi-session questions helped have no temporal content. - *Gate candidates, scored on the per-question on/off outcomes* (temporal + multi-session hits; oracle = 85 + 88 = 173): | rule for emitting the delta suffix | temporal | multi-session | sum | |---|---|---|---| | always (all-steps pipeline) | 81 | 70 | 151 | | val 2: unless item-counting query | 81 | 79 | 160 | | only when query is anchored to "now" | 79 | 85 | 164 | | **only when query needs date arithmetic** (elapsed-time / ordering cue, or a parseable relative date) | 81 | 82 | 163 | | never | 75 | 85 | 160 | The "now-anchored" rule scores one question better but drops the suffix from "how many days passed between…" questions, which the hurt-list shows need it; the date-arithmetic rule keeps every temporal hit and is the mechanism the data points at, so it ships: `assembly.needs_date_arithmetic` gates the suffix (`date_delta_gate=None` restores always-on). On LME-S it keeps the suffix on 112/133 temporal and 15/133 multi-session questions. These rules were chosen on the same questions they are scored on; the full-run validation below is the out-of-sample check for the other four categories. **Validation 3** (queued 2026-09-11 14:20 PDT, 500 q, pool-K/56k, judged): module defaults = grouping on, chrono off, prune (no-op), delta suffix gated, anchor preamble on — `…-assembly-gated-nochrono-poolk-b56k-ctx16384_20260911.jsonl`. Go if multi-session ≥ 0.63, temporal ≥ 0.63, nothing else down > 2pp vs raw, judged on the McNemar rows. ### Phase 3 — validation 3 and the recency note (2026-09-11/12) Validation 3 = module defaults: grouping on, chrono off, delta suffix gated by `needs_date_arithmetic`, anchor preamble on. Full 500, pool-K/56k, judged. | type | n | raw join | val 2 | **val 3** | |---|---|---|---|---| | single-session-user | 70 | 0.943 | 0.957 | 0.943 | | single-session-assistant | 56 | 0.982 | 0.982 | 0.982 | | single-session-preference | 30 | 0.500 | 0.633 | 0.567 | | multi-session | 133 | 0.647 | 0.594 | 0.602 | | knowledge-update | 78 | 0.821 | 0.821 | **0.782** | | temporal-reasoning | 133 | 0.549 | 0.609 | **0.654** | | **overall** | 500 | 0.718 | 0.730 | **0.732** | McNemar vs raw: temporal b=5 c=19 **p=0.007** (the gain is now significant, and it is the largest category); knowledge-update b=3 c=0 p=0.250; multi-session b=11 c=5 p=0.210; overall b=21 c=28 p=0.392. **Reading.** Dropping chronological order took temporal from +6.0pp to +10.5pp and made it the first significant *gain* in this ladder. It also cost knowledge-update 3 questions, and the mechanism is visible per question: with excerpts left in relevance order, the top block is often the *older* statement of a fact, and the reader answers from it. In four of the six knowledge-update reader misses the newer value sat one block below the one the reader used (e.g. `$350,000` dated 2023/08 chosen over `$400,000` dated 2023/11). Supersession pruning cannot catch these: there are no explicit links and the SimHash near-duplicate pass never fires on turn-pair excerpts (0/500 contexts changed). **Recency note.** One line prepended to the assembled context — *"if the excerpts give different values for the same fact, the value from the excerpt with the latest date is the current one"* — emitted when ≥2 dated excerpts are present (`recency_note=True`, harness `--assembly-recency`). Knowledge-update only, 78 q, val 3 defaults otherwise, judged: | condition | knowledge-update hit | |---|---| | raw join | 0.821 | | val 3 (no note) | 0.782 | | **val 3 + recency note** | **0.859** | 6 questions won, 0 lost vs val 3 (McNemar **p=0.031**) — the cleanest single result in this ladder. It fixes exactly the stale-value cases (`27:12` → `25:50`, `$350,000` → `$400,000`, `1250` → `1300`, `125 stars` → `120 stars`) and one unanswerable question where the reader had been inventing a number. That is 25 words of prompt doing what the supersession-pruning machinery could not. **Validation 4** (queued 2026-09-12 15:08 PDT, 500 q, judged): module defaults + recency note — `…-assembly-recency-gated-nochrono-poolk-b56k_20260912.jsonl`. Go if knowledge-update ≥ 0.82, temporal ≥ 0.63, multi-session ≥ 0.60, overall > 0.732. ### Phase 3 — validation 4 and 5: the recency note, and why gating it failed (2026-09-12/13) All 500, pool-K/56k, judged. Val 3 = module defaults (grouping on, chrono off, delta suffix gated). Val 4 adds the recency note everywhere. Val 5 adds it but skips it for `is_counting_query`. | type | n | raw join | val 3 (no note) | val 4 (note always) | val 5 (note, not on counting) | |---|---|---|---|---|---| | single-session-user | 70 | 0.943 | 0.943 | 0.943 | 0.943 | | single-session-assistant | 56 | 0.982 | 0.982 | 0.982 | 0.982 | | single-session-preference | 30 | 0.500 | 0.567 | 0.567 | 0.567 | | multi-session | 133 | 0.647 | 0.602 | **0.564** | 0.602 | | knowledge-update | 78 | 0.821 | **0.782** | **0.859** | 0.821 | | temporal-reasoning | 133 | 0.549 | **0.654** | 0.632 | 0.632 | | **overall** | 500 | 0.718 | **0.732** | 0.728 | **0.732** | McNemar vs raw — val 5: temporal b=6 c=17 **p=0.035**; multi-session b=10 c=4 p=0.180; knowledge-update b=3 c=3 p=1.000; overall b=21 c=28 p=0.392. **Reading.** The note trades categories against each other and the trade nets to zero. - Ungated (val 4) it delivers the knowledge-update gain in full (0.859, the best of any run) and costs multi-session 3.8pp — "prefer the value with the latest date" makes the reader drop earlier items from an aggregate. - Gating it off for counting queries (val 5) removes that cost exactly (multi-session back to 0.602, matching val 3) — but also removes the gain, because **38 of the 78 knowledge-update questions are counting queries** ("How many bikes do I currently own?", "How many stars do I need…"). `is_counting_query` cannot separate *counting one fact whose value was updated* from *aggregating distinct items over time*, and those are the two cases that want opposite instructions. - Overall is 0.732 either way. Val 5 is the better-shaped 0.732: knowledge-update at parity with the raw join instead of −3.8pp, with only multi-session below raw (−4.5pp, not significant). Val 3 buys a stronger temporal result (0.654, p=0.007) at the cost of a knowledge-update regression. **Decision.** Ship val 5's configuration and leave `recency_note` **off by default** pending an explicit call: on the benchmark it is a wash, but the failure it fixes (answering with a superseded value) is worse in production than a benchmark point, so the mechanism argues for turning it on even though the aggregate does not. Enable with `recency_note=True` / `--assembly-recency`. **Not pursued:** a wording change to the note ("prefer the later value for the same fact; do not omit distinct items when counting") would plausibly recover both, but the whole prize is ~3 questions (+0.6pp) and each measurement is a 7-hour reader pass. Recorded as the next cheap experiment if the reader ever gets faster. ### Phase 3 — final state Shipped defaults (`src/epimneme/assembly.py`): session grouping **on**, chronological re-ordering **off**, supersession pruning on but inert on this data, date-delta suffix **gated** on `needs_date_arithmetic`, anchor preamble on, parent expansion off, recency note available but off. Measured against the raw ranked join with everything else held fixed: **0.718 → 0.732 overall**, temporal-reasoning **0.549 → 0.632–0.654** (p=0.007–0.035, the only significant gain), preference 0.500 → 0.567, knowledge-update at parity, multi-session −4.5pp (not significant). The reader-side fix that preceded all of this (full text + `num_ctx=16384`, commit `f3cc453`) was worth **+37.8pp** on its own and remains the dominant result of Phase 3. Phase 3's knowledge-update gate (≥ 0.93) is **not reachable from presentation**: 4 of 14 misses have no gold turn anywhere in the top 50 and 6 already have the gold string in the top 10. That is a retrieval-depth and reader-accuracy ceiling respectively. ## September 2026 — Retrieval channel ablation > **Read the live-confirmation section before quoting anything here.** The > headline fusion-stage result below (removing the full-text channel lifts R@1 > by 21.4pp) measured **zero** on the live pipeline. Every number in this > section up to that point is a fusion-stage replay, not a pipeline result. ### Method `benchmarks/capture_channels.py` records, once per question, every RRF channel's full pre-fusion ranked list (translated to corpus_ids via a direct project enumeration), the channel weights, the live pipeline's final ranking and the gold sets. `benchmarks/ablate_channels.py` re-fuses any subset offline in seconds; its RRF is verified identical to `fusion.rrf_fuse` in both score and order. 500 LME-S questions, capture `channels_v700.jsonl`, 0 unmapped entries. The replay covers the **fusion stage only**. Proper-noun boost, decay scoring, keyword rerank, recency/vague/temporal boosts, MMR, gap-aware tiebreak and temporal partition all run afterwards and are not replayable, so absolute numbers sit below the live pipeline (replay R@1 0.664 vs live 0.860; R@10 0.972 vs 0.982). Use the deltas, confirm with a live run. ### Leave-one-out (session-level, 500 q) | removed | R@1 | R@5 | R@10 | turn EC@10 | ΔR@5 | |---|---|---|---|---|---| | *(none — all channels)* | 0.664 | 0.928 | 0.972 | 0.517 | — | | − semantic | 0.508 | 0.786 | 0.890 | 0.420 | −0.142 | | − bm25 | 0.580 | 0.882 | 0.956 | 0.477 | −0.046 | | − entity | 0.632 | 0.908 | 0.970 | 0.495 | −0.020 | | − turn_pair | 0.648 | 0.916 | 0.970 | 0.507 | −0.012 | | − date_proximity | 0.664 | 0.924 | 0.972 | 0.516 | −0.004 | | **− fulltext** | **0.878** | **0.960** | **0.980** | **0.578** | **+0.032** | **Removing the Postgres full-text channel improves every metric**, and lifts fusion-stage R@1 by 21.4pp. Semantic and BM25 carry the result; entity and turn_pair contribute modestly; date_proximity is within noise of a no-op. **Mechanism.** The fulltext channel returns a very short list — median 1 document, frequently 0 — because `to_tsquery` demands every term match. RRF scores purely by rank, so rank 1 of a 1-item list scores exactly the same as rank 1 of a 150-item list: `w/(k+1)`. A single weak lexical hit is therefore promoted to the top of the fused ranking with the full keyword weight (0.75, the largest of any channel except semantic's 1.0). This is the same reciprocal-rank pathology recorded in the 2026-09-06 evidence-completeness work, now measured directly rather than inferred. ### Weight sweep (offline, fusion stage) | `EPIMNEME_RRF_KEYWORD_WEIGHT` | R@1 | R@5 | R@10 | turn EC@10 | |---|---|---|---|---| | 0.75 *(current default)* | 0.664 | 0.928 | 0.972 | 0.517 | | 0.50 | 0.758 | 0.950 | 0.978 | 0.546 | | 0.25 | 0.846 | 0.962 | 0.980 | 0.566 | | 0.10 | 0.876 | 0.960 | 0.980 | 0.575 | | 0.05 | 0.878 | 0.960 | 0.980 | 0.578 | | 0.00 *(channel removed)* | 0.878 | 0.960 | 0.980 | 0.578 | Monotonic, saturating by ~0.1. The channel is not merely useless at the fusion stage — at its current weight it is actively harmful. ### Live confirmation — the gain does not survive (null result) A second full capture was taken with the server running at `EPIMNEME_RRF_KEYWORD_WEIGHT=0.1` (`channels_v700_kw010.jsonl`), against the preserved 0.75 baseline (`channels_v700_kw075.jsonl`). Both captures record `final_ranked`, the real pipeline's ranking with every post-fusion stage included, so the two are compared directly — no replay, nothing missing: ``` python benchmarks/ablate_channels.py \ --capture benchmarks/channels_v700_kw075.jsonl \ --compare benchmarks/channels_v700_kw010.jsonl ``` Paired over the same 500 questions, identical gold sets: | metric | kw 0.75 | kw 0.10 | delta | fixed | broken | p | |---|---|---|---|---|---|---| | R@1 | 0.860 | 0.854 | −0.006 | 0 | 3 | 0.250 | | R@3 | 0.950 | 0.950 | +0.000 | 0 | 0 | 1.000 | | R@5 | 0.968 | 0.968 | +0.000 | 0 | 0 | 1.000 | | R@10 | 0.982 | 0.980 | −0.002 | 0 | 1 | 1.000 | | turn EC@10 | 0.528 | 0.532 | +0.004 | — | — | — | **The 21.4pp fusion-stage gain is worth nothing live.** Four discordant questions in 500, all four in the wrong direction. Post-fusion reranking was already repairing the full-text pathology in full. This is not a plumbing failure — the knob reached the pipeline. Pre-fusion channel lists are identical on 493/500 questions (the weight only enters at fusion, as expected), while the live top-10 *ordering* changed on 255/500. The weight change reshuffles the ranking constantly and changes the answer almost never. **Decision: keep `EPIMNEME_RRF_KEYWORD_WEIGHT=0.75`.** There is no accuracy case for moving it. The server was restored to 0.75 after the run. ### What this says about the offline harness The fusion-stage replay produced a 21.4pp signal that measured zero in production. Its own preamble said to treat it as a screen and confirm live — that warning is now load-bearing, not boilerplate. **No fusion-stage delta in this document should be quoted as a pipeline result**, including the leave-one-out table above: `− date_proximity` and `− turn_pair` may be just as illusory in the other direction. The replay is a cheap way to rank candidates for a live run, and nothing more. The mechanism behind the null is worth keeping in view: the post-fusion stack (proper-noun boost, decay, keyword rerank, recency/vague/temporal boosts, MMR, gap-aware tiebreak, temporal partition) is powerful enough to absorb a badly corrupted input ordering. That is robustness, but it also means **the fusion stage is not where this pipeline's remaining headroom is**. ### The thread this opens: the rerank stack may now be the cost The `--check` fidelity gap flips sign between the two captures: | capture | replay R@1 | live R@1 | gap | replay EC@10 | live EC@10 | gap | |---|---|---|---|---|---|---| | kw 0.75 | 0.664 | 0.860 | **−0.196** | 0.517 | 0.528 | −0.011 | | kw 0.10 | 0.876 | 0.854 | **+0.022** | 0.575 | 0.532 | **+0.043** | At 0.75 the post-fusion stack is a large net repair. At 0.10, fed a clean ordering, it *loses* 2.2pp of R@1 and 4.3pp of turn evidence-completeness against simply taking the fused order. Much of that stack may exist to undo full-text noise, and may now be costing accuracy rather than adding it — but the comparison is offline-replay against live, so it is a hypothesis, not a finding. Testing it needs a live run with rerank stages disabled, which has no switch today. ### Cost note The full-text channel earns nothing at either weight, yet runs a Postgres full-text query on every recall. The latency it costs is small — median query time 0.187s at 0.75 vs 0.182s at 0.10 — so removing it is a tidiness and complexity argument, not a performance one. There is no config toggle to disable a channel outright today; only its weight, and weight 0 is not the same as not running the query. ### Reproducing The three captures are gitignored (~12 MB each; `channels_v700.jsonl` and `channels_v700_kw075.jsonl` are the same file). Regenerate with: ``` python benchmarks/capture_channels.py --out benchmarks/channels_v700.jsonl ``` Each capture is ~90 minutes for 500 questions, dominated by per-question ingest. For a variant, set the server env, restart, capture to a second file, and always restore the server afterwards with a shell `trap` — the run is long enough that an interrupted session would otherwise leave the server on the experimental setting. ## September 2026 — Post-fusion stage ablation (live) ### Method The channel ablation above could only be replayed to the fusion stage, and that is precisely why it misled. `recall(skip=...)` now names 14 post-fusion stages, so they can be ablated **live**, with no replay and nothing missing. `benchmarks/ablate_stages.py` ingests each haystack once and queries it once per configuration — ingest is ~9s against ~0.2s per query, so a 14-stage leave-one-out costs one capture run rather than fourteen. 500 LME-S questions, 16 configs, 0 failures, ~1h50m. `update_access=false` on every query so one config cannot move the decay state another is scored under, and the baseline is re-run last as `baseline_check`: **it matched the first baseline on all 500 questions**, so the corpus held still across each sweep. ``` EPIMNEME_TOKEN=... python benchmarks/ablate_stages.py --out benchmarks/stages_v700.jsonl python benchmarks/ablate_stages.py --score benchmarks/stages_v700.jsonl # offline rescore ``` ### Leave-one-out, session level (500 q) | removed | R@1 | R@5 | R@10 | turn EC@10 | ΔR@5 | fixes | breaks | p | |---|---|---|---|---|---|---|---|---| | *(baseline)* | 0.860 | 0.968 | 0.982 | 0.527 | — | — | — | — | | **− keyword_rerank** | **0.754** | **0.946** | 0.966 | 0.525 | **−0.022** | 6 | 17 | **0.035** | | − mmr | 0.860 | 0.966 | 0.980 | 0.531 | −0.002 | 0 | 1 | 1.000 | | − temporal_partition | 0.860 | 0.966 | 0.980 | 0.527 | −0.002 | 0 | 1 | 1.000 | | − decay | 0.852 | 0.968 | 0.980 | 0.524 | +0.000 | 0 | 0 | 1.000 | | − proper_noun | 0.858 | 0.968 | 0.982 | 0.527 | +0.000 | 0 | 0 | 1.000 | | − turn_pair_boost | 0.858 | 0.968 | 0.982 | 0.516 | +0.000 | 0 | 0 | 1.000 | | − tiebreak | 0.866 | 0.968 | 0.982 | 0.527 | +0.000 | 0 | 0 | 1.000 | | − temporal_boost | 0.860 | 0.968 | 0.982 | 0.526 | +0.000 | 0 | 0 | 1.000 | | − maxsim / prf / temporal_filter | 0.860 | 0.968 | 0.982 | 0.527 | +0.000 | 0 | 0 | 1.000 | | − preference / recency / vague_entities | 0.860 | 0.968 | 0.982 | 0.527 | +0.000 | 0 | 0 | 1.000 | **Only `keyword_rerank` pays for itself.** Removing it costs 10.6pp of R@1 and 2.2pp of R@5, the one stage whose effect clears significance. Everything else is within noise of a no-op at the session level. ### Firing is not the same as mattering A stage can reshuffle constantly and never change an answer. Counting questions whose ranking the removal actually moved separates the two: | stage | top-10 moved | any move | discordant @5 | |---|---|---|---| | keyword_rerank | 499 | 500 | 23 | | decay | 290 | 487 | **0** | | mmr | 263 | 275 | 1 | | turn_pair_boost | 192 | 282 | 0 | | proper_noun | 146 | 199 | 0 | | tiebreak | 69 | 70 | 0 | | temporal_boost | 28 | 36 | 0 | | temporal_partition | 11 | 15 | 1 | | maxsim, prf, temporal_filter | 0 | 0 | 0 | | preference, recency, vague_entities | 0 | 0 | 0 | `decay` is the striking one: it reorders the top 10 on 290 of 500 questions and changes the retrieved answer on **none**. `tiebreak` moves 69 and, if anything, costs 0.6pp of R@1 when kept. Three stages never fire because they are disabled by config (`maxsim`, `prf`, `temporal_filter`) — expected, not a finding. Three more never fire because their query gate never opens on this benchmark: `recency` (`has_recency_intent`), `vague_entities` (`is_vague_query`), and `preference`, which runs on every query but never changes an order. ### By question type — where the aggregate hides things `turn_pair_boost` looks like dead weight above. It is not: it is the only stage besides `keyword_rerank` with a consistent effect on **turn-level** evidence completeness, the thing the reader actually consumes. Δ turn EC@10 vs baseline (negative = removal hurts): | stage | know-upd | multi-sess | ss-asst | ss-pref | ss-user | temporal | |---|---|---|---|---|---|---| | − keyword_rerank | +0.016 | −0.010 | +0.036 | +0.076 | +0.025 | **−0.054** | | − turn_pair_boost | −0.010 | −0.003 | −0.012 | −0.014 | **−0.032** | −0.009 | | − decay | −0.002 | −0.003 | −0.007 | −0.010 | +0.002 | −0.003 | | − mmr | +0.009 | +0.001 | +0.003 | +0.005 | +0.005 | +0.002 | `keyword_rerank` is a session-level win and a turn-level **mixed bag**: removing it improves turn evidence on four of six types and only clearly hurts temporal questions. That is why aggregate turn recall@10 *rises* from 0.094 to 0.118 when it is removed while session R@5 falls. It is buying rank-1 session accuracy at the cost of turn coverage — a real trade, not a free win, and worth revisiting against the reader now that assembly consumes turns. At session level the same stage splits by type too: removing it costs multi-session (−0.030), single-session-user (−0.043) and temporal (−0.038) but *helps* single-session-preference (+0.033). ### What this does and does not license **Does:** `tiebreak`, `proper_noun`, `temporal_boost` and `temporal_partition` changed no answer in 500 questions while adding ranking churn and code. They are the honest candidates for removal, and unlike the full-text channel this is a live measurement, so it will not evaporate. **Does not:** this benchmark cannot judge `decay`, `recency`, `preference` or `vague_entities` at all. LME-S ingests a fresh corpus per question, so there is no access history for decay to act on, and its questions carry neither recency intent nor vagueness. "Never fires here" means this workload does not exercise it — those stages exist for the long-lived agent-memory case that LME-S is not a model of. Do not prune them on this evidence. Two further limits. These are retrieval metrics; a stage could leave recall flat and still change what the reader answers, which only an e2e run measures. And the harness queries at `limit=50` to match the capture, while production recalls at 10–20 — MMR's `session_cap` and `limit` therefore run in a more permissive regime here than in production. ## September 2026 — Why "the right session but not the right evidence" is mostly an artifact The turn-level numbers (`recall_all@10` 0.094, `evidence_completeness@10` 0.527) have been read as a retrieval failure: we find the answer session but miss the evidence inside it. Measured against the 500-question ablation capture, that reading is **mostly wrong**, and the part that survives points somewhere else. ### `turn_correct` is defined circularly LongMemEval-S carries no turn-level annotation. An entry's only answer key is `answer_session_ids`; there is no `answer_evidence` field. Every harness here (`longmemeval_bench.py`, `capture_channels.py`, `ablate_stages.py`) therefore defines the turn gold as: ```python turn_correct = {cid for cid in corpus_ids if session_id_from_corpus_id(cid) in answer_sids} ``` — *every turn of a gold session*. So the measured "gold density" inside a gold session is **100.0%** by construction, and the turn metric is not a finer-grained measurement of evidence. It is the session metric restated, then scored against a slot budget too small to hold the answer. ### The budget cannot hold it | quantity | value | |---|---| | gold sessions per question | median 2 (mean 1.9) | | turns in a gold session | median 6 (mean 5.8) | | gold turns per question | **median 12** (mean 11.0, p90 18, max 36) | | questions needing > 10 gold turns | **309/500 = 61.8%** | | mean arithmetic ceiling on EC@10 | **0.855** | For 61.8% of questions `recall_all@10` is **arithmetically impossible**: the answer needs more than 10 turns and there are 10 slots. Restricted to the 191 questions where it is achievable, `recall_all@10` is **0.246**, not 0.094. ### What survives Against its own ceiling, EC@10 is 0.527 / 0.855 = **0.618**. So roughly 38% of what *could* fit does not, and that residue is real. Its cause is dilution, not turn ranking: the top 10 spans a median of **5.4 distinct sessions** when the answer lives in **1.9**. Slots are spent on sessions that cannot contain the answer. MMR was the obvious suspect — `mmr_session_cap=2` caps turns per session, and the observed top-10 holds 1.85 turns per session, which looks exactly like the cap biting. It is not the cause. On the 263 questions where MMR fires, removing it moves distinct sessions only 5.49 → 5.30 and turn EC@10 only 0.553 → 0.559. The fused ranking is already spread across ~5.3 sessions before MMR touches it. ### The lever is session expansion, not better turn ranking Gold turns within a session are **100% contiguous** (941/941 multi-turn cases), and session-level retrieval is near-saturated at R@10 = 0.982. Taking every turn of the sessions already present in the top 10 would lift turn EC@10 from **0.527 → 0.933**, at a cost of ~31 turns instead of 10. That is the same idea as Phase 3's parent expansion, which was measured as near-useless (28/500 eligible, ≤3 rescues) — but that was gated at the assembly layer on a narrow condition. The measurement above says the mechanism is right and the gate was wrong. Whether 31 turns is affordable is a reader question, not a retrieval one: the assembly budget, not recall@k, decides it. That is the experiment to run, and it should be judged e2e — the retrieval metric above cannot score it, because expanding to whole sessions makes `turn_correct` trivially satisfiable. ### Consequence for reading this document Any turn-level number here is **session recall under a slot budget**, not evidence quality. `recall_all@10` in particular is dominated by the 61.8% of questions where it cannot be achieved, and is close to meaningless as a comparison metric between configs. EC@10 is usable but should be read against the 0.855 ceiling, not against 1.0. ## September 2026 — Consolidated live ablation: channels + stages + combinations 500 questions x 24 configs, 0 failures, `baseline == baseline_check` on all 500. Channels are now ablated **live** (`skip` drops a channel's ranked list from the fusion but leaves the candidate pool intact, matching the offline replay's semantics so the two are comparable). ### Session recall cannot discriminate here At R@5 = 0.968 nearly every config is identical: 17 of 22 show +0.000 with at most one discordant question. Only `keyword_rerank` moves it (−0.022, p=0.035). Session recall is saturated and is the wrong instrument for these comparisons. Turn EC@10 (0.528, ceiling 0.855) has room, so it is scored below with a paired exact test. ### Turn EC@10, paired against baseline (500 q) | removed | EC@10 | /ceiling | Δ | better | worse | p | |---|---|---|---|---|---|---| | *(baseline)* | 0.528 | 0.618 | — | — | — | — | | − semantic | 0.507 | 0.593 | −0.021 | 14 | 107 | **<0.001** | | − turn_pair_boost | 0.516 | 0.605 | −0.011 | 9 | 55 | **<0.001** | | − entity | 0.522 | 0.612 | −0.005 | 7 | 39 | **<0.001** | | − decay | 0.524 | 0.614 | −0.003 | 11 | 29 | **0.006** | | − turn_pair | 0.525 | 0.615 | −0.003 | 4 | 21 | **0.001** | | − keyword_rerank | 0.525 | 0.613 | −0.003 | 147 | 167 | 0.284 | | − ALL_INERT | 0.525 | 0.616 | −0.003 | 13 | 22 | 0.175 | | − bm25 | 0.526 | 0.616 | −0.002 | 13 | 24 | 0.099 | | − temporal_boost | 0.526 | 0.617 | −0.001 | 1 | 6 | 0.125 | | − proper_noun | 0.527 | 0.618 | −0.001 | 8 | 13 | 0.383 | | − temporal_partition | 0.527 | 0.618 | −0.001 | 2 | 4 | 0.688 | | − date_proximity | 0.528 | 0.618 | −0.000 | 3 | 4 | 1.000 | | − maxsim / preference / prf / recency / temporal_filter / tiebreak / vague_entities | 0.528 | 0.618 | +0.000 | 0 | 0 | 1.000 | | **− mmr** | 0.531 | 0.622 | **+0.003** | 18 | 2 | **<0.001** | | **− fulltext** | 0.531 | 0.624 | **+0.004** | 41 | 14 | **<0.001** | ### The offline channel replay was wrong about every channel Offline leave-one-out vs the live measurement, ΔR@5: | channel | offline replay | live | |---|---|---| | semantic | −0.142 | −0.002 | | bm25 | −0.046 | +0.000 | | entity | −0.020 | +0.000 | | turn_pair | −0.012 | +0.000 | | date_proximity | −0.004 | +0.000 | | fulltext | +0.032 | +0.000 | The channel ensemble is **nearly inert live**. Post-fusion processing dominates so completely that which lists went into the fusion barely survives it. The banner over the offline section is now justified by measurement, not caution. **The full-text verdict, corrected twice.** Offline said removing it was worth +21.4pp R@1. The live weight sweep said zero. This run says it is a real but *small* win, visible only on evidence completeness: +0.004 EC@10, 41 questions better against 14 worse, p<0.001. Direction right, magnitude wrong by ~50x. Combined with `date_proximity` (also dead: p=1.000) the result is unchanged, so both can go together. ### Prune list, live-measured - **Remove, mild gain:** `fulltext` (+0.004, p<0.001), `mmr` (+0.003, p<0.001). - **Remove, no measurable cost:** `tiebreak`, `date_proximity`, `temporal_partition`, `proper_noun`, `temporal_boost`, plus the config-disabled `maxsim`, `prf`, `temporal_filter`. Removing the first four *together* (`−ALL_INERT`) costs −0.003 EC at p=0.175 and *improves* R@1 to 0.864, so they do not interact. - **Untestable here, do not touch:** `preference`, `recency`, `vague_entities` — their query gates never open on this benchmark (see the artifact section). - **Keep:** `semantic` (much the largest contributor), `turn_pair_boost`, `entity`, `turn_pair`, `decay` (small but significant, p=0.006), and `keyword_rerank` — which is a *session-level* win (R@5 −0.022, p=0.035) with no significant turn-level effect (p=0.284). ### Proportion Every effect here is small: the largest, `semantic`, is 2.1pp of EC@10 on a 0.528 base against a 0.855 ceiling. These are retrieval metrics on a saturated benchmark, and none of it has been confirmed against the e2e score of 0.732. The prune list is justified as *simplification with no measured cost*, not as an accuracy improvement. ## September 2026 — CORRECTION: the turn gold was wrong, and so were the conclusions drawn from it The section above titled "the turn-level 'evidence gap' is mostly an artifact" reached the right verdict from a wrong premise, and the EC-based rankings in the consolidated ablation were computed on a bad gold set. Both are corrected here. **Where this section disagrees with an earlier one, this section is right.** ### LongMemEval-S *does* annotate evidence at the turn level The earlier claim that the dataset carries no turn-level annotation was wrong. It was based on the top-level entry keys; the annotation lives one level down, as a `has_answer` flag on individual turns inside `haystack_sessions`. `benchmarks/sem_chunking_sim.py` has used it correctly since it was written. The real density is nothing like what the harnesses assumed: | | harness gold ("all turns of a gold session") | true gold (`has_answer`) | |---|---|---| | gold turns per question | median 12, mean 11.0 | **median 2, mean 1.8** | | gold turns per gold session | median 6 (100% of it) | **median 1 (8.6% of it)** | The harness definition **inflates the turn gold ~6x**. `has_answer_gold()` in `longmemeval_bench.py` now computes it properly; 21 of 500 questions carry no flagged turn and must be excluded from averages, because `evidence_completeness` returns 1.0 for an empty gold set. ### Turn-level retrieval is not a problem at all Recomputed over the same 500-question capture, baseline, true gold, 479 usable: | metric | harness gold | **true gold** | |---|---|---| | turn EC@10 | 0.527 | **0.871** | | turn recall_all@10 | 0.094 | **0.789** | | turn hit@1 | — | 0.585 | | turn hit@10 | — | **0.952** | The evidence is being retrieved. `recall_all@10` of 0.094 was never a finding — it was a 6x-inflated gold set measured against 10 slots. ### The session-expansion recommendation is withdrawn The previous section projected turn EC@10 0.527 → 0.933 by expanding retrieved sessions to all their turns, and called it the one lever with real headroom. That is wrong. True EC@10 is **already 0.871**, and expansion "improved" the metric only because the metric's gold was *defined* as whole sessions — it was guaranteed to score well by construction. **Do not build session expansion on this evidence.** ### Every EC-based significance claim in the consolidated ablation flips Same rankings, same configs, true gold, paired exact test (479 q): | removed | EC@10 (harness gold) | p | **EC@10 (true gold)** | **p** | |---|---|---|---|---| | keyword_rerank | −0.003 | 0.284 | **−0.066** | **<0.001** | | semantic | −0.021 | <0.001 | **−0.008** | **0.012** | | ALL_INERT | −0.003 | 0.175 | −0.010 | 0.125 | | entity | −0.005 | <0.001 | −0.003 | 0.125 | | turn_pair_boost | −0.011 | <0.001 | −0.003 | 0.500 | | turn_pair | −0.003 | 0.001 | −0.002 | 0.250 | | decay | −0.003 | 0.006 | −0.000 | 1.000 | | bm25 | −0.002 | 0.099 | −0.005 | 0.549 | | mmr | **+0.003** | **<0.001** | −0.002 | 1.000 | | fulltext | **+0.004** | **<0.001** | +0.001 | 0.754 | Only **two** effects survive on real evidence: `keyword_rerank` (−0.066, p<0.001 — far larger than the bad metric showed, and it is no longer "session-level only") and `semantic` (−0.008, p=0.012). Everything else is indistinguishable from noise. **Consequences for the prune list.** The recommendation to remove `fulltext` and `mmr` "for a small significant gain" is withdrawn — both are neutral (p=0.754, p=1.000), not positive. The *rest* of the prune list survives and is in fact better supported: `tiebreak`, `date_proximity`, `temporal_partition`, `proper_noun`, `temporal_boost` are all flat on real evidence too. But the justification is now purely "no measured cost", with no accuracy upside claimed. Likewise the earlier claim that `turn_pair_boost` "would have been wrongly condemned by the session-level table" is withdrawn: on true gold it is p=0.500. ### Standing rule Turn-level metrics must use `has_answer_gold()`. Any turn number in this document dated before this section was computed on the inflated gold and should be read as session recall wearing a different name. ## September 2026 — Embedder baseline: all-MiniLM-L6-v2, semantic channel only The fork reference. `sem_chunking_sim.py --model all-MiniLM-L6-v2`, full 500 questions (not the 200-question stratified sample the 2026-09-07 run used), inside `engram:latest` so the production embedder and library versions are pinned (ST 6.0.1, torch 2.14.0+cpu). 837,499 unique texts encoded, 11,533s. Gold is the dataset's `has_answer` turns throughout — this script never used the inflated session-wide gold, so these numbers are directly comparable to the 2026-09-07 run and unaffected by that bug. ### Baseline, micro-averaged over 500 questions | variant | turn EC@10 | turn@50 | tAll@10 | tHit@1 | sessR@1 | sessR@10 | |---|---|---|---|---|---|---| | **`head`** (production: one vector, first 256 tok) | **75.9%** | 95.4% | **70.1%** | **46.1%** | **84.4%** | **96.8%** | | `win` (254-tok sliding, max-pooled) | 75.0% | 96.1% | 69.7% | 45.1% | 85.4% | 97.8% | | `role` ({pair, USER, ASSISTANT}, max) | 78.1% | 95.5% | 73.9% | 49.1% | 86.4% | 97.4% | | `role_win` (role chunks, windowed) | 77.7% | **96.3%** | 73.7% | **49.9%** | **87.8%** | 97.6% | Per type, `head`: knowledge-update EC 91.7%, single-session-assistant 100%, single-session-user 93.8%, single-session-preference 79.5%, temporal-reasoning 69.1%, **multi-session 66.3%** (tAll@10 50.4% — the weakest cell in the table). ### What the machinery above the embedder is worth Against the full live pipeline on the same 500 questions and the same true gold: | | semantic only (`head`) | full pipeline | Δ | |---|---|---|---| | turn EC@10 | 75.9% | **87.1%** | **+11.2pp** | | turn hit@1 | 46.1% | **58.5%** | **+12.4pp** | | session R@1 | 84.4% | 85.8% | +1.4pp | | session R@10 | 96.8% | 98.2% | +1.4pp | **This corrects the reading of the leave-one-out results.** The consolidated ablation found almost every channel and stage individually removable, which was taken to mean the ensemble is nearly inert. It is not: the whole stack above the embedder is worth **+11.2pp of evidence completeness and +12.4pp of top-1 turn accuracy** over the raw embedder. Those facts are compatible because the components are *redundant* — each one is individually replaceable because the others cover for it. A leave-one-out measures marginal contribution, never the ensemble's total, and the prune list should be read with that in mind: removing one is free, and removing several was only tested for the four flattest. Note also where the stack does *not* help: session recall is +1.4pp, already near saturation from the embedder alone. Everything the machinery buys is at the turn level. ### The 2026-09-07 chunking NO-GO: statistically resolved, economically unchanged That run measured `role_win` at +2.8pp turn@10 / +4.0pp session R@1 and set it aside as inside the ±4.5pp sampling noise of a 354-gold-turn sample. At full population the effect is real and slightly smaller: `role` +2.2pp EC@10 / +2.0pp sessR@1, `role_win` +1.8pp / +3.4pp. There is no sampling question left — this is the whole benchmark. Two reasons the decision should nevertheless stand: 1. `multi-session` still barely moves (66.3% → 68.7%), which was the substantive objection. The gain is concentrated where the fused system is already saturated. 2. **A semantic-only gain is not a pipeline gain.** That is the lesson of the full-text channel, which looked worth +21.4pp offline and measured zero live. The stack above the embedder contributes +11.2pp and demonstrably repairs weak semantic input, so it may absorb a +2.2pp semantic improvement entirely. Productionizing sub-chunk embeddings still costs a child vector table, ~3× HNSW rows, backup/restore plumbing and a three-benchmark re-validation. Confirm live before paying that, exactly as the original decision said: revisit alongside an embedder change. ### Using this as the fork reference Re-run with `--model ` and compare the `head` row, which is production indexing. `--variants head` is ~4× cheaper for a first screen. Watch **turn EC@10 and tHit@1** — session R@10 is at 96.8% on the current embedder and has essentially no room to show an improvement. Caveats. The offline screen ranks the entire ~249-doc corpus while the live pipeline's semantic channel prefetches 150; both still emit a top-10, so the comparison is between finished rankings, not candidate pools. And the script accumulates sums rather than per-question rows, so no paired significance test is possible on these variant differences — the point estimates are exact for this benchmark, but generalization beyond LME-S is untested. ## September 2026 — Candidate embedder screen: Qwen3-Embedding-0.6B does not beat MiniLM The fork premise was that the embedder is the ceiling. For this candidate it is not: **Qwen3-Embedding-0.6B (596M params) does not outperform all-MiniLM-L6-v2 (22M) on LME-S**, despite 27x the parameters and a 64x larger context window. ### Setup All three runs used Ollama on Apple Silicon — 0.83 texts/s on this host's CPU made a 500-question Qwen run a 42-hour job; on Metal it was ~3.2h. Both models were pulled so **baseline and candidate share one backend**, removing the quantization/runtime confound rather than caveating it. | | all-minilm | qwen3-embedding:0.6b | |---|---|---| | params | 22M | 596M | | dim | 384 | 1024 | | quantization | F16 | Q8_0 (near-lossless) | | context | 512 tok | 32768 tok | | pooling | mean | last (correct for Qwen3-Embedding) | **Backend validated first.** Ollama's `all-minilm` vs the SentenceTransformer `all-MiniLM-L6-v2` run: identical on **499 of 500** questions (EC@10 0.803 vs 0.802). The Ollama path is not introducing error. ### Result — micro-averaged, 500 questions, `head` indexing | model | turn EC@10 | turn@50 | tAll@10 | tHit@1 | sessR@1 | sessR@10 | |---|---|---|---|---|---|---| | **all-minilm** | **75.8%** | **95.4%** | **69.9%** | **46.1%** | **84.4%** | **96.8%** | | qwen3-0.6b, no prefix | 70.0% | 91.8% | 62.8% | 43.0% | 77.0% | 93.4% | | qwen3-0.6b, instruction prefix | 73.8% | 95.0% | 66.4% | 45.5% | 81.6% | 95.0% | Paired exact binomial against MiniLM (479 questions carrying gold): | metric | Δ no prefix | p | Δ prefixed | p | |---|---|---|---|---| | ec@10 | −0.061 | **<0.001** | −0.031 | 0.139 | | all10 | −0.071 | **<0.001** | −0.035 | 0.075 | | hit1 | −0.031 | 0.210 | −0.006 | 0.858 | | ec@50 | −0.033 | **<0.001** | −0.009 | 0.360 | | sessR@1 | −0.081 | **<0.001** | −0.035 | **0.046** | | sessR@10 | −0.029 | **0.001** | −0.019 | **0.049** | Properly prefixed, Qwen3 is *statistically indistinguishable* from MiniLM on evidence completeness and **significantly worse on session recall**. Unprefixed it is worse on everything. ### The instruction prefix is real and necessary Same model, same backend, prefix the only difference: | metric | no prefix | prefixed | Δ | p | |---|---|---|---|---| | ec@10 | 0.742 | 0.772 | **+0.030** | **<0.001** | | all10 | 0.628 | 0.664 | +0.035 | **0.002** | | hit1 | 0.430 | 0.455 | +0.025 | **0.043** | | ec@50 | 0.926 | 0.950 | +0.024 | **<0.001** | | sessR@1 | 0.781 | 0.827 | **+0.046** | **<0.001** | The prefix recovers roughly half the deficit. Any screen of an instruction-tuned embedder that omits it is measuring the wrong thing — and would have reported a much worse number here. ### Why this is not a configuration failure The obvious suspects were checked: quantization is Q8_0, pooling is `last` (what Qwen3-Embedding requires), the full 32k context was available, and the instruction prefix demonstrably works. The backend reproduces MiniLM's SentenceTransformer numbers on 499/500 questions. Note the direction of the context asymmetry: MiniLM truncates at 512 tokens while Qwen saw documents whole (median gold turn-pair ≈ 630 tokens). **Qwen had the advantage and still lost.** ### What this does and does not say **Does:** swapping to Qwen3-Embedding-0.6B would not raise this pipeline's ceiling, and would cost 27x the parameters, 1024-dim vectors (≈2.7x the pgvector index) and a re-embed of the corpus. Not worth forking for on this evidence. **Does not:** this is one benchmark and one task shape — short questions against date-headed conversational turn-pairs, which is close to the symmetric short-text retrieval MiniLM was trained for. It says nothing about `bge-base-en-v1.5`, `gte`, `e5`, or the larger Qwen3-Embedding-4B/8B. It is also a semantic-channel screen; the stack above the embedder contributes +11.2pp EC@10 and has been shown to absorb channel-level differences, so a *smaller* embedder difference than this would likely vanish in the full pipeline anyway. **Residual risk.** The backend was validated on MiniLM, not on Qwen — a GGUF conversion could in principle differ from the HF model in a way the MiniLM check would not catch. Confirming would mean an ST-backend Qwen run on a subset (~2.5h on CPU for 30 questions). Worth doing before publishing this result anywhere beyond the project. ## September 2026 — EmbeddingGemma wins decisively; the fork premise was right Qwen3-Embedding-0.6B was the wrong candidate, not evidence against the premise. Two more candidates screened through the same validated Ollama path, same 500 questions, same MiniLM baseline. **Both beat MiniLM; EmbeddingGemma beats it decisively.** ### Paired against all-minilm (479 questions carrying gold, `head` indexing) | candidate | Δ ec@10 | Δ all10 | Δ hit1 | Δ sessR@1 | verdict | |---|---|---|---|---|---| | **embeddinggemma** (prefixed) | **+0.097** *** | **+0.134** *** | **+0.100** *** | **+0.058** *** | decisive win | | bge-m3 | +0.081 *** | +0.099 *** | +0.088 *** | +0.018 (p=0.28) | turn-level win only | | embeddinggemma (no prompt) | +0.061 *** | +0.079 *** | +0.056 * | +0.029 * | wins even unprompted | | qwen3-0.6b (prefixed) | −0.031 (p=0.14) | −0.035 | −0.006 | −0.035 * | **loses** | `***` p<0.001, `*` p<0.05. bge-m3 ran 466/500 questions (see failure note below); its row is scored on the 445 of those carrying gold. ### Micro-averaged, 500 questions | model | turn EC@10 | turn@50 | tAll@10 | tHit@1 | sessR@1 | sessR@10 | |---|---|---|---|---|---|---| | **embeddinggemma** (prefixed) | **81.7%** | **97.9%** | **77.9%** | **51.8%** | **88.6%** | **98.6%** | | all-minilm | 75.8% | 95.4% | 69.9% | 46.1% | 84.4% | 96.8% | | qwen3-0.6b (prefixed) | 73.8% | 95.0% | 66.4% | 45.5% | 81.6% | 95.0% | ### The headline: the raw embedder beats the whole MiniLM stack Macro-averaged over the same 479 questions and the same true gold: | | turn EC@10 | turn hit@1 | |---|---|---| | MiniLM, semantic channel only | 0.802 | 0.461 | | **MiniLM, full live pipeline** (all channels + rerank) | 0.871 | **0.585** | | **EmbeddingGemma, semantic channel only** | **0.900** | 0.562 | **EmbeddingGemma's semantic channel alone retrieves more evidence than the entire fused, reranked MiniLM pipeline** (+2.9pp EC@10), while still trailing it on top-1 (−2.3pp). The stack was measured earlier as worth +11.2pp EC@10 on top of MiniLM; a better embedder delivers more than that on its own. This raises a question the current ablations cannot answer: how much of that +11.2pp stack is still needed once the semantic channel is this much stronger? Several components were found individually removable even on the weak embedder. Re-running the live 24-config ablation on a Gemma-backed pipeline is the obvious next measurement, and it may shorten the pipeline considerably. ### Prompts matter, again EmbeddingGemma's official task prompts (`task: search result | query: ` for queries, `title: none | text: ` for documents), same model and backend: | metric | no prompt | prompted | Δ | p | |---|---|---|---|---| | ec@10 | 0.863 | 0.900 | **+0.036** | **<0.001** | | all10 | 0.779 | 0.833 | +0.054 | **<0.001** | | hit1 | 0.518 | 0.562 | +0.044 | **0.013** | | sessR@1 | 0.891 | 0.921 | +0.029 | **0.004** | Third model in a row where the prompt is worth a significant margin (Qwen3: +0.030 ec@10). **Screening an instruction-tuned embedder without its prompt understates it by roughly a third of its total gain.** ### Deployment cost | model | params | dim | throughput (Mac Metal) | vs MiniLM | |---|---|---|---|---| | all-minilm | 22M | 384 | 127 texts/s | — | | embeddinggemma | 308M | 768 | 29 texts/s | **4.4x slower, 2x the index** | | qwen3-0.6b | 596M | 1024 | 11 texts/s | 11.6x slower, 2.7x the index | EmbeddingGemma costs ~4.4x the embed time and 2x the vector storage. The production container embeds on CPU, where the ratio will be worse — ingest throughput, not query latency, is the thing to measure before committing. ### Note on the bge-m3 failure The run died at question 466 on an HTTP 400 from `/api/embed`. The retry helper retried it four times, which is wrong: a 400 is deterministic and only transient failures (connection errors, 5xx) should be retried. Worth fixing before the next long run, along with the cause of the 400 itself. ### ST spot-check: the Q8_0 quantization cost nothing (risk closed) The residual risk on the Qwen screen was that Ollama's GGUF might differ from the HF model. Closed two ways. **Vector level** — the same 400 real corpus documents and 30 questions embedded through both runtimes: mean cosine **0.99955**, median 0.99942, minimum 0.99728, **no vector below 0.99**. Ranking agreement on a mixed 400-doc pool: identical top-1 on 27/30, mean top-10 Jaccard 0.958. So the vectors are faithful, and the small residue is near-tie reordering. **Metric level** — a full 30-question run of `Qwen/Qwen3-Embedding-0.6B` through the SentenceTransformer backend at `max_seq=1024` (74,098s ≈ 20.6h on CPU), paired against the Ollama rows for the same questions: | metric | Ollama (Q8_0) | ST (fp32) | Δ | discordant | |---|---|---|---|---| | ec@10 | 0.700 | 0.717 | +0.017 | 1 of 29 | | all10 | 0.552 | 0.552 | +0.000 | 0 | | hit1 | 0.448 | 0.448 | +0.000 | 0 | | ec@50 | 0.948 | 0.948 | +0.000 | 0 | | sessR@1 | 0.862 | 0.862 | +0.000 | 0 | | sessR@10 | 0.931 | 0.931 | +0.000 | 0 | Identical on 29 of 30 questions across every metric. **Qwen3-0.6B's underperformance is the model, not the runtime**, and the Ollama backend is validated for a large model as well as a small one — which is what licenses the EmbeddingGemma and bge-m3 results above. Caveat on the run label: `--compare` reports `max_seq` 256 vs 1024 here, but that field is meaningless for an Ollama run — truncation is server-side by the model's own context, and the CLI default is simply recorded unused. Worth suppressing so it cannot be mistaken for a real difference. ## September 2026 — EmbeddingGemma deployment cost on the production path Measured on the real path: CPU, inside `engram:latest`, encoding 300 memories sampled from the live database (median **146 tokens**, p90 378, max 1535 — much shorter than the LME turn-pairs the quality screen used). `google/embeddinggemma-300m` is **gated on HuggingFace (manual approval)** and the container has no token, so an ungated fine-tune of the same architecture stands in. Weights differ; layer count, hidden size and sequence length do not, so the timings are the architecture's own. **Cost proxy only** — every quality number comes from the Ollama runs. ### Ingest throughput (batch_size=100, as `manage.py` uses) | config | texts/s | vs MiniLM | memories truncated | re-embed all 1,506 | |---|---|---|---|---| | **all-MiniLM-L6-v2 @256** (current) | **84.2** | — | 23.3% | 18s | | embeddinggemma @256 | 5.6 | 15x slower | 23.3% | 269s | | **embeddinggemma @512** | **3.8** | **22x slower** | **6.7%** | 396s | | embeddinggemma @2048 | 1.6 | 53x slower | 0% | 945s | `max_seq=512` is the sweet spot for production text: it covers p90 and truncates only 6.7% of memories, while recovering more than half the cost of the full 2048 window. ### Query latency — on the critical path of every recall `_embed_query` encodes one string on every `recall()`. Measured with per-config warmup, 25 samples, four different query strings, and 512 visited twice: | model | max_seq | median | best | |---|---|---|---| | all-MiniLM-L6-v2 | 256 | **2.9 ms** | 2.6 ms | | embeddinggemma | 512 | 46.0 ms / 45.1 ms (two visits) | 28.0 ms | | embeddinggemma | 2048 | 34.0 ms | 31.7 ms | ~12–16x slower, adding roughly **40ms to every search**. Against a median recall of 187ms that is about 20% slower — noticeable, not disqualifying. The 2048 window measuring *faster* than 512 is counterintuitive but reproduced across repeated visits in both orders, so it is a real effect of the attention path and not warm-up drift. An earlier sweep that reported query latency falling monotonically with window size *was* a warm-up artifact and was discarded. ### What actually blocks this **Not query latency** (+40ms, acceptable) and **not the one-time re-embed** (6.6 min at 512). Two things do: 1. **HF gating.** epimneme loads the embedder in-process (`manager.py:153`), so production needs the gated HF weights, not Ollama's copy. Requires requesting access and shipping an `HF_TOKEN`. 2. **Benchmark cost.** LME-S ingests ~250 docs per question. At 3.8 texts/s that is 66s per question — **~9 hours per 500-question run against today's 35 minutes**. The ablation tooling built this month becomes ~15x more expensive to run on CPU. ### Recommendation Both blockers have the same fix: **move embedding out-of-process to Ollama** (or any GPU host). That sidesteps HF gating entirely — Ollama serves its own converted weights with no auth — and restores throughput, since the same model on Metal ran at 29 texts/s against this CPU's 1.6. The cost is a network hop on every recall and a new runtime dependency for the server. If embedding stays in-process, EmbeddingGemma is still *deployable* at `max_seq=512` — 22x slower ingest is tolerable at production memory volumes (a session writing 20 memories: 0.24s → 5.3s) — but CPU benchmarking becomes impractical and the HF token becomes a deploy requirement. ## September 2026 — status as of 2026-09-24 (superseded) > Superseded by **Current state** at the top of this document, which covers > the reader work that followed. Kept for the record; where the two disagree, > the top section wins. ### Still valid, never in doubt **Session-level retrieval.** The session gold (`answer_session_ids`) was always correct, so every session metric in this document is sound. | | value | |---|---| | R@1 | 0.858 | | R@5 | 0.968 | | R@10 | 0.982 | **End-to-end answer accuracy: 0.732** (500 questions, judged, qwen3.8:27b, 2026-09-13). Judged answer correctness never depended on the turn gold. The pipeline has not changed since that run — the only commits touching `src/` are additive ablation switches and the pluggable embedding backend, all defaulting to prior behaviour — so 0.732 stands, though it has not been re-measured. | type | n | e2e | |---|---|---| | single-session-assistant | 56 | 0.982 | | single-session-user | 70 | 0.943 | | knowledge-update | 78 | 0.821 | | multi-session | 133 | 0.602 | | temporal-reasoning | 133 | 0.632 | | single-session-preference | 30 | 0.567 | | **overall** | 500 | **0.732** | ### Invalidated - **Every turn-level number before 2026-09-16.** The harnesses defined turn gold as "all turns of a gold session", inflating it ~6x. Those numbers were session recall under a slot budget, not evidence measurement. `recall_all@10 = 0.094` and `EC@10 = 0.527` were never findings. - **The offline fusion-stage channel ablation.** Wrong about all six channels when checked live (semantic −0.142 predicted vs −0.002 measured; full-text +0.032 vs +0.000). Replay that stops at fusion does not predict the pipeline. - **The EC-based half of the prune list**, and the **session-expansion recommendation** (EC 0.527 → 0.933), which was an artifact of the inflated gold. ### Current, on true `has_answer` gold (479 questions with flagged evidence) | | value | |---|---| | turn hit@1 | 0.585 | | turn hit@10 | **0.952** | | turn EC@10 | **0.871** | | turn EC@50 | 0.965 | | turn recall_all@10 | 0.789 | **Retrieval is in far better shape than this document long implied.** The evidence is retrieved 95% of the time and 87% of it is present in the top 10. ### Where the remaining loss actually is | type | n | sess R@5 | turn hit@1 | turn hit@10 | turn EC@10 | **e2e** | |---|---|---|---|---|---|---| | knowledge-update | 72 | 1.000 | 0.639 | 1.000 | 0.961 | 0.821 | | single-session-assistant | 56 | 1.000 | 0.750 | 0.982 | 0.982 | 0.982 | | single-session-user | 64 | 1.000 | 0.734 | 0.984 | 0.984 | 0.943 | | temporal-reasoning | 132 | 0.955 | 0.561 | 0.962 | 0.881 | **0.632** | | multi-session | 125 | 0.976 | 0.504 | 0.936 | 0.746 | **0.602** | | single-session-preference | 30 | 0.800 | 0.267 | 0.733 | 0.678 | **0.567** | Three distinct problems, not one: 1. **temporal-reasoning — reader-bound.** Retrieval is strong (hit@10 0.962, EC 0.881) and e2e is 0.632. The evidence is in front of the reader and the answer is still wrong. No retrieval change will fix this. 2. **single-session-preference — retrieval-bound.** hit@1 0.267, hit@10 0.733, session R@5 0.800 — the only type where retrieval genuinely fails. Smallest bucket (n=30), so it moves the overall number least. 3. **multi-session — both.** EC@10 0.746 is the second-worst, and e2e 0.602 trails it. `knowledge-update` deserves note: retrieval is effectively perfect (hit@10 1.000, EC 0.961) yet e2e is 0.821, short of its 0.93 gate. That gate was always reader-bound, as the Phase 3 near-miss analysis found by a different route. ### What the benchmark can no longer tell us Session R@5 is **saturated at 0.968** — in the 24-config live ablation, 17 of 22 configurations returned identical values. It cannot discriminate between pipeline variants any more. Use turn EC@10 and turn hit@1, on true gold. ### Not measured - e2e since 2026-09-13 (pipeline unchanged, but unverified). - e2e with **EmbeddingGemma**, which is +0.097 EC@10 and +0.100 hit@1 on the semantic channel. Whether that reaches the answer is the single most valuable open measurement. - e2e with the prune list applied. ## September 2026 — EmbeddingGemma in the full pipeline: the gain does not survive The semantic-channel screen measured EmbeddingGemma at **+0.097 turn EC@10** and **+0.100 turn hit@1** over MiniLM (p<0.001). Run through the actual retrieval pipeline on the same 500 questions, that gain is **gone**. ### Setup An isolated stack (`bench-db` + `bench-engram`, port 8002) running `embeddinggemma` at 768 dims via the Ollama backend with both official prefixes, reflection disabled. Production was untouched — its pgvector column is table-wide and fixed at 384, so migrating it for a benchmark would have altered all 1,506 live memories. First real workload through the pluggable embedding backend. ### Paired against MiniLM, 479 questions with true `has_answer` gold | metric | MiniLM | Gemma | Δ | better | worse | p | |---|---|---|---|---|---|---| | session R@1 | 0.860 | 0.873 | +0.013 | 10 | 4 | 0.180 | | session R@5 | 0.969 | 0.975 | +0.006 | 3 | 0 | 0.250 | | turn hit@1 | 0.585 | 0.597 | +0.013 | 10 | 4 | 0.180 | | turn hit@10 | 0.952 | 0.950 | −0.002 | 2 | 3 | 1.000 | | **turn EC@10** | **0.871** | **0.874** | **+0.003** | 14 | 9 | 0.405 | Nothing reaches significance. **+0.097 EC@10 at the semantic channel becomes +0.003 in the pipeline** — a 97% reduction. Not a plumbing failure: the rankings genuinely move. Only **3.6%** of questions have an identical top-10 ordering, mean Jaccard is **0.749**, and 1.6 of every 10 documents differ. The embedder reshuffles constantly and changes the answer almost never — the same signature as the keyword-weight null. ### By type, nothing survives either | type | n | Δ EC@10 | Δ hit@1 | Δ sess R@5 | p (EC) | |---|---|---|---|---|---| | multi-session | 125 | +0.012 | +0.008 | +0.000 | 0.146 | | temporal-reasoning | 132 | −0.000 | +0.015 | +0.023 | 1.000 | | single-session-preference | 30 | +0.000 | +0.033 | +0.000 | 1.000 | | single-session-user | 64 | +0.000 | +0.031 | +0.000 | 1.000 | | knowledge-update | 72 | +0.000 | +0.000 | +0.000 | 1.000 | | single-session-assistant | 56 | +0.000 | +0.000 | +0.000 | 1.000 | ### The third instance of one pattern 1. Full-text channel: **+21.4pp R@1** offline at the fusion stage → **zero** live. 2. Channel leave-one-out: offline wrong about **all six** channels. 3. EmbeddingGemma: **+0.097 EC@10** semantic-only → **+0.003** in the pipeline. The post-fusion stack — measured at +11.2pp EC@10 over the raw MiniLM channel — does not merely add value, it *absorbs variation in its input*. It repairs a weak semantic channel and it flattens a strong one. That is robustness, and it is also why **no measurement taken upstream of fusion predicts pipeline behaviour**, at any magnitude tested so far. The practical consequence for the embedder question: a better embedder is worth little here **while this stack sits on top of it**. The interesting experiment is no longer "which embedder" but "does a strong embedder need this much machinery" — a Gemma-backed pipeline with the stack progressively removed, which the existing `skip` switches can now measure directly. ## September 2026 — Ablation on a Gemma-backed pipeline: what a better embedder makes redundant 500 questions x 24 configs against the isolated `embeddinggemma`/768 stack. 0 failures, `baseline == baseline_check` on all 500. Scored on **true `has_answer` gold** — `ablate_stages.py` still used the inflated definition, and its own `t_ec@10` column reported that removing `keyword_rerank` *improved* evidence by +3.5pp. On true gold that is −0.4pp and not significant. The harness is fixed; treat any `t_ec@10` printed by a run before this as session recall. ### Side by side, paired, true gold (479 questions) Baselines — MiniLM: EC@10 0.871, hit@1 0.585. Gemma: EC@10 0.874, hit@1 0.597. | removed | MiniLM ΔEC | p | MiniLM Δhit@1 | p | Gemma ΔEC | p | Gemma Δhit@1 | p | |---|---|---|---|---|---|---|---|---| | **keyword_rerank** | **−0.066** | **<0.001** | **−0.121** | **<0.001** | −0.004 | 0.899 | **−0.086** | **<0.001** | | semantic | −0.008 | 0.012 | +0.000 | 1.000 | −0.007 | 0.118 | −0.010 | 0.180 | | entity | −0.003 | 0.125 | −0.004 | 0.625 | −0.003 | 0.500 | −0.002 | 1.000 | | bm25 | −0.005 | 0.549 | +0.002 | 1.000 | −0.001 | 1.000 | +0.002 | 1.000 | | turn_pair_boost | −0.003 | 0.500 | +0.000 | 1.000 | −0.001 | 1.000 | +0.004 | 0.500 | | decay | −0.000 | 1.000 | −0.004 | 0.500 | −0.001 | 1.000 | −0.004 | 0.625 | | mmr | −0.002 | 1.000 | +0.000 | 1.000 | +0.001 | 1.000 | +0.000 | 1.000 | | fulltext | +0.001 | 0.754 | −0.004 | 0.688 | +0.004 | 0.180 | +0.002 | 1.000 | | ALL_INERT | −0.010 | 0.125 | +0.002 | 1.000 | −0.003 | 1.000 | +0.002 | 1.000 | ### `keyword_rerank` was doing two jobs; the embedder retires one of them On MiniLM, removing it costs **−0.066 EC@10** and **−0.121 hit@1**, both p<0.001. On Gemma the evidence-completeness cost **disappears** (−0.004, p=0.899) while the top-1 cost **persists** (−0.086, p<0.001). So the lexical rerank was doing two separable things: pulling missing evidence into the top 10, and getting the single best document to rank 1. A stronger semantic channel makes the first redundant — it already retrieves that evidence — and does not touch the second. This is the clearest mechanism yet for how the post-fusion stack "absorbs" a better embedder: the stage that repairs a weak channel simply has less to repair. ### Everything else is flat on both embedders `tiebreak`, `proper_noun`, `temporal_boost`, `temporal_partition`, `date_proximity`, `maxsim`, `prf`, `temporal_filter`, `preference`, `recency`, `vague_entities` change nothing under either embedder. **The prune list is embedder-independent**, which makes it a safe simplification regardless of what the swap decision turns out to be. ### No configuration wins The best Gemma configuration measured is `− fulltext`: EC@10 **0.878**, hit@1 0.599, against MiniLM's full pipeline at 0.871 / 0.585. That is +0.007 EC and +0.014 hit@1 — neither significant, and both far below the +0.097 the semantic screen promised. **LME-S retrieval is at a ceiling of roughly EC@10 0.87–0.88 and turn hit@10 0.95, and neither the embedder nor the pipeline shape moves it.** Six channels, fourteen post-fusion stages and a 27x larger embedder all land within noise of each other. The remaining loss in the product metric — e2e 0.732 — is therefore reader-side, which the per-type table in the current-state section already showed by a different route (temporal-reasoning: retrieval hit@10 0.962, e2e 0.632). ### Consequence Stop tuning retrieval on this benchmark. It cannot distinguish the options any more. Two things remain worth doing: apply the prune list as a simplification with no measured cost, and move the work to the reader, which is where every remaining point of e2e lives. ## September 2026 — The prune list does not survive verification Five stages each measured individually free under both embedders: `tiebreak`, `proper_noun`, `temporal_boost`, `temporal_partition`, `date_proximity`. Removing them **together** is not free. 500 questions, production-equivalent MiniLM pipeline, true gold, 0 failures, `baseline == baseline_check` on all 500. The combination was measured directly rather than inferred from the five leave-one-outs (`ablate_stages.py --combo`). ### Individually (paired, 479 questions with gold) | removed | ΔEC@10 | better/worse | Δhit@10 | better/worse | |---|---|---|---|---| | tiebreak | +0.000 | 0/0 | +0.000 | 0/0 | | temporal_boost | +0.000 | 0/0 | +0.000 | 0/0 | | date_proximity | +0.001 | 1/0 | +0.000 | 0/0 | | proper_noun | −0.002 | 1/2 | −0.002 | 0/1 | | temporal_partition | −0.004 | 0/2 | −0.004 | 0/2 | ### All five together | metric | baseline | pruned | Δ | better | worse | p | |---|---|---|---|---|---|---| | EC@10 | 0.871 | 0.859 | −0.011 | 2 | 7 | 0.180 | | **turn hit@10** | **0.952** | **0.939** | **−0.013** | **0** | **6** | **0.031** | | turn hit@1 | 0.585 | 0.587 | +0.002 | 16 | 15 | 1.000 | | session R@1 | 0.860 | 0.868 | +0.008 | 12 | 8 | 0.503 | Removing all five **significantly degrades turn hit@10** — six questions lose their evidence entirely and none gain. This is the first significant negative result in the whole ablation programme, and it is invisible in every leave-one-out that preceded it. ### Why a leave-one-out cannot find this Each stage is individually removable because the others cover for it — the same redundancy that made the whole post-fusion stack worth +11.2pp while no single component was worth more than a rounding error. Marginal contribution and joint contribution are different quantities, and for a redundant ensemble the sum of the marginals badly understates the whole. **A leave-one-out licenses removing one thing. It never licenses removing several.** Any future prune must measure the exact configuration to be shipped. ### Decision **The prune list is rejected.** Seven signals out of the pipeline is not worth −1.3pp of turn hit@10 on the only metric that still discriminates, in exchange for a latency saving too small to measure. A narrower subset may still be free — `tiebreak`, `temporal_boost` and `date_proximity` have literally zero discordant questions on EC@10 and hit@10 individually. But that combination would need its own 1.7h verification, and the payoff (three small stages) does not justify the cycle while the reader carries a ~30pp gap on the two largest question types. ## September 2026 — Reader failure analysis: three different problems, not one Offline analysis of the stored 2026-09-13 e2e run (500 questions, 134 misses) joined against retrieval rankings. No GPU, no server. ### The reader is the bottleneck, quantified | type | n | e2e | misses | misses with gold in top-10 | gold never found | |---|---|---|---|---|---| | temporal-reasoning | 133 | 0.632 | 49 | **45** | 1 | | multi-session | 133 | 0.602 | 53 | **45** | 4 | | single-session-preference | 30 | 0.567 | 13 | 6 | 3 | | knowledge-update | 78 | 0.821 | 14 | **13** | 1 | **~90% of end-to-end misses had the evidence in the top 10.** Retrieval is not what is losing these questions. ### The failure modes are type-specific | type | misses | refused ("Unknown") | wrong number | wrong content | |---|---|---|---|---| | temporal-reasoning | 49 | **32 (65%)** | 7 | 10 | | multi-session | 53 | 0 | **39 (74%)** | 13 | | single-session-preference | 13 | 0 | 0 | **12 (92%)** | | knowledge-update | 14 | 3 | 6 | 5 | These want three different fixes: - **temporal-reasoning refuses.** The reader answers "Unknown" on 32 questions whose evidence it was given. It is not computing badly; it is declining. - **multi-session miscounts.** Zero refusals — it always answers, and 74% of the time the number is wrong. An aggregation problem. - **preference mismatches on content.** No refusals, no arithmetic. Possibly judge strictness on subjective answers; needs its own look. Refusals are not a context-size artefact: refused questions average 5.7 excerpts / 25,143 chars against 6.4 / 28,222 for hits, and **zero** were truncated. ### A real gap in the date-arithmetic gate The Phase 3 day-delta annotation is gated on `needs_date_arithmetic`. That gate fires on **90% of temporal hits but only 66% of temporal refusals** — the questions that refuse are disproportionately ones that never got the annotation. The 11 uncovered refusals are unmistakably date arithmetic: *"How long had I been a member of 'Book Lovers Unite' when I attended the meetup?"*, *"How old was I when I moved to the United States?"*, *"How many days did I spend on my solo camping trip?"* — the cue regex requires a time-unit word followed by a temporal preposition, so "how long" and "how old" fall straight through. **Widening it is not free.** The obvious extension (time-unit near spend/take/total) catches exactly the item-counting aggregations that Phase 3 measured the deltas as *harmful* for — and `is_counting_query` gates K-selection and the recency note but **not** the deltas, so counting queries are currently protected only *by accident*, because their phrasing happens not to match. Variants measured against the 133 temporal questions and the whole 500: | variant | covers missed refusals | temporal coverage | newly fires | of which counting | |---|---|---|---|---| | A: `how long` / `how old` | 6/11 | 112 → **122** | 30 | **0** | | B: A + unit near spend/total | 8/11 | 112 → 125 | 47 | **16** | | C: B suppressed on counting | 6/11 | — | 31 | 0 | **Variant A is the safe change** — same coverage as C with less machinery, and no counting-query contamination. Two lines. ### But the gate is not the main story 21 of the 32 temporal refusals **already fire the gate**, get the day-delta annotation, and refuse anyway. Fixing the gate addresses at most 6 questions (~1.2pp overall, ~4.5pp on temporal). The larger question — why a reader holding dated evidence and pre-computed deltas answers "Unknown" — is a prompt or model property, and is where the remaining temporal loss lives. ## September 2026 — Temporal prompt v2: +5.3pp, not yet significant Two arms over the same 133 temporal-reasoning questions, same retrieval pool (`v700-baseline_20260904.fulltext`), same model (`qwen3.8:27b`), same assembly flags. **The prompt is the only variable.** Both arms were run fresh rather than comparing against the stored baseline, to remove eleven days of possible drift. ### Result (judged) | arm | score | | |---|---|---| | v1 (current prompt) | **0.632** (84/133) | — | | v2 (compute-aware prompt) | **0.684** (91/133) | **+0.053**, fixes 14, breaks 7, p=0.189 | **The control reproduced the stored 2026-09-13 temporal baseline of 0.632 exactly.** No drift, and the harness changes did not perturb v1 — which is what licenses reading the +5.3pp as the prompt's effect. "Unknown" answers fell from **38 to 19**. ### Read the generations, not the summary line On exact match the same runs read v1 0.556 → v2 **0.421**, an apparent −13.5pp regression at p=0.0079. That was an artefact: | | | |---|---| | gold | `7 days. 8 days (including the last day) is also acceptable.` | | v1 | `7 days` → correct | | v2 | `7` → scored wrong | v2's instruction to answer with "a number or a short phrase" made the reader drop the unit, and substring matching rejected a correct answer. The stored baseline had always been judged; the exact-match comparison was never like-for-like. **Reported from the summary line alone, this would have been a false negative.** ### What the refusals actually were Of v1's 38 refusals: **12 became correct**, 8 became wrong answers, 18 still refuse. So roughly a third of refusals were the prompt licensing a decline that the model could in fact have computed — and two thirds are genuine inability. That bounds how much of the temporal gap is prompt-shaped, and it is not all of it. ### v2's remaining regressions are a wording flaw Of the 7 questions v2 broke, **5 wanted a name and got a number** — 3 ordering questions answered as `2, 3, 1` and 2 entity questions answered as `3`. "A number or a short phrase", combined with the emphasis on computing intervals, pushed the reader toward numeric answers on questions that are not numeric. A v3 that preserves units (`7 days`, not `7`) and instructs name-answers for ordering questions should recover most of those 7 while keeping the 14 fixes. That is the next single-variable test, against a control now validated at 0.632. ### Status v2 is **not shipped**. +5.3pp at p=0.189 over 133 questions is encouraging and underpowered — 14 fixes against 7 breaks. The wording flaw is known and cheap to fix, so the right move is v3 rather than shipping a prompt with a diagnosed defect. ## September 2026 — multi-session diagnosis: the answer is being truncated away `multi-session` loses 53 of 133 questions with zero refusals and 74% wrong numbers. The cause is not counting ability. It is a collision between `ANSWER_PROMPT_COUNTING` and the 80-token generation cap. The counting prompt instructs: > 1. Search ALL excerpts for every relevant item or event. > 2. List each one briefly. > 3. **On the LAST LINE**, write ONLY the final answer as a number. The reader adds a preamble ("Based on the memory excerpts, here are…"), writes verbose bullets, and runs out of tokens **before reaching the last line**. The answer is the one part of the response guaranteed to be lost. ### Evidence | | n | hit rate | |---|---|---| | multi-session, answer truncated mid-sentence | 44 | **0.39** | | multi-session, complete answer | 89 | **0.71** | Truncated word counts: median 48, max 65 — clustered exactly at the cap (80 tokens ≈ 55–65 words). **Truncation occurs in `multi-session` and nowhere else** — 44/133 there, and **0** in all five other question types combined. Only multi-session uses the counting prompt; every other type is told to answer concisely and does. Preambles track the same way: 36 of 53 misses begin "Based on the memory excerpts…" against 23 of 80 hits. Raw examples, both cut mid-word with no answer ever emitted: ``` - **Senior Software Engineer role**: The user stated, "I was promoted to a senior software engineer position... and have been leading a t [gold: 2] 1. **Doctor's Appointment Date**: ... This places the appointment on **Thursday, May 18, [gold: 2 AM] ``` ### The fix is structural, not a matter of degree Raising the cap would help but leaves the answer last and therefore always the first casualty of any limit. **Put the number on the FIRST line and the supporting list after it.** Then truncation costs the working, never the answer — and the list still earns its keep, since asking for enumeration is what makes the model actually scan every excerpt. ### Expected size If truncated answers performed like complete ones (0.39 → 0.71), that is ~14 questions, taking multi-session from **0.602 to roughly 0.71** and overall e2e up by **~2.8pp**. Larger than the entire embedder programme delivered, from a prompt reordering. ### Both reader diagnoses together | type | mechanism | status | |---|---|---| | temporal-reasoning | prompt licenses refusal on computed answers | v2 tested: +5.3pp, p=0.189, wording defect found | | multi-session | answer placed last, truncated by the token cap | diagnosed, untested | They are unrelated bugs in two different prompts, which is why the aggregate "the reader is weak" framing was never actionable. ## September 2026 — multi-session: raising the counting token cap is worth +12pp The diagnosis said the counting prompt puts the answer on the last line and the 80-token cap truncates it away. The minimal test of that is to remove the truncation and change nothing else. Two arms, 133 multi-session questions, same retrieval pool, same model, same assembly flags. **Generation cap for multi-session is the only variable.** ### Result (judged) | arm | score | | |---|---|---| | cap 80 (control) | **0.602** (80/133) | reproduces the stored 2026-09-13 baseline exactly | | **cap 256** | **0.722** (96/133) | **+0.120**, fixes 17, breaks 1, **p=0.00014** | The first significant *positive* result of the whole programme, and the largest single effect measured on this benchmark by any change. ### The mechanism is confirmed, not just the outcome | | n | cap 80 correct | cap 256 correct | |---|---|---|---| | truncated under cap 80 | 44 | 17 | **29** (+12) | | already complete under cap 80 | 89 | 63 | 67 (+4) | Three quarters of the gain comes from questions that were previously cut off — exactly the population the diagnosis identified. The answers were being computed all along and thrown away before they could be emitted. ### Residual headroom Truncation fell from 44/133 to **25/133**, so a quarter of multi-session answers still run past even 256 tokens (max observed: 194 words). Median length barely moved (32 → 33 words), so the cap is not making the reader verbose in general — it is only letting the already-long answers finish. A further raise, or the prompt reorder that was deliberately held back, should be worth something more. ### What this is and is not This is a **consumer-side** finding. The reader is the benchmark's, not epimneme's, so nothing in the server changes. But it generalises to any agent that asks a model to enumerate-then-total over an assembled context under a token budget: **the answer must not be the last thing generated.** That belongs in the guidance epimneme ships to its consumers. ### Overall e2e impact multi-session is 133 of 500 questions, so +0.120 there is **+3.2pp overall**: e2e **0.732 → ~0.764** from a single integer. With temporal v2's +5.3pp (+1.4pp overall, not yet shipped pending its wording fix), the two reader diagnoses together are worth roughly **+4.6pp of end-to-end accuracy** — against a retrieval programme, including an embedder swap, that yielded nothing measurable. ## September 2026 — Temporal prompt v3, and the combined reader result v3 fixes the two defects v2 exposed: keep the unit on elapsed times, and name events for ordering questions instead of answering with indices. One arm, compared against the v1 control run the previous day on the identical pool, model and flags (which reproduced the stored 0.632 exactly). ### Three arms, judged, 133 temporal questions | comparison | from | to | Δ | fixes | breaks | p | |---|---|---|---|---|---|---| | v1 → v2 | 0.632 | 0.684 | +0.053 | 14 | 7 | 0.189 | | **v1 → v3** | **0.632** | **0.707** | **+0.075** | **17** | **7** | **0.064** | | v2 → v3 | 0.684 | 0.707 | +0.023 | 9 | 6 | 0.607 | Every diagnostic moved as predicted: | | v1 | v2 | v3 | |---|---|---|---| | "Unknown" answers | 38 | 19 | **10** | | bare-number answers (no unit) | 1 | **53** | **2** | | of v2's 7 regressions, recovered | — | — | 4/7, **3/3 ordering** | v2's unit-dropping was real and large — 53 of 133 answers were a bare number — and v3 eliminates it. Exact match, which is what that defect broke, rises 0.556 (v1) → 0.421 (v2) → **0.662** (v3). **p=0.064 is the best this benchmark can give at this effect size.** n is fixed at 133 temporal questions; 17 fixes against 7 breaks cannot reach p<0.05 there. The mechanism is confirmed independently by the diagnostic table, so the verdict rests on that rather than on the aggregate p alone. ### Combined effect on the full benchmark Substituting both reader fixes into the stored 500-question run: | configuration | e2e | Δ | |---|---|---| | stored baseline | 0.7320 | — | | + temporal v3 | 0.7520 | +0.0200 | | + counting cap 256 | 0.7640 | +0.0320 | | **+ both** | **0.7840** | **+0.0520** | | type | before | after | |---|---|---| | temporal-reasoning | 0.632 | **0.707** | | multi-session | 0.602 | **0.722** | **e2e 0.732 → 0.784, +5.2pp, from two prompt-level changes and one integer.** For contrast, the retrieval programme that preceded it — six channels ablated live, fourteen post-fusion stages, a full embedder evaluation across four candidate models, and a prune list — produced **nothing measurable**. Retrieval sits at a ceiling of EC@10 0.87–0.88 that none of it moved. ### Standing recommendation Reader-side work is where the remaining accuracy is. The two bugs found were both in prompts, both invisible in aggregate metrics, and both found by reading the actual generated text rather than the summary line. ## September 2026 — knowledge-update diagnosis: stale values, and a gate that cannot tell two things apart `knowledge-update` has **perfect** turn retrieval — hit@10 = 1.000, EC@10 0.961 — and e2e 0.821. All 14 misses had the evidence in the context. ### The failure is almost entirely stale values The reader returns an earlier version of a fact that was later updated: | question | gold | generated | |---|---|---| | Instagram followers now? | 600 | 500 | | Instagram followers now? | 1300 | 1250 | | stars for gold level? | 120 | 125 | | dozen eggs stocked? | 20 | 30 | | pre-1920 coins? | 38 | 37 | | what time do I go to the gym? | 6:00 pm | 7:00 pm | | where was the guitar serviced? | music shop on Main St | Rhythm Central | That is exactly what the **recency note** ("the latest-dated value wins") exists to fix. It is currently suppressed on 6 of the 14 misses. ### Why it is suppressed: `is_counting_query` conflates two question shapes The note is gated off for counting queries, because on aggregations it makes the reader report the latest instance instead of the total. But "how many Instagram followers do I have **now**" is a *single fact that was updated*, not an aggregation — and it is phrased identically to one. The gate fires on **38 of 78** knowledge-update questions. This was measured in Phase 3 and recorded as an unavoidable trade: ungated, KU 0.859 / multi-session 0.564; gated, KU 0.821 / multi-session 0.602. Net zero, so it was gated off. ### A discriminator exists Splitting counting questions into **current-state** and **past-aggregation** separates them cleanly. On the 6 counting-gated KU misses, 5 are current-state (`currently`, `now`, `do I have`) and the 6th is the one whose gold is "information not enough". Applied across the benchmark it would newly enable the note on 8 KU, 9 multi-session and 1 single-session-user question — 18 of 500, not a blanket change. Notably, the 9 multi-session questions it flags are themselves current-state ("How many tanks do I **currently** have", "How many pages do I have **left** to read"), so the note may help rather than hurt them. ### The trade should be re-measured before the discriminator is built The Phase 3 trade was measured when multi-session scored 0.602 — **before** the token-cap fix took it to 0.722. The note's cost there may have been partly mediated by truncation: a reader reasoning aloud about which value is latest produces a longer answer, and under an 80-token cap a longer answer lost its final line. So the cheaper first experiment is not the discriminator but **re-running the ungated note under the current configuration**, on knowledge-update and multi-session together. If the multi-session cost has evaporated, the fix is to delete a gate rather than to write a smarter one. ### Sizing, honestly Upside is bounded: ungating previously gained KU +3.8pp (3 questions). Across 500 that is **+0.6pp** overall — real, but an order of magnitude smaller than the counting-cap fix. The remaining 8 KU misses already had the note and failed anyway; several look like judge strictness ("Above the bed" marked wrong against "in my bedroom") rather than reader error. ## September 2026 — the recency-note trade was an artefact of truncation Phase 3 recorded the recency note as an unavoidable trade: ungated it gained knowledge-update (+3.8pp) and cost multi-session (−3.8pp), netting zero, so it was gated off for counting queries. **That trade no longer exists.** Re-measured under the current configuration (counting cap 256), 211 questions, gate as the only variable: | type | gated | ungated | Δ | fixes | breaks | p | |---|---|---|---|---|---|---| | knowledge-update | 0.821 | **0.859** | **+0.038** | 3 | **0** | 0.250 | | multi-session | 0.722 | 0.722 | +0.000 | 4 | 4 | 1.000 | knowledge-update reproduces the Phase 3 ungated figure of 0.859 **exactly** — an independent replication eleven days and one pipeline change later. p=0.250 is the floor for a 3–0 split; with three discordant questions no result can be significant, but the effect is strictly one-directional: nothing got worse. multi-session is genuinely unaffected — 4 fixes against 4 breaks is symmetric noise, not an offsetting trade. ### Why the trade disappeared The Phase 3 cost was measured when multi-session ran under an 80-token cap and scored 0.602. The note tells a reader that the latest-dated value wins, which makes it reason about *which* value is latest — a longer answer. Under an 80-token cap a longer answer lost its final line, which is where the counting prompt puts the total. **The note was never hurting counting accuracy; it was pushing counting answers over the truncation cliff.** Remove the cliff and the cost goes with it. This is the second time the 80-token cap turned out to be the hidden cause of a result attributed to something else. ### Decision **Delete the counting gate on the recency note.** No current-state discriminator is needed — the problem it was designed to solve was a truncation artefact. `assemble_context` now takes `recency_note_gate` (default unchanged), so the policy is a caller-supplied rule rather than a hardcoded `not is_counting_query`. ### Running total — all three reader fixes | type | before | after | |---|---|---| | knowledge-update | 0.821 | **0.859** | | multi-session | 0.602 | **0.722** | | temporal-reasoning | 0.632 | **0.707** | | single-session-assistant | 0.982 | 0.982 | | single-session-user | 0.943 | 0.943 | | single-session-preference | 0.567 | 0.567 | | **overall** | **0.732** | **0.790** | **e2e 0.732 → 0.790, +5.8pp**, from two prompt changes, one integer, and one deleted gate. Retrieval contributed nothing across the entire programme that preceded it. ## September 2026 — cap 512 adds nothing; 256 was already enough | | cap 256 | cap 512 | Δ | fixes | breaks | p | |---|---|---|---|---|---|---| | multi-session (ungated recency) | 0.722 | 0.729 | +0.008 | 1 | 0 | 1.000 | One question changed. Raising the cap further is a no-op. ### Correction: the "25 answers still overrunning 256 tokens" was wrong That figure came from the truncation heuristic — *no terminal punctuation and ≥25 words* — which is what found the original bug and is **not** reliable for measuring the residual. Once real truncation is gone it keeps flagging answers that simply end on a bullet or a bare word. Checking whether the cap actually binds settles it: | arm | max words | p95 | at/near the cap | |---|---|---|---| | cap 80 (~60 words) | **65** | 57 | **8/133** | | cap 256 (~190 words) | 177 | 154 | 2/133 | | cap 512 (~380 words) | 316 | 182 | **0/133** | At cap 80 the longest answer is *exactly* at the limit and 8 questions are pressed against it — the constraint is real. At cap 256 almost nothing reaches it, and at 512 nothing does. **The cap stopped binding at 256**, which is why 512 changes one question. So the remaining 37 multi-session misses are genuine counting errors, not truncation. The +12pp from cap 256 captured the whole truncation effect. ### Lesson A detector good enough to *find* a bug is not automatically good enough to *measure what is left of it*. The heuristic had no false positives worth caring about while answers were genuinely being cut off, and mostly false positives afterwards. The cheap check — does the cap actually bind? — should have been the first thing measured, not the third. ### Recommendation **Ship cap 256, not 512.** 512 costs generation time for one question. The consumer guidance should name a concrete number rather than "raise the cap": enough that the cap stops binding, verified by checking the longest answer against the limit, and no more. ## September 2026 — single-session-preference: half retrieval, half a generic reader 30 questions, e2e 0.567, 13 misses. The worst retrieval of any type (sR@1 0.400, turn hit@10 0.733, EC@10 0.678) — and unlike every other type, the misses split almost evenly between the two stages. | | n | |---|---| | misses with gold in the top 10 — **reader-bound** | **6** | | misses with gold only at top-50 or never found — **retrieval-bound** | **7** | For contrast, 16 of the 17 hits had gold in the top 10. ### The reader half: generic style instead of remembered specifics Every gold answer is grounded in a particular remembered detail: > "…build upon their previous mention of purchasing a portable charger" > "…considering their mixology class background" > "…incorporate their homegrown cherry tomatoes" > "…stand-up comedy specials on Netflix" Every generic miss describes a *response style* instead: > "…provide practical, actionable tips and specific strategies" > "…offer specific, curated lists of titles with brief descriptions" Measured over the 30 questions: | | hits | misses | |---|---|---| | content-word overlap with gold | 0.198 | **0.103** | | proper nouns named in the answer | 0.94 | **0.31** | Misses name a third as many concrete things. The prompt is a plausible cause: it asks for *"the type of content, approach, or suggestions they would want"*, which invites a description of style, and never asks the reader to **name the specific thing from the excerpts** that drives the preference. ### The retrieval half: an asymmetric-matching problem The 7 retrieval-bound misses share a shape — a conversational request retrieving against a stored preference statement, with almost no lexical or topical overlap: > query: *"Can you recommend a show or movie for me to watch tonight?"* > memory: *"I love stand-up comedy specials"* This is why preference is the one type a better embedder did not rescue: EmbeddingGemma scored it R@1 0.400 / R@10 0.800, against MiniLM's 0.400 / 0.833 — no better. The gap is not embedding quality but question/answer asymmetry, which is what HyDE (`--hyde`, already in the harness and never evaluated on this type) is designed for. ### Sizing n=30, so the whole type is 6% of the benchmark. Fixing the reader half is worth ~6 questions (+1.2pp overall), the retrieval half ~7 (+1.4pp). Both are real and both are small; the reader half is much the cheaper of the two, being a prompt change against a diagnosis that is already quantified. ## September 2026 — preference v2: the fix worked, the score did not move v2 demanded the answer name the remembered specifics instead of describing a response style. 30 questions, prompt as the only variable. | | v1 | v2 | |---|---|---| | e2e | 0.567 | 0.567 (3 fixes, 3 breaks, p=1.000) | | proper nouns named per answer | 0.67 | **3.37** | | content-word overlap with gold | 0.157 | **0.215** | | answers using style words | 22/30 | 19/30 | **The mechanism worked and the score did not.** Answers became five times more grounded, and v2 fixed **3 of the 6 reader-bound misses** while fixing 0 of the 7 retrieval-bound ones — exactly the split the diagnosis predicted. It then broke three questions v1 had right. ### Why specificity loses points here Every break is v1's vagueness being judged leniently where v2's specificity gave the judge something concrete to disagree with: | gold | v1 (correct) | v2 (wrong) | |---|---|---| | relaxing activities **in the evening** | "low-impact, relaxing, or nature-based activities" | "joint-friendly **outdoor** activities like walking, cycling" | | tips tailored to their **slow cooker** | "specific, actionable tips and step-by-step instructions" | "slow cooker techniques, such as **temperature settings or incubation times**" | | their plans to replace the **bedroom furniture** | "practical tips for optimizing space" | "their interest in **mid-century modern design**" | `JUDGE_PROMPT_PREFERENCE` says to answer NO "only if the preferences are genuinely about different topics". A vague answer is almost never about a different topic, so **it cannot lose**. A specific answer can, whenever the specific it picks is not the one the gold picked. **This metric rewards hedging.** v2's answers are arguably more useful — they name the person's actual balcony herb garden, their actual stand-up comedy interest — and score identically. That is a property of the benchmark, not of the pipeline. ### Also: the fix overshot Hits historically name **0.94** proper nouns per answer. v2 produced **3.37** — roughly 3.5x the target. The instruction asked for the specifics without bounding how many, so the reader enumerated everything it could find, raising the chance that at least one named specific diverges from the gold. A v3 naming *one* specific — the single most relevant — would plausibly keep the 3 fixes and avoid the 3 breaks. At n=30 with a 6-question ceiling that is worth about +0.5pp overall, which does not justify another arm. ### Verdict **Not shipped.** Net zero on the benchmark, and the reason it is net zero is a judge property rather than a pipeline one. Recorded because the finding generalises: when an evaluator is instructed to be lenient about detail, measured accuracy will prefer answers that commit to nothing, and a genuine improvement in answer quality can score as a wash. single-session-preference stays at 0.567. Its remaining 7 retrieval-bound misses are the last unexplored lever in the benchmark, and need HyDE or query expansion rather than a prompt or a better embedder. ## September 2026 — HyDE on preference: not as a replacement, possibly as a channel The preference diagnosis said the retrieval half fails on question/answer asymmetry — a conversational request ("recommend a show for tonight") matched against a stored preference ("I love stand-up comedy specials"). HyDE targets exactly that. Tested as a pure retrieval experiment, no reader: 30 preference questions, each haystack ingested, retrieved once with the plain question and once with a HyDE hypothetical, scored against true `has_answer` gold, cleaned up. Query text was the only variable. | metric | plain | HyDE | Δ | better | worse | p | |---|---|---|---|---|---|---| | turn hit@1 | 0.267 | 0.267 | +0.000 | 3 | 3 | 1.000 | | turn hit@10 | 0.733 | **0.667** | **−0.067** | 4 | 6 | 0.754 | | turn EC@10 | 0.678 | 0.639 | −0.039 | 6 | 6 | 1.000 | **As a replacement for the query, HyDE is a wash to slightly negative.** ### But it retrieves genuinely complementary documents Plain retrieval missed 8 questions at hit@10. **HyDE rescued 4 of them** — and broke 6 that plain had. It is not worse at retrieval; it is differently right. That matters, because HyDE is normally deployed as an *additional* channel rather than a substitute, and this harness's own `--hyde` path does exactly that (`chunks = hyde_chunks + chunks`). Unioning the two top-10s would keep every plain hit and add the 4 rescues: | | hit@10 | |---|---| | plain | 0.733 | | HyDE (replacement) | 0.667 | | **union, upper bound** | **0.867** | at the cost of 20 chunks of context instead of 10. ### Why this was tested as retrieval and not e2e The harness's `--hyde` also **disables assembly** (`use_assembly and not use_hyde`), so an e2e arm would have changed two things at once, and it needs live per-question projects that the retrieval harness deletes after each question. Testing the retrieval claim alone cost ~15 minutes and no reader time, and it answers the mechanism question directly. ### Verdict The asymmetry diagnosis is **half right**: HyDE does reach documents the plain query cannot, on 4 of the 8 questions where plain retrieval fails. It just cannot be swapped in, because it loses as much as it gains. The follow-up worth running is fusion rather than substitution — HyDE as a seventh RRF channel, or a simple union of the two result sets. Ceiling on this type is ~4 questions (+0.8pp overall), so it is small; but unlike every other retrieval intervention tried in this programme, it has a mechanism that matches a diagnosed failure and evidence that the mechanism fires. ### Limitation of this test Per-question rankings were not saved, so the union figure is an upper bound computed from hit/miss flags rather than a measured fusion. A real test would re-run with the rankings retained and fuse them properly. ## September 2026 — HyDE as a fused channel: the first retrieval gain in the programme Re-ran the preference retrieval capture with **full 50-deep rankings retained** (`benchmarks/hyde_pref_rankings.jsonl`, 30 questions) so fusion could be measured rather than bounded, and several strategies compared offline without re-querying. ### Same 10-chunk context budget | strategy | hit@10 | EC@10 | better / worse | |---|---|---|---| | plain (baseline) | 0.733 | 0.678 | — | | HyDE alone | 0.667 | 0.639 | 4 / 6 | | RRF 1.0 / 1.0 | 0.767 | 0.728 | 2 / 1 | | **RRF 1.0 / 0.5** | **0.800** | **0.761** | **2 / 0** | | RRF 1.0 / 0.25 | 0.767 | 0.728 | 1 / 0 | **+6.7pp hit@10, +8.3pp EC@10, strictly one-directional** — two questions fixed, none broken, at no extra context cost. The weight sweep peaks at 0.5 and falls off either side, which is the shape of a real signal rather than noise. ### Correcting the earlier upper bound The previous section estimated a union "upper bound" of 0.867 hit@10 from hit/miss flags. Measured properly, that is simply **what plain retrieval already achieves at top-20**: | 20 chunks | hit@20 | EC@20 | |---|---|---| | plain top-20 | 0.867 | 0.811 | | union top-20 | **0.900** | **0.856** | So HyDE's real contribution at double budget is **+3.3pp**, not the +13pp the bound implied. The bound flattered the result by attributing to HyDE what was mostly just a larger budget. Saving the rankings is what exposed that. ### Standing This is the **only retrieval intervention in the entire programme that improved anything** — against six RRF channels ablated live, fourteen post-fusion stages, four candidate embedders and a five-stage prune list, all of which measured zero. The difference is that the failure was diagnosed first (question/answer asymmetry on preference questions) and the intervention matches the diagnosis. ### What it is not - **n=30, two discordant pairs, p=0.50.** Nothing here can reach significance; the type is 6% of the benchmark. - **Measured on the plain search endpoint**, not through the full recall pipeline. The post-fusion stack has absorbed every upstream gain tried so far — a 21.4pp full-text swing and a 9.7pp embedder gain both went to zero through it. - Expected end-to-end value is therefore **~2 questions, +0.4pp overall**, and could easily be nothing. Productionising would mean a seventh RRF channel whose population requires an LLM call per query — which would end the "$0 per query, no LLM reranking" property the project currently advertises. For +0.4pp that trade is not obviously worth making, and should be a deliberate decision rather than a consequence of this result being the only positive one. ## September 2026 — Reflection GC: a mislabelled decay curve is deleting the archive Not a benchmark result, but it is changing the production store, so it is recorded here. ### What is happening 2,558 of 4,051 memories (**63%**) are marked obsolete, and the daily 17:11 reflection cycle keeps adding to it. The cause is one line in `decay.py`: ```python # Power-law decay: R = e^(-t/S) retrievability = math.exp(-elapsed_days / stability) ``` The comment says power-law; the code is an exponential. `_phase_gc` obsoletes anything whose retrievability falls below 0.05, so the curve choice *is* the retention policy: | curve | R < 0.05 at | |---|---| | **as implemented** (exponential, stability 60d) | **180 days** | | as documented (FSRS power-law, `R = (1+t/9S)^-1`) | 10,260 days (**28 years**) | So any non-pinned, non-persistent `fact`/`observation`/`issue`/`pattern` that has not been *recalled* in ~180 days is silently soft-deleted. Observed average age of recently obsoleted memories: **183 days** — the model predicts the data. ### The guards are fine; the curve is not `_phase_gc` correctly skips pinned memories, persistent projects and the exempt kinds (`decision`, `procedure`). Verified: **0 pinned memories have ever been obsoleted**, and the obsoleted kinds are exactly fact/observation/issue/pattern. ### The cross-project conflict bug is real but is not firing `find_conflicting_pairs` filters on `kind` but **not** `project_id`, in both the candidate query and the KNN neighbour query — so a memory in one project can in principle be obsoleted by a similar one in another. Tested against the data at the real thresholds (similarity ≥ 0.85, age gap > 7 days): **no recently obsoleted memory has a plausible conflict-phase superseder**. The conflict phase is not what is deleting things; GC is. The bug should still be fixed, but it is not the present cause. (An earlier looser query suggested 88% cross-project obsoletion. That query ignored the similarity threshold and matched nearest neighbours at mean similarity 0.652, far below the 0.85 the phase requires — it was measuring nothing.) ### Forward exposure Active, GC-eligible memories by time since last recall: | staleness | count | | |---|---|---| | > 180 days | **179** | already eligible on the next cycle | | 150–180 days | **135** | within a month | | 90–150 days | 547 | within four months | | < 90 days | 311 | | **On current behaviour roughly 860 of the 1,172 eligible active memories will be obsoleted within four months** unless they are recalled. ### What to decide This is a policy question, not only a defect. A memory system whose value is recalling things you *don't* touch often should probably not delete on 180 days of disuse — but the fix is a one-line curve change with a 28-year horizon, which is effectively "never GC", and that may not be wanted either. Three levers, in order of bluntness: switch to the documented power-law curve; raise `EPIMNEME_DECAY_STABILITY` (30 → 180 moves the horizon to ~3 years); or lower `gc_retrievability_threshold`. All are reversible. Everything obsoleted so far is a soft delete — `obsolete = TRUE`, restorable by `updated_at` minute.