A network retry can repeat an operation that already succeeded. A receiver needs a way to distinguish a new request from another delivery attempt of the same request.
Keep a stable identifier across retries of the same logical message. Define how long duplicate information is retained and what response a repeated request should receive.
Use a separate correlation identifier when several messages belong to one exchange. A message identifier and a conversation identifier answer different questions.
These notes describe design considerations. The local validator neither stores deduplication state nor guarantees delivery semantics.
Put the idea to work.
Validate a small draft JSON envelope locally and inspect actionable field errors.
Message envelope validator