Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Database Schema

PostgreSQL database zndx_gaius on port 5444.

Connection

PGPASSWORD=gaius psql -h localhost -p 5444 -U gaius -d zndx_gaius

Connection URL: postgres://gaius:gaius@localhost:5444/zndx_gaius?sslmode=disable

Important: The database name is zndx_gaius, not gaius.

Key Tables

Cards & Content

TablePurpose
cardsCard entities with metadata
card_enrichmentsEnrichment data for cards
articlesSource articles
article_contentArticle text content

FMEA & Health

TablePurpose
fmea_catalogFailure mode definitions (S/O/D scores)
fmea_occurrencesFailure occurrence history
fmea_outcomesRemediation outcomes (for adaptive learning)
fmea_approvalsPending Tier 2 approvals
healing_eventsSelf-healing audit trail
health_observer_stateObserver daemon state

Agents & Evolution

TablePurpose
agent_versionsAgent prompt versions with lineage
agent_evaluationsEvaluation results for evolution

Operations

TablePurpose
activity_logSystem activity tracking
x_bookmarksX bookmark sync data
x_bookmark_foldersX bookmark folder metadata
x_sync_runsX sync run history

Accessing from Code

Always use the config helper:

from gaius.core.config import get_database_url

url = get_database_url()

Never hardcode connection parameters.