Smart Machines in a Messy World