Skip to main content

Module eml_persistence

Module eml_persistence 

Source
Expand description

EML model persistence — save/load all 12+ EML models to .weftos/eml-models/.

Provides save_all and load_all functions used during kernel shutdown and boot respectively. Models are stored as JSON files for portability and debuggability.

§Model Inventory

FileSource CrateModel
coherence.jsonclawft-kernelEmlCoherenceModel
governance_scorer.jsonclawft-kernelGovernanceScorerModel
restart_strategy.jsonclawft-kernelRestartStrategyModel
health_threshold.jsonclawft-kernelHealthThresholdModel
dead_letter.jsonclawft-kernelDeadLetterModel
gossip_timing.jsonclawft-kernelGossipTimingModel
complexity.jsonclawft-kernelComplexityModel
hnsw_distance.jsonclawft-kernelHnswEmlManager (distance)
hnsw_ef.jsonclawft-kernelHnswEmlManager (ef)
hnsw_path.jsonclawft-kernelHnswEmlManager (path)
hnsw_rebuild.jsonclawft-kernelHnswEmlManager (rebuild)

Structs§

KernelEmlModels
Bundle of all kernel-level EML models for save/load.

Functions§

eml_models_dir
Default persistence directory: .weftos/eml-models/
load_all
Load all kernel EML models from dir.
save_all
Save all kernel EML models to dir.