Memory V2 recall, recall hygiene, and offline retrieval eval #114
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/memory-v2-retrieval-eval"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Three related tranches for the memory subsystem, driven by the 2026-08-25 full-log retrieval audit (V1 recall precision 12-30%, fixed-slot padding and recency-as-relevance as root causes).
Memory V2 recall policy (shadow by default)
Recall hygiene (applies to V1 immediately)
Temporary offline retrieval eval (removable after V2 promotion)
Verification
kReview review
Verdict: 1 Medium
The change remains medium risk because the offline comparison still excludes session-summary evidence that production V1 injects, which can materially bias the reported V1 metrics.
Medium (1)
packages/server/memory/eval/retrieval.ts:81The eval still omits session summaries that production V1 injects, so prompts where
buildLegacyMemoryContextadds a recent summary are scored as though that text was never selected; harmful or irrelevant session evidence cannot affect V1 precision or contamination. The production builder explicitly returnssessions: [...recentSessions]and renders their summaries, but this run records onlyv1.observations. Include V1 session-summary candidates in the judged pool and policy run (with distinct candidate identities), or otherwise score the rendered V1 context rather than observation IDs alone.Suggested fix: Represent selected session summaries as judge candidates and include them in V1 selections/pools, so metrics cover all evidence actually rendered by the production legacy context.
Reviewed by kReview at
65936b6567. This comment is conservative and based only on the PR diff, metadata, and supplied repository context.Est. cost ~$12.16 total (4.7M in / 34.7k out) · this run ~$0.88 (196.2k in / 2.5k out) / gpt-5.6-sol + gpt-5.6-terra.