

Follow RA instructions to the extent required. Communicate with ATC as soon as practical. ATC is not formally providing traffic separation service to you until you are back to following their instructions.
Always take any action needed to ensure the safety of flight, even if it’s against an RA.
AIM is not regulation, but it certainly reflects the FAA’s view of pilot training.
What that actually looked like: