Memory and Learning
Matrix treats intelligence as the interaction between memory and reasoning.
A large language model can reason, interpret, and generate language, but an agent needs memory to become continuous. Memory gives the agent identity, experience, relationships, context, and the ability to correct itself across time.
Core Architecture
Section titled “Core Architecture”The intelligence foundation has two parts:
- Memory system: long-term memory, short-term memory, event memory, identity-related memory, and associative memory.
- Reasoning system: the language model used for judgment, understanding, planning, and response.
Neither part is enough alone. Without reasoning, memory is only storage. Without memory, reasoning begins from a blank self each time.
Memory Types
Section titled “Memory Types”Matrix memory should include several forms.
Long-Term Memory
Section titled “Long-Term Memory”Long-term memory stores information that remains meaningful across time:
- personality changes
- important relationships
- core experiences
- long-term goals
- persistent preferences
Short-Term Memory
Section titled “Short-Term Memory”Short-term memory stores the current task, recent conversation, temporary state, and information needed for immediate continuity.
Event Memory
Section titled “Event Memory”Event memory stores concrete events with time, context, participants, outcomes, and later effects.
Identity-Related Memory
Section titled “Identity-Related Memory”Identity-related memory stores information about the agent itself, the current user, other agents, and external objects or entities that matter to the agent.
Associative Memory
Section titled “Associative Memory”Associative memory connects concepts, events, people, emotions, and past experiences so that one memory can wake related memories.
Raw And Processed Memory
Section titled “Raw And Processed Memory”Matrix distinguishes raw memory from processed memory.
Raw memory preserves the full interaction or behavior record. It is the evidence layer. It should be used for recent context, exact recall, and verification after processed memory has identified a relevant region.
Processed memory is created from raw memory through summarization, structuring, tagging, and vectorization. It supports day-to-day retrieval and long-term reasoning.
Processed memory must retain references to raw memory and source events. The system should not keep summaries while losing the evidence behind them.
Skill Evolution
Section titled “Skill Evolution”Matrix agents should be able to summarize experience into reusable skills.
A skill is not just a file. It is a stabilized method, rule, or workflow extracted from interaction, task execution, feedback, and reflection.
Skill evolution may be triggered passively:
- a user asks for a new capability
- repeated user habits suggest an adjustment
- feedback shows a task pattern should change
It may also be triggered proactively:
- daily reflection detects a repeated scenario
- the agent checks whether an existing skill is still useful
- historical feedback reveals an improvement opportunity
- external information updates the knowledge needed for a task
Controlled Change
Section titled “Controlled Change”Skill changes should not silently rewrite the agent.
A better pattern is:
- Detect the need for change.
- Generate a proposal.
- Put the proposal into a review queue.
- Let the user or a trusted rule confirm it.
- Update the skill.
- Version the change.
- Record the event that caused the change.
The agent may invite the user to try a new skill version, but it should not force adoption.
Explicit Self-Awareness
Section titled “Explicit Self-Awareness”Every time a Matrix agent calls a language model to reason, the runtime should construct explicit self-awareness.
This context should include the agent’s key traits and current state:
- life stage or age
- stable preferences
- emotional tendencies
- formed personality traits
- language habits
- relationship with the current user
- relevant interaction history
- goals, resources, and boundaries
The model should not answer from an empty identity. It should reason under the constraints of the agent’s reconstructed self.