Definitive Database Schema

The clean, final schema for the Nomad and Delamain databases, reflecting the principle of "Separation of Worlds".

The Nomad Database (The "Application World")

Logical Purpose: The Nomad database is the single source of truth for the **work to be done**. It is the human-facing project management layer, storing the projects, tasks, and meetings that define the goals of the platform.

dbo.projects

Stores the high-level project containers.

dbo.tasks

Stores the individual, actionable work items within a project.

dbo.task_steps

Stores the ordered, pre-defined steps for a complex task's "blueprint".

dbo.meetings

Stores records of meetings, including transcripts and AI-generated summaries, which often serve as the origin for new projects and tasks.

The Delamain Database (The "Agent's World")

Logical Purpose: The Delamain database is the **agent's brain**. It contains all the internal cognitive and operational data that Delamain uses to think, learn, and act. It is the single source of truth for the agent's state and history.

dbo.job_queue

The agent's "to-do list". This is a queue of high-level jobs (e.g., 'EXECUTE_TASK') for the Executive Agent to process.

dbo.job_execution_log

The agent's perfect, immutable memory of every **action** it has ever taken. This serves as the ground-truth audit trail for the "Logbook" in the UI.

dbo.agent_status

A real-time status table for the background agent workforce, used to monitor the health and current activity of the system on the Dashboard.

dbo.conversation_turns

The raw log of all conversational interactions between the user and the agent, forming the basis for short-term memory.

dbo.context_summary & dbo.context_summary_history

The agent's persistent **long-term memory**. These tables store distilled summaries and key facts that the Librarian agent generates, allowing Delamain to learn from past interactions.

dbo.code_change_log

An audit trail specifically for when the agent modifies its own source code, storing a snapshot of the file before the change is made.

dbo.chat_requests

A mechanism for the agent to request help, allowing it to signal to the UI when it is blocked or needs human input.

dbo.rag_pending & dbo.rag_queries

Tables related to the management and monitoring of the Retrieval-Augmented Generation (RAG) knowledge base.

← Back to Documentation Home