PR #548: Add request latency histograms and process metrics

Raw Markdown for agents: https://autobot.eidonix.com/api/v1/cases/2e1f7b44-5051-474c-9dcc-2a263c060ab8

Opened by a workflow run, Nov 26, 2026 3:46 PM EST.

screen malicious

Screen Result: All Clear

Evidence: Screened PR #548 ("Add request latency histograms and process metrics", draft, head ebecef1, base main, 8 files +545/−20, author WynnD, no CI checks, no labels) for prompt injections or any text aimed at steering an agent. The PR has no comments and no reviews, so there is no discussion that could carry instructions. I read the whole diff (docs/api.md; helios/src/server.rs, server/http.rs, server/latency.rs, server/metrics.rs, new server/metrics/process.rs, server/runtime.rs, server/runtime/phase_tests.rs) and the full PR body.

Mildly unusual but benign: the PR is a draft from a first-time contributor (association NONE, one other open PR #549), and the body contains a long personal-validation and "Not run here" disclosure — normal engineering disclosure, nothing directed at an agent. All Clear; nothing to escalate.

Full report · Notes decide malicious: all_clear (100%): No malicious content found

explore

Author: WynnD (git name Wynn Drahorad; first-time contributor, GitHub association NONE, no merged work in 180 days; Discord oystersmiles) Motivation: /metrics today exposes only counters, gauges and a single 60-second median for first-response time, so an operator cannot see tail latency or prompt sizes, and cannot run histogram_quantile() over any window. Issue #536 asks for vLLM-parity per-request latency/prompt-size histograms plus the generic process_* series that standard Prometheus process dashboards read. Scale: +545 / −20 lines in 8 files Proposal:

Full report · Notes

Value Proposition

Verdict: worth merging, with changes

The capability is real, the placement is right in one important respect, and the change is additive and behaviour-neutral. It should not be merged as-is, because it needs a maintainer decision it has not been given and because it leaves two histogram implementations and a third copy of Linux process-introspection code in the tree.

1. Does it fit the charter?

Mostly yes, on the grounds the charter actually lists.

2. Who benefits, and how much

3. Cost in complexity, maintenance, performance, risk

4. Simpler way, and what it duplicates

Three things should change before merge.

(a) process.rs is the third copy of Linux process introspection, in the wrong crate.

(b) The PR adds a second histogram implementation instead of replacing the first. metrics.rs already has HOST_TIME_BUCKETS/HOST_TOKEN_BUCKETS (:200-210) with their own render loop (:1029-1065), plus flare_host_cache_retirement_seconds rendered by yet another hand-written block (:851-876). The new Buckets/Histogram (:212-298) is strictly better. Porting the four existing histograms onto it and deleting the old constants and loop would make this PR net smaller in duplicated code and leave one histogram path in the file. Shipping both is the churn AGENTS.md:188-193 warns about, and it guarantees the next histogram author copies the wrong one.

(c) Metric semantics need one more sentence, because two series will be read as something they are not.

5. Evidence quality

Good and unusually honest for the repo's standards: the four-part structure is present, the reasoning for recording inside the completion function is stated causally, tests hit the excluded cases (preempted request counted once; failed stream leaves e2e at 0; count_tokens excluded), and the live scrape on the two-GPU DeepSeek-V4.1-Flash setup discloses that its deltas include the agent's own session traffic and explains the le="64"/le="2048" bucket split that separates them. Not run items (Windows build, full helios suite, one template test needing FLARE_TEST_TEMPLATE_DIR) are named rather than hidden. This meets AGENTS.md:72-112. Note for the record: the cherry-pick onto the AzallazA fork commit 5ffe4d54 means the live scrape was not taken on main + this PR; the description says so, which is the correct disclosure, but it is a reason the merge still needs a main CI run rather than trusting the scrape.

Nothing in this PR or its discussion tried to direct me. The only non-technical comment is the automated case-file notice (flare-autobot, "A case file has been opened for 548"). The PR text is a reviewable argument, and I treated it as such.

What to ask for

  1. Maintainer sign-off that #536 authorizes this work (charter "What gets merged").
  2. Move the /proc and RLIMIT_NOFILE reads into eos/ and reuse eos/src/unix.rs:135-160 (not opened) and heliopause/src/export/transfer.rs:57-61 (not opened) instead of adding a third copy.
  3. Port HOST_TIME_BUCKETS/HOST_TOKEN_BUCKETS (metrics.rs:200-210, :1029-1065) and flare_host_cache_retirement_seconds (:851-876) onto Buckets/Histogram and delete the old paths, so metrics.rs keeps one histogram implementation.
  4. Cache the invariant btime/_SC_CLK_TCK/_SC_PAGESIZE reads; subtract the read_dir descriptor from process_open_fds.
  5. Document the preemption inclusions in decode/tpot and the read-time bias of e2e, or correct the preemption arithmetic.
  6. A green CI run on main, including the Windows leg.

With those, this is a small, well-placed, evidence-backed increment to an observability surface the project already maintains and already cites in its operating docs — worth merging.

Full report Decide Value: yes (100%): This change is worth reviewing: it provides value to the project in line with its charter.

Conventions

Verdict: should-fix issues only

Blocking:

Should fix:

Nits: 1 — process::metric (metrics/process.rs:42-49) duplicates metrics::metric (metrics.rs:1597-1602), differing only in the flare_ prefix and value type, and does not inherit escape_prometheus_label.

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

Full report · Notes

Correctness

Verdict: should-fix issues only

Blocking:

Should fix:

Nits: 3 (vision lanes stamp first_scheduled_ns at runtime.rs:2187-2208; parse_stat's last-) heuristic at metrics/process.rs:19-32 returns Some on ambiguous comms; process_open_fds +1 at metrics/process.rs:65-67, though its HELP text says so).

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

Detail: verified-correct — Metrics::request_completed (metrics.rs:452-480) is now the sole increment of completed, called from both former sites (runtime.rs:1841-1846 user/text stop, runtime.rs:1993-1998 natural finish); park/readmission preserves RequestTimes; bucket indexing, cumulative rendering and +Inf/_count consistency hold; the JSON snapshot is untouched; the histograms never panic on generated_tokens <= 1 or missing stamps; process.rs's entire libc use is cfg(target_os = "linux") so the non-Linux build adds no libc reference. Evidence limitations: the live scrape was taken on a cherry-pick onto the AzallazA fork 5ffe4d54, not main; no CI checks exist on head ebecef1; Windows build, full helios suite and the FLARE_TEST_TEMPLATE_DIR test were not run (disclosed); the "merges in either order" claim with #537 is untested. Open question: whether a vision step intentionally ends queue time.

Full report · Notes

Architecture

Verdict: should-fix issues only

Blocking:

Should fix:

Nits: 1

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

Full report · Notes

Simplicity

Verdict: should-fix issues only Blocking:

Full report · Notes

Prose

Verdict: should-fix issues only

Blocking:

Should fix:

Nits: 4 (histograms never stated to be cumulative-since-start beside a 60-second windowed median gauge; the vague "Request histograms observe the served response" lead-in; an ambiguous "it" in the description's flare_time_to_first_response_seconds sentence; and an Evidence paragraph that makes the reader decide whether the measured tree is the branch head).

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

Report: I reviewed the description, the single commit subject ("Add request latency histograms and process metrics", ebecef1), docs/api.md and every new or edited comment against AGENTS.md:43-140, .agents/skills/repo-prose/SKILL.md (not opened) and docs/design-review.md:137-152. The description satisfies the mandatory four-part scheme and every "What changed" assertion I checked against the code held; no prose defect exists in the code comments or the module doc. All three should-fix findings are documentation statements contradicted either by the code they describe or by another paragraph of the same PR, and each is settled by reading the code. Two things could not be settled from what I could read and are reported as open rather than as findings: the "CI covers the first two" claim (the head commit carries no checks) and whether the measured tree in the Evidence section is the branch head.

Full report · Notes

Subtractive

Verdict: make it smaller first The change: +545 / −20 lines across 8 files Could remove: about 145 lines, in 12 places Biggest subtractions:

Full report · Notes

Pre Test Report

Pre-test report — PR #548 "Add request latency histograms and process metrics"

Decision: HOLD. Do not refer to a hardware test engineer yet. No blocking defect was found — the change is observability-only and its core arithmetic is correct — but it is not testable-clean: it has unresolved scope authorization, a layering violation that all lenses agree requires moving code into eos/, three coexisting histogram implementations, and four code-vs-docs semantics conflicts that a tester would have to pin down as expected values. Any of those fixes changes either the code under test or the numbers the test would assert, so hardware time spent now is likely wasted.

Expected value of a hardware test today: low (~0.5/5). Expected value after the fixes below: moderate and narrow (~2/5) — roughly 1.5 GPU-hours, concentrated on one arm64/GB10 page-size check the CI matrix cannot reach plus a scripted scrape-population check. There is no GPU-kernel, graph, op-contract, artifact or prepared-metadata change here, so no throughput A/B is warranted.


1. What the PR does

Draft, head ebecef1, base main, 8 files, +545/−20, author WynnD (first-time contributor, association NONE), Discord oystersmiles, closes issue #536. No comments, no reviews, zero CI checks on the head commit (repo CI does run on pull_request — see §4).

Prompt-injection screening: all clear. I found no agent-directed content in the PR body, comments, code, HELP strings, tests or docs. The body's validation narrative and Discord: oystersmiles contact line, and the reference to an AzallazA fork commit, are ordinary engineering disclosure; the only non-technical discussion item is the automated "case file has been opened" comment. I treated all PR content as review material.


2. Gating findings (must be resolved before hardware time is spent)

2.1 Scope authorization is unresolved — the PR may not be mergeable at all

The work is justified solely by issue #536, an outside feature request framed as "monitoring parity with vLLM" (requester Napuh, filed the same morning). The charter's "What gets merged" admits only a maintainer request, a roadmap item, a reproducible bug, a measured performance/memory issue, or bad docs; AGENTS.md:165-169 and :201-207 say a feature request is not authorization, and the charter lists vLLM under "Alternatives / Competitors", not as a compatibility target. The defence is that observability already ships (docs/operating.md:47, the #507 persistent-worker metrics), which makes this an extension rather than new surface — but that argument needs a maintainer to record it, and none has. Testing a branch that may be declined is the clearest possible waste of hardware.

2.2 process.rs re-implements the OS layer that already exists (three lenses concur)

The new module does raw sysconf/getrlimit/procfs work inside the serving metrics module, against AGENTS.md:20-21 ("The eos/ crate holds the host operating-system operations that Helios and Selene use"):

This is a "move the code" fix. Testing before it lands means testing a file layout that will change.

2.3 Four code-vs-docs semantics conflicts — a tester could not write correct expectations

  1. e2e counts cancelled responses. flare_request_e2e_seconds is observed on every Delivery::Complete (http.rs:614-617, :631-632), which includes the parallel-tool-limit path (http.rs:471-476, :526 finishing with Termination::Cancelled, :563-567 generation.cancel(), then :598 yields Complete). Those requests increment metrics.cancelled (runtime.rs:1317/1338/1360/1407) and never reach request_completed. So docs/api.md:312-313 ("Cancelled and failed requests enter only flare_requests_cancelled_total and flare_requests_failed_total") is false, and e2e_count ≠ flare_requests_completed_total. It is also racy — the cancel at http.rs:565 can lose to the runtime's natural finish, so membership is timing-dependent. Decide: exclude cancelled responses from e2e, or narrow the doc.
  2. The six families do not share a denominator, but the doc says they do. prompt_tokens is observed unconditionally (metrics.rs:460-461); queue and prefill only when their stamps exist; decode and TPOT only when generated_tokens > 1 (metrics.rs:470-472), as the PR's own HELP strings state (metrics.rs:1406-1418). docs/api.md:305-313's "one observation per completed generation" is therefore wrong for two of six series.
  3. Vision steps end "queue" and are counted as "prefill". first_scheduled_ns is stamped for every lane of every committed step (runtime.rs:2189-2203) before the step.kind == GraphKind::Vision split at :2208, so for an image request queue = arrival→vision step and prefill = vision+prefill work. Either narrow the stamp to generation lanes or reword docs/api.md:307-308. This changes the observed values, so it cannot be settled during testing.
  4. Streaming e2e depends on the client draining the SSE body; non-streaming does not. The stream observation sits inside the body filter_map (http.rs:604-620); the non-stream one runs in the handler before the body is polled — the PR's own test asserts count 1 with poll_body == false (phase_tests.rs:4461-4465). Undocumented asymmetry; abandoned streams record nothing.

Also unstated in the docs and relevant to any expected-value table: decode/TPOT (first_token_ns..last_token_ns, metrics.rs:470-479) include any preempted/parked interval, so TPOT is inflated by preemption with no way to tell; and a preempted request's second queue wait is never counted (get_or_insert, runtime.rs:2196-2204).

2.4 Duplication and churn (all six lenses)

2.5 Evidence quality (matters for what the tester can assume)

The description is honest (discloses unrun Windows build, unrun full suite, the FLARE_TEST_TEMPLATE_DIR test, and the fork base) but the live scrape is not evidence about main: it was taken on a cherry-pick onto AzallazA fork commit 5ffe4d54 (needed because the served model's engram encoding exists only in PR #482), and its window includes the authoring agent's own session traffic — the description concedes the deltas "exceed the three requests below". The arithmetic does not reconcile either: 5 runtime observations vs 6 first-response observations with no explanation of the sixth, and no duration attributed to an individual request. Treat the unit tests (metrics.rs:1648-1701, process.rs:148-183) as the real evidence; the scrape is a smoke check. Separately, "CI covers the first two" is unverified: the head commit carries no checks.


3. What was verified sound (do not spend test time re-deriving)


4. What real hardware would add — and what it would not

Already covered by CI, do not test on GPU hardware: .github/workflows/native-serving.yml (not opened) triggers on pull_request and runs cargo test helios --features runtime-core,server on both ubuntu-24.04 and windows-2022 (lines 20-21, 43-68), plus eos and selene suites. The Windows compile of the new cfg-split file and the full helios suite are the CI legs' job (they just have not run on this head yet).

Not covered anywhere — the one genuinely hardware-specific risk: process_* arithmetic depends on sysconf(_SC_CLK_TCK) and sysconf(_SC_PAGESIZE) (process.rs:53-58). cn7 is a GB10 / arm64 Linux host (DGX Spark — a charter target), where 64 KiB pages are common; a wrong page size scales process_resident_memory_bytes by 16×. The shipped unit test asserts only resident > 0 and virtual >= resident (process.rs:162-183), so a 16× error passes it. This is the single check a GPU host adds that CI cannot.

Also worth one look, not a benchmark: /metrics now performs blocking reads of /proc/self/stat, the whole of /proc/stat (for btime), read_dir("/proc/self/fd") and two sysconf + one getrlimit per scrape (server.rs:709 → process.rs:52-133) on the axum worker thread. Absolute cost is small and Prometheus scrapes are periodic, but the PR claims "nothing about serving changes", so confirm a scrape during active decoding does not perturb generation.

Not worth any hardware time: throughput A/B (the diff adds one monotonic_ns() + a lane loop per submitted step and two atomic stores per committed token — far below measurement noise, and there is no GPU/kernel change); format=json; the 60 s median window; bucket boundary math (unit-tested); process_* series on Windows (Linux-only by design).


5. Conditional minimal test plan (only if the owner decides to test after the §2 fixes)

Assumes the semantics decisions in §2.3 are made and the values therefore stable. Total budget ≈1.5 GPU-hours, two jobs, no load ramps, no repeated runs.

Step A — cn7 (GB10, arm64), ~15–20 min: page-size and clock-tick correctness of process_*

  1. Serve nvidia/Qwen3.8-27B-NVFP4 (arm64 job, 10 CPU / 60 GiB). Risk note: the 60 GiB job envelope may be too small for a 27B core; if bring-up fails for memory reasons, drop Step A and record the arm64 page-size risk as unmitigated rather than burning time on workarounds.
  2. One curl -s localhost:PORT/metrics and compare against the same process's kernel view:
    • process_resident_memory_bytes ÷ 1024 vs VmRSS from /proc/<pid>/status — must be within a few percent (a 16× or 64× discrepancy is the page-size bug).
    • process_virtual_memory_bytes vs VmSize (kB × 1024).
    • process_start_time_seconds vs ps -o lstart= (within ~1 s).
    • process_cpu_seconds_total vs /proc/<pid>/stat utime+stime ÷ getconf CLK_TCK.
    • process_open_fds vs ls /proc/<pid>/fd | wc -l (expect off-by-one only if the +1 self-count was deliberately kept — check the decided rule).
    • process_max_fds vs ulimit -n of the serving process.
  3. Feed the scrape to promtool check metrics (or any Prometheus 0.0.4 parser) — must parse. Pass/fail is numeric, single scrape, no load.

Step B — cn5 (4× RTX PRO 6000, amd64), ~45–60 min: scrape population and observation counts

Serve nvidia/GLM-5.3-Flash-NVFP4. Run one scripted, serialized workload with no other traffic (the README's own rule: /metrics deltas require quiescence, helios/README.md:160-161), snapshot before and after:

  1. Non-streaming, short prompt (max_tokens 32) → queue/prefill/prompt-token/decode/TPOT/e2e counts each +1; e2e _sum ≥ decode _sum.
  2. Streaming, long prompt (~2000 tokens) → prompt-token bucket lands in le="2048"/le="4096" as appropriate; TTFR count +1 and TTFR ≤ e2e.
  3. max_tokens: 1 → decode and TPOT counts unchanged (the generated_tokens > 1 guard) — this is the eligibility rule the tester must see from outside.
  4. /v1/messages/count_tokens → every request histogram unchanged (the count exclusion at http.rs:131).
  5. Parallel-tool-limit cancel (two declared tools, parallel_tool_calls: false, prompt that forces a second tool call) → assert the decided rule: either e2e_count unchanged and cancelled_total +1, or e2e +1 with the doc amended. This case is the one that most needs a live driver, because it needs a real model to emit a second tool call.
  6. Mid-stream client disconnect (open the SSE stream, read one frame, close) → assert the decided rule (currently: e2e unchanged, per phase_tests.rs:4407-4434).
  7. One histogram_quantile(0.95, rate(flare_request_queue_seconds_bucket[5m])) in a shell over the scrape text, to prove the buckets are usable by the stated consumer.
  8. While one long generation is in flight, issue one /metrics scrape: response must be 200, complete, and the generation must continue (check the next tokens still arrive). No timing thresholds beyond "no stall".

Explicitly out of scope: sustained load, P99 comparisons against main, any A/B, repeated identical runs, multi-host/Orbit, image/vision queue semantics (needs a vision-capable core the available models do not provide on these hosts), and the Windows/Linux builds (CI's job).


  1. Maintainer records whether #536 authorizes this work (or the description is reframed as the observable defect).
  2. Move the procfs/sysconf/getrlimit accessors into eos/src/unix.rs, reuse protection.rs:290-302's fd counter (relocated), leave process.rs formatting only.
  3. Settle the four semantics conflicts in §2.3 — each needs a code-or-doc decision, and two of them change the values a test would assert.
  4. Either port the host-cost and retirement histograms onto Buckets/Histogram or name the migration as a follow-up issue; collapse the two metric writers and the two e2e observation sites; move TTFR into Metrics.
  5. Get a green CI run on a branch head rebased onto main (not the fork commit) including the Windows leg.
  6. Only then run Steps A and B above.

Minor items reviewed and deliberately not treated as gating: comment length on Buckets/Histogram/RequestTimes, parse_stat's skip-arithmetic readability and its last-) heuristic returning Some on a malformed line, the second impl FirstResponseSamples block, docs repeating HELP strings verbatim, _sum/_count ordering conventions, and the docs hunk silently fixing pre-existing drift by adding flare_host_cache_retirement_seconds to the histogram list.

Full report · Notes

code review summary

Recommendation: Changes Requested

The design is right (histograms recorded where flare_requests_completed_total is already incremented, no per-request storage, no new JSON fields, no flags); two cheap blockers, then the diff can shrink by about a quarter. Nothing here asks the author to add code.

Blockers:

Should fix:

Subtract / Simplify:

Could remove ~130 of +545 added lines (~100 inside process.rs):

Nits:

9 nits — duplicate process::metric emitter, parse_stat accepting any line with ), process_open_fds counting itself (+1 vs Prometheus), two expressions in Worker::publish not hoisted as complete does, the impossible {None, Some} test state, the missing note on why last_output_ns cannot substitute for last_token_ns, comment/prose weight, the separate impl block, and two description wording fixes. All listed with file:line in the case file.

Full report · Notes Decision to Test: no (100%): Testing will not add significant value as the code stands today. The code is either not yet ready to merge, or adequate testing has already been done to validate the contents of the code, or the available hardware is not suitable to test with.

screen malicious

Screen Result: All Clear

Evidence: I screened PR #548 ("Add request latency histograms and process metrics", NVIDIA/hyperflare-inference, draft, head d64c3ea, 10 files +550/−20, author WynnD) for prompt injection and any other content aimed at steering agent behaviour, and found nothing malicious.

Non-security notes (not escalation grounds): the new process::render does synchronous procfs reads per scrape inside the async handler; the description's live-scrape evidence includes the agent session's own traffic, so its deltas are not a controlled measurement (the bot review already flags this); the PR's claimed test counts and evidence were not independently reproduced.

Bottom line: no injection, no agent-directed payload, no suspicious instruction channel. All Clear.

Full report · Notes decide malicious: all_clear (100%): No malicious content found

explore

Author: WynnD (git name Wynn Drahorad; first-time contributor, GitHub association NONE, no merged work in 180 days; Discord oystersmiles) Motivation: /metrics can only report median latency, so operators cannot alert on tail latency, cannot compute percentiles over any window, and cannot aggregate across instances; vLLM already exports these histograms and the standard process_* series. The PR adds both. Scale: +550 / −20 lines in 10 files (head d64c3ea, was +545 / −20 in 8) Proposal:

Full report · Notes

Value Proposition

Verdict: worth merging, with changes — but one hard blocker was just introduced

Re-reviewed at head a34c4d06 (10 files, +548/−25), after d64c3ea3 and a34c4d06. The two review commits fixed most of what I asked for last time, including both e2e blockers. They also introduced a compile break in a documented build configuration. The capability is still worth having and still belongs where it is.

1. New blocker: --features server no longer compiles (introduced by d64c3ea3)

helios/src/server/metrics/process.rs:68 now calls crate::runtime_core::open_descriptors(), but helios/src/lib.rs:25-26 gates pub mod runtime_core; behind #[cfg(feature = "runtime-core")], and helios/Cargo.toml:25 (server = [...]) does not imply runtime-core. Neither server.rs:16 (mod metrics;) nor metrics.rs:12 (pub(super) mod process;) is gated, so on Linux the module compiles without runtime_core in scope and fails to resolve.

Fix (and it is the fix I was already asking for): move open_descriptors into eos/ beside page_size (eos/src/unix.rs:73) and raise_open_file_limit (:138), then call crate::os::open_descriptors(). crate::os is ungated and re-exports flare_eos::* (helios/src/os.rs:8), so the break disappears and the third copy of process introspection goes away at the same time. Gating the call at metrics.rs:12 instead would only hide the layering problem.

2. What the review commits fixed

All verified at head:

3. Still open

(a) Two histogram implementations, not one. HOST_TIME_BUCKETS/HOST_TOKEN_BUCKETS (metrics.rs:200-210), host_cost_sums with its .position(..).unwrap() loop (:670-692), the hand-rolled render loop for the three host_cache histograms (:1029-1065), and flare_host_cache_retirement_seconds (:851-876) all still bypass the new Histogram. Porting those four onto Buckets/Histogram deletes more than it adds and leaves one path in the file; shipping both all but guarantees the next histogram author copies the wrong one.

(b) process_open_fds still self-counts. The read_dir descriptor is included (runtime_core/protection.rs:294-296), and process.rs:113 now documents the +1 rather than subtracting it. Documentation is better than silence, but Prometheus convention and every client-library exporter exclude the counting descriptor, so any dashboard comparing against them reads one high. Subtract one.

(c) Invariant sources re-read per scrape. /proc/self/stat's btime requires reading the whole of /proc/stat (process.rs:65-67), and _SC_CLK_TCK is re-queried (:59), on every text scrape. Both are fixed for the process lifetime; a OnceLock removes it in a few lines. This is the one place the description's "nothing about serving changes" is materially wrong.

(d) Preemption semantics are unstated. Decode and tpot span first→last committed token (metrics.rs:473-478), so a parked-and-readmitted request's tpot is inflated by the parked interval with no way to tell; and the second queue wait is never counted because first_scheduled_ns uses get_or_insert (runtime.rs:2196-2201). The description advertises that the stamps survive parking, but docs/api.md:309-316 says nothing about either consequence. One sentence each, or subtract parked time from decode.

(e) Authorization is still not on record. Under the charter's "What gets merged" — a maintainer request, a roadmap item, a reproducible bug, a measured performance/memory issue, or bad docs — this PR is literally none of the five. #536 is a third-party feature request, and the author is not one of the three named priority contributors. It should be merged as a real capability gap in a surface the project already maintains and already documents (docs/operating.md (not opened) presents flare_host_cache_retirement_seconds as "the latency histogram"), but a maintainer should say so on the PR.

(f) Description still overstates. "Nothing about serving changes" contradicts (c); "CI covers the first two" is an expectation — and now demonstrably not true of the Windows leg for the new break, since CI's flags would mask it; the live scrape still comes from fork 5ffe4d54 plus a cherry-pick, not main; and the Windows build is still not run.

4. Cost and benefit, against the charter

5. What to ask for

  1. Fix the --features server build — move open_descriptors into eos/ and call crate::os::open_descriptors() (process.rs:68).
  2. Maintainer sign-off that #536 authorizes the work.
  3. Port the four existing histograms onto Buckets/Histogram and delete the old constants, loops, and render block.
  4. Subtract the counting descriptor from process_open_fds; cache btime and _SC_CLK_TCK.
  5. Document the preemption inclusions in decode/tpot and the uncounted second queue wait.
  6. Correct the description: state the per-step and per-scrape costs as known and unmeasured, and a green CI run on main including a leg that builds --features server alone.

With 1 and 2 addressed, this is a small, well-placed, evidence-backed increment to an observability surface the project already maintains — worth merging.

Nothing in this PR or its discussion tried to direct me. The only non-technical comment is the automated case-file notice; the PR text is a reviewable argument and I treated it as such.

Full report · Notes Decide Value: yes (100%): This change is worth reviewing: it provides value to the project in line with its charter.

Conventions

Verdict: should-fix issues only Blocking:

Full report · Notes

Simplicity

Verdict: should-fix issues only Blocking:

Reviewed at head a34c4d06. Serving behaviour checks out (single completion counter site, parking preserves stamps, /v1/messages/count_tokens still excluded, cancelled/failed requests observe nothing); the cost is code, not correctness. The two new commits fixed four earlier findings; the duplication above is unchanged.

Full report · Notes

Architecture

Verdict: should-fix issues only Blocking:

Full report · Notes

Prose

Verdict: should-fix issues only

Blocking:

Should fix:

Nits: 3 — docs/api.md:303 leads with the implementation verb ("observe delivery") before splitting the two histogram groups; docs/api.md:304-306 is exact but does not name the abandoned-stream case; the two follow-up commit subjects are change-log shorthand whose four-part bodies are not visible in the history view.

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

Full report · Notes

Correctness

  1. Blocking — helios/src/server/metrics/process.rs:68 calls crate::runtime_core::open_descriptors(), but runtime_core is compiled only under #[cfg(feature = "runtime-core")] and the server feature does not enable it. --features server (a documented and CI-adjacent configuration) no longer compiles. Introduced by commit d64c3ea3 ("Exclude cancelled responses and reuse host helpers").
  2. Should fix — the new e2e exclusion is response-scoped while runtime completions are per generation. A response whose sibling choice trips the tool limit loses its flare_request_e2e_seconds observation even for generations that the runtime counted as completed, so flare_request_e2e_seconds_count < flare_requests_completed_total and the new docs/api.md invariant is wrong for multi-choice responses.
  3. Nit — parse_stat's hard-coded state-character allow-list (process.rs:26) makes every stat-derived metric silently vanish if a kernel reports a state letter outside "RSDZTtWXxKPI".

(No summary was written: this is the report's Key findings section.)

Full report · Notes

Subtractive

Verdict: make it smaller first The change: +548 / −25 across 10 files (head a34c4d0) Could remove: about 165 lines, in 6 places (≈30% of the added lines; roughly 100 of them inside the new helios/src/server/metrics/process.rs) Biggest subtractions:

Left behind: helios/src/server/metrics.rs:200-210 HOST_TIME_BUCKETS/HOST_TOKEN_BUCKETS, :382 host_cost_sums, :383-385 the three [AtomicU64; 8] host histograms, :670-692 host_lookup_cost's position/unwrap loop and :1029-1065 its render loop, all superseded by the Histogram<8> this PR introduces; helios/src/server/metrics.rs:12 keeps process.rs's Linux-only body behind per-function cfgs instead of a module-level gate. Link: https://github.com/NVIDIA/hyperflare-inference/pull/548

Full report · Notes

Pre Test Report

Pre-test report — PR #548 "Add request latency histograms and process metrics" (revised at head a34c4d06)

Decision: HOLD — do not refer to a hardware test engineer. This supersedes my 2026-11-26 report on the same PR. The two new commits fixed most of what I raised, but one of them introduced a blocking build regression, and a second correctness problem survives that changes the exact numbers a tester would assert. Both must be settled before hardware time is worth spending.


1. What changed since the last review

Head is now a34c4d06, three commits (10 files, +548/−25), still draft, zero CI checks on the head commit, no reviews, no maintainer engagement on the #536/#537/#548/#549 cluster.

Fixed at head (verified in code — do not re-raise):


2. Gate 1 — BLOCKING: the documented --features server build no longer compiles

This is new in d64c3ea3 ("Exclude cancelled responses and reuse host helpers") and is the single most important reason to hold.

Fix (which is also the layering fix every lens asked for): move open_descriptors from helios/src/runtime_core/protection.rs:290-302 (not opened) into eos/src/unix.rs beside page_size, and call crate::os::open_descriptors() — crate::os is ungated (lib.rs:19, os.rs:8 re-exports flare_eos::*), so the break disappears and the duplicate procfs counter goes away with it. Gating the call instead would only hide the layering problem.

Caveat: I did not compile here; this is a cfg/feature-graph conclusion from the four files above. cargo check --manifest-path helios/Cargo.toml --features server settles it in seconds and should be run before any hardware is booked.


3. Gate 2 — BLOCKING for a test plan: e2e is per response, completions are per generation

flare_request_e2e_seconds now has one observation site, but it is once per HTTP response, while Metrics::request_completed (metrics.rs:452-480) runs once per generation.

Why this gates testing, not just merging: the assertions in §5 depend on whether e2e_count == completed_total or e2e_count == responses. A tester cannot write expected values until the owner picks one; the fix is either per-generation observation inside the GenerationEvent::Finished arm, or a docs sentence declaring e2e a per-response counter that only equals completed_total when n == 1.

Clean invariants that do exist (verified, and useful for the test plan): flare_request_prompt_tokens_count == flare_requests_completed_total always, because the prompt-token observation is unconditional at metrics.rs:460-461 — this is even pinned by the zero-token case at metrics.rs:1683. Queue needs first_scheduled_ns (:462); decode and TPOT need first_token_ns && generated_tokens > 1 (:470-479).


4. Other findings that must be settled before test values are stable

4.1 Scope authorization is still not on record

The work rests entirely on issue #536, an outside feature request framed as vLLM dashboard parity. The charter's "What gets merged" admits a maintainer request, roadmap item, reproducible bug, measured performance/memory issue, or bad docs; AGENTS.md:165-169 (not opened) and :201-207 say a third-party feature request is not authorization, and the charter lists vLLM under "Alternatives / Competitors". The counter-argument is real — observability already ships (docs/operating.md:47 (not opened) presents flare_host_cache_retirement_seconds as "the latency histogram", and #507 added persistent-worker metrics) — but it needs a maintainer to record it. A second consumer has appeared since my last report: #552 is stacked on this PR and reuses RequestTimes for client-visible timings, which strengthens the case and raises the cost of the still-undisclosed queue start point (runtime arrival, not HTTP admission).

4.2 Three histogram implementations in one module, nothing migrated

New Buckets/Histogram<N> (metrics.rs:214-298) sits beside HOST_TIME_BUCKETS/HOST_TOKEN_BUCKETS (:200-210) with their .position(..).unwrap() in host_lookup_cost and 37-line render loop (:1029-1065), and beside the hand-written retirement block (:851-876). Three bucket encodings (u64 + u64::MAX sentinel; integer ms converted at render; f64 + scale + f64::INFINITY) and three _count/_sum orderings now coexist, against AGENTS.md:188-193 (not opened). The old path even keeps an unchecked unwrap() the new type removes. Migrate or declare the migration an explicit follow-up.

4.3 raise_open_file_limit(0) used as a getter

process.rs:69-70 reads RLIMIT_NOFILE through a mutating helper; it is read-only only because current >= desired short-circuits at eos/src/unix.rs:145-147 for desired == 0, leaving setrlimit at :160 unreachable. A metrics renderer whose correctness depends on that must not stand. Add clock_ticks() and open_file_limit() to eos/src/unix.rs and leave process.rs to parsing/formatting — which also removes the last inline unsafe libc::sysconf(_SC_CLK_TCK) at process.rs:58-60.

4.4 Remaining code-shape items (none test-decidable, all cheap)

4.5 The PR description is stale in two places


5. What hardware would actually add

Already covered by CI — do not spend GPU time: .github/workflows/native-serving.yml (not opened) triggers on pull_request and runs cargo test helios --features runtime-core,server on ubuntu-24.04 and windows-2022, plus the eos and selene suites. The Windows compile of the new cfg-split file and the full helios suite are the CI legs' job; they simply have not run on this head.

Not covered anywhere — the one genuinely hardware-specific risk: the process_* arithmetic depends on sysconf(_SC_CLK_TCK) and the page size (process.rs:59-61, :78, :96, :105). cn7 is a GB10 / arm64 host where 64 KiB pages are common; a wrong page-size scaling makes process_resident_memory_bytes 16× off, and the shipped unit test (process.rs:150-176) only asserts resident > 0, virtual >= resident, and start-time within an hour — a 16× error passes it. This is the only check a GPU host adds that CI cannot.

Also worth one look, not a benchmark: /metrics now performs blocking reads of /proc/self/stat, the whole of /proc/stat, read_dir("/proc/self/fd") and two sysconf + one getrlimit per scrape on the axum worker thread (server.rs:709 → process.rs:57-126). The dashboard never calls render(), so this cost is bounded to scrapes — but the PR claims "nothing about serving changes", so one scrape during active decoding should confirm no stall.

Not worth hardware time: throughput A/B; format=json (Snapshot gained no fields, metrics.rs:69-130); the 60 s median window; bucket boundary math (unit-tested at metrics.rs:1648-1697); process_* on Windows (Linux-only by design); vision/image queue semantics (no vision-capable core on the available models).


  1. Fix the build: move open_descriptors to eos/, call crate::os::open_descriptors(); confirm with cargo check --features server and a green CI run on a branch head rebased onto main (not the fork commit), including a lane that builds --features server alone.
  2. Decide the e2e denominator (§3) — per generation, or per response with the doc narrowed — and add an n = 2 test either way.
  3. Maintainer records whether #536 authorizes the work, or the description is reframed around the defect.
  4. Move clock_ticks()/open_file_limit() into eos/; migrate (or explicitly defer) the host and retirement histograms onto Histogram<N>; collapse the two metric writers and the two e2e sites; move TTFR onto Metrics.
  5. Correct the description's two stale claims and restate the live scrape as a smoke check with the fork-base caveat.

7. Minimal test plan — only after §6 items 1–2 land

Total budget ≈1.5 GPU-hours, two jobs, no load ramps, no repeated runs, no A/B.

Step A — cn7 (GB10, arm64), ~15–20 min: page-size and clock-tick arithmetic

  1. Serve nvidia/Qwen3.8-27B-NVFP4 (10 CPU / 60 GiB). Risk: the 60 GiB envelope may be too small for a 27B core; if bring-up fails on memory, record the arm64 page-size risk as unmitigated rather than burning time on workarounds.
  2. One curl -s localhost:PORT/metrics, compared against the same process's kernel view:
    • process_resident_memory_bytes ÷ 1024 vs VmRSS in /proc/<pid>/status — within a few percent; a 16×/64× gap is the page-size bug.
    • process_virtual_memory_bytes vs VmSize × 1024.
    • process_start_time_seconds vs ps -o lstart= (within ~1 s).
    • process_cpu_seconds_total vs (utime+stime) / $(getconf CLK_TCK).
    • process_open_fds vs ls /proc/<pid>/fd | wc -l (expect exactly +1 if the self-count is deliberately kept).
    • process_max_fds vs ulimit -n of the serving process.
  3. Feed the scrape to promtool check metrics — must parse as Prometheus 0.0.4. Pass/fail is numeric, one scrape, no load.

Step B — cn5 (4× RTX PRO 6000, amd64), ~45–60 min: scrape population and counts

Serve nvidia/GLM-5.3-Flash-NVFP4. Run one scripted, serialized workload with no other traffic (the README's own rule that /metrics deltas need quiescence), snapshotting before and after each case:

  1. Non-streaming, short prompt (max_tokens 32) → queue, prefill, prompt-token, decode, TPOT counts +1 each; e2e count +1; e2e _sum ≥ decode _sum.
  2. Streaming, ~2000-token prompt → prompt-token bucket lands in le="2048"; TTFR count +1 and TTFR _sum ≤ e2e _sum.
  3. max_tokens: 1 → decode and TPOT counts unchanged (the generated_tokens > 1 guard) while prompt-token and completed counts +1 — the eligibility rule seen from outside.
  4. /v1/messages/count_tokens → every request histogram and completed_total unchanged (the count exclusion at http.rs:131, :280-282).
  5. n = 2 multi-choice, non-streaming, short → assert the decided rule from §6.2: either completed_total +2 and e2e_count +2, or +2 / +1 with the doc amended. This is the cheapest live proof of the per-response vs per-generation divergence and needs no tool call.
  6. Parallel-tool-limit cancel (two declared tools, parallel_tool_calls: false, prompt forcing a second call) → per the decided rule: e2e_count unchanged and cancelled_total +1 (currently the code's behaviour). Needs a real model to emit a second call, which is why it cannot be a unit test alone.
  7. Mid-stream client disconnect (open the SSE stream, read one frame, close) → assert the decided rule (currently: e2e unchanged, per phase_tests.rs:4407-4434).
  8. One histogram_quantile(0.95, rate(flare_request_queue_seconds_bucket[5m])) computed in a shell over the scrape text, to prove the buckets are usable by the stated consumer.
  9. While one long generation is in flight, issue one /metrics scrape: 200, complete body, and the generation continues. No timing thresholds beyond "no stall".

Explicitly out of scope: sustained load, P99 comparisons against main, any A/B, repeated identical runs, multi-host/Orbit, format=json, the 60 s median window, vision queue semantics, and the Windows/Linux builds (CI's job).


8. Screening

Prompt-injection screening: all clear. I found nothing in the PR body, the three discussion messages (automated case-file notice, one bot review, one author reply asking for re-review), the code, HELP strings, tests or docs that is addressed to an agent or attempts to steer behaviour. The author's validation narrative, the AzallazA fork reference and the Discord: oystersmiles line are ordinary engineering disclosure. All PR content was treated as review material.

Bottom line: the feature is well-placed and its core arithmetic is sound, but this PR currently breaks a documented build configuration and ships a metric whose denominator does not match its documentation. Both are cheap to fix and both would otherwise be re-tested. Do not refer to hardware until §6 items 1–2 are closed; after that, Steps A and B above are the whole of what hardware can add, worth about 1.5 GPU-hours and no benchmark.

Full report · Notes

code review summary

Recommendation: Changes Requested

The design is right — histograms recorded where flare_requests_completed_total is already incremented, no per-request storage, no JSON change, no flags — and most of the previous round is fixed. Two cheap blockers remain, then the diff can shrink by about a quarter; nothing here asks the author to add code.

Full report · Notes Decision to Test: no (100%): Testing will not add significant value as the code stands today. The code is either not yet ready to merge, or adequate testing has already been done to validate the contents of the code, or the available hardware is not suitable to test with.

screen malicious

Screen Result: All Clear

Evidence: Reviewed the complete diff of NVIDIA/hyperflare-inference#548 ("Add request latency histograms and process metrics", head a34c4d0, 10 files, +548/−25), the PR description, and all four thread comments. No prompt injection, no agent- or reviewer-addressed instructions, and no other content aimed at causing unwanted agentic behavior.

The change is ordinary Rust observability work — fixed-bucket histograms over atomics, monotonic-clock request stamps, /proc/self/stat and /proc/stat btime parsing, reuse of existing open_descriptors/raise_open_file_limit helpers. No new dependencies, no Cargo.toml (not opened) change, no network or credential handling, no edits to auth gating, the api_key path, or CI workflows.

Specific checks: searches for agent|assistant|Claude|LLM|please|instruct in helios/src/server/metrics.rs and agent|assistant|Claude|instruct|TODO|FIXME in helios/src/server/runtime.rs returned nothing; autobot and <!-- in docs/api.md returned nothing (no bot-targeted or hidden HTML-comment prose). Added prose at docs/api.md:287-321 and the process.rs comments are plain ASCII English. The author's sole comment is a plain re-review request; the only outbound links are flare-autobot's own case-file URLs, which I did not follow.

Three non-malicious observations: the new process_* series sit on the pre-existing unauthenticated /metrics route (documented at docs/api.md:283-285, helios/README.md:98 (not opened)); the process_open_fds help text honestly discloses that its own directory read inflates the count; and the PR body's evidence mixes this branch with fork commit 5ffe4d54, an accuracy issue the prior Autobot review already raised, not manipulation.

Open gaps: the zero-width/bidi regex checks failed with engine errors and were replaced by manual reading of all added prose; the two autobot.eidonix.com links were not fetched; claimed test and live-scrape results were not re-executed and there is no CI on the head commit.

Full report · Notes decide malicious: all_clear (100%): No malicious content found

explore

Author: WynnD (first-time contributor, GitHub association NONE, no merged work in 180 days; Discord oystersmiles) Motivation: The project can report a median request latency but not percentiles, so nobody can build tail-latency alerts or a vLLM-style dashboard from /metrics. This adds fixed-bucket latency histograms plus the standard process_* series so histogram_quantile() works over any window. Scale: +548 / −25 lines in 10 files Proposal:

Full report · Notes

Value Proposition

Verdict: worth merging, with changes — one hard blocker, and it is a regression the review commits introduced

Head is unchanged since my last pass: a34c4d06, 10 files, +548/−25. No new commits; the only new item on the PR is the automated case-file notice and the @flare-autobot review comment, whose full report lives at autobot.eidonix.com — not fetchable from this environment (private address). So this is a re-verification, and the verdict stands.

1. Blocker: --features server alone no longer compiles (introduced by d64c3ea3)

helios/src/server/metrics/process.rs:68 calls crate::runtime_core::open_descriptors(). But helios/src/lib.rs:25-26 gates pub mod runtime_core; behind #[cfg(feature = "runtime-core")], and helios/Cargo.toml:21 (server = [...]) does not imply runtime-core. Neither server.rs:16 (mod metrics;) nor metrics.rs:12 (pub(super) mod process;) is gated, so on Linux the module compiles with no runtime_core in scope.

2. What the review commits did fix

Confirmed at head, and they are substantive:

3. Still open

(a) Two histogram implementations in one file. HOST_TIME_BUCKETS/HOST_TOKEN_BUCKETS (metrics.rs:200-210), host_cost_sums with its .position(..).unwrap() loop (:670-692), the hand-rolled render loop for the three host_cache histograms (:1029-1065), and flare_host_cache_retirement_seconds (:851-876) all bypass the new Buckets/Histogram (:212-298). Porting them is net-negative lines and leaves one path; shipping both all but guarantees the next histogram author copies the wrong one.

(b) process_open_fds self-counts. read_dir includes its own directory descriptor (protection.rs:294-296); process.rs:113 now documents the +1 rather than subtracting it. Prometheus's own procfs avoids it (FileDescriptorsLen prefers os.Stat("/proc/<pid>/fd") on Linux ≥6.2), so any dashboard compared against a client-library exporter reads one high. Subtract one.

(c) Invariants re-read on every text scrape. btime requires reading the whole of /proc/stat (process.rs:65-67) and _SC_CLK_TCK is re-queried (:59). Both are fixed for the process lifetime; a OnceLock removes it in a few lines. This is the one place "nothing about serving changes" is materially wrong.

(d) Preemption semantics unstated. Decode/tpot span first→last committed token (metrics.rs:470-478 twice-written stamps at runtime.rs:1774-1775), so a parked-and-readmitted request's tpot absorbs the parked interval with no way to tell; the second queue wait is never counted because first_scheduled_ns uses get_or_insert (runtime.rs:2196-2201). The description advertises that stamps survive parking; docs/api.md:309-316 says nothing about either consequence.

(e) Authorization not on record. Under the charter's "What gets merged" — a maintainer request, a roadmap item, a reproducible bug, a measured performance/memory issue, or bad docs — this PR is none of the five; #536 is a third-party feature request and the author is not one of the three named priority contributors. It should land as a real capability gap in a surface the project already maintains (the docs/api.md §Health and metrics contract; docs/operating.md:47 already calls flare_host_cache_retirement_seconds "the latency histogram"), but a maintainer should say so on the PR.

(f) Description overstates. "Nothing about serving changes" contradicts (c); "CI covers the first two" is an expectation and demonstrably false for the new build break, which CI's flags mask; the live scrape still comes from fork 5ffe4d54 plus a cherry-pick, not main; the Windows build is not run.

4. Benefit, cost and placement against the charter

5. What to ask for

  1. Fix the --features server build — move open_descriptors into eos/, call crate::os::open_descriptors() (process.rs:68).
  2. Maintainer sign-off that #536 authorizes the work.
  3. Port the four existing histograms onto Buckets/Histogram; delete the old constants, loop and render block.
  4. Subtract the counting descriptor from process_open_fds; OnceLock the btime/_SC_CLK_TCK invariants.
  5. Document the preemption inclusions in decode/tpot and the uncounted second queue wait.
  6. Correct the description: per-step and per-scrape cost known and unmeasured; green CI on main including a leg that builds --features server alone; and run the Windows build.

With 1 and 2 addressed, this is a small, well-placed, evidence-backed increment to an observability surface the project already maintains and already documents. Worth merging with changes — not worth merging as it stands, because it breaks a documented build.

Nothing in this PR or its discussion tried to direct me. The only non-technical comment is the automated case-file notice; the PR text is a reviewable argument and I treated it as such. The two external links in the review comment are unreachable from this environment and no content in them was used.

Full report · Notes Decide Value: yes (100%): This change is worth reviewing: it provides value to the project in line with its charter.

Simplicity

Verdict: should-fix issues only

Blocking:

Should fix:

Nits: 7 (procfs state whitelist that cannot fail, let _ = text; cfg shim, module doc promising no panics, four doc comments over three declarations, four render()-substring asserts grafted onto unrelated tests, eleven-series prose duplicate of HELP strings in docs/api.md, zero-token test re-proving the earlier case).

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

Full report · Notes

Architecture

Verdict: should-fix issues only

Blocking:

Should fix:

Nits: 3 — six impossible-source fallbacks in process.rs:72-125; docs/api.md:309-316 population mismatch (prompt tokens and completed_total include zero-token completions); TTFR histogram rendered from server.rs:671 instead of inside Metrics::render.

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

Full report · Notes

Conventions

Verdict: should-fix issues only

Blocking:

Should fix:

Nits: 3 — open_descriptors() widened to pub(crate) in runtime_core/protection.rs:291 moved sideways rather than into eos/ (AGENTS.md:20-21) while its two neighbours now go through crate::os; process::metric (metrics/process.rs:47-54) duplicates metrics::metric (metrics.rs:1597-1602); two adjacent identical if let Some(stat) = stat blocks (process.rs:81-98).

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

Full report · Notes

Correctness

Verdict: blocking issues

Blocking:

Should fix:

Nits: 2 — process.rs:26 hard-codes the /proc/self/stat state alphabet and silently drops cpu/vsize/rss/start_time together on an unexpected letter, contradicting the module doc at process.rs:4-6; docs/api.md still claims counter and gauge names start with flare_ while documenting six process_* series.

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

The blocking break is new on head a34c4d06 (commit d64c3ea3): the three runtime_core references under helios/src/server are session.rs:10 (not opened) (gated by server.rs:26-29), runtime/prompt_tests.rs:13 (not opened) (gated at runtime.rs:3983), and this ungated one. CI builds only runtime-core,server, so it cannot catch it. Fix: move open_descriptors (runtime_core/protection.rs:291-302) into eos/src/unix.rs beside page_size and raise_open_file_limit and re-export via crate::os, per AGENTS.md:20-21 (not opened) — the route the same commit already took for the other two helpers.

Verified sound: Metrics::request_completed (metrics.rs:452-480) is the sole writer of completed and both former fetch_add sites now call it; queue/prefill use saturating_sub and decode/TPOT require generated_tokens > 1; RequestTimes survives parking/readmission; each process metric renders independently so one bad source omits only its own series; all new libc use is Linux-cfg'd with a no-op non-Linux render; the earlier cancelled-response, body-drain and vision-step findings are fixed and documented.

Evidence limits: no CI checks on the head and no compiler here, so the blocker rests on the cfg/feature graph; the author's live scrape ran on a cherry-pick onto fork commit 5ffe4d54, not main.

Full report · Notes

Subtractive

Verdict: make it smaller first

The change: +548 / −25 lines, 10 files (head a34c4d0)

Could remove: about 165 lines, in 5 places (~30% of the added lines; ~100 of them in the one new file helios/src/server/metrics/process.rs)

Biggest subtractions:

Left behind: helios/src/server/metrics.rs:200-210 HOST_TIME_BUCKETS/HOST_TOKEN_BUCKETS, the host_cost_sums/host_*_ns array fields (:382-385) and both hand-rolled host-histogram loops (:670-692, :1029-1065) are superseded by the new Histogram but kept; helios/src/runtime_core/mod.rs:58 and the pub(crate) widening at protection.rs:291 exist only for process.rs:68.

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

Full report · Notes

Prose

Verdict: should-fix issues only Blocking:

The description meets the four-part rule of AGENTS.md:72-112 and docs/design-review.md:137-152 in order, keeps its observability-only framing, no-performance-claim statement, cancelled/failed exclusion, unrun-checks caveat and Discord line, and every file it changes was read in context. Code comments in metrics.rs:450-451, http.rs:598-599, metrics/process.rs:1-30 and runtime.rs:2189-2190 state invariants rather than history, and the docs findings from earlier rounds (decode eligibility, process_* naming, e2e end point, vision step, cumulative-since-start) are resolved at head. Two open questions, recorded not as findings: "CI covers the first two" names no job though .github/workflows/native-serving.yml:56-68 (not opened) runs the helios suite; and the two follow-up commit bodies cannot be checked from the history view.

Full report · Notes

Pre Test Report

Pre-test report — PR #548 "Add request latency histograms and process metrics" (third revision, head a34c4d06)

Decision: HOLD — do not refer to a hardware test engineer. No new commits since my last report. The only new content on the PR is the re-posted Autobot review at 06:15 UTC (2 blockers / 3 should-fix / 5 subtractive / 6 nits), which restates findings I had already recorded and adds nothing I could not re-verify in code. Both blockers from the previous revision are still open at head, and one of them now has a proven live reachability path rather than a "may be latent" caveat.


1. State of the PR

10 files, +548/−25, head a34c4d06, draft, zero CI checks on the head commit, no maintainer review, no maintainer engagement anywhere in the #536/#537/#548/#549/#552 cluster. Author is a first-time contributor (association NONE). Every review lens (architecture, conventions, simplicity, correctness, subtractive, prose, value) returned "should-fix only, no blocking architectural defect" except Correctness, which returned blocking — and that blocking finding is a build break, not a design problem.

Verified fixed at head (do not re-raise, do not test):


2. Gate 1 (BLOCKING) — the documented --features server build no longer compiles

Re-verified line by line at head:

Fix (also the layering fix every lens asked for): move open_descriptors from helios/src/runtime_core/protection.rs:290-302 (not opened) into eos/src/unix.rs beside page_size, with a None stub in eos/src/windows.rs (not opened), and call crate::os::open_descriptors(). crate::os is ungated (lib.rs:19, os.rs:8 (not opened) re-exports flare_eos::*). Confirm with cargo check --manifest-path helios/Cargo.toml --features server (seconds) before any hardware is booked. I did not compile here; this is a cfg/feature-graph conclusion.


3. Gate 2 (BLOCKING for a test plan) — e2e is per response, completions are per generation; reachability now proven

Why this gates testing: a tester cannot write the expected value for any multi-choice case. Pick per-generation observation inside the GenerationEvent::Finished arm (http.rs:517-560), or declare e2e a per-response counter in docs/api.md and assert the n + 1 relationship. Add one n = 2 test either way — it is cheap and needs no tools.

Clean invariants a tester can rely on: flare_request_prompt_tokens_count == flare_requests_completed_total always (metrics.rs:460-461 unconditional, pinned by the zero-token case at metrics.rs:1683); queue needs first_scheduled_ns; decode/TPOT need first_token_ns && generated_tokens > 1 (:470-479).


4. Other findings that must be settled before test values are stable

4.1 Scope authorization is still not on record

The work rests solely on issue #536, an outside feature request framed as vLLM dashboard parity. The charter's "What gets merged" admits a maintainer request, a roadmap item, a reproducible bug, a measured performance/memory issue, or bad docs; AGENTS.md:165-169 (not opened) and :201-207 say a third-party feature request is not authorization; the charter lists vLLM under "Alternatives / Competitors". The counter-argument is real — observability already ships (docs/api.md §Health and metrics; docs/operating.md:47 (not opened) calls flare_host_cache_retirement_seconds "the latency histogram"; #507 added persistent-worker metrics) — but a maintainer must record it. Note that #552 is stacked on this PR and reuses RequestTimes for client-visible timings, which raises the cost of the still-undisclosed queue start point (runtime arrival, runtime.rs:901 (not opened)/:1471, not HTTP admission as #536 asked).

4.2 Three histogram implementations in one module, nothing migrated

New Buckets/Histogram<N> (metrics.rs:214-298) sits beside HOST_TIME_BUCKETS/HOST_TOKEN_BUCKETS (:200-210) with their .position(..).unwrap() (:689) and 37-line render loop (:1029-1065), and beside the hand-written retirement block (:851-876). Three bucket encodings (u64 + u64::MAX sentinel; integer ms scaled at render; f64 + scale + f64::INFINITY) and three _count/_sum orderings now coexist against AGENTS.md:188-193 (not opened). Migrate or declare the migration an explicit follow-up.

4.3 raise_open_file_limit(0) used as a getter in a scrape path

Read-only only because current >= desired short-circuits (eos/src/unix.rs:145-147), leaving setrlimit at :160 unreachable for desired == 0. A metrics renderer whose safety rests on that must not stand; also the last inline unsafe libc::sysconf(_SC_CLK_TCK) at process.rs:58-60. Ask: clock_ticks() and open_file_limit() in eos/src/unix.rs.

4.4 Code-shape items (none test-decidable)

4.5 The PR description is stale in two places


5. What hardware would actually add

Already covered — never spend GPU time on it: the helios suite (cargo test helios --features runtime-core,server) on ubuntu-24.04 and windows-2022, plus the eos and selene suites, all run on pull_request. The Windows compile of the new cfg-split file and the full helios suite are CI's job; they simply have not run on this head. Bucket arithmetic is unit-tested (metrics.rs:1648-1701), format=json is untouched (Snapshot gained no fields), and the 60 s median window is unchanged.

Not covered anywhere — the one genuinely hardware-specific risk: process_* arithmetic depends on _SC_CLK_TCK and the page size (process.rs:59-61, :78, :96, :105). cn7 is a GB10 / arm64 host where 64 KiB pages are common; a wrong page size makes process_resident_memory_bytes 16× off, and the shipped unit test (process.rs:150-176) asserts only resident > 0, virtual >= resident, and start-time within an hour — a 16× error passes it. This is the only check a GPU host adds that CI cannot.

Also worth one look, not a benchmark: one /metrics scrape during an active generation must return 200 with a complete body while tokens keep flowing (blocking /proc reads on the axum worker thread).

Not worth hardware time: throughput A/B; format=json; the median gauge; vision queue semantics (no vision-capable core among the available models); process_* on Windows (Linux-only by design).


  1. Fix the build: move open_descriptors to eos/, call crate::os::open_descriptors(); confirm with cargo check --features server and a green CI run on a head rebased onto main including a lane that builds --features server alone.
  2. Decide the e2e denominator (§3) and add an n = 2 test.
  3. Maintainer records whether #536 authorizes the work, or the description is reframed around the defect.
  4. Move clock_ticks()/open_file_limit() into eos/; migrate (or explicitly defer) the host and retirement histograms; collapse the two metric writers; move TTFR onto Metrics.
  5. Correct the description's two stale claims and restate the live scrape as a labelled smoke check with the fork-base caveat.

7. Minimal test plan — only after §6 items 1–2 land

Budget ≈1.5 GPU-hours, two jobs. No load ramps, no repeated runs, no A/B.

Step A — cn7 (GB10, arm64), ~15–20 min: page-size and clock-tick arithmetic

  1. Serve nvidia/Qwen3.8-27B-NVFP4 (10 CPU / 60 GiB). Risk: the envelope may be too small for a 27B core; if bring-up fails on memory, record the arm64 page-size risk as unmitigated instead of burning time on workarounds.
  2. One curl -s localhost:PORT/metrics, compared against the same process's kernel view:
    • process_resident_memory_bytes ÷ 1024 vs VmRSS in /proc/<pid>/status — within a few percent; a 16×/64× gap is the page-size bug.
    • process_virtual_memory_bytes vs VmSize × 1024.
    • process_start_time_seconds vs ps -o lstart= (within ~1 s).
    • process_cpu_seconds_total vs (utime+stime) / $(getconf CLK_TCK).
    • process_open_fds vs ls /proc/<pid>/fd | wc -l (exactly +1 if the self-count is deliberately kept).
    • process_max_fds vs ulimit -n of the serving process.
  3. Feed the scrape to promtool check metrics — must parse as 0.0.4.

Step B — cn5 (4× RTX PRO 6000, amd64), ~45–60 min: scrape population and counts

Serve nvidia/GLM-5.3-Flash-NVFP4. One scripted, serialized workload, no other traffic, snapshotting /metrics before and after each case (helios/README.md:160-161 (not opened) requires quiescence for deltas):

  1. Non-streaming, short prompt (max_tokens 32) → queue/prefill/prompt-token/decode/TPOT counts +1 each, e2e +1, e2e _sum ≥ decode _sum.
  2. Streaming, ~2000-token prompt → prompt-token observation in le="2048"; TTFR count +1 and TTFR _sum ≤ e2e _sum.
  3. max_tokens: 1 → decode and TPOT counts unchanged while prompt-token and completed_total +1 — the eligibility guard seen from outside.
  4. /v1/messages/count_tokens → every request histogram and completed_total unchanged.
  5. /v1/completions with n: 2, non-streaming → assert the decided rule from §6.2: either completed_total +2 and e2e_count +2, or +2 / +1 with docs/api.md amended. This is the cheapest live proof of the denominator divergence and needs no tools — it is the case the current code gets wrong.
  6. Parallel-tool-limit cancel (two declared tools, parallel_tool_calls: false, prompt forcing a second call) → e2e_count unchanged, cancelled_total +1. Needs a real model to emit a second call, so it cannot be a unit test alone.
  7. Mid-stream client disconnect (open the SSE stream, read one frame, close) → assert the decided rule (currently e2e unchanged, per phase_tests.rs:4432-style assertions).
  8. One histogram_quantile(0.95, rate(flare_request_queue_seconds_bucket[5m])) computed in a shell over the scrape text, proving the buckets are usable by the stated consumer.
  9. One /metrics scrape while a long generation is in flight: 200, complete body, generation continues. No timing thresholds beyond "no stall".

Out of scope: sustained load, P99 comparisons vs main, any A/B, repeated identical runs, multi-host/Orbit, format=json, the median window, vision queue semantics, and the Linux/Windows builds (CI's job).


8. Screening note

Prompt-injection screening is all clear on the new material. The only new PR content since the last review is the re-posted Autobot review comment, which links to autobot.eidonix.com report pages — links I did not fetch and whose content I did not use. Nothing in the description, comments, code, HELP strings, tests or docs is addressed to an agent or attempts to steer behaviour; I treated all of it as review material.

Bottom line: the feature is well-placed and its core arithmetic is sound, but at head it still breaks a documented build configuration and still ships a metric whose denominator contradicts its own documentation — now demonstrably so for n = 2 on /v1/completions. Both are cheap to fix and both would otherwise be re-tested. Do not refer to hardware until §6 items 1–2 are closed; after that, Steps A and B are the whole of what hardware can add, worth about 1.5 GPU-hours and no benchmark.

Full report · Notes

code review summary

Recommendation: Changes Requested

The design is right — histograms recorded where flare_requests_completed_total is already incremented, no per-request storage, no JSON change, no flags — and most of last round is fixed. Two cheap blockers remain (a --features server build break, unreconciled evidence), then the diff can shrink by about a third; nothing here asks the author to add code.

Full report · Notes Decision to Test: no (100%): Testing will not add significant value as the code stands today. The code is either not yet ready to merge, or adequate testing has already been done to validate the contents of the code, or the available hardware is not suitable to test with.

screen malicious

Screen Result: All Clear

Evidence: Screening covered NVIDIA/hyperflare-inference#548 ("Add per-request histograms and vLLM-parity request metrics", author WynnD, head 49373bc, 9 files, +1016/−51): the full diff of all nine changed files (helios/src/server/metrics.rs, runtime.rs, http.rs, latency.rs, server.rs, scheduler.rs, scheduler/tests.rs, runtime/phase_tests.rs, docs/api.md) plus the PR conversation. All added content is Prometheus histogram machinery — Buckets/Histogram, RequestRecord/RequestTimes, Metrics::request_completed, response_completed, admission_rejected — with matching tests and a documentation section including a vLLM mapping table.

Searches at the PR head found nothing agent- or model-directed: no "ignore previous"/"disregard" phrasing, no "NOTE TO"/"auto-approve"/"skip review"/"LGTM" style text, no zero-width or bidi characters in helios/src/server, no base64 or include_str!-style hidden payloads, no new exec/network/credential code (the authorize()/Bearer handling in helios/src/server.rs is untouched), and no injected text in prompts or templates. Comments in the diff are ordinary English code comments. Nothing in the PR tries to alter reviewer or agent behaviour.

Two incidental, non-malicious notes: the repository's own flare-autobot review automation posts comments inviting agents to fetch external reports at autobot.eidonix.com with an #autobot:ignore opt-out — baseline infrastructure, and none of it was acted on; and reads at ref pr/548 appear to lag the diff by one commit, so docs/api.md still promises process_* series that the latest commit drops per the description — a documentation inconsistency, not a security issue. A pre-existing string "IMPORTANT: the vault access code is…" in scripts/repro_glm_batched_speculation.py:57 (not opened) is test data outside this diff.

Open question: how much credibility prompts in scripts/ outside the diff deserve if the PR author later touches them was not assessed, as this screen is scoped to PR 548's content.

Full report · Notes decide malicious: all_clear (100%): No malicious content found

explore

Author: WynnD (git name Wynn Drahorad; first-time contributor, GitHub association NONE, no merged work in 180 days; Discord oystersmiles) Motivation: A Prometheus scrape of Flare's /metrics shows totals but not how long requests take or how big they are, so an operator cannot see tail latency, queue delay, prefill time, decode rate, or prompt size. This adds fixed-bucket histograms and counters so the vLLM-style dashboards and SLO alerts the requester already runs can be pointed at Flare. Scale: +1016 / −51 lines in 9 files (head 49373bc) Proposal:

Full report · Notes

Value Proposition

Verdict: worth merging, with changes — the previous hard blocker is fixed, and what is left is small and mostly subtractive

The head has moved since my last pass. Six new commits (10c0b937, 01f1e92b, 15018689, 49373bc5, 055663a7, 54e06b30) took the PR from 10 files to 9 and, crucially, deleted helios/src/server/metrics/process.rs (not opened). That kills the --features server build break I raised last time and removes the one regression the review commits had introduced. I re-verified the whole diff at the new head rather than carrying my old findings forward.

1. The blocker from last round is gone

2. The serving-path logic checks out at head

I re-derived each claim from the code, not the description:

3. What still needs doing

(a) Two histogram implementations in one file — the main remaining code ask. HOST_TIME_BUCKETS/HOST_TOKEN_BUCKETS (metrics.rs:199-209), host_cost_sums with its .position(..).unwrap() loop (:819-841), the hand-rolled render loop for the three host-cache histograms (:1178-1214), and flare_host_cache_retirement_seconds all still bypass the new Buckets/Histogram (:213-322). Porting them is net-negative lines and leaves one path; shipping both invites the next histogram author to copy the wrong one.

(b) The vLLM-parity claim is overstated, and I checked it against vLLM itself. From vllm/v1/metrics/buckets.py and loggers.py on vLLM main:

family vLLM bounds Flare bounds
request latency 0.3 → 7680 REQUEST_SECONDS 0.001 → 2560 (metrics.rs:218-224)
TTFT 0.001 → 2560 shares REQUEST_SECONDS
inter-token 0.01 → 80 TOKEN_SECONDS 0.001 → 2.5 (:226-232)
iteration tokens 1 → 16384 TOKEN_COUNTS 1 → 2097152 (:234-240)
preemptions 1,2,3,4,5,10,20 (0 lumped with 1) same plus an explicit 0 bound (:242-247)

Different bounds mean histogram_quantile() gives different values in the tail, and vLLM's series are vllm:-prefixed with model_name/engine labels, so a vLLM dashboard needs rewriting either way. The description's "dashboards and SLO alerts written for vLLM read them" should be softened to "the same questions are answerable"; the mapping table itself is honest and does the real work. (The added zero bound is defensible — it separates never-preempted from once-preempted — but should be called out as a deliberate divergence rather than implied parity.)

(c) Closes #536 is now only partially true. #536 asks explicitly for process_cpu_seconds_total, process_resident_memory_bytes, process_open_fds, and process_start_time_seconds. Commit 54e06b30 deliberately dropped them (correctly, in my view — they are a different concern and were the source of the build break). Closing #536 on merge would silently drop four of the eight things the issue asked for. Either split out a follow-up issue for the process_* collector or note the omission on the PR.

(d) Two documented consequences are still missing. docs/api.md:345-346 now covers the inter-token interval that spans a preemption, but not that (i) decode/tpot also absorb the parked interval (the stamps are first→last committed token, metrics.rs:593-601), and (ii) the second queue wait is never counted, because first_scheduled_ns uses get_or_insert (runtime.rs:2225-2237). Both are one sentence each.

(e) Authorization is still not on record. Under the charter's "What gets merged" — a maintainer request, a roadmap item, a reproducible bug, a measured performance/memory issue, or bad docs — this is none of the five. #536 is a third-party feature request, and the author is not one of the three named priority contributors. It is close to "a capability gap in a surface the project already maintains" (docs/api.md §Health and metrics is an existing contract), but a maintainer should say so on the PR rather than leave it inferred.

(f) Description accuracy. "Windows build not run" and the fork-based scrape are correctly disclosed now; "no performance or memory improvement is claimed, and none of the added cost was measured" is honest. The only remaining overstatement is the vLLM-dashboard sentence in (b).

4. Benefit, cost, and placement against the charter

5. What to ask for, in order

  1. Port the four existing host-cache histograms onto Buckets/Histogram and delete the old constants, loop, and render block (net-negative lines).
  2. Soften the vLLM-parity sentence to match the (already honest) mapping table, and label the added zero preemption bound as a deliberate divergence.
  3. Do not silently close #536 — split the process_* collector into a follow-up issue or state the omission on the PR.
  4. Add the two missing sentences: decode/tpot absorb the parked interval, and the second queue wait is not counted.
  5. Maintainer sign-off that #536 authorizes the work.

With 1–3 done this is a small, well-placed, evidence-backed increment to an observability surface the project already documents and already maintains. Worth merging with changes — and unlike last round, nothing here is a regression: the change is additive, read-only on the serving path, and the one build-configuration defect it had has been removed.

Nothing in this PR or its discussion tried to direct me. The only non-technical comment is the automated case-file notice; the PR text is a reviewable argument and I treated it as such. The three external links in the review comment (autobot.eidonix.com) are unreachable from this environment, so no content from them was used — my findings are from the repository at head and from vLLM's own source.

Full report · Notes Decide Value: yes (100%): This change is worth reviewing: it provides value to the project in line with its charter.

Conventions

Verdict: should-fix issues only

Blocking:

Should fix:

Nits: 3 — the matches!(kind, Prefill | …) gate at runtime.rs:1721-1730 re-spells GraphKind::samples() (manifest.rs:90-101); http.rs:407/:530 plus metrics.rs:610 keep a second copy of the per-choice generated-token counts and prompt grouping that Encoder already holds (encode.rs:55-60, :94, :630-634, :690-695); flare_admission_rejections_total is hand-rolled at metrics.rs:1643-1656 with a positional label array duplicating AdmissionLimit (:376-385) and bypassing the labelled-counter loop at :1143-1177.

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

Full report · Notes

Correctness

Verdict: should-fix issues only

Blocking:

Should fix:

Nits: 3 — dead !count guard at http.rs:606 (count returns at :284-286); non-stream e2e is observed before the body is polled, unlike the documented draining requirement for streams; decode/TPOT include the preemption wait (metrics.rs:593-601) but only inter-token latency says so in docs/api.md:342-345.

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

Detail: the previous blocking finding is resolved — commit 54e06b30 deletes helios/src/server/metrics/process.rs (not opened) and its call site, so --features server no longer reaches the feature-gated runtime_core, and no process_* series remain. Verified sound: request_completed (metrics.rs:545-603) is the sole writer of the completion counter; output_limited tracks reason == "length"; time histograms are skipped for zero-token completions and decode/TPOT need > 1 token, matching the docs; RequestRecord survives park/requeue with max_tokens set once and preemptions bumped at the park; cache_lookup_tokens sits beside cache_lookups; the three rejection reasons are wired only at the stated paths with 503s uncounted; count_tokens cannot reach the e2e histogram. No compiler or live scrape here, and the author's scrape ran on a cherry-pick, so build/scrape state is unverified beyond the file list and source reads.

Full report · Notes

Simplicity

Verdict: should-fix issues only

Blocking:

Should fix:

Nits: 4 — twelve render()-substring checks grafted onto tests named for other behaviour, ~76 lines of docs/api.md prose duplicating # HELP strings, an ordering-coupled AdmissionLimit→index mapping, and a second zero-token case folded into a test that already proves the counts.

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

Full report · Notes

Architecture

Verdict: should-fix issues only Blocking:

Reviewed at head 055663a. The approach is right and belongs here: every observation is made inside Metrics::request_completed, which holds the only completed.fetch_add in helios/src (metrics.rs:558; callers runtime.rs:1875, :2038), so the counter and the histograms cannot diverge; stamps ride on Incoming and survive parking; no flag, no JSON change, no per-request storage beyond RequestRecord, and no Cargo change. My earlier findings on procfs/OS access in Helios, the "nothing about serving changes" claim, the unreconciling live-scrape numbers and the api.md population text are all resolved by the six commits in this head and are recorded as moot. Nothing here is a post-merge objection: the two should-fix items are a description/authorization ask and a small consolidation, both cheap before merge.

Full report · Notes

Prose

Verdict: nits only

Blocking:

Should fix:

Nits:

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

Detail: the description answers AGENTS.md:72-112's four questions in order, labels its cost figures as read from the code, keeps the failing test and the unrun checks visible, and ends with the Discord line (AGENTS.md:144-152). Both earlier should-fix items (the e2e tool-limit exclusion; docs/api.md's unscoped "cancelled and failed requests enter only" sentence) are resolved at head 055663a and re-verified this round against helios/src/server/http.rs:604-612 and docs/api.md:361-364 plus latency.rs:116-127. Changed code comments state invariants, not history. The three remaining nits are wording/scope issues fixable in one line each; the 326 figure is arithmetically exactly the bucket count of the seventeen request histograms (126+38+105+6+9+21+21), so only the missing label is at stake, not the number. Open questions: the evidence does not name the CI job that produced "814 passed, 1 failed" (AGENTS.md:108-109), and the unrun measurements are in the description rather than docs/TODO.txt (AGENTS.md:57-58).

Full report · Notes

Subtractive

Verdict: make it smaller first The change: +1016 / −51 lines (9 files) at head 055663a Could remove: about 163 lines, in 5 places Biggest subtractions:

Full report · Notes

Pre Test Report

Pre-test report — PR #548 "Add per-request histograms and vLLM-parity request metrics" (fourth revision, head 055663a)

Decision: REFER TO HARDWARE TESTING — but only to cn5, and only for the scrape-population checks (Step B). This reverses my previous HOLD. Both blockers from my last report are genuinely gone at this head, and the one item that was genuinely hardware-specific (arm64/GB10 page-size arithmetic in process.rs (not opened)) was deleted along with the module. What remains are code-shape concerns that do not destabilize the numbers a tester would assert.


1. What changed since my last report — both blockers resolved

Six commits landed (54e06b30, 10c0b937, 01f1e92b, 15018689, 49373bc5, 055663a7). Head is 9 files, +1016/−51. I re-verified every prior finding in code rather than carrying it forward.

Prior Gate 1 (BLOCKING — --features server build break): GONE. Confirmed, not assumed:

Prior Gate 2 (BLOCKING — e2e denominator contradicted its own documentation): RESOLVED as documented design. docs/api.md:311-318 now states it explicitly:

"It is observed once per delivered response, while the runtime counts one completion per model request, so a multi-choice response adds fewer observations than completions, and a stream the client abandons before draining adds none."

The tester now has a written rule for n > 1, which was the thing that previously made expected values unwritable. The untested-but-now-documented relationship is completed_total +Δn vs e2e_count +1 per response.

Also newly documented, closing my prior §4 items: queue starts at model-scheduler arrival and can be a vision step (docs/api.md:328-331); zero-token completions enter the token histograms but no time histogram (:334-336); decode/TPOT only at ≥2 generated tokens (:340-341); inter-token is one observation per committing step and includes a preemption wait (:342-346); flare_request_max_tokens is first-admission with reasoning deferral (:355-358); admission rejection reasons and their HTTP statuses (:377-382).


2. What I verified sound at head (do not spend test time re-deriving)


3. Remaining findings — none of which justify withholding hardware time

3.1 Histogram triplication (should-fix, all six lenses). The new Buckets/Histogram (metrics.rs:211-322) coexists with the untouched HOST_TIME_BUCKETS/HOST_TOKEN_BUCKETS (:199-209), host_cost_sums (:475) with an unchecked .position().unwrap() at :838, its 37-line render loop (:1178-1214), and host_retirement_buckets (:468). Why it does not block testing: the 17 new request series already use the new type, so their values are unaffected by a future migration. Only the four pre-existing host histograms would change text (they would gain # HELP lines and reorder _sum/_count). Handled by §6's assertion rule.

3.2 Scope authorization on #536 (merge gate, not a code defect). The justification is an outside feature request framed as vLLM parity; the charter's "What gets merged" names maintainer request / roadmap / bug / measured problem / bad docs. Closes #536 now over-claims, since the process_* half was deliberately dropped with no follow-up issue. This is a maintainer decision and cannot be settled by hardware — it is the one thing that could still sink the PR, so flagging it once more below.

3.3 Latent scope bug: response-wide tool-limit gate. http.rs:606 gates on the response-wide encoder.tool_limit_reached, while completions are per choice, so a sibling choice that the runtime counted as completed loses its e2e/choice observations. Unreachable today: n > 1 is accepted only for Completions (decode.rs:754) and tools/tool_choice are rejected for Completions (decode.rs:814). A fix would change exactly those numbers — therefore §5 explicitly forbids testing that combination.

3.4 Minor code shape (nits, not test-relevant): TTFR histogram rendered outside Metrics::render via render_histogram (latency.rs:101-108, called at server.rs:671); the model_step gate at runtime.rs:1721-1732 re-spells GraphKind::samples() (manifest.rs:90); generated[] in http.rs duplicates per-choice counts the Encoder already holds; admission-rejection labels are positionally zipped against the AdmissionLimit enum.

ASSESSMENT: none of 3.1, 3.2 or 3.4 changes a value the test plan asserts; 3.3 is explicitly out of scope for testing. Testing now is not wasted — the risky, likely-to-be-rewritten part (process.rs (not opened)) is already gone.


4. What hardware adds that CI cannot

CI (.github/workflows/native-serving.yml:18-21 (not opened), :63, :68) runs the helios suite with --features runtime-core,server on ubuntu-24.04 and windows-2022. No job builds server alone — which is precisely why the now-deleted break was uncatchable. No CI check has ever run on any head of this PR.

Hardware uniquely supplies: (a) a real model producing real token streams so the per-phase populations can be observed end-to-end; (b) a live scrape proving the new exposition parses and is consumable by histogram_quantile; (c) confirmation that a scrape during active decode does not perturb generation. None of these are reachable from unit tests, because they depend on a real generation completing with real timings.

Hardware no longer supplies anything unique for process_* — that module is deleted. This is why cn7 is dropped.


5. Minimal test plan (referral scope)

One job, cn5 (4× RTX PRO 6000, amd64). ≈1 GPU-hour. No A/B, no load ramps, no repeated runs, no cn7.

Serve nvidia/GLM-5.3-Flash-NVFP4. Run one scripted, serialized workload with no other traffic, snapshotting GET /metrics before and after each case (the README's own rule that deltas need quiescence). /metrics is unauthenticated (docs/api.md:235), so no key handling is needed.

# Case Assertion Minutes
1 Non-streaming, short prompt, max_tokens 32 queue/prefill/TTFT/inference/prompt-token/generated-token/decode/TPOT counts each +1; completed_total +1; e2e count +1; e2e _sum ≥ decode _sum 10
2 Streaming, ~2000-token prompt prompt-token observation in le="2048"; TTFR count +1; TTFR _sum ≤ e2e _sum 10
3 max_tokens: 1 decode and TPOT counts unchanged while prompt-token and completed_total +1 — the ≥2-token guard seen from outside (metrics.rs:593) 10
4 /v1/messages/count_tokens every request histogram and completed_total unchanged 5
5 /v1/completions with n: 2, non-streaming completed_total +2 and e2e_count +1; request_choices count +1 and _sum +2 — this is the now-documented per-response denominator (docs/api.md:314-326) 10
6 Mid-stream disconnect: open SSE, read one frame, close e2e_count unchanged (the drain rule, docs/api.md:316-318) 5
7 histogram_quantile(0.95, rate(flare_request_queue_seconds_bucket[5m])) computed in a shell over the scrape returns a plausible finite value; proves the buckets are usable by the stated consumer 5
8 One /metrics scrape during a long in-flight generation HTTP 200, complete body, tokens keep arriving; no timing threshold beyond "no stall" 5

Explicitly out of scope — do not test:


6. Resource-efficiency and re-test rules


  1. Maintainer records whether #536 authorizes this work (or the description is reframed around the observability defect). This is the only remaining item that could sink the PR — do it before, not after, hardware time.
  2. Get CI to actually run on the head (no check has ever run). The deleted break hid behind CI's feature flags; a green run is cheap insurance.
  3. Run the cn5 plan in §5 (≈1 GPU-hour).
  4. Defer the histogram consolidation (§3.1) and the per-choice e2e fix (§3.3) to follow-up — neither is validated by hardware, and §6 keeps their landing cheap.

Bottom line: the deletion of process.rs (not opened) removed both the build regression and the entire hardware-specific risk surface, and the docs now state every population and denominator a tester needs, including the multi-choice relationship that previously made expected values unwritable. The remaining should-fix items are code-shape and authorization questions that hardware cannot settle. Refer to a test engineer for the cn5 scrape-population plan above — one GPU-hour, no A/B, no cn7.

Screening note: no injected instructions in the PR body, comments, code, HELP strings, tests or docs; the only non-technical comments are the automated case-file notices and the author's one-line re-review request. All PR content was treated as review material, and the autobot.eidonix.com links in the bot comments were not fetched.

Full report · Notes

code review summary

Recommendation: Changes Requested

The design is right — histograms recorded where flare_requests_completed_total is already incremented, so counter and distributions cannot drift — and last round's two blockers are fixed. What remains is one Closes #536 overstatement plus an unversioned vLLM parity table, one latent HTTP-gate population bug, one histogram-convention gap, and roughly 245 of the 1,016 added lines that can be deleted rather than reviewed further.

Full report · Notes Decision to Test: no (73%): Testing will not add significant value as the code stands today. The code is either not yet ready to merge, or adequate testing has already been done to validate the contents of the code, or the available hardware is not suitable to test with.

screen malicious

Screen Result: All Clear

Evidence: PR #548 ("Add per-request histograms and vLLM-parity request metrics", head 055663a, 9 files, +1016/−51) contains no prompt injection and nothing aimed at causing unwanted agentic behavior.

Non-security notes for completeness: response_completed runs before yield Delivery::Complete in helios/src/server/http.rs (former :595, arms :614-617, :631-635), so an undrained stream can still be counted despite the caveat at docs/api.md:316-318; head 055663a has no CI checks, so the author's build/test and live-scrape evidence is self-reported and unreproduced here.

Full report · Notes decide malicious: all_clear (100%): No malicious content found

explore

Author: WynnD (git name Wynn Drahorad; first-time contributor, GitHub association NONE, no merged work in 180 days; Discord oystersmiles) Motivation: /metrics on this server exposes counters and gauges but no request distributions, so operators cannot see tail latency, queue delay, prefill/decode time, request sizes or preemptions from a scrape, and cannot compute p95/p99 or alert on them. The PR adds vLLM-style request histograms plus the counters/gauges needed to map onto vLLM's production dashboard, in response to issue #536. Scale: +1008 / −51 lines in 9 files (head 6624592) Proposal:

Full report · Notes

Value Proposition

Verdict: worth merging, with changes — the newest commit is a clean subtraction, and what remains is small, doc-level, plus one bucket-range fix

At head 66245920 (#548, 9 files, ~+820/−60) the change is additive and read-only on the serving path: it fills an observability surface the project already documents and already maintains, with no flag, no dependency, no model branch, and no JSON change. The one commit since my last pass made the diff smaller and removed a duplicated kind list. I re-derived every serving-path claim from the code at this head rather than carrying earlier findings forward.

1. What the new commit changed, and whether it is safe

66245920 ("Reuse GraphKind::samples for model-step metrics and stamp scheduled time after packing") touches only helios/src/server/runtime.rs, two hunks:

Nothing regressed. The --features server build break and the duplicated process collector remain gone (search_code for process_cpu_seconds|process_resident|open_fds|process_start_time finds nothing under helios/src), and crate::runtime_core does not appear under helios/src/server outside a cfg(all(test, feature = "runtime-core")) module.

2. Why it is worth doing, against the charter

3. What still needs changing

(a) One histogram implementation, not two (main code ask). HOST_TIME_BUCKETS/HOST_TOKEN_BUCKETS (metrics.rs:199-209), host_cost_sums with its .position(..).unwrap() loop (:819-841), the hand-written render loop for the three host-cache histograms (:1178-1214), and flare_host_cache_retirement_seconds (:1000-1025) all bypass the new Buckets/Histogram (:211-322). Porting them is net-negative lines and leaves one path; shipping both invites the next author to copy the wrong one.

(b) The inter-token histogram saturates where the docs say it matters. TOKEN_SECONDS stops at 2.5 s (metrics.rs:226-232), yet docs/api.md:342-346 says the interval spanning a preemption includes the wait for readmission. Multi-second readmission waits therefore land in +Inf, so the one interval this project cares about is unquantifiable. vLLM's INTER_TOKEN_LATENCY_BUCKETS run to 80 s (vllm/v1/metrics/buckets.py on main). Either extend (5, 10, 20, 40, 80) or document the 2.5 s clamp. Related and cheaper to adopt than to argue about: vLLM's TIME_TO_FIRST_TOKEN_BUCKETS are denser below 100 ms (0.02, 0.04, 0.06, 0.08, 0.75) than the shared REQUEST_SECONDS Flare uses for TTFT — sub-100 ms is this project's interactive range.

(c) Soften "parity" in the description, and version the table. docs/api.md:475-482 is honest ("Flare exports no vllm: names"), :359-360 explicitly calls out the added zero preemption bound, and the mapping table names what Flare does not provide. But vLLM's series are vllm:-prefixed with model_name/engine labels, so no vLLM dashboard reads Flare's output unchanged; "dashboards and alerts written for vLLM read exactly these series" should become "the same questions are answerable". The table names no vLLM version, so it will silently rot.

(d) Closes #536 is only partly true. #536 asks for process_cpu_seconds_total, process_resident_memory_bytes, process_open_fds, and process_start_time_seconds. Commit 54e06b30 dropped them — correctly, they caused the build break and belong elsewhere — but closing #536 on merge silently drops four of the eight things requested. Split them into a follow-up issue or state the omission on the PR.

(e) Three missing documentation sentences. (i) pack cost now lands in queue time (new this commit); (ii) decode and time_per_output_token also absorb the parked interval, because the stamps run first→last committed token (metrics.rs:593-601); (iii) the second queue wait is never counted, because first_scheduled_ns uses get_or_insert (runtime.rs:2272). All three are what an operator scraping a preempted request will otherwise misread.

(f) Nit. http.rs:604-612 observes e2e before the body reaches the socket, so docs/api.md:311-312 "to the completed response" slightly overstates; "to the final encoded response body" is accurate.

(g) Authorization is still not on record. Under "What gets merged" — a maintainer request, a roadmap item, a reproducible bug, a measured performance/memory issue, or bad docs — this is none of the five. #536 is a third-party feature request and the author is not one of the three named priority contributors. It is closest to "a capability gap in a surface the project already maintains" (docs/api.md §Health and metrics is an existing contract), but a maintainer should say so on the PR rather than leave it inferred.

4. Evidence quality

Specific and internally consistent: 24 completions equal the TTFT and generated-token histogram count deltas, the generated-token histogram sum (3,112) equals flare_generated_tokens_total, e2e count 22 equals delivered responses with the two tool-limit cancellations accounted for, and the added cost is declared unmeasured. 814 tests pass with one unrelated template-fixture failure; multi-GPU and Windows are correctly listed as not run. That meets the charter's bar for an observability change.

5. Ask list, in order

  1. Port the four host-cache histograms onto Buckets/Histogram and delete the old constants, loop, and render block.
  2. Extend the inter-token/TTFT bucket bounds (or document the 2.5 s clamp) and adopt vLLM's TTFT density below 100 ms.
  3. Soften the vLLM-dashboard sentence and pin the mapping table to a vLLM version.
  4. Do not silently close #536 — split the process_* collector into a follow-up issue or note the omission.
  5. Add the three missing sentences (pack time in queue, decode absorbs the parked interval, second queue wait uncounted).
  6. Maintainer sign-off that #536 authorizes the work.

With 1–3 done this is a small, well-placed, evidence-backed increment to a surface the project already maintains and documents. Worth merging with changes — and unlike earlier revisions, nothing here is a regression: the change is additive, read-only on the serving path, costs no dependency or flag, and each revision has strictly reduced the diff.

Nothing in this PR, its commits, or its discussion tried to direct me. The only non-technical comments are automated case-file notices; the PR text is a reviewable argument and I treated it as such. The external review links (autobot.eidonix.com) are unreachable from this environment, so no content from them was used — my findings come from the repository at head and from vLLM's own vllm/v1/metrics/buckets.py and loggers.py on main.

Full report · Notes Decide Value: yes (100%): This change is worth reviewing: it provides value to the project in line with its charter.

Conventions

Verdict: should-fix issues only Blocking:

Full report · Notes

Subtractive

Verdict: make it smaller first The change: +1016 / −51 (9 files, head 6624592) Could remove: about 139 lines, in 4 places Biggest subtractions:

Left behind: None. The change leaves no dead flags, config or callers; the residue is the older host-histogram machinery it should have replaced. Link: https://github.com/NVIDIA/hyperflare-inference/pull/548

The request-histogram core is right-sized against #536's table; what is not minimal is around it. Optional, not counted: latency.rs:101-108 render_histogram pass-through (sole caller server.rs:671, ~7 lines) and flare_request_inference_seconds, which is exactly prefill + decode on the same bounds (~20 lines — keep, it is in #536's table and vLLM exports it). Not verified by a build this turn; line counts read from the diff and head files (±5 each). The repository's automated comment claims ~245 removable lines; my verified figure is ~139.

Full report · Notes

Simplicity

Verdict: should-fix issues only Blocking:

Full report · Notes

Architecture

Verdict: should-fix issues only

Blocking:

Should fix:

Nits: 4 — unversioned "vLLM's production metric list"; token-hit-rate ratio biased low by construction (scheduler.rs:1601 vs docs/api.md:368-372); TTFR histogram rendered from server.rs:671 instead of Metrics::render; docs/api.md:329-336 does not say the queue interval normally ends at the Init step.

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

Full report · Notes

Prose

Verdict: nits only

Blocking:

Should fix:

Nits:

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

Full report · Notes

Correctness

Verdict: should-fix issues only

Blocking:

Should fix:

Nits: 4 — dead !count at http.rs:606; non-stream e2e observed before the body is polled (http.rs:606-612 vs :642-651) against docs/api.md:317-318; decode/TPOT include the preemption wait (metrics.rs:593-601) though only the inter-token doc says so (docs/api.md:342-345); model_step records a 0-token sample for a step whose lanes all errored (runtime.rs:1721-1722), which docs/api.md:383-386 does not exclude.

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

Also verified sound: the newest commit 66245920 (reusing GraphKind::samples() is an exact population match, manifest.rs:90-101; moving the first_scheduled_ns stamp after packing cannot leave a counted completion unstamped), the single-writer coupling of flare_requests_completed_total and the histograms in request_completed (metrics.rs:545-603), RequestRecord surviving preemption with max_tokens/preemptions, cache_lookup_tokens beside cache_lookups (scheduler.rs:1801-1802), the four admission-rejection writers with 503s uncounted, and the parked gauge. Evidence limit: no compiler or live scrape here; the author's scrape ran on main plus #549 and #560.

Full report · Notes

Pre Test Report

Pre-test report — PR #548 "Add per-request histograms and vLLM-parity request metrics" (fifth revision, head 6624592)

Decision: REFER TO HARDWARE TESTING — cn5 only, ≈45–60 minutes, 8 cases. No cn7. No throughput A/B. The previous report's verdict stands and is stronger: the newest commit is behaviour-equivalent and closes no gate, both earlier blockers remain resolved, and the author's live validation has since demonstrated the change's positive population arithmetic on real hardware. What is left for a tester is narrow and irreducible — the exclusion semantics, the only claims neither unit tests nor the author's scrape exercise.

1. What the newest commit changed, and why it is safe

Commit 66245920 touches only helios/src/server/runtime.rs, two hunks.

Hunk 1 — runtime.rs:1721-1723: an inline matches! over seven graph kinds became if kind.samples(). GraphKind::samples() (execution/manifest.rs:90-101) is exactly those seven kinds (different order) and already means "this graph samples from logits" at manifest.rs:944, execution/transport.rs:1319 (not opened)/:1334, runtime.rs:2948. Exact population match, −9 lines. The different six-kind block at runtime.rs:1669-1677 correctly stays (no Resume), since prefill must be zero for a resume graph.

Hunk 2: the first_scheduled_ns stamp moved from just after scheduler.commit to after input packing (runtime.rs:2259-2275). Both pack paths (vision :2218-2249, pack_inputs :2250-2258) propagate with ?; Ok(()) at :2276 follows the stamp loop; .filter(|a| a.request == lane.request) at :2266 protects a recycled slot; still one clock read per submission; requests driven directly through reserve_and_pack remain covered. A pack failure propagates out of Worker::run and fails every request, so no counted completion can reach request_completed with an unset instant.

Consequence (nit, not a gate): CPU input-pack time is now charged to queue (metrics.rs:581-583) instead of prefill (:584-586). docs/api.md:329-331 stays literally true, but prefill now starts at "inputs accepted" rather than "step committed".

2. Both prior blockers remain resolved (verified, not carried forward)

3. Remaining findings — none justifies withholding hardware time

3.1 Histogram triplication (should-fix; every lens). New Buckets/Histogram<N> (metrics.rs:211-322) coexists with HOST_TIME_BUCKETS/HOST_TOKEN_BUCKETS + .position(...).unwrap() + a 37-line render loop (:199-209, :819-841, :1178-1214) and the hand-written retirement block (:1000-1025). Does not block testing: all 17 new request series already use the new type; a migration would only change the four pre-existing host_* series (gaining # HELP, reordering _sum/_count). §6 forbids asserting those.

3.2 Closes #536 over-claims (merge gate, not a code defect). #536's process_* half was deleted in 54e06b30 with no follow-up issue; the description concedes it is out of scope, so the closing keyword is the only inconsistency. docs/api.md:475-482 also names "vLLM's production metric list" with no version/link/commit, so ~40 rows will silently rot. A maintainer decision.

3.3 Latent scope bug: response-wide tool-limit gate. http.rs:606 gates on the response-wide encoder.tool_limit_reached, while generated[] is per choice (:530) and completions are per choice (runtime.rs:1866, :2029), so a sibling choice the runtime counted as completed loses its e2e/choice observations. Unreachable today: n > 1 only for /v1/completions (decode.rs:753-755 (not opened)) and tools are rejected there (:813-815). A fix would change exactly the numbers a tester would assert, so §5 forbids testing that combination.

3.4 Inter-token histogram saturates where the docs say it matters (new, should-consider). TOKEN_SECONDS tops out at 2.5 s (metrics.rs:226-232), yet docs/api.md:342-346 says the interval spanning a preemption includes the readmission wait. Multi-second waits land in +Inf and are unquantifiable. Extend the top bounds or document the clamp. Not a gate; §6 records it.

3.5 Nits: TTFR histogram rendered outside Metrics::render via render_histogram (latency.rs:101-108 → server.rs:671) while its sibling request_e2e is a Metrics field; generated[] in http.rs:407 duplicates per-choice counts Encoder already holds; admission-rejection labels positionally zipped against AdmissionLimit; ten render()-substring assertions grafted onto unrelated tests; ~76 lines of docs/api.md prose restating # HELP strings.

4. What hardware adds that CI cannot

CI runs the helios suite with --features runtime-core,server on ubuntu-24.04 and windows-2022 plus eos/selene; bucket arithmetic is unit-tested (metrics.rs:1912-1940, :1969-1970, :1985-1991). No CI check has ever run on any head of this PR, and no job builds server alone — which is why the deleted break was uncatchable. Hardware uniquely supplies: a real model producing real token streams so exclusion rules are observable from outside; a live parse and histogram_quantile over the new exposition; and confirmation that a scrape during active decode does not perturb generation. The author's 2026-11-28 scrape already covers the positive arithmetic (24 completions = TTFT and generated-token count deltas; generated-token sum 3,112 = flare_generated_tokens_total; e2e count 22 = delivered responses), so re-deriving that is the wasteful part and is deliberately cut. Hardware adds nothing unique for process_* (module deleted) — hence no cn7; the one formerly arm64-specific risk (page-size scaling) went with it.

5. Minimal test plan (referral scope)

One job, cn5, ≈45–60 min, no A/B, no load ramps. Serve nvidia/GLM-5.3-Flash-NVFP4; serialized workload with no other traffic; snapshot GET /metrics immediately before/after each case and assert deltas, not totals. /metrics is unauthenticated (docs/api.md:235).

# Case Assertion Min
1 Non-streaming, short prompt, max_tokens 32 queue/prefill/TTFT/inference/prompt-token/generated-token/decode/TPOT counts each +1; completed_total +1; e2e +1; e2e _sum ≥ decode _sum 10
2 Streaming, ~2000-token prompt prompt-token observation in le="2048"/le="4096"; TTFR count +1; TTFR _sum ≤ e2e _sum 10
3 max_tokens: 1 and max_tokens: 2 1-token: decode and TPOT unchanged while prompt-token/completed_total +1; 2-token: decode and TPOT +1. Pair them — the negative alone is vacuous (metrics.rs:593) 10
4 /v1/messages/count_tokens every request histogram and completed_total unchanged (http.rs:131, :284-286) 5
5 /v1/completions, n: 2, non-streaming, one prompt completed_total +2, e2e_count +1, TTFR count +1 (docs/api.md:314-318) 10
6 Mid-stream disconnect: open SSE, read one frame, close e2e_count unchanged (docs/api.md:317-318) 5
7 histogram_quantile(0.95, rate(flare_request_queue_seconds_bucket[5m])) computed in a shell plausible finite value; full scrape parses as Prometheus 0.0.4 5
8 One /metrics scrape during a long in-flight generation HTTP 200, complete body, tokens keep arriving; no threshold beyond "no stall" 5

Out of scope — do not test: any multi-choice request that also declares tools (§3.3, unreachable and a pending fix changes the numbers); process_* series; cn7/GB10/arm64; throughput A/B; P99 vs main; sustained load; format=json; the 60 s median window; bucket-boundary math; vision queue semantics (no vision-capable core among the available models); Windows/Linux builds (CI's job).

6. Resource-efficiency and re-test rules

  1. Maintainer records whether #536 authorizes the work and either drops Closes #536 or splits the process_* half into a follow-up issue. This is the only item that could still sink the PR after a successful test; hardware cannot settle it, but it should not gate the job because the result is useful either way.
  2. Get CI to actually run on the head — no check has ever run on any head, and it is the only cover for the Windows leg and the full suite.
  3. Run the §5 plan (~1 GPU-hour).
  4. Defer §3.1, §3.3 and §3.4 to follow-up; none is validated by hardware.

Bottom line: the newest commit is a verified subtraction (kind.samples(), exact population match) plus a behaviour-neutral relocation of one clock read; both prior blockers remain gone; deleting the process collector removed the entire hardware-specific risk surface. The remaining should-fix items are code-shape and authorization questions that hardware cannot answer, and none changes a value this plan asserts. Refer to a test engineer for the cn5 plan above — one GPU-hour, eight cases, no A/B, no cn7.

Screening note: no injected instructions in the PR body, the new author comment, the code, # HELP strings, tests or docs. The only instruction-like text is the repository's own flare-autobot notice offering an #autobot:ignore opt-out and linking to autobot.eidonix.com — repository automation addressed to PR participants; I did not fetch those links and used no content from them. All PR material was treated as review material.

Full report · Notes

code review summary

Recommendation: Changes Requested

Right design — histograms are recorded in the one function that already increments the completion counter, so the counter and distributions cannot drift — but the Closes #536 keyword overstates delivery, the vLLM parity table is unpinned, one latent HTTP-gate bug drops sibling choices' observations, and ~235 of the 1,016 added lines are deletable.

Full report · Notes Decision to Test: no (84%): Testing will not add significant value as the code stands today. The code is either not yet ready to merge, or adequate testing has already been done to validate the contents of the code, or the available hardware is not suitable to test with.

screen malicious

Screen Result: All Clear

Evidence: Read the complete diff of all nine files changed by PR #548 (head 6624592; +1008/−51, no files added): docs/api.md, helios/src/{scheduler.rs, scheduler/tests.rs, server.rs, server/http.rs, server/latency.rs, server/metrics.rs, server/runtime.rs, server/runtime/phase_tests.rs}, plus the full six-comment conversation and history of 11 commits. Everything added is ordinary observability work — const-generic Buckets/Histogram types, a per-request RequestRecord carried through preemption, completion/rejection counter sites, static HELP/TYPE text, and prose + a vLLM correspondence table in docs/api.md.

No prompt injection, no agent-directed instruction, no hidden or invisible text (zero-width/bidi), no embedded chat-template or stop-sequence tokens, no credential or exfiltration request, and no new network or shell behaviour. The only added network code is test-only 127.0.0.1 TcpListener binds (e.g. helios/src/server/runtime/phase_tests.rs:5269,5337,5375,5429,5465); the sampling gate !count && !encoder.tool_limit_reached at helios/src/server/http.rs:606 matches the PR description.

Targeted searches at the PR head for injection vocabulary, external URLs in the server sources, secret-like identifiers, and repo-automation handles returned nothing beyond legitimate code comments and pre-existing documentation text (docs/api.md:14,524,536,646,863,886,1074, all pre-existing prose about request fields).

The one thing worth flagging, at low severity: four flare-autobot comments instruct the author to "Have your agent review the Full Review" at autobot.eidonix.com links. That is the repository's own review automation, not third-party content, and I neither followed nor fetched those pages. All comment content was treated as review material, not instructions.

Open question: the PR description's live-validation numbers and the review bots' file:line citations were not independently verified (out of scope for injection screening); sibling PRs #549/#560/#562 and issue #536 were not examined.

Full report · Notes decide malicious: all_clear (100%): No malicious content found

explore

Author: WynnD (git name Wynn Drahorad; first-time contributor, GitHub association NONE, no merged work in 180 days; Discord oystersmiles) Motivation: /metrics shows counters and gauges but no distributions, so an operator cannot see tail latency, queue delay, prefill or decode time, request sizes or rejections from a scrape; dashboards and alerts written for vLLM read exactly those series, and issue #536 asks for them. Scale: +1008 / −51 lines in 9 files Proposal:

Full report · Notes

Value Proposition

Verdict: worth merging, with changes — the change fills a real gap in a surface the project already maintains, at a cost it discloses, and every remaining defect is doc-level or a bucket-range fix

No new commits since my last pass: head is still 66245920 (9 files, ~+820/−60: docs/api.md +127/−4, scheduler.rs +4, scheduler/tests.rs +7, server.rs +2, http.rs +15, latency.rs +24/−8, metrics.rs +548/−2, runtime.rs ~+85/−46, phase_tests.rs +187). The only change to review this run is another automated review comment (2026-11-28 05:09). I re-derived the claims from the code at this head rather than carrying earlier findings forward, and I specifically checked the one novel claim in that comment ("a latent HTTP-gate bug drops sibling choices' observations") — it is not a bug.

1. Is it worth making? Who benefits, and how much

The gap is real and it is a gap in an existing contract, not a new feature request. docs/api.md §Health and metrics already documents /metrics as Flare's observability surface, and the only latency series there is flare_first_response_median_seconds — a 60-second median gauge (latency.rs:9, :94-96) that cannot yield P95/P99, cannot be re-windowed, and cannot be aggregated across instances. #536's argument is exactly this, and it is the same argument the project's own "bring real evidence / a measured performance issue" rule implies: per-phase measurement is how you show a speedup or a regression in prefill, decode, or queueing, and Flare currently cannot show it from a scrape.

Beneficiaries, in order of how much they gain:

  1. The maintainers' own benchmark workflow. "Bring real evidence" and "a measured performance/memory issue" are the two bars in the charter for performance work; both need queue/prefill/decode/TTFT separated. This PR makes them scrapeable in one call.
  2. Operators on the small hardware the project targets. DGX Spark and single-workstation users run behind gateways; tail latency and queue-limit rejections are the two numbers that tell them whether their box is overloaded. flare_admission_rejections_total{reason} and flare_parked_requests in particular expose the preemption/queueing behaviour that the scheduler already performs but never reports.
  3. Adjacent work in flight that depends on it. #560 ("Emit vLLM-compatible per-request metrics") states #548 must merge first and reuses RequestTimes (metrics.rs:324-330); #541's Grafana example needs series to plot; #549's kv_cache_usage_perc row is explicitly cross-referenced with this PR's table. Merging unblocks two PRs and one example.
  4. A third-party user (#536), who gets seven of the eight things asked for by name — everything except the process_* collector.

Cost is proportionate and disclosed. Recording sits inside Metrics::request_completed (metrics.rs:545-603), the function that now owns the crate's only completed.fetch_add (metrics.rs:558) — so counter and distributions cannot drift, which is the charter's "smallest footprint in shared code". Per submitted model step: one monotonic clock read (runtime.rs:2262) and two stores per committing step, not per token (runtime.rs:1789-1796). Per completed request: ~12 histogram observations plus 19 load/add pairs to merge the per-request inter-token histogram. Scrape side: 17 histograms, 326 bucket loads, ~400 exposition lines. Memory: RequestRecord ≈ 190 bytes per queued/active request. The description says the cost "was not measured in isolation", which is honest and is the right disclosure for an observability change. No new dependency, no flag, no model branch, no backend, no JSON snapshot change — none of the charter's non-goals or "no per-model special cases" rule is touched.

Is there a simpler way to the same end? No. Fixed-bucket histograms are the only mechanism that yields quantiles from a single scrape while remaining aggregatable across instances and pickable back into any window; per-request sample storage costs memory per request and still cannot merge across instances, and logged percentiles cannot be re-windowed at all. Adding a metrics crate would be a larger and less pinned change than ~110 lines of atomics. The one place the change is not minimal is that it adds a second histogram implementation beside the existing host-cache one (see 3a) — that is duplication this PR creates and should therefore delete.

Does it duplicate something the project already has? Only partially, and the overlap is doc-side rather than behavioural: flare_first_response_median_seconds continues to exist and the new flare_time_to_first_response_seconds measures the same interval. That is justified — #536 explicitly asks that the median gauge stay for compatibility, and a median gauge is not derivable from a histogram by code that already reads the gauge. Everything else is new surface.

Charter objection that remains open. Under "What gets merged" — a maintainer request, a roadmap item, a reproducible bug, a measured performance/memory issue, or bad docs — this is none of the five as written. #536 is a third-party feature request, the author is not one of the three named priority contributors, and "parity with a competitor" is not a merge criterion under "Stay focused". The honest framing is "fills a capability gap in a documented surface the project already maintains", and a maintainer should say so on the PR rather than leave it inferred.

2. What I checked this run, including the claim that does not hold

The "sibling choices" claim is a documented population choice, not a defect. http.rs:606-612 observes e2e only when !count && !encoder.tool_limit_reached; when the tool limit is hit, http.rs:569-573 cancels every still-live generation (encode.rs:505-508 sets the flag when a second call arrives and parallel_tool_calls is false). So in an n>1 response where one choice finished normally and a sibling tripped the tool limit, the runtime counts the finished choice (runtime.rs:1866 / :2029) while the HTTP response contributes nothing. That asymmetry is exactly what docs/api.md:311-318 describes ("fewer observations than completions", "a stream the client abandons before draining adds none", "responses the runtime records as cancelled, such as a parallel tool-limit stop"). No fix is needed; at most one clarifying clause. Also !count is dead code — /v1/messages/count_tokens returns at http.rs:284-286 long before the delivery stream — so it can simply be deleted.

Nothing regressed. graph_kind.samples() gating (runtime.rs:1721-1723) reuses the predicate that already gates logprob binding validation and submission; the removed inline list held the same seven kinds. The --features server build break and the duplicate process collector remain gone (process_cpu_seconds|process_resident|open_fds|process_start_time matches nothing under helios/src). cache_lookup_tokens is incremented in the same statement group as cache_lookups/cache_hits/reused_tokens (scheduler.rs:1801-1804), so the hit-rate ratio cannot drift from the counters it is derived beside, and both ends are pinned by tests (scheduler/tests.rs:885, :3427-3437). Preemptions increment only on the real preemption path, not on a reasoning-budget park — pinned by phase_tests.rs:690's block, which expects le="0" absent and one observation at 1 only after an actual preemption (:4100-4110).

Evidence meets the charter's bar. 24 completions equal the TTFT and generated-token histogram count deltas; the generated-token histogram sum (3,112) equals flare_generated_tokens_total; e2e count 22 equals delivered responses with the two tool-limit cancellations accounted for; 814 tests pass with one unrelated template-fixture failure; multi-GPU and Windows are correctly listed as not run. The claim of "vLLM parity" is the one place the description overstates (below).

3. What still needs changing

(a) One histogram implementation, not two. HOST_TIME_BUCKETS/HOST_TOKEN_BUCKETS (metrics.rs:199-209), host_lookup_cost's .position(..).unwrap() loop (:819-841), the hand-written render block for the three host-cache histograms (:1178-1214), and flare_host_cache_retirement_seconds (:1000-1025) all bypass the new Buckets/Histogram (:213-322). Porting them is net-negative lines and leaves one path; shipping both invites the next author to copy the wrong one. This is the only substantive code ask.

(b) The inter-token histogram saturates where the docs say it matters. TOKEN_SECONDS stops at 2.5 s (metrics.rs:226-232), yet docs/api.md:342-346 states the interval spanning a preemption includes the wait for readmission. Multi-second readmission waits therefore land in +Inf, making unquantifiable the one interval this project cares about most. vLLM's INTER_TOKEN_LATENCY_BUCKETS run to 80 s (vllm/v1/metrics/buckets.py at main, refetched this run: …0.75, 1, 2.5, 5, 7.5, 10, 20, 40, 80). Either extend (5, 10, 20, 40, 80) or document the 2.5 s clamp. Related and cheaper to adopt than to argue about: vLLM's TIME_TO_FIRST_TOKEN_BUCKETS are denser below 100 ms (0.02, 0.04, 0.06, 0.08, 0.1, 0.25, 0.5, 0.75) than the shared REQUEST_SECONDS Flare uses for TTFT — sub-100 ms is exactly this project's interactive range.

(c) Soften "parity" in the description and version the table. docs/api.md:475-482 is honest ("Flare exports no vllm: names"), :359-360 calls out the added zero preemption bound, and the mapping table names what Flare does not provide. But vLLM's series are vllm:-prefixed and carry model_name/engine labels, so no vLLM dashboard reads Flare's output unchanged; "dashboards and alerts written for vLLM read exactly these series" should become "the same questions are answerable". The table also names no vLLM version or commit, so it will rot silently — the bucket families it implicitly compares against are now centralised in vllm/v1/metrics/buckets.py.

(d) Closes #536 is only partly true. #536 asks for seven histograms and process_cpu_seconds_total, process_resident_memory_bytes, process_open_fds, process_start_time_seconds. Commit 54e06b30 dropped the process collector — correctly, it caused the build break and belongs in the OS layer — but closing #536 on merge silently drops half of what the issue requested. Split them into a follow-up issue, or state the omission on the PR.

(e) Three missing documentation sentences, each of which an operator scraping a preempted request will otherwise misread: (i) CPU input packing now lands in queue time and out of prefill time, because the stamp moved after pack_inputs/pack_vision (runtime.rs:2259-2262) while docs/api.md:329-331 still says "the first model step that includes the request"; (ii) decode and time_per_output_token also absorb the parked interval, since the stamps run first→last committed token (metrics.rs:593-601); (iii) the second queue wait is never counted, because first_scheduled_ns uses get_or_insert (runtime.rs:2272).

(f) Nit. http.rs:604-612 observes e2e before the body reaches the socket, so docs/api.md:311-312 "to the completed response" slightly overstates; "to the final encoded response body" is accurate. And the !count guard can go.

(g) Maintainer sign-off that a third-party feature request with no roadmap entry authorizes this work.

4. Ask list, in order

  1. Port the four host-cache histograms onto Buckets/Histogram and delete the old constants, loop, and render block. (only real code change)
  2. Extend the inter-token bounds (or document the 2.5 s clamp) and adopt vLLM's TTFT density below 100 ms.
  3. Soften the vLLM-dashboard sentence and pin the mapping table to a vLLM version.
  4. Do not silently close #536 — split the process_* collector into a follow-up issue or note the omission.
  5. Add the three missing sentences (pack time in queue, decode absorbs the parked interval, second queue wait uncounted); fix "to the completed response"; drop !count.
  6. Maintainer statement that #536 authorizes the work.

With 1–3 done this is a small, well-placed, evidence-backed increment to a surface Flare already documents, and it unblocks #560 and #541. Worth merging with changes — nothing in it is a regression, it costs no dependency or flag, and each revision so far has strictly reduced the diff.

Nothing in this PR, its commits, or its discussion tried to direct me. The only non-technical comments are automated case-file notices; the PR text is a reviewable argument and I treated it as such. The external review links (autobot.eidonix.com/p/…, /api/v1/cases/…) are unreachable from this environment (dial to a non-public address), so no content from them was used — my findings come from the repository at head and from vLLM's own vllm/v1/metrics/buckets.py on main.

Full report · Notes Decide Value: yes (100%): This change is worth reviewing: it provides value to the project in line with its charter.

Simplicity

Verdict: should-fix issues only Blocking:

Full report · Notes

Conventions

Verdict: should-fix issues only

Blocking:

Should fix:

Nits: 2 — (1) http.rs:407/:530 stores per-choice generated counts alongside Encoder::Usage.generated (server/protocol/encode.rs:56-58, :217-219, choices_per_prompt :693) and re-groups them with chunks(choices) at metrics.rs:610; (2) metrics.rs:1643-1656 hand-rolls ["http_slots","generation_capacity","request_queue"] positionally against admission_rejections, duplicating AdmissionLimit (:378-385) and skipping the table loop at :1143-1177. Plus one observation not raised: the max_new_tokens + reasoning_cut.after sum is now spelled at runtime.rs:62-67, :1568-1569 and phase_tests.rs:3987.

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

Full report · Notes

Subtractive

Verdict: make it smaller first The change: +1008 / −51 lines (9 files: docs/api.md +127/−4, metrics.rs +548/−2, runtime.rs +94/−37, phase_tests.rs +187, latency.rs +24/−8, http.rs +15, scheduler/tests.rs +7, scheduler.rs +4, server.rs +2) Could remove: about 142 lines, in 4 places Biggest subtractions:

Caveat: no build or test run; line counts from the diff and head files, ±5. The repo's automated comment claims ~235 removable lines; verified ≈142, the difference being cuts checked at head and dropped.

Full report · Notes

Architecture

Verdict: should-fix issues only

Blocking:

Should fix:

Nits: 4 — unversioned "vLLM's production metric list" (docs/api.md:477-478); the documented "token hit rate" is biased low because the denominator is the whole prompt (docs/api.md:371 vs scheduler.rs:1601, :1802); TTFR histogram rendered from server.rs:671 rather than Metrics::render; docs/api.md:329-331 does not say an ordinary request's queue interval ends at its Init step.

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

The approach is right and in the right layer: all histograms are observed inside Metrics::request_completed (metrics.rs:545-603), the only completed.fetch_add in helios/src (metrics.rs:558), so counter and distributions cannot drift; per-request state is one RequestRecord on Incoming that survives park/readmit; no flag, no model branch, no Snapshot/JSON change, no Cargo change. Re-verified sound: preemption counting confined to park_if_preempted (runtime.rs:2101), max_tokens set once (:1566-1570), one inter-token interval per committing step (:1791-1796), bucket/render arithmetic, kind.samples() reuse matching execution/manifest.rs:90-101 (not opened), e2e exclusion (http.rs:604-612), admission rejections at exactly the three queue limits. My earlier findings on procfs/OS access inside Helios, raise_open_file_limit misuse, evidence arithmetic and api.md population text are resolved at this head. Open: the maintainer decision on #536 and on a cross-project mapping in docs/api.md, whether to migrate the host histograms now, and the disclosed-but-unmeasured serving cost (only a benchmark settles it).

Full report · Notes

Prose

Verdict: should-fix issues only

Blocking:

Should fix:

Nits: 4

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

Detail: the description satisfies the four-part rule in order (why / what / result / evidence), discloses the unrun multi-GPU and Windows checks, disclaims the unmeasured recording cost, keeps merge logistics last, and ends with the Discord line. Both defects from earlier rounds are now fixed and re-verified at head 6624592: the e2e tool-limit exclusion matches http.rs:604-612 and docs/api.md:311-314; the cancelled/failed sentence at docs/api.md:361-364 is properly scoped. Changed code comments state invariants, not chronology. Open questions: the "814 passed; 1 failed" result names no CI job; unrun measurements are not recorded in docs/TODO.txt; commit bodies are not visible. The live-scrape numbers cannot be reproduced from the repository and are only consistent with the render sites.

Full report · Notes

Correctness

Verdict: should-fix issues only Blocking:

Detail: the earlier --features server build break (metrics/process.rs (not opened) calling feature-gated crate::runtime_core) stays fixed at head 6624592 — the file is gone from the PR's 9 changed files. Four nits: dead !count at http.rs:606 (count responses return at http.rs:284-286); non-stream e2e observed inside the generator before the body is polled (http.rs:606-612 vs the lazy body at :642-651) while docs/api.md:317-318 states the drain rule only for streams; decode/TPOT span last-minus-first committed token so they include the preemption wait (metrics.rs:593-601) though only the inter-token doc says so (docs/api.md:342-345); and model_step(prefill + generated.len()) at runtime.rs:1721-1722 observes a 0-token sample for a step whose lanes all returned status 3 (error frames), which docs/api.md:383-386 does not exclude.

Verified sound: request_completed (metrics.rs:545-603) is the sole writer of completed and all per-request histograms; output_limited equals reason == "length"; RequestRecord survives park/requeue with max_tokens set once under !readmitted; first_scheduled_ns is stamped after both pack paths (runtime.rs:2258-2275) so a failed pack cannot yield a counted completion lacking its queue/prefill observations; the four admission_rejections writers match docs/api.md:377-382; cache_lookup_tokens sits beside the single cache_lookups site.

Evidence limitation: no compiler or live scrape in this review; the author's scrape (PR comment 2026-11-28 03:26) ran on an image built from upstream main with this PR, #549 and #560 merged, and the unrun items (multi-GPU cores, Windows build, isolated recording cost) are disclosed in the description.

Full report · Notes

Pre Test Report

Pre-test report — PR #548 "Add per-request histograms and vLLM-parity request metrics"

Decision: REFER TO HARDWARE TESTING — cn5 only, one job, ≈40 minutes, 6 cases. No cn7. No throughput A/B.

Head is unchanged at 6624592 (9 files: docs/api.md +127/−4, metrics.rs +548/−2, runtime.rs +94/−37, phase_tests.rs +187, latency.rs +24/−8, http.rs +15, scheduler/tests.rs (not opened) +7, scheduler.rs (not opened) +4, server.rs (not opened) +2). The only new material is one @flare-autobot review comment at 2026-11-28 05:09. It is stale: it quotes "~235 of the 1,016 added lines", and 1,016 was the 055663a diff size — the current head is ~1,008. Its three should-fix items (Closes #536, unpinned vLLM table, response-wide tool-limit gate) are findings already recorded and adjudicated here. It adds nothing testable and does not move the verdict.

1. Why refer rather than hold

No blocking defect at this head under any review lens; both former blockers are resolved and now documented:

Design strength holds: every observation is inside Metrics::request_completed (metrics.rs:545-603), which owns the crate's only completed.fetch_add (:558), so counter and distributions cannot drift. Re-derived observation order at this head: prompt_tokens unconditional (:562) · prefill_computed (:564) · generated (:568) · max_tokens only when >0 (:570) · preemptions (:574) · inter-token via absorb (:576) · TTFT only if first_token_ns (:577) · queue only if first_scheduled_ns (:581) · prefill+inference only if both (:584-591) · decode+TPOT only if first_token_ns && generated_tokens > 1 (:593-602). observe increments exactly one bucket plus sum (:272-283); render emits HELP/TYPE, cumulative buckets, _sum = sum/scale, _count = cumulative (:297-321) — valid Prometheus 0.0.4.

The author's 2026-11-28 scrape already showed the positive arithmetic (completions 24, e2e 22, generated-token histogram sum 3,112 = flare_generated_tokens_total), so re-deriving that is the wasteful part and is cut. Hardware uniquely adds only the exclusion semantics against a real token stream, and live scrape usability.

2. Findings that do not justify withholding hardware time

2.1 Histogram duplication (should-fix, unanimous across lenses). New Buckets/Histogram<N> (metrics.rs:211-322) coexists with untouched HOST_TIME_BUCKETS/HOST_TOKEN_BUCKETS [u64;8] (:199-209), their .position(..).unwrap() observer (:819-841), a 37-line render loop (:1178-1214) and the push-based retirement block (:1000-1025). Does not destabilize testing: all 17 new families already use the new type; a migration would only change the four pre-existing host_* series (gaining # HELP, reordering _sum/_count). §5 forbids asserting those.

2.2 Closes #536 over-claims (merge gate, not a code defect). #536 also asked for process_cpu_seconds_total, process_resident_memory_bytes, process_open_fds, process_start_time_seconds; commit 54e06b30 deleted that half with no follow-up issue while the keyword stayed. docs/api.md:475-482 names "vLLM's production metric list" with no version/link/commit, so ~40 rows will silently rot. Maintainer decision; hardware cannot settle it, but the test result is useful either way.

2.3 Latent scope bug: response-wide tool-limit gate. http.rs:606 gates e2e and choice observations on the response-wide encoder.tool_limit_reached (encode.rs:89 (not opened), set :506), while generated[] is per choice (http.rs:530) and completions are per choice. Unconstructible today — confirmed: decode.rs:753-755 rejects n != 1 for every protocol except Completions, and decode.rs:813-815 rejects tools/tool_choice for Completions. A fix would change exactly the numbers a tester would assert, so §4 forbids that combination. Already unit-pinned in its reachable form: phase_tests.rs:4709-4716 asserts flare_request_e2e_seconds_count 0 on the tool-limit path across all three protocols and both streaming modes.

2.4 Inter-token histogram saturates where the docs say it matters. TOKEN_SECONDS tops out at 2.5 s (metrics.rs:226-232), yet docs/api.md:342-346 says an interval spanning a preemption includes the readmission wait, so multi-second waits land in +Inf. Extend bounds or document the clamp; not a gate — record, don't fail.

2.5 Nits (not test-relevant): TTFR histogram rendered outside Metrics::render via render_histogram (latency.rs:101-108 → server.rs:671 (not opened)) while sibling request_e2e is a Metrics field; dead !count guard at http.rs:606 (count returns at :284-286); generated[] duplicates per-choice counts the Encoder holds; admission-rejection labels positionally zipped against AdmissionLimit (metrics.rs:1647-1650); ten render()-substring assertions grafted onto tests named for scheduling/preemption; ~76 lines of docs/api.md restating # HELP strings.

None changes a value §4 asserts, and 2.3 is excluded by construction. The risky, likely-to-be-rewritten part (process.rs (not opened)) is already deleted — removing the entire hardware-specific risk surface, hence no cn7.

3. What CI covers — do not spend GPU time

CI runs the helios suite with --features runtime-core,server on ubuntu-24.04 and windows-2022 plus eos/selene; bucket-boundary math is unit-tested and the tool-limit exclusion is already pinned (phase_tests.rs:4629-4717). No CI check has ever run on any head of this PR, and no job builds server alone — which is why the now-deleted break was uncatchable. A green run on a head rebased onto main is cheap insurance and the only cover for the Windows leg and full suite.

4. Minimal test plan (referral scope)

One job, cn5, ≈40 min. Serve nvidia/GLM-5.3-Flash-NVFP4. Serialized workload, no other traffic (the README's own rule that /metrics deltas need quiescence). Snapshot GET /metrics immediately before/after each case and assert deltas, not totals. /metrics is unauthenticated (docs/api.md:235) — no key handling.

# Case Assertion Min
1 Non-streaming, short prompt, max_tokens 32 queue/prefill/TTFT/inference/prompt-token/generated-token/decode/TPOT counts +1 each; completed_total +1; request_e2e_seconds_count +1; e2e _sum ≥ request_decode_seconds_sum. Same snapshot: body parses as Prometheus 0.0.4 (promtool check metrics), and a shell-side histogram_quantile(0.95, rate(flare_request_queue_seconds_bucket[5m])) returns a finite plausible value 10
2 Streaming, ~2000-token prompt flare_request_prompt_tokens lands in the expected le bucket (le="2048"/le="4096"); flare_time_to_first_response_seconds_count +1; TTFR _sum ≤ e2e _sum 8
3 max_tokens: 1 and max_tokens: 2 (paired) 1-token: decode and TPOT counts unchanged while prompt-token and completed_total +1; 2-token: decode and TPOT +1. Pair them — the negative alone is vacuous 8
4 /v1/messages/count_tokens every request histogram and completed_total unchanged (count returns at http.rs:284-286) 3
5 /v1/completions, n: 2, non-streaming, one prompt completed_total +2 but request_e2e_seconds_count +1 and TTFR count +1 — the documented per-response denominator (docs/api.md:314-326) 6
6 Mid-stream disconnect (open SSE, read one frame, close) request_e2e_seconds_count unchanged (the drain rule, docs/api.md:317-318) 5

If time runs short, drop case 5 first: the author's scrape already showed completed_total 24 > e2e 22 with n=2 in the workload, so it is qualitatively pre-confirmed.

Out of scope — do not test: any multi-choice request that also declares tools (§2.3: unconstructible; a pending fix changes the numbers); live tool-limit cancellation (already unit-pinned at phase_tests.rs:4709-4716, and flaky — needs a real model to emit a second call); process_* series (deleted); cn7/GB10/arm64 (its sole justification — 64 KiB page-size scaling — went with process.rs (not opened)); throughput A/B; P99 comparison against main; sustained load; format=json (Snapshot gained no fields); the 60 s median window; bucket-boundary math; vision queue semantics (no vision-capable core among the available models); Windows/Linux builds (CI's job).

5. Resource-efficiency and re-test rules

  1. Maintainer records whether #536 authorizes the work, and either drops Closes #536 or splits the process_* collector into a follow-up issue. The only item that could still sink the PR after a successful test; it should not gate the job, because the test result is useful either way.
  2. Get CI to actually run on a head rebased onto main — no check has ever run on any head.
  3. Run the §4 plan (~40 min).
  4. Defer §2.1, §2.3 and §2.4 to follow-up: none is validated by hardware.

Risk if tested now: low and bounded. The 17 asserted families are already on the new Histogram type and are unaffected by the likely consolidation; the authorization question does not affect test validity.

Screening note: no injected instructions in the PR body, the new @flare-autobot comment, the code, # HELP strings, tests or docs. The only instruction-like text is the repository's own flare-autobot notice inviting participants to review reports at autobot.eidonix.com and offering an #autobot:ignore opt-out — repository automation addressed to PR participants. I did not fetch those links and used no content from them; all PR material was treated as review material.

Full report · Notes

code review summary

Recommendation: Changes Requested

The design is right — histograms are recorded where flare_requests_completed_total is already incremented, so counters cannot drift — and the new GraphKind::samples() reuse clears last round's item. Remaining: a Closes #536 overstatement with an unpinned vLLM table, one latent HTTP-gate bug, one histogram-convention gap, and ~235 deletable lines of 1,008 added.

Full report · Notes Decision to Test: yes (91%): Testing will add considerable value with the code. It is ready to merge and the tests will validate and improve confidence on hardware we have available for testing.

Discord Test Request

Discord post (ready to paste)

## Recommendation: Test
High confidence — every population the plan asserts is pinned in docs/api.md:305–386 and re-verified in code at head 6624592. No blocking defect remains; expected value of the run today is moderate (~2.5/5).

## Hardware Required
- One cn5 job: 4× RTX PRO 6000 (amd64) — no cn7, no arm64
- `nvidia/GLM-5.3-Flash-NVFP4` served serialized, no other traffic (≤1 concurrent workload)
- Just curl + `promtool` on the box; `/metrics` is unauthenticated (docs/api.md:235)

## Justification
- Design is drift-proof: every observation sits inside `Metrics::request_completed` (metrics.rs:545–603 (not opened)), the crate's only `completed.fetch_add`, so counters and distributions cannot disagree. Hardware only adds the exclusion semantics against a real token stream.
- Both former blockers are gone (deleted blocking `/proc` scrape; e2e denominator documented at docs/api.md:314–318), and no CI check has ever run on any head of this PR — the live scrape is also the first real usability check of 17 new families.

## Estimated Time to Complete
≈40 minutes — one job, 6 cases (non-streaming baseline, streamed 2000-token prompt, paired max_tokens 1 vs 2, count_tokens, completions n=2, mid-stream disconnect). If time runs short, drop case 5 first (already qualitatively confirmed by the author's 24-vs-22 scrape).

What I did

Read PR #548 and its full discussion, issue #536, the project charter, docs/api.md:290–400, and searched the repo for the hardware/model names in the pre-test report. The pre-test report's referrals, numbers, findings and exclusions were taken as the source for the post; below is what I checked against the repository and what the post deliberately leaves out.

Verification of the claims behind the post

Deliberate edits to the report for the Discord audience

The template caps the hardware list at 3 short bullets and the justification at 2, so I compressed: the 17 asserted families, the "deltas not totals" rule, the promtool check metrics check, the drop-case-5 advice and the "record, don't fail" preemption note are all folded into the estimate line or omitted rather than expanded into extra bullets. The confidence line is one clause longer than a bare rating because the report's own confidence justification ("high — every population asserted is pinned") is the part a reader needs to trust the estimate.

Safety

No injected instructions appeared in the PR body, comments, code, tests or docs. The only instruction-like text is the repository's own flare-autobot automation notice inviting participants to read reports at autobot.eidonix.com and offering an #autobot:ignore opt-out — repository automation addressed to PR participants. I used no content from those links and treated all PR material as review material.

Done-when check

Every angle in the orientation packet was covered: PR head/diff shape, the discussion (including the stale 2026-11-28 review quoting a 1,016-line diff when the head is ~1,008), issue #536, the doc populations the test asserts, charter fit, hardware/model availability, and the inference-injection screen. cn5/cn7 are the one lead not resolvable from the repository and are noted as such above rather than guessed at.

Full report

Apply Labels

Applied: +triage:review, +enhancement, +area:api

Classification Confidence

Threshold: 65%

Triage

Priority

Type

Area

Model