pub fn load_process_agent_configs() -> HashMap<String, AgentConfig>Expand description
Load process-level base agent configs from the manifests directory.
Reads every <agent_id>.json file in [manifests_discovery_dir] as a
full AgentConfig (NOT the tool-only Digital Worker manifest consumed
by [ManifestToolOverlayProvider]). This is the ONLY process-level base
agent source: pack-embedded agents and HostConfig::agents are both
per-tenant and only materialise inside TenantRuntime::from_packs, so an
in-process serve started at process startup cannot see them.
Returns an empty map when the directory is absent or unreadable. Files
that fail to decode into an AgentConfig, or whose agent_id does not
match the file stem, are logged and skipped so one malformed file never
aborts loading. The file stem is the authoritative key (the in-map id is
taken from the stem), mirroring the <agent_id>.json convention.