An extra brake light in a top box must not disturb the standard lighting circuit. A detachable connector must rule out a wrong connection and a short circuit.
Fitting experience
An installation of compact indicators and a top box with a brake light and tail light has been described. One version used a five-pin connector and four diodes. That describes a specific circuit, not a universal parts count for any top box.
What to check
Confirm the wire functions from the wiring diagram and measurements, plus the current draw and polarity. Protect the connection from water and strain. Changing the indicators can change their flash rate; a matching plug doesn't confirm the right load and visibility.
After installation
Check each mode separately and in combination: tail light, brake light from both brakes and both indicators. There must be no back-feeding of neighbouring lights. With the top box removed, the stock lighting must work as before and the free connector must stay protected.