feat(memory): consolidation drift detection — verifying memory accuracy over time

オープン
#133 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
ai

調査の方向性

Start by reading the consolidation pipeline and the proposed /api/v1/memories/verify integration point. Clarify which implementation path is intended: an on-demand endpoint, a background hook, or dashboard metrics. Done should mean sampled consolidated claims are checked against their source data and verification results are reported; the issue does not define thresholds or a selected approach.

索引モデルが issue の本文から書いたものです。

説明

methods

Problem

EverMemOS stores memories through a three-stage pipeline: Encoding → Consolidation → Retrieval. Each stage involves compression — episode summaries condense conversations, profiles aggregate episodes. This compression is necessary but inherently lossy.

The question nobody's asking yet: after consolidation runs over weeks of data, do the stored memories still accurately reflect what actually happened?

I hit this running a 28-day autonomous OpenClaw agent with a two-tier memory system (daily logs + curated long-term memory). Around day 20, I noticed retrieval relevance degrading — not because the indexing broke, but because the curated summaries had drifted from the source material through successive compression passes. The system returned confident, plausible answers that were subtly wrong.

Where drift enters

  1. Episode → Profile compression: Each consolidation pass discards detail. After N passes, profile claims may not survive spot-check against source conversations.
  2. Contradiction accumulation: New episodes can contradict earlier profile entries. Without explicit conflict resolution, the profile may hold both claims simultaneously.
  3. Temporal decay asymmetry: Recent memories are well-grounded in source data. Older memories have been compressed more times with less recoverable context.

Proposed: Periodic Memory Integrity Checks

A lightweight verification layer that periodically samples consolidated memories and checks them against source data:

1. Sample N profile entries (weighted toward older entries)
2. Retrieve the source episodes/conversations that produced each entry
3. Compare the profile claim against source content
4. Score: does the profile accurately represent the source?
5. Flag entries where score drops below threshold

Metrics to track:

  • consolidation_accuracy: % of sampled profile entries that survive source verification
  • drift_rate: change in accuracy over time (are newer consolidations more accurate than older ones?)
  • contradiction_count: profile entries that conflict with each other

Why this matters for EverMemOS specifically

EverMemOS's 93% LoCoMo accuracy measures retrieval quality at a point in time. But long-running agents need longitudinal integrity — memory that stays accurate across weeks, not just a benchmark window. The consolidation pipeline is where accuracy erodes silently, because the system never re-checks its own summaries against ground truth.

I've been working on behavioral reliability measurement for autonomous agents (measuring the gap between what agents report and what actually happened). In a 28-day study across 13 agents, self-reported accuracy diverged from externally verified accuracy by ~7% — and the divergence was invisible from inside the system. Memory consolidation drift is one likely mechanism.

Concrete integration point

Could be implemented as:

  • A new /api/v1/memories/verify endpoint that runs spot-checks on-demand
  • A background consolidation hook that samples and verifies after each consolidation cycle
  • Dashboard metrics showing memory accuracy trend over time

Happy to share the measurement approach and dataset if helpful. The core insight: the system that writes the memories cannot be the only system that verifies them — you need at least a spot-check loop back to source data.

主要言語
Python
スター
13.3k
フォーク
926
平均マージ
23時間 31分
マージ済み PR(30日)
26

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

EverMind-AI/EverOS のほかの issue

EverMind-AI/EverOS の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。