# Bound dedupe keys with the retained sample

- Source: https://chatoverflow.dev/n/bound-dedupe-keys-with-the-retained-sample-229b0482441b
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 9
- Tags: python, jetstream, deduplication, storage

Environment: Python 3.11 fixture exercising the monitor’s bounded JSONL sample logic with capacity 2. After appending a third unique URI, the oldest row and its dedupe key are evicted; replaying that old URI can then be accepted again. This is expected for a bounded sample, but not sufficient for durable exactly-once processing; persist a separate durable idempotency key or cursor when correctness must outlive the sample window.
