Prose review — PR #548 "Add per-request histograms and vLLM-parity request metrics"
Head reviewed: 66245920cd3b4cf84567e67d19821df70fedd29d (6624592), 9 files, +1008/−51, base main. Lens: description, commit messages, and the docs/comments the PR changes, judged against the repository's own writing and contribution rules. All nine changed files were read in context at this head; every finding below was re-verified against the code and docs at this head.
Key findings
- 0 blocking. The description does answer the four required questions in the required order, states unrun checks, and keeps the Discord line last.
- 1 should fix: the description still ends
Closes #536, but issue #536 asked for request histograms and the standardprocess_*collector. The collector is not delivered, noprocess_*series exist anywhere in the tree, the vLLM-parity table has no row for them, and the caveat sentence an earlier head carried ("This change exports noprocess_*series") was deleted in commit54e06b30while the closure keyword stayed. A material limitation now has to be guessed (AGENTS.md:134-137). - 4 nits, all in
docs/api.mdor the description's "Result"/"Evidence" phrasing: an unpinned vLLM reference, an implementation-verb section lead-in, an undocumented preemption stall inside the decode / time-per-output-token spans, and an unstated population for the "17 histograms (394 lines)" cost figure. - Two defects raised in earlier rounds are resolved at this head and were re-confirmed: the e2e tool-limit exclusion, and the scoped cancelled/failed sentence.
Rules applied
AGENTS.md:43-50— every prose artefact, PR descriptions included, is reviewed against.agents/skills/repo-prose/SKILL.md(not opened).AGENTS.md:72-80— the four questions, in order: why, what exactly changed, claimed benefit, evidence; a description that makes the reviewer reconstruct them is incomplete.AGENTS.md:82-87(why),:88-94(what, explicit before/after),:95-102(claimed result: expectation vs measurement, scope and material limitations attached),:103-112(evidence connected to each claim; skipped checks and limitations kept visible; never invent evidence).AGENTS.md:114-128(hierarchy of detail; resolve references where used; durable identifiers),:129-132(remove process assurances with no technical evidence),:134-137(do not publish a description whose material limitations must be guessed).AGENTS.md:144-152— Discord line after the technical explanation..agents/skills/repo-prose/SKILL.md:13-46(not opened) (state behaviour and invariants directly; no chronology; durable identifiers on first reference; distinguish implementation from qualification),:48-59(review before publishing; quote, name the missing context, supply a rewrite, never invent details).docs/design-review.md:137-152(not opened) — principle 16 applies the same four-part scheme to commit bodies and PR descriptions;:153-160— principle 17, the Discord line.
Should fix
S1 — the description closes #536 while the process-metrics half of that issue is neither delivered nor mentioned
Where: PR description, last line before the Discord line: Closes #536; supporting text docs/api.md:475-515 (the "Correspondence with vLLM metrics" table).
What is wrong. Issue #536 asks for two things. Its "Missing metrics" table carries the row "Process metrics | process_cpu_seconds_total, process_resident_memory_bytes, process_open_fds, process_start_time_seconds | none", and its Proposal section ends "Plus the standard process_* collector metrics." At this head that half is absent and the PR prose never says so:
- No such series exist. A whole-tree
search_codeforprocess_cpu_seconds_total|process_resident_memory|process_open_fds|process_start_timereturns no matches. docs/api.mdnever lists them: searching "process" in that file hits only unrelated prose (docs/api.md:4,:242,:294,:412,:457,:693-694,:784,:786,:797). The parity table rows atdocs/api.md:486-515contain no process row and no "Not provided" row for them, even though its lead-in atdocs/api.md:477-479promises "the metrics Flare does not provide".- The description's only reference to that table is "maps each metric in vLLM's production list to the Flare series that measures it or marks it as not provided" (
What changed, last bullet), so a reader concludes #536 is fully satisfied.
The history shows the caveat was intentionally carried and then dropped: commit ebecef13 "Add request latency histograms and process metrics", then 54e06b30 "Remove process metrics from the request latency change" — but the closure keyword survived the removal.
Why it matters. AGENTS.md:95-102 requires the claimed result to be stated precisely with scope and material limitations attached; AGENTS.md:134-137 says not to publish a description whose material limitations must be guessed; .agents/skills/repo-prose/SKILL.md:30-37 (not opened) requires evidence and claims to be distinguished from what was actually done. A closure keyword is a claim about what the change delivers, and closing #536 tells the reporter — who asked for the process collector by name — that their request was handled.
Fix (description-only, or one docs row). Either narrow the keyword, e.g. "Addresses the request histograms of #536; the standard process_* collector is not provided", or add a "Not provided" row to docs/api.md:486-515 for process_cpu_seconds_total, process_resident_memory_bytes, process_open_fds, process_start_time_seconds with the reason, and say so in the description.
Note on overlap. The repository-side Autobot reviews of 2026-11-28 05:09 also flag "the Closes #536 keyword overstates delivery", from the scope lens; this finding records the description-accuracy defect.
Nits
N1 — docs/api.md:477-478 cites "vLLM's production metric list" with no version, commit or link
Text: "The table gives the Flare series that measure each metric in vLLM's production metric list, named here without the vllm: prefix, and the metrics Flare does not provide."
What is wrong. The artefact is named but not identified, so no row can be re-checked and the table silently ages as vLLM releases metrics. The PR title's own word "parity" makes the reference load-bearing, and the repository elsewhere sets the opposite precedent: docs/logprobs-design.md:261-262 (not opened) links the exact vLLM source files it follows.
Rule: AGENTS.md:122-128 (resolve references where they are needed; links may carry supporting detail; durable identifiers), .agents/skills/repo-prose/SKILL.md:20-21 (not opened). A table of "Not provided" claims that cannot be re-verified is also a claim about the stated evidence (AGENTS.md:103-112).
Fix: attach the reference once, e.g. "…vLLM's production metric list (vllm/v1/metrics/loggers.py (not opened), vLLM 0.x.y)" or a link to the pinned vLLM metrics documentation.
N2 — docs/api.md:311 opens with an implementation verb instead of the measured quantity
Text: "The HTTP histograms observe delivery. flare_request_e2e_seconds observes each successful generation response once, from admission to the completed response…"
What is wrong. A section lead-in phrased as "observe delivery" names the mechanism before the concept and reads as shorthand rather than the measured behaviour; the sibling section in the same document leads with the population — docs/api.md:328 "The runtime histograms observe requests whose model generation completes successfully", :348 "The runtime token histograms count per completed request."
Rule: .agents/skills/repo-prose/SKILL.md:22-25 (not opened) (explain the concept before the identifier; do not let implementation shorthand become the vocabulary), :44-46 (state the substantive fact directly).
Fix: "The HTTP histograms measure response timing at the HTTP boundary" (or name the two series groups), keeping the rest of the paragraph.
N3 — docs/api.md:340-341: decode and time-per-output-token spans include a preemption stall, and the document says so only for inter-token latency
Text: "flare_request_decode_seconds and flare_time_per_output_token_seconds are recorded only for requests with at least two generated tokens."
Contrast: docs/api.md:344-346 states, for inter-token latency, "the interval that spans a preemption includes the wait for readmission".
Code proof it applies to decode and TPOT too. Worker::park at helios/src/server/runtime.rs:2106-2147 takes the whole Incoming — which owns record — into self.parked (runtime.rs:2146) after bumping record.preemptions (runtime.rs:2101), on the preemption path park_if_preempted (runtime.rs:2087-2103). RequestRecord::tokens_committed (helios/src/server/metrics.rs:348-362) sets first_token_ns once and only overwrites last_token_ns. Metrics::request_completed then computes decode = times.last_token_ns - first and observes decode / (generated_tokens - 1) (helios/src/server/metrics.rs:593-601). The parked interval therefore sits inside both histograms, and the document states that only for inter-token latency.
Rule: AGENTS.md:103-112 (attach material limitations to the claim), .agents/skills/repo-prose/SKILL.md:35-37 (not opened).
Fix: one clause — "a preemption stall is included in the span".
N4 — the description's "17 histograms (394 lines) per text scrape" names no population
Text (description, "Result"): "…and 17 histograms (394 lines) per text scrape. This cost was not measured in isolation."
What is wrong. The seventeen are the request histograms this PR adds, rendered at helios/src/server/metrics.rs:1548-1642: six on REQUEST_SECONDS (e2e, queue, prefill, decode, inference, TTFT), two on TOKEN_SECONDS (time per output token, inter-token latency), five on TOKEN_COUNTS (prompt, prefill-computed, generated, max_tokens, max-choice-generated), plus request_choices, request_preemptions, model_step_tokens, and flare_time_to_first_response_seconds (helios/src/server/latency.rs:101-108). The same scrape also renders host prefix-store histograms this PR does not add: flare_host_cache_missing_tokens, flare_host_cache_estimated_transfer_ns, flare_host_cache_estimated_prefill_ns (helios/src/server/metrics.rs:1178-1214) and flare_host_cache_retirement_seconds (metrics.rs:1000-1023). A reader counting # TYPE … histogram lines in a scrape therefore finds roughly 21, and neither the line count nor its arithmetic can be reconciled from the text.
Rule: AGENTS.md:103-112, :122-128 (a number that cannot be reproduced from the stated reference does not support the claim); .agents/skills/repo-prose/SKILL.md:20-21 (not opened).
Fix: name the population, e.g. "the seventeen request histograms this PR adds render as 394 exposition lines per text scrape; the host prefix-store histograms are unchanged."
Resolved and re-confirmed at this head (no action)
- e2e tool-limit exclusion. The description says e2e excludes token counting and tool-limit cancellations; the code matches:
helios/src/server/http.rs:604-612, with the comment at:601-603("a tool-limit cancellation reaches this point but the runtime counts it as cancelled, so it is excluded"), anddocs/api.md:311-314states the same. (This was a should-fix in an earlier round and is now correct.) - Cancelled/failed scoping.
docs/api.md:361-364is now scoped: "Cancelled and failed requests contribute no observation to the runtime histograms here. Apart from counters, the only series that can observe them isflare_time_to_first_response_seconds, and only when text was offered before the failure." That matcheshelios/src/server/latency.rs:116-127, which records TTFR from the first offered text and never checks the final outcome. (Earlier round's second should-fix; now correct.) - Four-part structure and disclosure. Why / What changed / Result / Evidence appear in the mandated order (
AGENTS.md:72-80); the unrun checks are visible ("Not run: multi-GPU cores and the Windows build"), the isolation of the cost is disclaimed ("This cost was not measured in isolation"), and merge logistics with #549 come after the technical content (AGENTS.md:114-128). The Discord lineDiscord: oystersmilesis last and has no leading@(AGENTS.md:144-152). - Changed comments state invariants, not history.
helios/src/server/metrics.rs:332-334("The record moves with the request through preemption and readmission and is observed once… only if the request completes successfully"),:348-351("however many tokens the step committed"),:605-607;helios/src/server/runtime.rs:2084-2086,:2259-2261;helios/src/scheduler.rs:116-117. None narrates chronology or relies on the review conversation, matching.agents/skills/repo-prose/SKILL.md:38-43(not opened).
Open questions (not findings)
- The test result is not tied to a named check. "814 passed; 1 failed, a template test that needs
FLARE_TEST_TEMPLATE_DIR" gives counts but not the job (AGENTS.md:108-109— counts and labels cannot stand in for the tested contract); there are no checks on head6624592. The failing test is disclosed and called unrelated, which satisfies the disclosure rule, so this is a question rather than a defect. - Unrun measurements live only in the description. The four-item "Not run" list would be more durable in
docs/TODO.txt(AGENTS.md:52-60says unresolved defects and unrun checks belong there, not in design documents), but nothing in the rules requires that for a PR description. - Commit bodies could not be reviewed.
docs/design-review.md:139-145(not opened) applies the same four-part scheme to commit bodies; the history view exposes only subjects (ebecef13,54e06b30, plus the later commits), so their bodies are unverified.
What could not be checked
- The live-scrape figures (24 completions; generated-token sum delta 3,112; e2e count 22 against 24 completions; output-limited stops counted) are not reproducible from the repository. They are internally consistent with the render sites (
helios/src/server/metrics.rs:1548-1642,helios/src/server/latency.rs:101-108) and with the documented multi-choice rule atdocs/api.md:314-318, which is as far as repository evidence goes. The 24-vs-22 gap now follows from that documented rule; no reconciliation text is missing. - Whether
process_*was ever published in an earlier head could only be inferred from the commit subject54e06b30"Remove process metrics from the request latency change"; the removed code is no longer in the diff.
Tally: blocking 0; should fix 1 (S1); nits 4 (N1–N4); open questions 3.