Prose report · NVIDIA/hyperflare-inference #549

Raw Markdown for agents: https://autobot.eidonix.com/p/c1d55492-752e-47f6-845d-5f95ff5e0817.md

Prose review — PR #549 "Report KV pages held by active requests"

Key findings

Verdict at head bca7358: nits only. No blocking and no should-fix prose defect remains. Every claim in the description's "What changed", "Claimed result" and "Evidence", and every new code comment and metric help string, was checked against the code at the head commit and is accurate.

Two nits survive in the single documentation hunk (docs/api.md:298-310):

  1. The paragraph never says the two new gauges are absent from the ?format=json snapshot, even though the PR description states it outright ("They are not added to the JSON snapshot"), the adjacent paragraph at docs/api.md:292-296 explicitly routes text-only metric families, and the JSON field table at docs/api.md:330-360 has no row for either gauge. One sentence fixes it.
  2. The paragraph calls the ratio "the share comparable to vLLM's kv_cache_usage_perc" without qualification, while the description explicitly disclaims any cross-runtime comparison. Either mark it as the vLLM definition being modelled, or note that no side-by-side vLLM run was made.

Both defects that my earlier pass raised against the description at head 9cca87a are now fixed in bca7358: the missing helios/src/server/runtime.rs bullet and the "counts once for every request" sentence.

Scope and rules applied

Scope at head bca7358 (pr_diff): 8 files, +202/−34. The only documentation change is one hunk inserting docs/api.md:298-310 (13 lines) between the metrics preamble (docs/api.md:281-296) and the JSON/Accept paragraph (docs/api.md:312-319). Everything else is code, tests, and the description itself. The sole commit subject is "Fix KV-page docs ratio and fold duplicated page tests" (bca7358c, Wynn Drahorad); the parent is "Keep page gauges out of the copy-out retry key" (9cca87ac), and the original is "Report KV pages held by active requests" (5ed7af86).

Rules judged against (read in full):

The PR satisfies the required four-part description structure and labels its single measurement ("Live scrape on the local two-GPU DeepSeek-V4.1-Flash setup"), discloses what was not run ("Not run here: any GPU workload beyond the scrape above, an exported core, the Windows build, and the full helios suite"), and disclaims cross-runtime comparison. The findings are about specific sentences inside those sections, not the scheme.

Findings

Nit 1 — docs/api.md:298-310: the paragraph does not say both gauges are Prometheus-text only

The new paragraph is:

"flare_request_kv_pages counts the distinct KV pages that requests owning a model slot reference: their private pages plus the tail pages of the prefix checkpoints they pin, each page counted once even when several requests reference it. It is not disjoint from flare_cached_kv_pages: a pinned checkpoint stays published, so its tail pages count in both gauges. Neither gauge counts pages draining after a request retires, or a restore ticket's in-flight pages. flare_reserved_kv_pages counts pages reserved for those requests' growth that are neither free, cached, nor written yet. The worker publishes both when a scheduler pass makes progress, and again at startup and after the shutdown drain; a scrape reads the last published values. (flare_request_kv_pages + flare_reserved_kv_pages) over flare_total_kv_pages is the share comparable to vLLM's kv_cache_usage_perc; idle cached prefixes and snapshot backing pages are outside it."

Nothing in it says the two gauges are absent from the JSON object, yet:

Why it matters: AGENTS.md:52-60 requires support to be stated as present qualification, and SKILL.md:35-46 (not opened) requires stating the limit where it matters. A dashboard author who has read this paragraph using ?format=json (documented at docs/api.md:312-319) will read the fields as zero, since Snapshot "deserializes the object, reading absent fields as zero" (docs/api.md:317-318), and conclude no request holds KV pages. The description already carries the fact, so the doc is the only place it is missing.

Fix: one sentence inside the paragraph, e.g. "Neither gauge appears in the ?format=json snapshot."

Nit 2 — docs/api.md:308-310: unqualified vLLM comparability

"(flare_request_kv_pages + flare_reserved_kv_pages) over flare_total_kv_pages is the share comparable to vLLM's kv_cache_usage_perc; idle cached prefixes and snapshot backing pages are outside it."

Against the description: "No comparison with another runtime is claimed; the measurements describe this two-GPU instance only." and, for the scrape, "The request gauge over the total measured 0.0186 and 0.0187; the share the documentation defines, (request + reserved) / total, is 0.0187 and 0.0188 by arithmetic on the same counts."

Why it matters: AGENTS.md:55-57 requires support stated as present qualification, and AGENTS.md:95-102 requires distinguishing expectation from measurement. The mapping here is definitional (vLLM counts blocks held by running requests over total blocks), so it is defensible as a definition, but as written the docs assert a cross-runtime equivalence the PR itself declines to claim and never tested. A reader comparing the two stacks side by side is entitled to know that no such run was made.

Fix: reword to "matches the definition of vLLM's kv_cache_usage_perc", or add one clause stating no side-by-side vLLM run was made. If the author did run one, the Evidence section should say so.

Consistency point (not counted as a nit) — three different names for the same set

All three describe the same computation, self.slots.iter().filter_map(|slot| slot.request.as_ref()) at helios/src/scheduler.rs:1205, which includes Inbound waiters (helios/src/scheduler.rs:137-138 notes they "count as active"). The docs wording is the exact one; adopting it in the two code sites would remove a reader's question about whether a restore waiter's pages are included.

What was verified as sound at head bca7358

Description accuracy against the code:

Fixes already landed at bca7358 against my previous pass at 9cca87a:

Open questions and what could not be checked