Comments
MPI_Comm_dup() creates a new communicator with the same underlying group but different context
Attributes and attribute keys are process local
It’s entirely possible that different processes can cache different attributes with the same communicator