The Limits of Planning