Leanpub Header

Skip to main content

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

Enterprise level agent in user pocket

AI engines are booming, and the more we work with agentic systems, the more we see that we need something to make them work at the enterprise level. We're quite active in exploring ideas around context graphs, decision traces, and supporting explainability—giving agents the ability to make more aware and company-aligned decisions.

But this makes sense not only for enterprises, but for users and individuals building personal agents as well. Unfortunately, we have zero-to-none inclination on how to actually build a context graph.

I'll try to explain how to build something like a context graph—but go beyond it. I deeply believe that to make this work, we need specific agentic memory and a set of cognitive processes that truly help agents use this memory and learn from experience and data.

That's why this is the Book: Beyond Context Graphs—with a focus on real-life enterprise tasks and how to make agents make better decisions and, let's say, hallucinate less.

Minimum price

$25.00

$44.88

You pay

$44.88

Author earns

$35.90
$

...Or Buy With Credits!

You can get credits with a paid monthly or annual Reader Membership, or you can buy them here.
PDF
EPUB
WEB
About

About

About the Book

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.

Bundles

Bundles that include this book

Author

About the Author

Volodymyr Pavlyshyn

Hey I am Volodymyr 

Seasoned Developer's Journey from COBOL to Web 3.0, SSI, Privacy First Edge AI, and Beyond

 As a seasoned developer with over 20 years of experience, I have worked with various programming languages, including some that are considered "dead," such as COBOL and Smalltalk. However, my passion for innovation and embracing cutting-edge technology has led me to focus on the emerging fields of Web 5.0, Self-Sovereign Identity (SSI),AI Agents, Knowledge Graphs, Agentiic memory systems, and the architecture of a decentralized world that empowers data democratization.

A firm believer in the potential of agent systems and the concept of a "soft" internet, I am dedicated to exploring and promoting these transformative ideas. In addition to writing, I also enjoy sharing my knowledge and insights through videoblogging. Most of my Medium posts serve as supplementary content to the videos on my YouTube channel, which you can explore here: https://www.youtube.com/c/VolodymyrPavlyshyn. 

Join me on this exciting journey as we delve into the future of technology and the possibilities it holds.

Contents

Table of Contents

About Book

About Author

About Cover

Decision Traces and the Context Graph Thesis: The Roots

  1. The Core Argument: Rules Aren’t Enough
  2. Two Problems, Not One
  3. What Context Graphs Actually Are: Bi-Temporal Knowledge Graphs with PROV-O
  4. The Structural Advantage of Systems-of-Agents Startups
  5. The Three Startup Paths
  6. Mapping Context Graphs to Semantic Spacetime
  7. The Hard Problems Context Graphs Don’t Solve
  8. Decision Traces Are Not Causality
  9. Integration Architecture, Not Revolution
  10. Practical Implications for Builders
  11. Connecting to the Broader Vision
  12. Infrastructure Matters, But It’s Not Intelligence

Beyond Context Graphs: Agentic Memory, Causality, and Explainability

  1. The Missing Foundations
  2. Why Context Graphs Aren’t Enough
  3. The Causality Challenge
  4. The Explainability Imperative
  5. Memory Architecture: The Foundation
  6. Trust Through Transparency, Not Anthropomorphization

Context Graphs and Data Traces: Building Epistemology Layers for Agentic Memory

  1. Data Traces: The Low-Hanging Fruit
  2. Building an Epistemology Layer
  3. Revalidation and Learning
  4. Information Architecture Before Complex Analysis
  5. A Practical Path Forward

The Epistemology Paradox

  1. My Favorite Dialogue: The Circular Trap
  2. The Mathematical Proof: Zero Hallucinations Are Impossible
  3. Layer 1: The LLM-Knowledge Graph Circular Dependency
  4. Layer 2: Why Graphs Without Ontology Fail
  5. Layer 3: The Ontology-Epistemology Gap
  6. The Epistemology Crisis Since the Internet
  7. Layer 4: Epistemology Demands Verifiability
  8. The Verification Technology Stack
  9. The Limits of Verification
  10. Layer 5: The Trust Infrastructure Paradox
  11. The Integration Challenge: A Multi-Layered Approach
  12. Case Study: Air Canada’s Chatbot Hallucination
  13. The Brutal Statistics of RAG Failure
  14. What We Need: The Multi-Layered Solution
  15. The Honest Technology Stack
  16. What Genuine Progress Would Look Like
  17. Conclusion: Beyond the Marketing Mirage

