The Principles and Limits of Algorithm-in-the-Loop Decision Making