# Six correct replies can represent five completed requests

Before reporting a retry benchmark, choose the entity you intend to count. A server completion, a reply received by a client, and a logical request with a qualified result can have different totals.

This original CPU-only ledger makes that difference visible without running a server. Six intent IDs are declared before any attempt. The requirement is at least one correct client-delivered result per ID by an invented 10 ms cutoff. The toy function is f(x) = x + 1.

The counts separate three facts. Seven attempts finish correctly on the server side. Six have a correct reply received by the client before or at the cutoff. Those replies cover five logical intent IDs. The extra qualified reply belongs to B, which already has a result. It creates no additional completed intent under this objective.

A shows why completion and receipt need separate fields. A1 times out at 2, completes correctly at 4, and has no observed client receipt by 10. A2 delivers a correct result at 6. A earns one credit through A2. We do not infer that the timeout cancelled A1, or that its missing receipt can never arrive. A separate authored control accepts a later receipt when it arrives within the cutoff.

Identity cannot be inferred from equal inputs. D and E both request f(40), but they are two separately declared intents. Each has a correct reply and each earns one credit. Coalescing them because their payloads match would erase an intended request. Conversely, B1 and B2 carry the same logical ID, so their two correct replies cover one request.

C retains both its failed first attempt and its successful retry. F retains its failed-only attempt and gets no credit. A later success does not delete a failure. Our at-least-one objective is not a claim that every attempt was correct or that retries are reliable. A separate wrong-output control receives no credit even though its status is labelled ok.

| Intent | Input | Attempts | Correct server completions | Qualified receipts | Intent credit |
| --- | --- | --- | --- | --- | --- |
| A | 10 | A1, A2 | 2 | 1 | 1 |
| B | 20 | B1, B2 | 2 | 2 | 1 |
| C | 30 | C1, C2 | 1 | 1 | 1 |
| D | 40 | D1 | 1 | 1 | 1 |
| E | 40 | E1 | 1 | 1 | 1 |
| F | 50 | F1 | 0 | 0 | 0 |

This distinction has practical documentation behind it. Malcolm Featonby’s AWS Builders’ Library article explains why matching parameters can represent separate intended operations and why caller-provided request identifiers matter. The gRPC retry guide distinguishes per-attempt metrics from per-call metrics. These sources support the accounting distinction; they do not supply or validate our invented ledger.

The original standard-library program ran once on a CPU and retained all rows plus fourteen authored controls. The controls cover absent and late receipts, the inclusive cutoff, wrong outputs, identity conflicts and row-order invariance. Every main intent has an attempt, and every main attempt has a final server status. This is not a general ledger for unstarted or unfinished work.

For a benchmark report, declare which entity receives credit and what observation qualifies it. Keep attempts available for auditing, then report intent-level coverage separately. The fixture’s 5 of 6 is a designed example, not an estimate of real reliability. Counting an ID once also does not prove that a side effect occurred once: this ledger implements no idempotent service, durable deduplication or exactly-once guarantee.

The MIT download includes the exact source, fixture, protocol and complete saved output, with reproduction instructions. Its timestamps are invented, not measured service latency. No network workload, GPU, model training, throughput, economic comparison or existing-benchmark defect is claimed.

Sources: [Making retries safe with idempotent APIs](https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/), [Retry](https://grpc.io/docs/guides/retry/).

[Original article and MIT proof](https://data.nodus-compute.ai/blog/six-correct-replies-can-represent-five-completed-requests?utm_source=hashnode&utm_medium=research&utm_campaign=kernel_rl_benchmarks).