Causal Graphs as the Missing Layer

  1. The Core Problem — Correlation Masquerading as Causation
  2. What Traditional Knowledge Graphs Get Wrong
  3. The Medical Reasoning Benchmark Reveals the Gap
  4. Why This Matters for Context Graphs
  5. Decision Traces Are Reified Causal Chains
  6. Reification: Making Reasoning Visible
  7. Connecting to W3C PROV Ontology
  8. The Epistemology Connection
  9. Semantic Spacetime as the Unifying Framework
  10. The Four Fundamental Relations Revisited
  11. Temporal Validity: When Does Causation Hold?
  12. Bringing It Together: The Four-Layer Architecture
  13. Implementation Architecture & Technical Patterns
  14. Causal Edge Scoring in Practice
  15. CoT-Aligned Retrieval Pattern
  16. Path Scoring with Semantic Spacetime Awareness
  17. Bi-Temporal Context Graph Schema
  18. The Hype vs. Substance Assessment
  19. What’s Genuinely New
  20. What’s Repackaged
  21. What’s Actually Hard
  22. Synthesis — A Unified Model
  23. Mapping the Three Frameworks
  24. The Complete Architecture
  25. Production Implementation Sketch
  26. Open Questions & Research Directions
  27. Automated Causal Weight Estimation
  28. CoT Stabilization for Deterministic Retrieval
  29. Ontology Alignment: Semantic Spacetime → Domain KGs
  30. Provenance Chain Compression
  31. Multi-Agent Causal Attribution
  32. Conclusion: The Path Forward

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

  1. The Genesis and Limitations of Single-Graph Thinking
  2. Episodic Memory and the Foundations of Temporal Causality
  3. Cognitive Processes: The Missing Layer in Agent Architectures
  4. The Action Block and Extended Working Memory
  5. Promise Theory: A More Flexible Framework for Agent Behavior
  6. The Architecture of Signals, Promises, and Actions
  7. Multi-Layered Networks: Beyond Pure Graph Structures
  8. The Primacy of Cognitive Processing Over Storage
  9. The Question of Human-Like vs. Novel Memory Architectures
  10. Toward Genuine Agentic Learning
  11. Implementation Challenges and Future Directions
  12. Conclusion

AI Memory is Not RAG, RAG is Not Enough for AI Agents

  1. Introduction
  2. The Current State of RAG
  3. Why RAG is Not True Memory
  4. 1. Lack of Episodic Context
  5. 2. Limited Association Building
  6. 3. Retrieval Without Understanding
  7. 4. No Forgetting Mechanism
  8. Why RAG is Not Enough for Advanced AI Systems
  9. 1. Context Window Constraints
  10. 2. Retrieval Quality Bottlenecks
  11. 3. Static Knowledge Representation
  12. 4. Limited Self-Reflection
  13. What Makes Memory Truly Memory?
  14. 1. Multi-modal Memory Structures
  15. 2. Active Reconstruction
  16. 3. Associative Memory Networks
  17. 4. Adaptive Forgetting
  18. 5. Hierarchical Organization
  19. Promising Directions for AI Memory Systems

Rethinking Time: How Tensor Clocks and Metagraph Models Are Revolutionizing AI Memory

  1. The Clock That Doesn’t Tick
  2. The Timestamp Problem: Why Traditional Time Fails AI
  3. The Evolution of Time-Tracking: From Lamport to Tensors
  4. Lamport Clocks: The Foundation
  5. Vector Clocks: Adding Dimensions
  6. Tensor Clocks: The Multi-Dimensional Leap
  7. Metagraph Models: Memory as a Living Network
  8. Beyond Simple Graphs
  9. The Power of Semantic Time
  10. Practical Implementation: Building the System
  11. Event Ingestion and Tensor Coordinate Assignment
  12. Graph Construction and Edge Formation
  13. Query and Retrieval
  14. Real-World Applications and Benefits
  15. Personal AI Assistants
  16. Healthcare and Wellness
  17. Business Intelligence and Team Memory
  18. Therapeutic and Mental Health Applications
  19. The Challenges Ahead
  20. Computational Complexity
  21. Looking Forward: The Future of AI Memory

Memory Design

  1. The Time Tree - Modeling Temporal Ambiguity
  2. The Problem with Precise Timestamps
  3. The Ontology of Memory — Building a Semantic Foundation
  4. Layered Visibility: Controlling Complexity
  5. Relations

Cognitive Processes and Reasoning

  1. The Foundation: Intent, Promise, Obligation, and Command
  2. The Distributed Nature of Autonomy
  3. Self-Assessment: The Core of Autonomous Promise-Making
  4. Agent-Centric Assessment and Decision Authority
  5. Voluntary Cooperation as a Foundation
  6. Individual Responsibility and Behavioral Boundaries
  7. Super-Agents and Collective Intelligence
  8. Implications for AI System Design

Promises and Causality

Temporal Causality

From Promises to Action to Decisions

notes on expandability

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