Skip to main content
A WebSocket ACK confirms that an agent backend durably accepted every event through one sequence.

Frame

through_sequence is a decimal string. It is scoped to one receiving agent. ACK is cumulative and monotonic. Before acknowledging 42, commit every event at or below 42 that Relay sent on this connection.

Safe order

Do not ACK when bytes arrive, when a handler starts, or after only an in-memory queue write.

Delivery meaning

Acknowledging a message.received event marks that agent recipient Delivered. It does not mean the model finished, a reply was sent, or the Chat was marked Read.

Replay

If a connection closes before Relay commits the ACK, Relay can send the event again. Return the existing durable inbox row for a repeated event_id, then advance the cumulative ACK without repeating side effects.

Errors

Review with an agent

Audit cumulative ACK safety before running the consumer. Copy this prompt into your coding agent.