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

Abierto
#133 5 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python
Área
ai

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
13.3k
Forks
926
Merge medio
19 h 29 min
PR fusionados (30 d)
43

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de EverMind-AI/EverOS

Todos los issues de EverMind-AI/EverOS

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.