Skip to main content
Memories in MemoryOS are living data. A signal can start as a weak candidate, become a stored memory, gain importance through use, be superseded by a newer claim, or be archived when it should no longer surface.

Lifecycle states

From conversation to memory

add() is asynchronous. After a request passes the quality gate, extraction can produce: Weak candidates protect the system from storing uncertain one-off statements as permanent memory. An uncertain change does not supersede the current memory merely because a later classifier calls it committed. A valid grounded clarification can ask the user to choose in the existing chat; otherwise the change remains pending. Repeated observations or high confidence alone are not permission to bypass this governance decision.

Reinforcement

A weak candidate can later be promoted when MemoryOS sees stronger evidence, for example:
  • the same signal appears again in a later conversation
  • retrieval feedback confirms the signal was useful
  • a user correction produces a stronger replacement memory
Promotion creates a normal active memory and preserves the lineage from the weak candidate.

Retrieval feedback

After retrieval, your agent can report whether returned memories were useful. Feedback can:
  • increment useful-memory signals
  • mark a memory as ignored or not useful
  • queue an async correction job when the user corrects the agent
  • help operators see extraction quality problems in the dashboard
See Extraction Quality Loop for working SDK examples.

Lifecycle manager

When configured and running, the lifecycle manager can perform these jobs. Scheduling and installed tasks depend on the deployment:
  1. Decay - reduce importance_score for stale memories when appropriate. The original score stays in original_importance_score.
  2. Auto-archive - soft-remove stale low-value memories from search without deleting them from PostgreSQL.
  3. Hot promotion - move high-value, frequently used memories into Redis for faster retrieval.
  4. Score recompute - recalculate baseline importance when needed.
  5. Payload retention - redact old extraction payloads while preserving source hashes for audit.
Auto-archived memories are marked is_archived = true and system_archived = true. They stay in the database and appear in GDPR exports. Hard delete is a separate explicit action.

Version history

Every meaningful change creates an append-only row in memory_versions. Version rows record change history. Explicit user/tenant deletion and configured retention can remove associated data; this is not a promise of permanent audit storage.

GDPR export

The export endpoint returns active memories, archived memories, and version history. Normal retrieval returns only currently searchable memories.

Pending visibility and recovery

A pending candidate is not active context. Retrieval can withhold the affected identity/category/scope with memory_visibility, even though previous records remain stored. Show safe source-review cards separately and use the appropriate versioned decision path. restate is a request for a new statement, not activation. See visibility handling, scoped preferences and service correction.

Management API references

Lifecycle scheduling is background infrastructure; there is no public lifecycle-run API documented here.