Leanpub Header

Skip to main content

Beyond Context Graphs : Agentic Memory , Causual Graphs , Promise Graphs and decision traces

These books have a total suggested price of $294.64. Get them now for only $85.00!
About

About

About the Bundle

If you've been following me long enough, you know I have a couple of books about knowledge representation and memory. I started with Semantic Spacetime as a method for representing and organizing information for LLMs—and later for agents. Right now, I'm focused on context engineering, and you can read my book on it. It's not very long, but it provides solid fundamentals for organizing knowledge.

https://leanpub.com/sst-4-agenticai

In my next book, _Time of AI Memory_, I discuss how to actually apply Semantic Spacetime and how to treat time itself. I try to explain what kind of clock we need to rely on for time—my clock is more about events. I go deeper and deeper into the topic of memory: why we need memory, why memory is not RAG, why we need different approaches. But this book mainly focuses on conversational memory because I was focused on building agents that maintain conversations with users.

https://leanpub.com/time-aware-ai-memory

Now that agents have arrived, they face new challenges that go beyond conversational memory. These challenges introduce many new needs: operational memory, decision traces, action logs, and everything related to making the agent think about its actions and improve over time.

I've observed the huge hype around the $100 trilion rebranding of knowledge graphs to "context graphs." I agree it's mainly hype, but it raises important use cases and important needs that we can't ignore. Somehow, we need to understand decisions. Somehow, we need to make these decisions explainable. We also need to think about how the agent will operate in this swarm of agents and massive agentic systems. All of this creates new challenges—especially for enterprise and company-level agents that need to make decisions about humans. These decisions need to be explainable; these decisions need to be understandable. And we have a completely different set of challenges arriving, but we still need memory.

Because of these new challenges—while still extending the old topics—I decided to write a book about context graphs. But in practice, it's a book that goes beyond context graphs. I explain the need to use memory together with cognitive processes: processing, causal and temporal causal analysis, maybe some topological analysis, and all the tools that don't just store data in a proper way, but also build pipelines and cognitive procedures to work with data, analyze the data, recall and reconstruct the data.

I also focus on Promise Theory and how promises could be the basis of multi-agentic systems, and why it's important to understand decision traces, decision graphs, and promise graphs. How promises lead to actions, how promises drive decisions, and how promises—together with data signals, rules, and training data—shape the behavior of the agent. This is also a key topic.

We'll focus on four parts in the book:

1. What are context graphs originally?

2. Why do we need more?

3. How to make this "more" happen?

4. The basics of promise graphs and Promise Theory, together with scheduling and temporal analysis.

Scheduling and temporal analysis require us to revisit memory, time in memory, and causality. I'm happy to share parts of my memory book with the design of memory that actually supports this view—even if it wasn't originally designed for this purpose.

I really recommend you buy the bundle. But at the same time, I understand that maybe you could start from this book and go in reverse.

I also add poket graphs book in case you building edge agents

Books

About the Books

AI Agents Memory empowered by Knowledge Graphs

connecting the dots for better conversational agents

I built a few conversational agents that are privacy-focused, and we realized that we need a memory.

It is a compilation of my Medium articles on graph and memory topics. We need a memory to make the agent smart, and this book is not a solution, nor does it guide you on how to build a memory. Still, it explains how knowledge graphs and metagraphs are essential for memory and how to build a better memory for AI agents based on the graph approach. So it's a graph book, actually, but with the artificial intelligence flavour.

We will touch:

  • Why is memory not RAG
  • how to model AI memory
  • graphs
  • graph evolution for a memory
  • meta and hypergraphs
  • temporal aspect of memory
  • event graphs
  • casual graph
  • semantic space time 

Semantic Space Time for AI Agent Ready Graphs

This book introduces a revolutionary framework for knowledge representation and AI agent memory: Semantic Spacetime. Drawing from theoretical physics and graph theory, this framework offers a new way to understand how meaning, relationships, and causality can be structured in intelligent systems.

Why This Book Matters

Current approaches to AI memory and knowledge representation face fundamental limitations. Vector embeddings, while popular, create opaque high-dimensional spaces where relationships lack clear semantic meaning. Traditional graph databases often rely on arbitrary relationship types that don't generalize across domains. Most critically, existing systems struggle with the dynamic, contextual nature of how humans actually understand and use knowledge.

Semantic Spacetime addresses these challenges by proposing four fundamental relationship types—NEAR/SIMILAR TO, LEADS TO, CONTAINS, and EXPRESSES PROPERTY—that can represent virtually any knowledge domain while maintaining semantic clarity and computational tractability.

What You'll Discover

This book explores how spatial and temporal concepts from physics can be adapted to create semantic spaces where meaning emerges from relationships. You'll learn how causality graphs can form the backbone of AI agent memory, enabling systems that don't just store information but understand the "why" behind events and decisions.

