Skip to content

feat: typed memory structures (World Facts, Experiences, Opinions, Mental Models) #3

@menonpg

Description

@menonpg

Background

Inspired by Hindsight's biomimetic memory design. Currently soul.py stores all memories as undifferentiated text. Adding a memory_type field would allow more precise retrieval and filtering.

Proposed types

  • world — general facts ('Python is a programming language')
  • experience — agent's first-person encounters ('User asked about Python 3 times today')
  • opinion — beliefs with confidence score ('User prefers Python over JS, confidence: 0.85')
  • mental_model — synthesized understanding built from reflect() operation

Changes needed

  • Add memory_type field to storage schema
  • Update remember() API to accept optional memory_type
  • Update recall() to support filtering by type
  • Auto-classify type using LLM when not specified

Priority

High — foundational for reflect() and confidence scores features

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions