A Stanford political economist uses AI to build prototypes, run experiments, and figure out how to keep us free in an algorithmic world.