Skip to main content

initialize_runtime

Function initialize_runtime 

Source
pub fn initialize_runtime() -> Result<Option<&'static str>, RuntimeInitError>
Expand description

Validate the Harn-owned environment namespace and initialize process-wide runtime assets through the same bootstrap boundary used by the CLI.

Returns a warning the caller should print once when startup succeeded but something degraded — today, that caching is off because no cache directory resolves. A configured value that cannot be honored is an Err instead: an operator who set HARN_CACHE_DIR gets a hard failure rather than a silent downgrade to no caching.