OP followed a pipe without telling buddy, was back to back with buddy, turned around and obviously couldn't see him due to visibility and had inadequate lighting to signal said buddy despite being relatively close. Not buddy diving, that's two divers in same ocean diving
Better situation, get buddies attention, indicate you are following pipe, I lead-you follow signal, Ok, and no problems. Proper buddy diving.
If I'm diving with a buddy in low visibility I am never more than arms reach away from him because it's dangerous. Most of the time I dive in the "same ocean" principle where we are both solo diving and if he happens to need help I may or may not be available to help him, but we aren't relying on each other if something goes wrong, just enjoying a dive together. That generally is not condoned at the recreational level and as the OP is going on to be a Dive Master and Instructor, it would be ideal if he learned these types of buddy diving principles so as he's leading a group he doesn't lose one..... Not saying he would, but it's a lot easier to loose people when you're trying to herd sheep than it is to lose your buddy.