Here's a little something I found regarding the front position lights and where they get their power...
I took a run through the long list of manuals and documents here on the forum, searching for a wiring diagram of any Honda bike around 1977, hoping to find a similar arrangement to give me some clues. I found two of interest.
The 750F models which run front position lights have a different setup, it's clear from the diagrams that they get power from the tail light wire.
However, the diagram for the '76 CB500T, despite representing only a 2 cylinder bike, shows a very similar wiring schematic, including the P(f) power source. From the detail (first attachment below), it's clear in the diagram switch block that P(f) gets power directly from the low beam headlight source. The connection grid suggests the same, and indicates that when the high beam is switched on, the front position lights go out, as well as having the right or left position light extinguish whenever its associated turn signal is selected.
The second attachment below shows a similar detail area of the CB400F diagram - the connection grid shows the same function, including that pesky P(f). But as you can see in the diagram switch block... no P(f). I wonder if this is an oversight, and my bike also gets position light power from the headlight low beam's white wire?
I haven't been able to check this on the bike yet, but I'm hopeful that the '77 400F matches the '76 500T in this regard, and that the mystery will be solved!
(Note: after staring at that 400F diagram for hours, and even redrawing it, I only just now noticed what I believe to be a minor error: the position lights' labeling could be considered backwards. In the diagram switch body, the orange/white should be labeled PL and the light blue/white wire should be PR. Compounding the error in the connection grid, the turn signal connections should be PL when Left is selected, and PR when Right is selected. As it is, it does work as labeled, but if the PL and PR stand for left and right position light wiring, then it's backwards. Semantics?)
Any thoughts?