TECHNICAL NOTE 001 / NOVEMBER 2026

TCP acknowledged the bytes.
Did the application accept the message?

A small, reproducible Python experiment exposes a distinction that matters throughout distributed systems.

Delivery is not acceptance.

In distributed applications, the word sent is dangerously ambiguous. A socket write can succeed even though the receiving process has not yet parsed, validated, committed, or acted on the data.

TCP provides a reliable, ordered byte stream between endpoints. It uses acknowledgments to track received sequence ranges, but those acknowledgments belong to the transport layer. They do not mean the server's application logic has approved a request.

A transport acknowledgment answers a different question from an application acknowledgment.

One simple experiment.

I built a synthetic two-process Python TCP lab. A fictional AMR client sends a status record to a fleet-service process. Both programs run on the same machine using the loopback address 127.0.0.1.

{"type": "robot_status", "robot_id": "AMR-01", "status": "mission_complete"}

The server reads a newline-delimited message, parses the JSON, and returns a distinct application-level response:

{"type": "status_ack", "robot_id": "AMR-01", "received_status": "mission_complete", "accepted": true}

The accompanying test record confirms that a real client and server exchanged these messages through local TCP sockets. The browser visualization is intentionally separate: it illustrates the exchange but does not create raw TCP sockets.

Why the distinction matters.

Suppose a client calls sendall(), then a server process crashes before persisting the message. The client's successful write does not prove the operation was committed. Even when a server replies, the meaning of its acknowledgment must be defined: received, validated, queued, persisted, or executed are different states.

A reliable system defines an application-level protocol for these outcomes. For operations that must survive retries, it may also require identifiers, deduplication, idempotency, and clear failure handling.

Experiment boundary: This lab demonstrates transport versus application confirmation with a local TCP exchange. It does not prove durable storage, exactly-once processing, or real-robot integration.

Reproduce the experiment.

Download the source, open two terminals, start the server and client, and inspect the response. Modify the destination port or stop the server to observe failure behavior.