How event-driven architecture helps AI agents survive failures, handle approvals, prevent duplicate actions, and resume workflows safely.