docs(evidence): replace the inferred sub-200ms latency claim with a one-way measurement
What this is
A direct one-way propagation measurement replacing an inferred number. Evidence directory: docs/evidence/mount-latency-20260807/.
Do not merge. The merge gate belongs to the principal.
Branch state — intentionally not rebased
This branch is one commit behind origin/main (branched at ea67a73; origin/main has since advanced to a4e8505). It is deliberately left un-rebased: the evidence commit SHA 5480825403ceae8bafb809e9eb0432000d41a91a is cited as the provenance of these measurements, and rebasing would rewrite it and break that citation.
Conflict risk is negligible — this branch adds a new evidence directory and edits one paragraph of one markdown file. If a real conflict does arise, it goes back to Khaliq rather than being resolved by rewriting the evidence SHA.
Topology precondition — applies to every number below
The relayfile server ran on the sender's own machine, so the sender→server leg was loopback, and the only network hop was server→receiver across a Tailscale LAN between two Macs (min RTT ~4.5 ms). The receiver was a Mac mini on the sender's own tailnet.
These are LAN best cases. They are not measurements of the hosted product path. The precondition is restated beside each metric below and beside every median in RESULTS.md, so no figure can be lifted out without it.
Result
| Change set | n | median | p95 | min | max |
|---|---|---|---|---|---|
| Single small file (~300 B) | 20 | 20.2 ms | 161.7 ms | 12.3 ms | 183.3 ms |
| Repo-sized (11 files, ~14 KB) | 20 | 216.7 ms | 303.9 ms | 165.9 ms | 328.9 ms |
(Both rows: server on the sender's machine, loopback send leg, single Tailscale LAN hop to the receiver.)
Leg split — same precondition:
| Leg | Small file | Repo-sized |
|---|---|---|
| A: sender→server (loopback, not network) | median 3.1 ms | median 3.7 ms |
| B: server→receiver mount (Tailscale LAN) | median 15.8 ms | median 212.4 ms |
What this does to the claim
The claim under test was "sub-200ms end-to-end including measurement overhead that exceeds the signal." Both halves are wrong, in opposite directions.
"sub-200ms" is false for realistic change sets. It holds only for a single small file. A repo-sized change set — the shape actual agent work produces — is a median of 216.7 ms and a p95 of 303.9 ms, and that is with the send leg on loopback. Leg B carries 212.4 ms of the 216.7 ms median because the receive path fetches each file with its own server round trip, so cost scales with file count, not bytes: ~47× the bytes but ~10× the latency versus a single file. Follow-up filed as #406.
"measurement overhead that exceeds the signal" is retired. It was measured, not assumed — 25 local create/detect pairs on the receiver, same clock, same watcher, no network: median upper bound 1.225 ms, max upper bound 2.455 ms (the legacy timestamp preceded the atomic rename). That is ~6% of the small-file signal and ~0.6% of the change-set signal. No result here is overhead-limited.
Where the old number came from
docs/evidence/real-time-collaboration-2026-07-26/ measured a round trip (sf-initiated median 315.5 ms, n=12) and the public one-way figure was that halved. A round trip is not symmetric — the ack leg is a second full propagation plus the responder's scheduling delay — and the responder polled at 5 ms granularity, with n=12 too small for a p95.
No product claim is made
This PR makes no sub-100 ms claim and no product claim in either direction, notwithstanding the 20.2 ms small-file median, which describes a loopback-plus-LAN path.
A product claim would require all three of:
- The server off the sender, so leg A is a real network request rather than loopback. It contributes only ~3 ms here and would likely dominate the small-file case in production.
- A real WAN path, not a same-tailnet LAN where Tailscale negotiated a direct local connection.
- A receiver outside the sender's tailnet — an ordinary client on an ordinary network, including the poor-connectivity tail a p95 is meant to capture.
Both this run and the 2026-07-26 run put the server on one of the two participating machines, so the hosted topology remains unmeasured.
Clock handling
The hosts' clocks were neither equal nor stable. Offset (receiver − sender), NTP four-timestamp formula over raw TCP, minimum-delay sample selected:
| offset | uncertainty | samples | |
|---|---|---|---|
| Before trials | −6.441 ms | ±2.268 ms | 145 |
| After trials | −14.765 ms | ±2.288 ms | 200 |
The offset drifted 8.323 ms across a ~17 minute clock-anchor interval — comparable to the entire small-file signal. Pinning one offset would have biased early and late trials in opposite directions, so the analyser interpolates the offset to each trial's own send time between the two anchors. Zero trials fell outside the anchor span. The headline statistics are conditional on that linear-drift model: the endpoint anchors cannot exclude a clock step, so between-anchor model error is unbounded; ±2.3 ms is only the path-symmetry uncertainty at each anchor.
Liveness gates
The receiver's participation was gated on its own lastHeartbeatAt advancing across ≥90 s, before the trials and again at result time. Both passed (148 s / 14 samples, and 146 s / 14 samples, heartbeat advancing monotonically in both).
Within both windows status/live flapped online↔offline while the heartbeat advanced, and an MCP query_nodes call reported the node flatly offline/live: false with a 38 s old, advancing heartbeat. Those are registration fields, not liveness fields; trusting either would have abandoned this run against a healthy host. Absence from a fleet listing was likewise not treated as offline, since the listing returns nondeterministic subsets.
Trials and data integrity
| Batch | n | complete | incomplete | non-202 | status |
|---|---|---|---|---|---|
r2 small file | 20 | 20 | 0 | 0 | headline |
r2 repo-sized | 20 | 20 | 0 | 0 | headline |
run20260807 small file | 12 | 12 | 0 | 0 | correctness-only evidence |
The run20260807 batch was cut short at 12 of 20 by an operator interrupt. It is preserved in the raw record and is correctness-only evidence — it contributes to no median, no p95, and no other percentile in this PR. All headline statistics come from the clean r2 batches.
Across all 52 trials: every write returned HTTP 202, every expected file arrived, no change set was partially delivered, and no sample came near the ~30 s websocket-off reconcile fallback — confirming every measurement is of the websocket delivery path. Each trial wrote a unique path; a change set counts complete only when its last file lands.
Verification
cd docs/evidence/mount-latency-20260807
python3 harness/assertions.py # 37 named assertions over the raw data
37/37 pass, covering both heartbeat gates, both clock-offset anchors and the disclosed clock-model limitation, trial counts and completeness for both shapes, and the watcher-overhead control.
Isolation
Fresh server on a separate port with a separate state directory outside the repo, fresh workspace, distinct mount path. No before/after content snapshot of the pre-existing untracked directories was captured, so the earlier git-status assertion could not prove unchanged contents and has been retired. Teardown in CLEANUP.md.
Test credentials were ephemeral, held outside the repo, and are absent from every committed artifact.
🤖 Generated with Claude Code