Reverse engineering the universe