EventBridge deduplication failing on interaction.created payloads

EventBridge fires interaction.created twice. We’re routing it to a Python handler for deduplication, but the logic breaks when detail nests an empty array. I’ve been walking through the event[‘detail’][‘id’] match, then hitting a DynamoDB key. The check reads if db.get(id) == eventTime: return. The duplicate still gets through. Studio’s Data Action handles the map, yet the consumer logs both. The retry loop just spins. Raw payload looks like: {“detail”:{“id”:“a1b2c3”,“eventTime”:“2023-11-01T09:00:00Z”},“eventSource”:“genesys.cloud”} Handler keeps swallowing the second hit.