Skip to main content

Module persistence

Module persistence 

Source
Expand description

Persona persistence: load/save the full registry + active_persona_id to StateStore (RFC-039).

File path: ~/.oxios/state/personas/index.json

Schema (schema_version = 1):

{
  "schema_version": 1,
  "active_persona_id": "dev",
  "personas": [ { "id": "...", "name": "...", "role": "...",
                  "description": "...", "system_prompt": "...",
                  "enabled": true, "model": null,
                  "personality_traits": [] }, ... ]
}

Structs§

PersonaSnapshot
Serializable snapshot of the persona registry.

Functions§

load_from_state_store
Load the snapshot from StateStore. Ok(None) if file is absent.
save_to_state_store
Save the snapshot to StateStore. Atomic via StateStore::durable_write.