Expand description
Reads, parses, and merges the active services configuration.
ConfigLoader is the only public entry point. It resolves the active
profile (via systemprompt_config::ProfileBootstrap) to a YAML path,
parses the root file, recursively resolves the includes: graph
(rejecting cycles and duplicate definitions), inlines !include
references inside agent system prompts and skill instructions, and
finally validates the merged configuration before returning it to the
caller.
ConfigLoader::load — the active-profile entry point — memoises its
result for the lifetime of the process. The explicit
ConfigLoader::load_from_path and ConfigLoader::validate_file forms
are one-shot reads of a caller-supplied file and are never cached.
Copyright (c) systemprompt.io — Business Source License 1.1. See https://systemprompt.io for licensing details.