Layered configuration — the unified config tree, agent config, and the XML/empathy config layer

Failure modes

Symptom Cause Fix Severity
AttributeError mixing the two configs Treating a UnifiedConfig like an AttuneConfig (or vice versa) They are different types — use one tree's API consistently high
Env override ignored Variable not ATTUNE_/EMPATHY_-prefixed, or set after load Prefix correctly; reload after setting medium
validate_config reports errors A section value is out of range/invalid Read each ValidationError; fix the named field medium
get_value/set_value KeyError Key path not in get_all_keys() List get_all_keys() first low
XML config changes not seen elsewhere Replaced a local instance, not the global Use set_config() to swap the global instance medium

Risk areas

Diagnosis order

  1. Which tree are you on? type(cfg).__name__.
  2. For the unified tree, validate_config(cfg) then read each error.
  3. For env issues, confirm the ATTUNE_/EMPATHY_ prefix and load order.
  4. For key-path issues, cfg.get_all_keys().