Different year engines, ignitions, charging components, carbs are all "kind of interchangeable" on the XS650 and these bikes are old, titles are easy in California, who knows what part came from where on your bike. By the way is the charging sytem working correctly? The TCI ignition is fussy about a nice clean 12 volts. your brush holders show evidence of a builder who didn't REALLY understand the charging system.... (a few too many nylon screws. a "random" voltage regulator), pretty high odds something is not quite "hoyle" in the charging system. If voltages are out of spec more "failures" of ignition components are likely. What kind of and how big of a battery are you running? Place a priority on cleaning up the wiring under the seat if you don't want more unscheduled repairs. There are some great "simplified" wiring diagrams in the tech section here.
I get on my high horse a bit now and then but do want your bike to be a joy, not a pain.