Skip to content

feat: Platform-level user memory with passive summarization (USER-MEMORY) #380

Open

Description

@vybe

Summary

Add a Trinity platform-level memory system that automatically captures and summarizes user interactions across sessions. This is distinct from agent-level memory (#65, #276) — it's managed by the platform and injected into prompts automatically.

Context

From weekly meeting (2026-04-17): Discussion about memory architecture led to distinguishing:

  • Agent memory: Agent's own knowledge base, expertise, project context (managed by agent)
  • User memory: Platform tracks user's decisions, topics discussed, tasks completed (managed by Trinity)

Reference: Claude Code's "Dream" feature that runs on cron to summarize conversations into structured chunks (decisions, topics, tasks).

Design

Two-Layer Memory Model

  1. Agent Memory (existing): Agent-managed via Cornelius, MemPalace, etc.
  2. User Memory (new): Platform-managed, per-user, auto-injected

User Memory Structure

- Decisions made (with timestamps)
- Topics discussed (with recency)
- Tasks completed
- Preferences expressed

Passive Summarization

  • Cron job processes recent chat history
  • Extracts key information into structured format
  • Applies decay/aging (older facts lose weight)
  • Injects relevant context into new prompts

Acceptance Criteria

  • User memory storage schema (SQLite or vector store)
  • Background summarization job (configurable interval)
  • Automatic injection into chat prompts
  • Memory accessible via MCP tool (get_user_context)
  • Privacy: user memory isolated per user, not leaked between users
  • Retention policy: configurable TTL for memory entries

Technical Notes

Security consideration raised in meeting: user memory must NOT leak between users if agent serves multiple users. This is why it's platform-managed, not agent-managed.

Related issues:

Activity

  1. added
    priority-p2
    type-feature
    on Apr 17, 2026
  2. added
    complexity-medium
    theme-devex
    on Jun 3, 2026
  3. added
    status-incubating
    on Jun 14, 2026
  4. added
    complexity-high
    and removed
    complexity-medium
    on Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    complexity-highpriority-p2status-incubatingtheme-devextype-feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions