When building a real-time trading system for Polymarket, I assumed strategy and execution would be the hardest parts. I was wrong. The real issue was state drift - the system slowly stopped matching reality. What state drift looked like Incorrect positions Duplicate exposure Mismatch between bot state and real market state There was no crash, only silent inconsistency. Why it happens WebSocket missing updates Delayed API responses Partial order fills Duplicate ...