Extremal search of decision policies for scalable distributed applications