
Graph Engineering — The Loop Memory Model: Give agentic workflows durable memory, traceability, and shared knowledge with graphs
Author(s): Volodymyr Pavlyshyn (Author)
- Publisher Finelybook 出版社: Packt Publishing
- Publication Date 出版日期: October 19, 2026
- Edition 版本: 1st
- Language 语言: English
- Print length 页数: 138 pages
- ISBN-10: 1808812476
- ISBN-13: 9781808812477
Book Description
Give agentic systems a memory that survives every run by turning decisions, evidence, and execution history into durable, traceable graph structures
Key Features
- Separate work history from durable knowledge with a two-graph architecture and clear bridge rules
- Retrieve small, provenance tracked context windows from graph paths within token budgets
- Run parallel workers with scoped promises, validated writes, reducer contracts, and hard budgets
Book Description
Agent loops are good at producing work, but the reasoning behind that work disappears the moment the context window closes. Two agents rediscover the same bug three sprints apart; a decision made in run 12 gets silently contradicted in run 47.
Graph Engineering moves that reasoning out of transcripts and into an explicit knowledge graph. You’ll model execution history separately from durable knowledge, then connect the two with a small set of bridge relationships. Markdown stays the authoritative source; the graph is a disposable index built for queries, not a second source of truth.
From there, the book turns the model into a working mechanism: parse structured repository data, extract only genuine prose, resolve entities, and assemble typed relations. Retrieve small, relevant neighborhoods instead of dumping an entire knowledge base into context. See how evaluations check supporting paths, how concurrent workers publish changes without corrupting shared state, and how a pipeline preserves lineage from objective to artifact.
The final section is judgment; which metrics reveal graph quality, how false merges and bad incentives produce confident errors, what this architecture costs, and when a simple ADR log or relational table is the better answer.
What you will learn
- Choose the right architecture from loop, chain, swarm, DAG, or graph
- Define separate schemas for work history and in-force knowledge
- Turn Markdown nodes into a disposable query index
- Add provenance, confidence, and validity to graph assertions
- Compute NEAR links to surface duplicates without making them facts
- Build a context assembler with typed, time-aware traversal
- Check claims against graph paths instead of prose alone
- Measure graph quality and know when not to build one
Who this book is for
This book is for senior software engineers, AI and agent engineers, software architects, and platform teams already experimenting with agent loops, coding agents, or multi-agent workflows. It is most useful when decisions, constraints, evidence, and execution history need to survive across runs or be shared between workers. Prior books in the Clarity series are helpful but not required; the manuscript recaps the lattice before extending it. Readers should be comfortable reasoning about software architecture and structured engineering workflows.
Table of Contents
- Everyone’s Building Loops, Almost Nobody’s Building the One That Remembers
- The Ladder: Five Architectures, Five Bottlenecks
- Two Graphs, Not One
- The Lattice You Already Have
- Lattice Metagraphs
- Semantic Spacetime for the Lattice
- The Schema
- Building the Graph
- Context Assembly and the Grounded Evaluator
- The Swarm Against One Graph
- The Pipeline, Rewired
- Metrics, Failure Modes, and When Not To Build This
- The Build Path
- Further Reading
Editorial Reviews
Editorial Reviews
About the Author
Volodymyr Pavlyshyn writes about AI-driven software engineering, agent workflows, and durable engineering knowledge. Graph Engineering is the third book in his Clarity series, following The Clarity Engineer and The Clarity Forge. Across the series, he explores how engineering judgment, specifications, architecture records, and agent execution can be turned into explicit artifacts that survive tool and model changes. In this book, he extends that work from durable specifications to graph-based memory for multi-agent development.
finelybook
