Skip to main content

load_roster

Function load_roster 

Source
pub fn load_roster(storage_root: &Path) -> Vec<AgentDefinition>
Expand description

Load the principal’s agent roster from <storage_root>/Agents/roster.json.

If the file is missing, empty, unreadable, unparseable, or parses to an empty list, a roster seeded with a single default_local_agent is returned. This is a pure read: it never writes to disk (the seed exists only in the returned value until something is explicitly saved).