Configuration errors

Failures during configuration loading, validation, and environment variable resolution in Attune AI.

Common error signatures

Where errors originate

Configuration errors typically start in these key functions:

How to diagnose

  1. Check configuration file paths. Run ConfigLoader.discover_config_path() to see if your config file exists at the expected locations. If None is returned, the loader can't find a configuration file.

  2. Validate environment variables. Use get_attune_env() with your variable name to confirm environment variable resolution. The function checks ATTUNE_ prefixed variables first, then falls back to EMPATHY_ prefixed ones.

  3. Test configuration loading directly. Call load_unified_config() in isolation to separate file loading issues from configuration usage problems. JSON parsing errors will surface immediately.

  4. Run configuration validation. Use validate_config() on your loaded configuration object to catch schema violations before they cause runtime failures in agent operations.

  5. Check agent configuration properties. If using BookProductionConfig, verify that accessing model, max_tokens, and other properties doesn't raise AttributeError — this indicates missing required configuration sections.

Source files

Tags: config, settings