pub(in crate::loader) const REMOVED_CONFIG_KEY_PATHS: &[&[&str]] = &[
&["agent", "harness", "max_tool_calls_per_turn"],
&["tools", "max_tool_loops"],
&["automation", "full_auto", "auto_grant_tool_limits"],
&["telemetry", "sample_interval_ms"],
&["telemetry", "retention_days"],
&["telemetry", "bottleneck_tracing"],
&["ui", "show_timeline_pane"],
&["context", "trim_to_percent"],
&["prompt_cache", "providers", "anthropic", "default_ttl_seconds"],
];
pub(in crate::loader) fn removed_config_key_paths_present(value: &toml::Value) -> Vec<&'static [&'static str]> {
REMOVED_CONFIG_KEY_PATHS
.iter()
.copied()
.filter(|key_path| key_path.iter().try_fold(value, |cursor, key| cursor.get(*key)).is_some())
.collect()
}