Prose report · NVIDIA/hyperflare-inference #549

Raw Markdown for agents: https://autobot.eidonix.com/p/1ffd4809-2084-4eb0-9c8c-0827dd186d37.md

Verdict: nits only (Prose lens). At head bca7358 I found no blocking and no should-fix prose defect in PR #549. The description now answers the four required questions in order; the earlier description defects (missing runtime.rs bullet, "counts once for every request", the false zero-pin compaction rule) are fixed; and the api.md paragraph no longer misstates how the gauges are produced. Four nits remain, all in two places: the new docs/api.md paragraph and two sentences of the description.

Key findings

Scope and rules applied

Scope at head bca7358c (read_item #549, pr_diff): 8 files, +202/−34. The only documentation change is one hunk of 14 added lines, docs/api.md:298-310, inserted between the /metrics preamble (docs/api.md:281-296) and the JSON/Accept paragraph (docs/api.md:312-319). Prose in this PR therefore lives in the description, that one docs hunk, and the new code comments and metric help strings.

Rules judged against: AGENTS.md §"Required prose review" (:43-65 — applies to documentation, code comments and PR descriptions; state support as present qualification; do not claim beyond stated evidence); §"Required PR descriptions" (:72-113 — why / what exactly changed before/after / claimed benefit distinguishing expectation from measurement / evidence tying checks to claims, with :98-100 "Distinguish component measurements from whole-model or service results, … Never attribute a combined result to one PR"); :114-140 (hierarchy, resolve references, "Do not publish it if the rationale, exact change, claimed benefit, supporting evidence, or material limitations must be guessed"); :142-151 (Discord line last, no leading @). Also .agents/skills/repo-prose/SKILL.md:25-46 (not opened) and :56-59 (present-state specification; evidence as conditions, measurement, result, conclusion), docs/design-review.md (not opened) principle 16 ("Write without hidden context"), and charter line 35 (what gets merged). Charter line 44 (GPU kernel scope) is not engaged.

Nits

Nit 1 — docs/api.md:298-310: the paragraph never says the two gauges are absent from the ?format=json snapshot. The new text describes flare_request_kv_pages and flare_reserved_kv_pages and stops there; it is the only metrics family in this section whose JSON behaviour goes unstated. The omission is visible, not merely stylistic, because:

Nit 2 — docs/api.md:308-310: unqualified cross-runtime comparability. The passage reads: "(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." The mapping is definitional — it matches vLLM's notion of blocks held by running requests over total blocks — but no side-by-side vLLM run is offered anywhere in the PR's Evidence, and issue #537, which this PR closes, reports the opposite of agreement on its own setup ("vLLM on the same hardware and load: about 9%" against Flare's ~16% upper bound). A reader arriving from #537 sees a claim of comparability that the linked issue's numbers do not support. Rule: AGENTS.md:55-57 (present qualification) and :95-99 (distinguish expectation from measured result; attach scope and material limitations). Fix: either write it as the definition being modelled ("matches the definition of vLLM's kv_cache_usage_perc") or keep "comparable" and add that no side-by-side vLLM comparison was made; if one was made, it belongs in Evidence. The same sentence appears as the last bullet of the description's "What changed".

Nit 3 — description, helios/src/cache.rs bullet: "Compaction moves the count into the surviving checkpoint." No count is moved or transferred in compact_ancestor (helios/src/cache.rs:622-645). What happens: the ancestor is removed from nodes and leaves every count via self.uncount(&node) (:623-625), its tail pages are appended to the heir (:638-640), and the invariant is carried by // Both nodes are counted or neither is, and the pages move into the counted heir. (:635) with debug_assert_eq!(node.request_pins, child.request_pins); (:636). There is no request_pinned_pages assignment anywhere in the function, because the heir was counted already. The description's verb "moves the count" implies an arithmetic adjustment that does not exist, and AGENTS.md:88-94 asks that the before/after be exact. Fix: "Compaction keeps the count correct because the surviving checkpoint already carries the same request pins." (The surrounding description text — request pins sharing one walk with plain pins, plain pins for host copy-out and export not counted — is accurate; this is one clause.)

Nit 4 — description, "Evidence": the two live-run bullets do not qualify the build. The bullets say "Live, on one RTX PRO 6000 Blackwell serving the prepared local-inference-lab/Qwen3.8-Flash-Next-FLARE gb202 package (20,480 pages) with 16 concurrent streams…" and "On a two-GPU DeepSeek-V4.1-Flash deployment…" without stating what else was merged into the image. The author's own 2026-11-28 03:26 comment does state it: "The image was built from upstream main with this PR, #548, and #560 merged." AGENTS.md:98-100 requires distinguishing "isolated changes from combined-stack results" and forbids attributing a combined result to one PR. Impact is low — neither #548 nor #560 touches KV-page accounting, so the numbers plausibly describe this change — but the description is the artifact a future reader has. Fix: add "built from upstream main with this PR, #548 and #560 merged" to the first live-run bullet.

Verified sound (checked, no finding)

Description: the opening rationale (the /metrics gap, #537, and why the cache maintains the count rather than scanning the graph) matches issue #537's own analysis and Cache::stats' no-scan property; "Request pins … share one chain walk with plain pins" matches helios/src/cache.rs:519-570; the 0→1 add and 1→0 subtract crossings are at :536-541 and :561-566, with unpin_request rejecting a release that has no request pin at :547-549; "Plain pins for host copy-out and export are not counted" matches scheduler.rs:2037-2043 plus the ticket-parent plain pins at :1631-1638, :1864, :1900; the scheduler bullet matches request-API pins at :1882, :2970-2972, :2990-2991 and retirement releasing the pin at :3144-3149 before the slot is emptied at :3150; the runtime.rs bullet matches the retry key zeroing both fields at helios/src/server/runtime.rs:2441-2450 with the reason in the comment at :2443-2445; the metrics bullet's publish condition matches metrics.rs:1148-1153 plus startup :722 and post-drain :745; "Request-pinned checkpoint pages also appear in flare_cached_kv_pages" is true because cached_pages is tail_pages (cache.rs:850) and request-pinned nodes stay in nodes; the stated cost (two u64 per checkpoint cache.rs:82-85, one usize count :222-224, one pass over live slots scheduler.rs:1200-1209) is accurate; "Not run: the Windows build" is a proper disclosure under AGENTS.md:105-108; "This PR and #548 … are independent and merge cleanly in either order" is a scope statement the author also verified in the comment table; "Closes #537" is correct; and the description ends with "Discord: oystersmiles" — last, no leading @, per AGENTS.md:142-151.

Docs: docs/api.md:298-307 — "distinct KV pages that requests owning a model slot reference", "each page counted once even when several requests reference it", "not disjoint from flare_cached_kv_pages", "Neither gauge counts pages draining after a request retires, or a restore ticket's in-flight pages", "reserved for those requests' growth that are neither free, cached, nor written yet", and "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" are all accurate against scheduler.rs:1200-1221, metrics.rs:1148-1153/:722/:743-746, cache.rs:850, and the ticket path (scheduler.rs:1686-1688, pinned at :1882). The ratio's denominator statement holds: private and reserved pages are removed from free at scheduler.rs:1714-1717/:1412-1418.

Code comments and help strings: scheduler.rs:130-133 and metrics.rs:1311/:1316 describe request_pages and reserved_pages accurately and are consistent with docs/api.md.

Non-finding observation (wording consistency, not a defect)

docs/api.md:298 says "requests owning a model slot" while helios/src/scheduler.rs:130 and helios/src/server/metrics.rs:1311 both say "active requests" ("Distinct KV pages referenced by active requests…"). All three describe the same set — self.slots.iter().filter_map(|slot| slot.request.as_ref()) at scheduler.rs:1205 — which includes Inbound restore waiters (scheduler.rs:137-138 says those "count as active"). The api.md wording is the precise one; adopting "requests holding a model slot" in the two code sites would remove a reader question. Not counted as a nit because no statement is wrong.

Open questions / not found

Link: https://github.com/NVIDIA/hyperflare-inference/pull/549