Domain nucleation and confinement in agent-controlled bistable systems.