Stop in for a cup of coffee

confused on what is going on here and how i can make it right

View attachment 1716223130
Was that wiring harness still in the car? I think you said you thought it went to the alternator? But was it in the car and attached to the alternator?