You're using a peroxy acid in your example, not a peroxide. The two behave very differently.
Draw resonance structures for the peroxy acid. Which oxygen is electrophilic? Why? The mechanism is concerted, and is not amenable to a nucleophile-electrophile approach, although the "butterfly mechanism" can make it appear like such an approach.
Look up the mechanism of epoxidation on Wikipedia. Although it's always better to use your textbook, this one is correct.