Leo AmiriFounder & product engineer

Experiments / Make

One quote request, three deliveries.

If a form retries twice, how do you keep one job in the queue while letting a genuinely new request from the same person through?

Get the files
Replay output. Three deliveries of REQUEST-17 produce one keep and two skip_duplicate decisions.

What the example shows

The local replay produces two new records, two duplicate decisions, one conflicting payload, and one missing-ID review. An email address would collapse two distinct jobs in this example.

Answer key for One quote request, three deliveries.
DeliveryRequest IDDecision
1 · first arrivalREQUEST-17Keep
2 and 3 · unchanged retriesREQUEST-17Skip duplicate
4 · new job, same senderREQUEST-18Keep
5 · changed detailsREQUEST-17Review conflict
6 · key absentEmptyReview missing ID

Try it yourself

  1. Start with the unfiltered stream

    Unzip the kit and read events.json in arrival order. REQUEST-17 appears three times with identical work and sender fields. REQUEST-18 uses the same sender but describes another job. Count how many jobs an unconditional create step would put into the queue.

  2. Replay the decisions locally

    From the extracted folder, run the command below with Python 3. It reads events.json, compares the decisions with expected.json and prints each outcome. A stable ID identifies the job. A change to its sender or scope must go to review before a person accepts it.

    python3 replay.py
  3. Try the same events in a Make sandbox

    Create a test webhook and a data store keyed by request_id. Route empty IDs to review. Write the first payload with overwrite disabled. On a duplicate-key error, compare the saved sender and scope to the incoming values. Route matching retries to skip and changes to review. Send other errors to a separate failure path. Inspect the records after replaying each sample.

Free course lesson · Define a usable record

The next test

The replay processes one event at a time in memory. The Make recording still needs to test simultaneous deliveries, restarts and a downstream failure after the key is stored. Those cases affect whether a real quote gets sent.

Tool documentation