Digitally remastering Old Masters to restore degraded colours?

Indeed, restoration of old paintings is done since a long time. But afaik, most use quite a bit more information than just a colour picture of the artwork in its unrestored state. Things like chemical analysis of the different paint layers, X-ray, infrared and UV imagery, etc.

So, getting the picture back in the state “the artist intended” using darktable on a photograph or scan of the picture is, IMHO, impossible.