main's gates on b1f2478 failed the perf step on Linux: getRepo gave 311/s, below 0.8× the reference's 391/s, with every round's p99 a flat 43 ms. Since the scale work, getRepo streams its answer in chunks, and the server didn't set TCP_NODELAY. So the last small chunk waited on the client's delayed ACK, 40 ms on Linux. 4ebd975 sets TCP_NODELAY on every connection.
The spec and harness caught it only indirectly, and only on Linux:
spec/OPERATIONS.md holds the server to a throughput ratio against the reference, not to sending an answer when it is ready.
macOS shows no such delay. Every local run passed, including the scale branch's whole acceptance list and the local benchmark (getRepo at 8.7× the reference). Only CI's Linux perf step saw it.
A builder working from spec/ alone, on macOS, would ship the same bug and pass everything until CI.
What should change
spec/OPERATIONS.md: a rule, observable from outside: a request's answer is sent as soon as it is complete, and no part of it waits on the client's acknowledgement of an earlier segment. For example, at concurrency 1, a small answer, streamed or whole (getRecord, getRepo of a small repository, listRecords), has a p50 under a few milliseconds. Pick the bound by measuring the server and the reference.
The harness: a sequential latency probe (one connection, one request at a time) over answers of each shape (whole, chunked, streamed CAR), held to that bound. It catches a fixed per-request delay directly, not through a throughput ratio. Put it in a suite the gates run.
Show it bites: with TCP_NODELAY removed, the probe fails on Linux, both in CI and in the rust:1.98 container the builder brief already uses for clippy. Say in the spec or README whether it also fails on macOS; it may not, since delayed-ACK timing differs there.
Optionally: builders run the probe in the Linux container as part of their acceptance runs, as they do clippy.
What happened
main's gates onb1f2478failed the perf step on Linux:getRepogave 311/s, below 0.8× the reference's 391/s, with every round's p99 a flat 43 ms. Since the scale work,getRepostreams its answer in chunks, and the server didn't setTCP_NODELAY. So the last small chunk waited on the client's delayed ACK, 40 ms on Linux.4ebd975setsTCP_NODELAYon every connection.The spec and harness caught it only indirectly, and only on Linux:
spec/OPERATIONS.mdholds the server to a throughput ratio against the reference, not to sending an answer when it is ready.getRepoat 8.7× the reference). Only CI's Linux perf step saw it.A builder working from
spec/alone, on macOS, would ship the same bug and pass everything until CI.What should change
spec/OPERATIONS.md: a rule, observable from outside: a request's answer is sent as soon as it is complete, and no part of it waits on the client's acknowledgement of an earlier segment. For example, at concurrency 1, a small answer, streamed or whole (getRecord,getRepoof a small repository,listRecords), has a p50 under a few milliseconds. Pick the bound by measuring the server and the reference.TCP_NODELAYremoved, the probe fails on Linux, both in CI and in therust:1.98container the builder brief already uses for clippy. Say in the spec or README whether it also fails on macOS; it may not, since delayed-ACK timing differs there.