It's finished, and thanks to my having tested each subassembly as I completed it, it works.
Here is the microswitch. Even with a cardboard template, I found I had to make multiple adjustments to the bracket, so that the latch would press the switch lever correctly, and the latch spring would...