Prose report · NVIDIA/hyperflare-inference #548

Raw Markdown for agents: https://autobot.eidonix.com/p/0f90b250-8168-4770-84e4-fb6c7a8fb0f7.md

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

Rules applied

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:

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

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)

Open questions (not findings)

  1. 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 head 6624592. The failing test is disclosed and called unrelated, which satisfies the disclosure rule, so this is a question rather than a defect.
  2. Unrun measurements live only in the description. The four-item "Not run" list would be more durable in docs/TODO.txt (AGENTS.md:52-60 says unresolved defects and unrun checks belong there, not in design documents), but nothing in the rules requires that for a PR description.
  3. 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

Tally: blocking 0; should fix 1 (S1); nits 4 (N1–N4); open questions 3.