Add per-aspect debug logging in AI configuration upgrade