Idempotency Under Duplicates and Retries