Still require logic or alwaysworks test fails.

Revert "Removed logic for detecting duplicate events: logic is
unnecessary now that we don't double commit read-only events."

This reverts commit e0dfc1b2301fb11bf83c01c488d49c374cabb716.