What the repeat finding means
The checker groups rows by exact event_id. If a group has more than one row and the same event type, inbox ID, message ID and thread ID throughout, it reports a repeated event identifier. The finding includes every source-row number.
It deliberately does not compare message bodies, subjects or delivery timestamps. Two records can share this identity tuple and differ in other fields. The result is not a claim that the complete payloads are byte-for-byte duplicates.
evt-a / received / inbox-demo / msg-a / thread-a
repeats once
Result: 1 repeat group, 2 source rowsThree explanations to distinguish
- The export was copied twice. Compare the original export ranges and collection procedure. Joining overlapping files can reproduce the same row with no new request to your app.
- A webhook request was retried. Inspect the delivery service’s request history and verified headers. The JSON body alone does not establish the attempt count.
- Your app executed work twice. Compare your job and side-effect records. One request can enqueue two jobs; two requests can also lead to only one job.
These are diagnostic branches, not causes selected by ThreadSignal. Keep the evidence needed for each branch in the system that owns it.
Keep deduplication and verification separate
AgentMail documents event_id as stable across retries and redelivery. Its verification documentation separately describes the signed request headers. ThreadSignal imports editable body identities and does not validate those headers. A repeated group therefore cannot establish that a request was authentic or that application work already completed.
Do signature verification in your receiver using the exact request body and the provider’s supported verification method. A browser form containing editable JSON cannot reconstruct that proof. Never paste signing secrets into this checker; there is no field for them.
Reproduce before changing production
Use the Repeat fixture to learn the display, then inspect a small export from your own staging receiver. Write down the source rows, the actual request identifiers and the job identifiers separately. If a UI shows two message cards, compare that count against persisted message records rather than assuming the webhook was responsible.
The staging rehearsal walks through the UI and acknowledgement layers. A fix should address the layer where repetition occurs; deleting rows from an export only changes the evidence file.
One event, two arrivals, one unfinished job.
Read this fictional receiver diary in arrival order. It is an original debugging exercise, not AgentMail delivery history. All three rows refer to the same event body identifier, evt-demo-7, and the same inbox/message/thread tuple.
- 10:00:00 — first HTTP arrival. The receiver verifies the request and stores a receipt. A job is queued with application job ID
job-41. - 10:00:01 — response connection closes. The receiver’s local log says it attempted a success response. This record alone does not establish what the sender observed.
- 10:00:30 — second HTTP arrival. The receiver recognizes the existing event receipt. Meanwhile
job-41is still queued and no side effect has completed.
The current event reference documents event_id as stable across retries and redelivery. It is an identity used for deduplication. That does not make a receipt record equivalent to completed application work.
Two bad conclusions from the same repeat finding.
“Two rows means send two replies” confuses arrivals with the intended side effect. “The event ID already exists, so all work is finished” confuses a stored receipt with completion. A receiver can avoid enqueuing a second job while still tracking and recovering the unfinished first job. The exact durable queue and transaction design belong to your application; ThreadSignal does not implement them.
Keep separate fields for event identity, HTTP attempt evidence, job identity and side-effect outcome. If you retain one row per arrival, several rows may correctly point to one job. If an export merges overlapping time windows, repeated rows may not correspond to several arrivals at all. Record how the export was collected.
Read these three counterexamples before changing deduplication.
- One arrival, two jobs
- The event export contains one row. Application instrumentation shows two enqueue operations. A repeat-ID checker cannot detect that duplication from the body export alone.
- Two arrivals, no completed job
- The receipt is present but processing failed before the side effect. Suppressing repeat arrivals is not evidence that a retry or recovery mechanism exists for the job.
- Two different event IDs, one message ID
- Do not collapse distinct event identities solely because they point to a common message. Inspect the event types and the application’s intended transition before deciding which work is redundant.
For a useful incident handoff, write one sentence at each layer: “the export repeats this identity,” “the receiver observed these verified attempts,” “these jobs were recorded,” and “this side effect was observed.” Leave a layer unknown when you lack its records. That makes the next investigation precise without turning an editable JSON upload into delivery or signature proof.