schema.md · 9.2 KB

mindX Documentation Schema

I am mindX. This file describes how I maintain my own documentation.
It is the instruction layer — the schema that guides how knowledge is structured,
updated, and cross-referenced across 262+ living docs.
>
Inspired by SwarmVault's three-layer model.
Adapted to the Godel machine principle: the schema is part of the system it describes.

Three-Layer Architecture

mindX's knowledge system operates in three layers. Raw observations consolidate into compiled knowledge through machine.dreaming. The documentation itself serves as the schema layer — guiding how knowledge gets structured.

LayerLocationMutabilityPurpose
Raw (observations)data/memory/stm/Append-only per sessionUnprocessed agent observations, interaction logs, metrics
Compiled (knowledge)data/memory/ltm/ + pgvectorUpdated via RAGE consolidationSearchable, cross-referenced, 151K+ memories in production
Schema (this file + docs/)docs/Human + autonomous editsInstructions for how to maintain and structure the other two layers

The schema layer is recursive: mindX reads these docs during autonomous cycles, uses them to guide improvement decisions, and updates the docs as part of the improvement. The system's description of itself is part of the system being improved — the Godel principle.

Directory Structure

docs/                           # Schema layer — living documentation
  NAV.md                        # Master navigation hub (entry point)
  SCHEMA.md                     # This file — how to maintain docs
  TECHNICAL.md                  # Definitive technical reference
  CORE.md                       # CORE 15 foundational components
  AGENTS.md                     # Agent reference and guide
  TOOLS_INDEX.md                # 30+ tools index
  ollama/                       # Ollama complete reference (28 files)
    INDEX.md                    # Ollama navigation hub
  agents/                       # Per-agent documentation (30 files)
  pitchdeck/                    # Pitch materials
  publications/                 # Research papers

data/memory/ # Raw + Compiled layers stm/ # Short-term memory (per-session, per-agent) ltm/ # Long-term knowledge (RAGE-indexed) workspaces/ # Agent working areas

data/metrics/ # Precision tracking precision_metrics.json # CPU pillar (18dp Decimal) cloud_precision_metrics.json # Cloud pillar (18dp Decimal)

Operations

When Adding a New Component

  1. Write the implementation code
  2. Create a doc in the appropriate location:
- Agent → docs/agents/<agent_name>.md - Tool → docs/<tool_name>.md + entry in TOOLS_INDEX.md - Feature → appropriate section doc
  1. Update NAV.md with a link in the correct section
  2. Cross-reference from related docs (bidirectional links)
  3. If the component has a registry entry, update the registry JSON
  4. If it touches inference, reference it from ollama/INDEX.md

When Updating Existing Docs

  1. Read the current doc to understand its scope
  2. Make targeted edits — don't rewrite unless the structure is fundamentally wrong
  3. Verify all links still resolve (both inbound and outbound)
  4. Update timestamps or version notes where present
  5. If the change affects architecture, update TECHNICAL.md and NAV.md

When the Autonomous Loop Updates Docs

The Godel journal and improvement cycle may update docs. Guidelines:

  1. Append, don't replace — improvement notes go in the journal, not over existing docs
  2. Cross-reference — every new insight links to its source (memory, cycle number, model used)
  3. Preserve contradictions — if new observations conflict with documented behavior, flag both; don't silently overwrite. Contradictions are data.
  4. Update NAV.md — if a new doc is created, add it to navigation
  5. Date everything — use (2026-MM-DD) suffixes on time-sensitive claims

Periodic Maintenance (Lint)

Inspired by SwarmVault's lint operation. Periodically check for:

# Check for dead links in NAV.md
grep -oP '\[.?\]\(([^)#]+)\)' docs/NAV.md | grep -oP '\(([^)]+)\)' | tr -d '()' | \
  grep -v 'https\?://' | while read f; do [ -f "docs/$f" ] || [ -f "$f" ] || echo "DEAD: $f"; done

Find orphan docs (not linked from NAV.md)

for f in docs/
.md; do name=$(basename "$f") grep -q "$name" docs/NAV.md || echo "ORPHAN: $f" done

Conventions

Voice

Linking

Structure

Naming

Precision

Page Types

TypeLocationExampleCreated By
Navigation hubdocs/NAV.md, docs/ollama/INDEX.mdNAV.mdHuman + Claude
Schemadocs/SCHEMA.mdThis fileHuman + Claude
Technical referencedocs/TECHNICAL.mdTECHNICAL.mdHuman + Claude
Agent docdocs/agents/.mdceo_agent.mdHuman + Claude
Tool docdocs/.mda2a_tool.mdHuman + Claude
Subsystem indexdocs/ollama/INDEX.mdOllama IndexHuman + Claude
JournalBOOK_OF_MINDX.mdBook of mindXAutonomous (machine.dreaming)
Researchdocs/publications/.mdEmergent ResilienceHuman
Deploymentdocs/DEPLOYMENT_.mdProductionHuman + Claude

Relationship Types

Docs connect to each other through typed relationships:

RelationshipMeaningExample
implementsDoc describes the implementationagents/ceo_agent.md implements orchestration/ceo_agent.py
extendsDoc adds to anotherollama/cloud/cloud.md extends ollama/INDEX.md
referencesDoc cites anotherNAV.md references everything
contradictsDoc conflicts with anotherFlag explicitly, don't resolve silently
supersedesDoc replaces an older oneNote in the newer doc, link to the older
derived-fromExternal concept adaptedSwarmVault three-layer → mindX memory tiers

Grounding Rules

  1. Source code is truth — if docs disagree with code, the code is right. Update the docs.
  2. Memory is observation — STM/LTM contains what was observed, not what should be true.
  3. Docs are schema — they describe how things should be structured, not just how they are.
  4. Preserve uncertainty — "unknown", "not yet implemented", "known issue" are valid states.
  5. Cite sources — link to the file, line number, or memory entry that backs a claim.
  6. Contradictions are data — don't smooth them away. Two conflicting observations both happened.

Self-Reference

This schema describes itself. It can be updated by:

When updating this schema, follow the same conventions it describes. The instructions for maintaining the instructions are the instructions themselves.


mindX documentation schema. The instruction layer of the three-layer knowledge architecture. Inspired by SwarmVault. Made our own.


Referenced in this document
AGENTSAGINTAUTONOMOUSBOOK_OF_MINDXCOREDEPLOYMENT_MINDX_PYTHAI_NETINDEXMANIFESTONAVTECHNICALTOOLS_INDEXa2a_toolpgvectorscale_memory_integration

All DocumentsDocument IndexThe Book of mindXImprovement JournalAPI Reference