use std::path::PathBuf;

use crate::app::validate::{
    validate_binary_summary, validate_control_loop_atlas, validate_function_map,
    validate_required_files,
};

pub(super) fn dispatch_validate(repo_root: PathBuf) -> Result<(), Box<dyn std::error::Error>> {
    validate_required_files(&repo_root)?;
    validate_binary_summary(&repo_root)?;
    validate_function_map(&repo_root)?;
    validate_control_loop_atlas(&repo_root)?;
    println!("baseline validation passed");
    Ok(())
}
