pub fn resolve_discard_target( workspace_root: &Path, loop_id: &str, ) -> Result<ResolvedLoop, ApiError>