memory_and_logging_sanity.md · 4.5 KB

MindX Memory, Logging, and Identity Sanity

Update (April 2026): Memory now uses pgvector (PostgreSQL) as primary backend with file fallback.
Tables: memories, beliefs, agents, godel_choices, actions, model_perf.
MemoryAgent dual-writes to both DB and data/memory/ JSON files.

This document outlines the corrected and simplified architecture for data persistence, logging, and identity management in the MindX system. The goal of this architecture is to be simple, robust, and easy to audit, with a clear separation of concerns.


1. Separation of Concerns

The system's architecture is now clarified to enforce a strict separation of concerns between managing identities, brokering access to secrets, and managing on-disk storage.


2. Identity and Security Workflow

IDManagerAgent - The Ledger

GuardianAgent - The Broker


3. Data Storage: Agent Workspaces and Logs

The agents.memory_agent.MemoryAgent manages all file-based data persistence.

Agent Workspaces

- .../agent_workspaces/automindx_agent_main/personas.json: Stores the personas managed by the AutoMINDXAgent. - .../agent_workspaces/mastermind_prime/mastermind_campaigns_history.json: Stores the history of campaigns run by the MastermindAgent.

Process Traces (Logs)

Diagram of Corrected Data Flow

graph TD
    subgraph Agents
        A(MastermindAgent)
        B(CoordinatorAgent)
    end

subgraph "Central Services" E(MemoryAgent) F(IDManagerAgent) K(GuardianAgent) end

subgraph "File System" G["data/identity/.wallet_keys.env"] H["data/memory/agent_workspaces/mastermind_prime/"] I[".../mastermind_prime/process_traces/"] J[".../mastermind_prime/mastermind_campaigns_history.json"] end

A -- "requests wallet" --> F; F -- "writes key to" --> G; A -- "requests data directory" --> E; E -- "returns path" --> H; A -- "saves history to" --> J; A -- "logs process" --> E; E -- "writes trace to" --> I;

A -- "requests private key via challenge" --> K; K -- "verifies & gets key from" --> F; K -- "returns key to" --> A;

This streamlined architecture provides a clear and sane model for how the MindX system handles its most critical data.


All DocumentsDocument IndexThe Book of mindXImprovement JournalAPI Reference