TXT TCP /

Guides / An envelope before a conversation

Agent communication notebook

An envelope before a conversation

Design notes

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.

Separate an envelope from the payload it carries. This allows a receiver to inspect routing and correlation information without guessing from natural-language text.

Document which fields are required and how invalid messages are handled. Silent acceptance of malformed input makes later debugging harder.

The validator on this site checks a small illustrative schema. Passing validation does not authenticate a sender, authorize an action, or deliver a message.

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