Gauge symmetry in Fokker–Planck dynamics