The answer to this state it makes perfectly sense, but…
We didn’t applied it like this .
Or yes you nailed it we do WB before demosiacing.
My englisch isn’t good enough to grasp this nuances correct.
I am always thinking that a WB needs to be pinned on a colorspace which is the working space to be acrurate. Thus sRGB or AdobeRGB
It also states Chromatic Aberation is done before demosiacing and CA is part of the optical module so optical correction is thus also done before Demosiacing.
After that the workspace colorspace (sRGB or AdobeRGB) is applied with the colorprofile like generic. Then all tonality things as contrast and such.
After this all pixels are defined to preview on your screen and ready to be used in the pixel editing part as local adjustments and cloning and repair.
At least that’s how i resume all info i read splintered across several threads.