That’s an interesting experiment with moving the WB in the raw processing chain.
I wonder if having a separate processing chain for tiffs/jpegs would be a better solution for programs like darktable, which is designed to operate on both raw and non-raw files. Then you wouldn’t have to worry about the exact order of the operations that would have to accommodate both the raw and the non-raw workflow.