1
0 Comments

Event Sourcing as the Backbone of AI Memory: Learning from How the Human Mind Works

Meet AirRembr—The AI That Doesn’t Forget (Unless You Want It To)

We’re starting an exciting new project called AirRembr. Its goal? To build an AI memory system that actually remembers things the way you need it to—not just random data, but useful, meaningful memory.

Here’s why this matters: As AI becomes a bigger part of business operations, we’ve noticed something important—AI without memory is like a goldfish. You ask it to do something, it does it, and then… it forgets. That’s not how humans work, and it’s definitely not ideal for AI.

AirRembr will be the memory engine powering the upcoming Tracardi 2.0, and it will rely on a powerful idea from software architecture called event sourcing to help AI store, learn from, and adapt based on past experiences. This isn’t just theory—AirRembr is coming soon, and it’s built on everything we talk about in this article.

The Power of Memory—And Why We Care

Let’s take a step back. One of the most powerful things about human intelligence is our memory—not just remembering facts like “Paris is the capital of France,” but being able to:

  • Make sense of experiences,
  • Learn new lessons,
  • Change our minds when new things happen, and
  • Even completely rethink our beliefs after major life events.

When I looked at how current AI systems manage memory, I realized something: event sourcing, a technique used in software systems, shares some surprising similarities with how our brains work.

It’s not a perfect comparison, but it offers a solid, practical foundation for building AI memory that’s adaptive, explainable, and efficient—just like ours.

Let’s dive into how this works.


1. The Human Mind: A Natural Event Logger

Every day, our brains observe events. Think about it:

  • “I met John at the cafe. I talked with John about …”
  • “The lights flickered during the storm.”
  • “I forgot my umbrella—again.”

These are all events—things we see, feel, or experience. They’re the building blocks of how we form beliefs, knowledge, intuition, and insights.

Here’s what happens in our minds:

  1. We observe events (our lives are full of them).
  2. We record key facts (not everything—just what feels important).
  3. We analyze patterns (“Hmm, it always rains on Tuesdays…”).
  4. We update our beliefs (“Maybe I should always carry an umbrella”).
  5. We rebuild mental models when something big changes.
  6. We identify entities (like recognizing someone as “Mom” or “my boss”) by connecting the dots between various events.

And crucially—we forget stuff. We don’t remember every sandwich we ever ate, but we do remember we like tuna more than ham. Our brains prune the details and keep the general insights.


2. Event Sourcing: How Computers Can Do the Same

Event sourcing is a simple but powerful idea: instead of storing the current state of something (like a balance in a bank account), we record every event that led to that state (“deposit $100,” “withdraw $20,” etc.). Then we combine the events into current state which can be an insight, or a current bank account balance like in this example ($80).

How it works:

  1. The system logs all events—every change, big or small.
  2. It builds the current state by replaying these events.
  3. If something changes (e.g., new rules), it can rebuild the state from scratch.

It’s like keeping a journal of everything, so you can always go back, rethink things, or see how you got to where you are.

And guess what? That’s similar to how human memory works.


3. Event Sourcing vs. Human Memory—Surprising Similarities

| Human Brain | Event-Sourced AI Memory |

| We live through events | System logs events as raw data |
| We learn patterns from them | System builds models from events |
| New info can change our minds | System can recompute state with new data |
| We forget minor stuff | System can delete or archive old events |
| We keep key memories and insights | System stores summaries and crucial events |
| We reinterpret old events | System can re-query logs with new logic |

In short, event sourcing supports “human-like” thinking: reasoning from facts, adapting to change, and rebuilding knowledge when needed.


4. Teaching AI to Think Like Us

AI isn’t human—but we can teach it to mimic our most useful behaviors:

A. Forgetting: Letting Go of the Noise

Humans forget what doesn’t matter. We remember less, but it’s often the important stuff.

How can AI do that?

  • Use a short-term event log for fresh data.
  • Analyze and summarize patterns (“User likes late-night emails”).
  • Then prune or archive the raw events.
  • Use snapshots of past states.

Example: Instead of remembering every time a user opened an email, the AI just remembers “User prefers evening emails” and forgets the rest, or instead of querying all past events when we saw John, we retrieved the current state of him, which tells us that John was wearing a black T-shirt the last time we saw him.

B. Generalization: From Many Facts to One Insight

We don’t remember every time we burned our fingers—we remember “Fire is hot.”

AI can do this too:

  • Use Bayesian logic (learning from probabilities),
  • Apply rule-based inference (if X, then Y),
  • Or crunch stats to find patterns and rules.

The key is to store generalized knowledge alongside key events—this becomes long-term memory.

C. Reinterpretation: Changing the Worldview After New Facts

Humans rebuild their worldview when confronted with powerful new facts.

Example: A child learns the concept of mortality—this restructures their view of pain from “discomfort” to “danger.”

AI Reinterpretation with Event Sourcing:

When new, critical information becomes available, AI should:

  1. Access all past events stored in its memory.
  2. Rebuild its understanding using updated logic/models.
  3. Derive new insights from the same data.

Example: An AI health assistant learns a medication causes long-term side effects. It rescans all past data, detects missed cases, and updates its knowledge—just like a human.

Identification: Changing How We Retrieve and Connect Information

Memory isn’t just storage—it’s retrieval and organization.

Human Example: Babies recognize “Mom” before knowing names. Later, they can connect events to named individuals and build richer social history.

AI Identification with Event Sourcing:

  • Start with simple labels: “user,” “agent.”
  • Learn specific roles: “John (customer),” “Alice (manager).”
  • Replay events with new identifiers.

Example: An AI support system starts with anonymous user IDs. Later, it links email addresses to real names, reassigns past conversations, and personalizes responses.

Key Point: Changing identifiers allows AI to reorganize and upgrade its understanding of the past—just like humans.


5. The Blueprint: Building AI Memory Step-by-Step

Here’s what an event-sourced AI memory system includes:

  1. Event Ingestion: Capture all events (clicks, emails, sensor data).
  2. Short-Term Buffer: Hold recent events for quick analysis.
  3. Generalization Layer: Extract patterns and rules.
  4. Knowledge Store: Keep key events + generalized knowledge.
  5. Rebuilding Engine: Re-analyze past data if needed.

This setup keeps facts and knowledge separate—so the AI can stay smart, flexible, and human-like.


6. Real-World Example: The AI That Knows You

Imagine an AI that manages your life:

  • Logs daily routines.
  • Learns you’re most productive in the morning.
  • Forgets minor details but remembers habits.
  • Notices change in routine and adapts.

That’s AI memory done right—event-sourced, human-inspired, always learning.


Beyond Theory — Building Adaptive AI Memory

Event sourcing is a practical foundation for AI memory that works like the human mind:

  • It remembers facts, but learns lessons.
  • It can forget, adapt, and change perspective.
  • It enables AI to grow with us, not just store data.

We’ve spent six months building this. It’s called AirRembr—a memory engine for adaptive, agentic AI.

We’ve had breakthroughs—and challenges. Building memory that supports reinterpretation, generalization, and identification is hard.

But one thing is clear: without memory, there can be no real agentic AI system.

To support autonomous, intelligent systems, AI must have memory that’s flexible, explainable, and resilient.

That’s exactly what we’re building.

Follow our journey: LinkedIn – Risto Kowaczewski

Let’s build the future of AI together.

on July 24, 2025