The Case of the Night-walking Automaton