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§
- Persona
Snapshot - 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 viaStateStore::durable_write.