Expand description
Unified Configuration Loader
This module handles loading configuration from the unified config file
at ~/.config/ralph-workflow.toml, with environment variable overrides.
§Configuration Priority
- Global config:
~/.config/ralph-workflow.toml - Local config:
.agent/ralph-workflow.toml(overrides global) - Override layer: Environment variables (RALPH_*)
- CLI arguments: Final override (handled at CLI layer)
§Legacy Configs
Legacy config discovery is intentionally not supported. Only the unified config path is consulted, and missing config files fall back to defaults.
§Fail-Fast Validation
Ralph validates ALL config files before starting the pipeline. Invalid TOML, type mismatches, or unknown keys will cause Ralph to refuse to start with a clear error message. This is not optional - config validation runs on every startup before any other CLI operation.
Enums§
- Config
Load With Validation Error - Error type for config loading with validation.
Functions§
- load_
config - Load configuration with the unified approach.
- load_
config_ from_ path - Load configuration from a specific path or the default location.
- load_
config_ from_ path_ with_ env - Load configuration from a specific path or the default location using a
ConfigEnvironment. - unified_
config_ exists - Check if the unified config file exists.
- unified_
config_ exists_ with_ env - Check if the unified config file exists using a
ConfigEnvironment.