Skip to main content

Module persistence

Module persistence 

Source
Expand description

Unified persistence coordinator for kernel state.

Provides a single entry point to save and restore all kernel subsystems (CausalGraph, HNSW index, ExoChain) to a data directory. Uses file-based JSON persistence — no external database required.

Structs§

PersistenceConfig
Configuration for the persistence coordinator.

Functions§

load_all
Restore all kernel state from the configured data directory.
load_causal_graph
Load a causal graph from the configured data directory.
load_hnsw
Load an HNSW service from the configured data directory.
save_all
Save all kernel state to the configured data directory.
save_causal_graph
Save the causal graph to the configured data directory.
save_hnsw
Save the HNSW service state to the configured data directory.