The framework presented here moves beyond static knowledge representation to embrace the dynamic, contextual nature of understanding. By focusing on causal relationships and pragmatic proximity, AI systems can adapt their knowledge structures to different contexts and purposes, much like human cognition.

For Whom This Book Is Written

This book is intended for researchers and practitioners working in AI, knowledge representation, graph databases, and semantic technologies. While the concepts are rigorous, they are presented with practical applications and implementation considerations in mind.

Whether you're building recommendation systems, developing AI agents for personal assistance, creating knowledge management platforms, or exploring the foundations of machine reasoning, the principles in this book provide both theoretical grounding and practical guidance.

The Journey Ahead

The framework presented here represents a synthesis of ideas from multiple disciplines: graph theory, category theory, physics, cognitive science, and computer science. By bringing these perspectives together, we can build AI systems that not only process information but truly understand the structured nature of knowledge and experience.

This is not just another approach to knowledge representation—it's a fundamental rethinking of how intelligent systems can model the world in ways that align with how humans actually think and reason about complex relationships and causality.

Beyond Context Graphs: Agentic Memory, Cognitive Processes, and Promise Graphs

Enterprise level agent in user pocket

If you're following my work, I have a couple of deep research pieces about agentic memory and the application of spacetime concepts. Right now, I'm also working on a book about agentic protocols. This particular book focuses on the question of better context for agents—following the ideas of context graphs and exploring how to actually build something beyond context graphs to manage decision traces.

The goal is to create an architecture for enterprise-level agents that follow rules, make their own decisions, and—most importantly—make explainable decisions. I'll also explore the ability for agents to learn and apply that learning based on past experience.

We'll talk extensively about concepts like agentic memory: why we need memory, how to build memory, and why memory is not just another RAG system. We'll cover how to apply decision traces, how they work, and why cognitive processes—just like memory structures—contribute to learning capabilities.

Beyond this, we'll explore promise theory and promise graphs as an extension of agentic action logs. This creates a rich trace from data signals to promises to actions, making the architecture multi-agent ready. We'll examine this in the scope of agent cooperation, where agents don't just act in isolation but coordinate through explicit promises and commitments.

My core assumption with this book is that we need to build sophisticated agentic memory that goes beyond context graphs, beyond knowledge graphs, and applies advanced topics like causality, temporal causality research, and a deep focus on time itself. This is extremely relevant to my memory book, but here the focus is specifically on agents—and how they work together.

Edge AI : Pocket Knowledge Graphs on user device

Empowering AI Agents with Graph-Based Memory on User Devices

This book addresses a critical gap in modern AI development: building truly autonomous agents with sophisticated memory systems that run entirely on user devices. While most AI applications rely on cloud-based processing and centralized knowledge stores, this book demonstrates how to architect intelligent agents with rich semantic memory using knowledge graphs, hypergraphs, and metagraphs—all operating locally on user devices.

What You'll Learn

From LLMs to Autonomous Agents: Move beyond simple prompt engineering to build AI systems that can remember, reason, and act autonomously. You'll discover why traditional language models fall short and how the three pillars of agent autonomy—tools, memory, and reasoning—work together to create truly intelligent systems.

Graph-Empowered Memory Architecture: Master the implementation of personal knowledge graphs as the foundation for AI agent memory. Learn practical approaches to modeling complex relationships, temporal data, and multi-modal information using relational databases, making sophisticated memory systems accessible without specialized graph databases.

Edge AI Implementation: Build AI agents that respect user privacy and data sovereignty by running entirely on personal devices. Discover how to implement vector search, graph queries, and complex reasoning using embeddable databases like LibSQL, enabling powerful AI capabilities without compromising user data.

Advanced Graph Structures: Progress from simple directed graphs to hypergraphs and metagraphs, understanding when and how to use each structure for maximum effectiveness. Learn practical strategies for handling temporal relationships, multi-context memory, and hierarchical knowledge representation.

Real-World Applications: Bridge the gap between theoretical knowledge representation and practical software development. Understand how to map ontological concepts to domain objects, implement Graph-to-Object Mapping (GOM), and integrate semantic reasoning with modern application architectures.

Who This Book Is For

This book is designed for software engineers, AI researchers, and technical architects who want to build the next generation of AI applications with sophisticated on-device capabilities. Whether you're developing personal AI assistants, knowledge management systems, or autonomous agents, this book provides the practical knowledge needed to implement graph-based memory systems that scale.

You should have basic familiarity with databases, software architecture, and AI concepts, though the book builds from foundational principles to advanced implementations.

Why This Matters Now

As AI regulation evolves and privacy concerns grow, the future belongs to systems that empower users with sovereign control over their data and AI capabilities. This book shows you how to build that future today, creating AI agents that are both powerful and privacy-preserving, sophisticated yet deployable on personal devices.

Beyond Context Graphs: Agentic Memory, Cognitive Processes, and Promise Graphs

Enterprise level agent in user pocket

