Repository navigation
docs(id): record fallback latency budgets for #5797 - #7861
Conversation
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 71e0d44f43
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
|
||
| | ID | Tier | GOODPUT floor (p50) | Completion p95 | Notes | | ||
| |---|---|---|---|---| | ||
| | LB-12 | T0 direct UDP | ≥ 5 MiB/s | ≤ 30 s for 128 MiB | absolute baseline floor at P2 only | |
There was a problem hiding this comment.
Make the P2 throughput budgets achievable in both directions
For client-to-peer transfers, P2's 20 Mbps uplink (§3.2) permits at most about 2.38 MiB/s before protocol overhead, so this 5 MiB/s floor and 30 s completion target are impossible: 128 MiB takes at least 53.7 s. LB-7's 4 MiB/s and 3 s ordinary-sync targets are likewise unreachable. W3/W4 do not restrict transfers to downloads, and §4.4 invalidates the baseline when T0 misses this floor, so a correct upload implementation cannot produce a passing reference run. Specify transfer direction and direction-specific budgets, or raise P2's uplink rate to support the stated targets.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in commit 422d0c2: section 4.4 now states direction explicitly — the LB-12..LB-16a floors and the LB-7 sync target are download-direction; the upload direction at P2 (20 Mbps uplink, ~2.38 MiB/s ceiling) gets its own budgets (T0 >= 2 MiB/s, 128 MiB <= 64 s; LB-7 upload >= 2 MiB/s / <= 6 s), W3/W4 run in both directions, and the profile-invalidation rule applies per direction.
| | **W2** | ID query mix | 1 KiB request / ≤ 4 KiB response, 10 req/s for 3 min | IRTT, TTFB, error rate | | ||
| | **W3** | Ordinary sync | 8 MiB in 64 KiB logical chunks, split into ≤ 16 KiB wire DATA payloads; acknowledged | SYNC, goodput | | ||
| | **W4** | Bulk | 128 MiB sequential in 1 MiB logical chunks, split into ≤ 16 KiB wire DATA payloads | GOODPUT, completion | | ||
| | **W5** | Mixed | W4 saturates the test tier (target 90% of its measured maximum goodput) + W1 concurrently on the same tier | interactive IRTT under load, HOL bound | |
There was a problem hiding this comment.
Sustain bulk load throughout the mixed-load sampling interval
W5 combines a single 128 MiB W4 transfer with W1's five-minute interactive workload, but does not repeat the transfer or restrict latency samples to the overlap. On P1's 100 Mbps path, the transfer can finish in roughly 11 seconds, leaving over 95% of the interactive samples unloaded. The pooled p95 can therefore pass G6 even when interactive latency during saturation exceeds the mixed-load p95 bound; the separate, looser p99 bound does not prevent that false pass. Repeat bulk transfers throughout the measured interval, or compute mixed-load percentiles only from samples taken while bulk is active.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in commit 422d0c2: W5 now repeats bulk transfers back-to-back for the whole W1 sampling interval, and the section 4.4 mixed-load rule computes its percentiles only from interactive samples taken while bulk load is active — an unloaded tail can no longer dilute the measurement into a false pass.
| network floor is 2×RTT = 60 ms at P2 (one request and one response leg). | ||
| "Broker hop" is an extra RTT when the path traverses a relay; the | ||
| polling row uses the poll interval instead. |
There was a problem hiding this comment.
Count the request-response network delay as one RTT
P2 specifies 15 ms one-way delay and 30 ms RTT, so the request and matching response used to define IRTT incur 30 ms of network delay, not 60 ms. For relayed paths, §3.2 also explicitly splits that same delay across the two legs, so traversing the relay does not itself introduce the additional 30 ms network RTT allocated here. These duplicated network costs distort every component allocation and can hide processing or queueing overruns in the diagnostic decomposition required by §6.6. Account for the shaped path once, measure broker processing separately, and reallocate the remaining budget explicitly.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in commit 422d0c2: section 4.3 network floor is now 1xRTT = 30 ms at P2 (a request and its matching response incur one RTT of network delay); the broker-hop column is broker processing only (10 ms), since section 3.2 splits the same shaped delay across relay legs — no second network RTT. Headroom reallocated so every row still sums to its LB budget, and the broker/framing bullet now budgets processing (<= 10 ms) instead of 1 RTT + 10 ms.
| every attempt consumes the same shared NEG budget, which is never extended | ||
| to fit additional candidates. | ||
|
|
||
| | Parent tier / carrier shape | LB-31 SETUP p95 at P2 | Per-attempt hard deadline P2 | Per-attempt hard deadline P4 | |
There was a problem hiding this comment.
Define negotiation deadlines for the P1 and P3 profiles
The per-attempt deadlines are specified only for P2 and P4, and LB-25–LB-27 likewise provide interactive negotiation bounds only for those two profiles. However, §6.4 requires W9 negotiations per profile, G3 checks these deadlines, and §6.7 explicitly includes P1 in the PR gate and P3 in the pre-release matrix. Those required runs therefore have no defined negotiation pass/fail bounds, forcing the harness implementer to invent timeout policy. Supply P1/P3 values or explicitly state which existing bounds each profile must use.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in commit 422d0c2: section 5 now defines P1 and P3 negotiation bounds explicitly — P1 uses the P2 per-attempt deadlines, LB-25 NEG bounds, and the 1.5 s LB-27 cap; P3 uses the P4 per-attempt deadlines, LB-26 NEG values (p95 <= 9 s, hard 12 s), and the 3.5 s LB-27 cap — so the section 6.4 W9 runs and the section 6.7 P1/P3 gates have defined pass/fail bounds.
|
agent-note:v1 |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
agent-note:v1 |
Closes #5797 on merge.
Adds doc/2026-11-08T23-05-00Z_design_id5797_latency_budget_measurement.md with per-tier interactive, ordinary-sync and bulk budgets; per-attempt and overall negotiation deadlines; component allocations; and a reproducible measurement plan for proxy/TLS, broker/framing, HOL/multiplexing, keepalive/idle and reconnect/resumption.
Preserves #5671's fallback order and E2E boundary, consumes #5791/#5794 as settled inputs, keeps Workers out of bulk SLOs, and records open-sibling assumptions/reconciliation points. Numeric values are proposed acceptance targets, not measured results; no runtime changes are included.
Verification: git diff --cached --check and local Markdown file/anchor target check. No runtime tests apply to this docs-only change.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.