Record authorized entry and exit events at two miniature gates with duplicate handling, offline queues, clock synchronization, and manual correction.