| description | Index for Architecture documentation. | ||
|---|---|---|---|
| tags |
|
||
| layer | 0 |
This directory details the technical architecture of MONITOR, primarily organized around the 3-Layer Cake dependency pattern.
- The Three Layers: Defines the boundaries and rules of the 3-Layer architecture.
- Layer 1: Data: Database clients, Pydantic schemas, and MCP tools.
- Layer 2: Agents: LangGraph loops, BaseAgent, and DSPy modules.
- Layer 3: Interface: CLI and Web interfaces.
- Data Model & Workflow: Explains the 5 databases (Neo4j, MongoDB, Qdrant, MinIO, Postgres) and how they interact.
- MCP Transport: How agents interact with Layer 1 via Model Context Protocol.
To preserve the integrity of the Neo4j Knowledge Graph, no agent (except CanonKeeper) can write to Neo4j. Instead, agents create ProposedChange documents in MongoDB. The CanonKeeper reviews these against established policies and commits accepted proposals to Neo4j.