Skip to main content

Module migrations

Module migrations 

Source

Constants§

CREATE_ACLS_TABLE
CREATE_AGENT_EVENTS_TABLE
CREATE_AGENT_PROFILES_TABLE
CREATE_CHECKPOINTS_TABLE
CREATE_DELEGATIONS_TABLE
CREATE_EMBEDDING_BASELINE_TABLE
Per-agent embedding-space baseline used by the z-score outlier detector (v0.3.3, Task A). mu and cov_diag are stored as JSON arrays of f32 — DuckDB’s native array type isn’t a good fit because length varies per embedding model.
CREATE_MEMORIES_TABLE
CREATE_MNEMO_META_TABLE
Schema version stamp table. One row per database file, populated on first run_migrations call. A missing row on an existing database indicates a pre-0.3.1 file and is treated as version 1.
CREATE_RELATIONS_TABLE
CREATE_SYNC_METADATA_TABLE
CURRENT_PERSISTENCE_VERSION
Persistence format version this release writes. Bump when the on-disk schema changes in a way that requires a migrator pass.
SPRINT3_COLUMN_ALTERS
SPRINT4_COLUMN_ALTERS

Functions§

read_persistence_version
Read the stored persistence version, or None if the marker is absent (i.e. this is a fresh database OR a pre-0.3.2 file).
run_migrations