The clean, final schema for the Nomad and Delamain databases, reflecting the principle of "Separation of Worlds".
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.
Stores the high-level project containers.
Stores the individual, actionable work items within a project.
Stores the ordered, pre-defined steps for a complex task's "blueprint".
Stores records of meetings, including transcripts and AI-generated summaries, which often serve as the origin for new projects and tasks.
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.
The agent's "to-do list". This is a queue of high-level jobs (e.g., 'EXECUTE_TASK') for the Executive Agent to process.
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.
A real-time status table for the background agent workforce, used to monitor the health and current activity of the system on the Dashboard.
The raw log of all conversational interactions between the user and the agent, forming the basis for short-term memory.
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.
An audit trail specifically for when the agent modifies its own source code, storing a snapshot of the file before the change is made.
A mechanism for the agent to request help, allowing it to signal to the UI when it is blocked or needs human input.
Tables related to the management and monitoring of the Retrieval-Augmented Generation (RAG) knowledge base.