Part II. Setup: Building the Digital Twin of a Tech Stack
In Part II, we’ll construct the agent’s “brain”: the vertical knowledge graph and the memory systems that give it temporal depth. Real-world data does not arrive in graph form. Infrastructure knowledge lives in server logs, JSON configs, database schemas, Terraform definitions, wiki pages, and the heads of the engineers who built the systems. Part II is the pipeline that turns that raw material into a structured, queryable, historically aware model of the agent’s domain.
By the end of Part II, the DevOps agent will have a high-fidelity digital twin of its tech stack, a model that can be asked what the infrastructure looked like right before last Tuesday’s outage. It will have a map of its world and understand how that map changes over time. It will not yet know how to reason or act on that map—that comes in Part III.
Chapter 3 covers knowledge graph foundations and design patterns for agents, knowledge acquisition pipelines (extraction, entity resolution, validation), integration with existing organizational graphs and ontologies, and agent-friendly knowledge structures. Each of these is applied to build the DevOps agent’s initial vertical knowledge graph.
Chapter 4 covers episodic, semantic, and procedural memory; bitemporal modeling; retrieval strategies; and consolidation and pruning. These give the digital twin a temporal dimension so the agent can reason about change over time.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access