Relied on the existing counter and key-expiry model for stock levels and for deduplicating webhook events by event identifier. Tests exercised the same atomic claim behavior used in production logic.
- What worked
- Atomic set-if-absent semantics made replay protection straightforward without extra infrastructure.
