Synthetic fixtures computed locally. No model or production service is contacted.
Experiment workspace
Decision trace
The question this experiment answers
How long must an idempotent consumer remember the commands it has processed, and which key must it remember? Enter the inbox retention in hours, whether the key is the command id or the business intent, whether a skipped duplicate refreshes its record, and a timeline of deliveries. The model replays the timeline and reports which deliveries were skipped and which effects were applied a second time.
Change one assumption at a time
Start from a preset and change a single control. Raise the retention from 168 to 361 hours to cover the dead-letter redrive at hour 200. Switch the key from command id to intent in the re-plan preset, where the agent issues a new command id for the same refund. Turn refresh on in the retry-storm preset. Delivery lines have the form 0.2 CMD-101 refund:CASE-4102 producer-retry: the hour, the command id, the intent key and the path that delivered it.
Expected outcomes
Week preset, 168 hours: 4 effects applied, 2 of them duplicates (a second refund and a second label at hour 200), 1 duplicate caught. Horizon preset, 361 hours: 2 effects, 3 duplicates caught. Re-plan keyed by command id: 3 effects, 1 duplicate; keyed by intent: 2 effects, 0 duplicates. Offset reset with 48 hours: only CMD-301 is applied again. Retry storm with 24 hours: 1 duplicate without refresh, none with refresh. These match the companion Python model.
Read the table and the trace
The table lists every delivery in arrival order with its effect and the hour its inbox record expires. A row marked APPLIED AGAIN is a duplicate effect, either because the record was purged or because a new key carried an intent that was already applied. The longest redelivery gap is the time between a key's first application and its latest delivery; if it exceeds the retention, the inbox cannot have caught it.
Reset and export
Reset inputs restores the selected preset and recomputes. Export JSON downloads the inputs, every row, the metrics, the trace and the stated limits, so a timeline from an incident review can be kept with the decision about retention.
Limits
This is a timing model of one consumer, not a broker or a database; every command, case and hour is synthetic. It does not model concurrent consumers racing on the same key, the isolation of the inbox insert, or a broker's own deduplication window. The redelivery horizon of a real dead-letter queue depends on how the broker counts retention; read its documentation.