pub fn decide_base_check(
root: &Path,
worktree_dir: &Path,
base_sha: &str,
configured_gate: &str,
env: &BTreeMap<String, String>,
research: bool,
no_base_check: bool,
config_base_check: Option<bool>,
now: u64,
) -> Result<(BaseCheckDecision, Option<String>), String>