If you're following my work, I have a couple of deep research pieces about agentic memory and the application of spacetime concepts. Right now, I'm also working on a book about agentic protocols. This particular book focuses on the question of better context for agents—following the ideas of context graphs and exploring how to actually build something beyond context graphs to manage decision traces.

The goal is to create an architecture for enterprise-level agents that follow rules, make their own decisions, and—most importantly—make explainable decisions. I'll also explore the ability for agents to learn and apply that learning based on past experience.

We'll talk extensively about concepts like agentic memory: why we need memory, how to build memory, and why memory is not just another RAG system. We'll cover how to apply decision traces, how they work, and why cognitive processes—just like memory structures—contribute to learning capabilities.

Beyond this, we'll explore promise theory and promise graphs as an extension of agentic action logs. This creates a rich trace from data signals to promises to actions, making the architecture multi-agent ready. We'll examine this in the scope of agent cooperation, where agents don't just act in isolation but coordinate through explicit promises and commitments.

My core assumption with this book is that we need to build sophisticated agentic memory that goes beyond context graphs, beyond knowledge graphs, and applies advanced topics like causality, temporal causality research, and a deep focus on time itself. This is extremely relevant to my memory book, but here the focus is specifically on agents—and how they work together.

Beyond Context Graphs: Agentic Memory, Cognitive Processes, and Promise Graphs

Enterprise level agent in user pocket

If you're following my work, I have a couple of deep research pieces about agentic memory and the application of spacetime concepts. Right now, I'm also working on a book about agentic protocols. This particular book focuses on the question of better context for agents—following the ideas of context graphs and exploring how to actually build something beyond context graphs to manage decision traces.

The goal is to create an architecture for enterprise-level agents that follow rules, make their own decisions, and—most importantly—make explainable decisions. I'll also explore the ability for agents to learn and apply that learning based on past experience.

We'll talk extensively about concepts like agentic memory: why we need memory, how to build memory, and why memory is not just another RAG system. We'll cover how to apply decision traces, how they work, and why cognitive processes—just like memory structures—contribute to learning capabilities.

Beyond this, we'll explore promise theory and promise graphs as an extension of agentic action logs. This creates a rich trace from data signals to promises to actions, making the architecture multi-agent ready. We'll examine this in the scope of agent cooperation, where agents don't just act in isolation but coordinate through explicit promises and commitments.

My core assumption with this book is that we need to build sophisticated agentic memory that goes beyond context graphs, beyond knowledge graphs, and applies advanced topics like causality, temporal causality research, and a deep focus on time itself. This is extremely relevant to my memory book, but here the focus is specifically on agents—and how they work together.

Edge AI : Pocket Knowledge Graphs on user device

Empowering AI Agents with Graph-Based Memory on User Devices

This book addresses a critical gap in modern AI development: building truly autonomous agents with sophisticated memory systems that run entirely on user devices. While most AI applications rely on cloud-based processing and centralized knowledge stores, this book demonstrates how to architect intelligent agents with rich semantic memory using knowledge graphs, hypergraphs, and metagraphs—all operating locally on user devices.

What You'll Learn

From LLMs to Autonomous Agents: Move beyond simple prompt engineering to build AI systems that can remember, reason, and act autonomously. You'll discover why traditional language models fall short and how the three pillars of agent autonomy—tools, memory, and reasoning—work together to create truly intelligent systems.

Graph-Empowered Memory Architecture: Master the implementation of personal knowledge graphs as the foundation for AI agent memory. Learn practical approaches to modeling complex relationships, temporal data, and multi-modal information using relational databases, making sophisticated memory systems accessible without specialized graph databases.

Edge AI Implementation: Build AI agents that respect user privacy and data sovereignty by running entirely on personal devices. Discover how to implement vector search, graph queries, and complex reasoning using embeddable databases like LibSQL, enabling powerful AI capabilities without compromising user data.

Advanced Graph Structures: Progress from simple directed graphs to hypergraphs and metagraphs, understanding when and how to use each structure for maximum effectiveness. Learn practical strategies for handling temporal relationships, multi-context memory, and hierarchical knowledge representation.

Real-World Applications: Bridge the gap between theoretical knowledge representation and practical software development. Understand how to map ontological concepts to domain objects, implement Graph-to-Object Mapping (GOM), and integrate semantic reasoning with modern application architectures.

Who This Book Is For

This book is designed for software engineers, AI researchers, and technical architects who want to build the next generation of AI applications with sophisticated on-device capabilities. Whether you're developing personal AI assistants, knowledge management systems, or autonomous agents, this book provides the practical knowledge needed to implement graph-based memory systems that scale.

You should have basic familiarity with databases, software architecture, and AI concepts, though the book builds from foundational principles to advanced implementations.

Why This Matters Now

As AI regulation evolves and privacy concerns grow, the future belongs to systems that empower users with sovereign control over their data and AI capabilities. This book shows you how to build that future today, creating AI agents that are both powerful and privacy-preserving, sophisticated yet deployable on personal devices.

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub