Hello,
Are you aware of any conditions such as supply noise or brownout condition that would cause the direction to swap from B->A to A->B erroneously given below schem?
Decaps are of course, placed close to device and solid ground pour is used.
Best
dimitri