Solution
So, here is the solution of the last mechanism problem:

The only answer came from an anonymous anon and his answer was absolutely right.
P.S. In fact people do this reaction in two steps: first they condense acetone and hydrazine an then it is heated in the presence of ZnCl2. Sorry if I confused some of you by not writing the details of this reaction.
I love sigmatropic rearrangements. I was too late to see this before it was solved.
Comment by Greg The Chemist — April 16, 2007 @ 11:03 pm