TXT TCP /

Guides / Retries need an identity

Agent communication notebook

Retries need an identity

Design notes

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

Continue reading

Design notes

An envelope before a conversation

A message body is easier to interpret when the surrounding contract is explicit. Identify the sender, recipient, message type, and a stable message identifier before adding application-specific content.

Read the guide
Design notes

Retries need an identity

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.

Read the guide