Solved the notification issue myself.
Instead of driving the automation testing from my desktop, I actually ran it from the companion app itself. This caused the notification but also took me to a settings screen for the “Do Not Disturb” permission that isn’t directly accessible from the Android Permissions screen, its hidden under “Apps → Special app access”.
After setting the companion app to “allowed” the notification went away.
No back to debugging the automation