The pin came out of the shackle that holds the standing rigging to the mast. A twist with a pair of pliers would have prevented it.

The thing is, I was fixated on tuning and didn't think about fundamentals.