I am sorry for the late reply. As I am in the middle of updating some older projects to compile them with the new framework I will, as soon as I catch time, try to reproduce the problem in a virtual machine - not to break the existing environment.
But, as you have already documented, the problem is because pioarduino platform compromises the Platformio core.