ontoloji.orgOpen Reference Hub
Agent Memory & Ontology Architecture11 min read·Updated: 2026-12-03·Türkçe sürüm →

Agent Memory Graphs (Cognee, Zep Graphiti) vs. Deterministic Enterprise Business Ontology

Why LLM-extracted conversational and GraphRAG memory engines excel at episodic recall—and why live million-row ERP/MES accounting, RBAC, and transactional write-backs require a deterministic ontology.

Executive Summary — Key Takeaways
  • 01Cognee (add -> cognify -> memify -> search ECL tri-store) and Zep Graphiti (EpisodeNode, EntityNode, valid_at/invalid_at bi-temporal graphs) solve probabilistic episodic memory across chat turns and unstructured notes.
  • 02Feeding million-row ERP invoice or stock ledgers through LLM extraction pipelines (cognify() or add_episode()) triggers O(N) token write amplification, HTTP 429 rate-limit bottlenecks, and entity-resolution supernode drift.
  • 03Subgraph top-k traversal (limit=10..50) cannot compute exact relational SUM(), GROUP BY, FIFO inventory costing, or OEE aggregations.
  • 04Production agent stacks separate Episodic Memory (what the user discussed last Tuesday) from the Enterprise Business Ontology (live zero-copy SQL/API truth, caller RBAC, and human-gated ERP mutations).

1. What Cognee (ECL Tri-Store) & Zep Graphiti (Bi-Temporal Memory) Were Built to Solve

Engineers building stateful agents in LangGraph, CrewAI, or PydanticAI need agents to remember user preferences and prior conversation episodes across sessions. Cognee compiles unstructured inputs into Pydantic DataPoint graphs persisted across relational (PostgreSQL/SQLite), vector (Qdrant/LanceDB/pgvector), and graph (Neo4j/FalkorDB/Kuzu) stores behind cognee-mcp. Zep Graphiti models conversational history as a bi-temporal property graph tracking both event validity (valid_at/invalid_at) and ingestion timestamps (created_at/expired_at).

For personal assistants, customer-support memory, and unstructured research notes, episodic memory graphs outperform flat vector chunks. Architectural failures arise when teams try to use an LLM-extracted memory graph as their system-of-record ERP/MES ontology.

2. Four Hard Limits of Probabilistic Memory Graphs on Live ERP & Shop-Floor Data

Routing transactional ERP, QMS, WMS, and finance workloads through conversational memory engines hits four fundamental systems boundaries:

  • O(N) LLM Write Amplification & Ingestion Lag: Running multi-prompt entity extraction on tens of millions of STLINE, BSEG, or MES cycle rows burns prohibitive token budgets and lags behind live shop-floor transactions.
  • Inability to Run Exact Relational Aggregations: Retrieving the 25 closest graph neighbors cannot calculate reconciled trial-balance totals, FIFO lot layers, or VAT withholding math.
  • Embedded File Locks & Missing Multi-Branch RBAC: Default SQLite/Kuzu/LanceDB local stores hit file-lock contention under concurrent MCP workers, and extracted memory graphs lack caller-scoped plant, store, and Maliyet Gizliliği (FOB margin) column masking.
  • Memory Edges Are Not ACID ERP Transactions: Writing a fact into agent memory does not validate statutory UBL-TR schemas or execute a governed SAP BAPI, Logo Objects REST, or Nebim V3 Integrator mutation.
Clean Separation of Concerns: Episodic Agent Memory vs. Operational Enterprise Ontology
Anti-Pattern: ERP Ledgers ──(LLM cognify / add_episode)──> Memory Graph ──> Hallucinated Totals!

Production Architecture:
  ├─ Episodic Agent Memory (Cognee / Zep Graphiti):
  │    "The plant manager previously asked to prioritize export orders for Bursa Line 2."
  │
  └─ Enterprise Business Ontology (Zero-Copy MCP Plane):
       Live ERP/MES Read Views + Caller RBAC + Human-Approved Official ERP Write Gates.
Architectural Rule: Use Memory for Conversation History, Ontology for Operational Truth

Keep user preferences and session context in an episodic memory store if helpful, while grounding every inventory, costing, ledger, and write-back tool call in a deterministic zero-copy business ontology.

Glossary Concepts Referenced in This Guide

Open License (CC BY 4.0) · Cite This Page

Free to reference in engineering docs, ADRs, articles, and course syllabi with attribution.

[Agent Memory Graphs (Cognee, Zep Graphiti) vs. Deterministic Enterprise Business Ontology — Ontoloji.org](https://ontoloji.org/en/guides/cognee-and-zep-graphiti-agent-memory-vs-enterprise-ontology)

More Guides in This Series

Core Architecture
How AI Uses an Ontology
9 min read
Agent Engineering
Agent Harness vs. Ontology
8 min read
Data Engineering
ERP, CRM & MES Patterns
10 min read
Strategy & Governance
30-Day Ontology Strategy
7 min read
ERP Integration
ERP Ontology Integration Guide
11 min read
ERP Data Engineering
Logo Tiger, Nebim V3 & Turkish Unicode Traps
14 min read
Agent Governance
Adversarial Verification, Permissions & Compaction
13 min read
Verification Engineering
Absence-Aware Gates & Ratio Reconstruction
13 min read
Provenance & Governance
Draft vs. Normative Provenance Hygiene
12 min read
SAP & Protocol Architecture
SAP BTP, Cloud Connector & ORD Ontology
11 min read
ERP Write-Safety
Logo REST, Nebim Integrator & UBL-TR Safety
12 min read
Platform Architecture Comparison
Cortex, Genie, dbt & Cube vs. Ontology
12 min read
Systems Engineering & Forensics
ERP Integrator Anti-Patterns & Forensics
13 min read
Platform Architecture Comparison
Fabric IQ, D365 MCP & SAP Joule vs. Ontology
12 min read
Retrieval & RAG Architecture
PageIndex Vectorless Tree RAG vs. Vector DBs
11 min read
Platform Architecture Comparison
Atlan, Stardog & Neo4j vs. Ontology
12 min read
Statutory & Financial Governance
GİB UBL-TR, VUK/TMS 29 & KVKK Ontology
13 min read
Protocol & Multi-Agent Architecture
MCP vs. OpenAPI & Specialist Agents
12 min read
Protocols & Standards
MCP 2026-07-28: Tasks, Events & Apps
13 min read
Agent Architecture & Governance
Agent Harness Engineering Rubric
12 min read
Agent Architecture & Governance
Multi-Agent Task Boards & Mailboxes
12 min read
Verification & Security
Generate-Evaluate-Repair & Observers
12 min read
Verification & Security
NSA MCP Security & CIMD vs. DCR
13 min read
Agent Architecture & Governance
OpenTelemetry for AI Agents & MCP
11 min read