#1 [high] Change: PR #548 shape, size and files
PR #548 "Add request latency histograms and process metrics", author WynnD (GitHub association NONE; Discord oystersmiles). Open as a DRAFT, opened 2026-11-26, last updated same day, base main, head ebecef1, branched from f377dc8. Size 8 files +545/−20. Labels: none. Reviews: none. CI on head commit: no checks. Closes #536.
Files:
- docs/api.md (+25/−3) — documents request histograms, host-cache retirement histogram, process_* series, states histograms are Prometheus-only, not in format=json.
- helios/src/server.rs (+2) — in the
/metricshandler:state.first_response.render_histogram(&mut text)andmetrics::process::render(&mut text). - helios/src/server/http.rs (+6/−1) — observes
flare_request_e2e_secondsin both the streamingDelivery::Completebranch and the non-streaming one, gatedif !count(count == the count_tokens request path). - helios/src/server/latency.rs (+27/−8) —
FirstResponseSamplesbecomes{window: Mutex<Samples>, histogram: Histogram<21>};FirstResponse::outputalso observesflare_time_to_first_response_seconds; addsrender_histogram. Median gauge and 60 s window unchanged. - helios/src/server/metrics.rs (+228) — new generic
Buckets<const N>+Histogram<const N>(per-bucket AtomicU64 + sum), bucket sets REQUEST_SECONDS(21), TOKEN_SECONDS(19), PROMPT_TOKENS(21),RequestTimesstruct, 6 new histogram fields onMetrics,Metrics::request_completed, render block, one new test. - helios/src/server/metrics/process.rs (new, +184) — Linux-only procfs reader for process_cpu_seconds_total, process_resident_memory_bytes, process_virtual_memory_bytes, process_start_time_seconds, process_open_fds, process_max_fds; non-Linux renders nothing. 2 tests.
- helios/src/server/runtime.rs (+38/−8) —
Incominggainstimes: RequestTimes;Worker::completestamps first/last committed token ns; both formermetrics.completed.fetch_addsites replaced bymetrics.request_completed(...);Worker::reserve_and_packstampsfirst_scheduled_nsfor each lane afterscheduler.commit. - helios/src/server/runtime/phase_tests.rs (+35) — 3 existing tests extended plus the fixture constructor.
Immutable/non-atomic note: last_token_ns: u64 is a plain field, not Option<> — 0 means none; Metrics::new uses Default for times.
#2 [high] Why: issue #536 is the direct driver, filed same day
Issue #536 "Metrics: add request latency histograms and process metrics for monitoring parity with vLLM", by Napuh, opened 2026-11-26 09:03, updated same minute, open, 0 comments. Environment: hyperflare-inference v0.3.2 (c0c4f79).
Missing-vs-vLLM table it builds: e2e latency (vllm:e2e_request_latency_seconds), queue time, time_per_output_token / inter_token_latency, prefill duration, decode duration, TTFT (only flare_first_response_median_seconds 60 s median gauge today), prompt tokens per request (vllm:request_prompt_tokens), process metrics (process_cpu_seconds_total, process_resident_memory_bytes, process_open_fds, process_start_time_seconds).
Motivation stated: the median gauge cannot give P95/P99, cannot be computed over other windows, cannot be aggregated across instances; histograms let users run histogram_quantile() over any window and alert on tail latency.
It proposed exactly the names PR #548 implements: flare_request_e2e_seconds, flare_request_queue_seconds, flare_request_prefill_seconds, flare_request_decode_seconds, flare_time_per_output_token_seconds, flare_time_to_first_response_seconds, flare_request_prompt_tokens, plus process_*. It also proposed keeping flare_first_response_median_seconds for compatibility (PR #548 does).
Difference vs the proposal: #536 asked for flare_request_queue_seconds = "admission to first scheduled step"; PR #548 measures "model-scheduler arrival to first model step" (docs/api.md wording) — i.e. it starts at runtime arrival, not HTTP admission. Also #536 did not list process_virtual_memory_bytes (PR adds it) and PR #548 does not add vLLM's flare_... equivalent of inter-token latency beyond time_per_output_token.
Filed by Napuh, 0 comments, 0 interest shown beyond the filing; the same day two PRs (#548, #549) close it and #537, all by WynnD, and #541 (jere357) builds a Grafana dashboard that mentions #536.
#3 [high] Change: what the new histograms measure, verified in code
Verified in code (PR head ebecef1):
-
Queue start = runtime arrival, not HTTP admission.
Incoming.arrival_nsis set insideModelRuntime::schedule(helios/src/server/runtime.rs:901) when the request is sent to the worker's queue;scheduler.set_arrival(handle, incoming.arrival_ns)at runtime.rs:1471. Soflare_request_queue_seconds= worker-queue + model-scheduler wait, excluding HTTP ingress, tokenization and framework preparation. docs/api.md (PR) says "from model-scheduler arrival"; issue #536 asked "admission to first scheduled step". The PR description says neither point explicitly, so a reader comparing to vLLM's queue-time (which starts at engine add_request) can mis-map it. E2e and TTFR, by contrast, start at HTTP admission (AdmittedAtinserted inadmit_http, helios/src/server.rs:828; read in http.rs:127). -
first_scheduled_nsis stamped inWorker::reserve_and_pack(runtime.rs:2186-2201) afterself.scheduler.commit(step, fence)and for every lane of the step, first-write-wins viaget_or_insert. So a request that is planned but whose step never commits gets no queue observation; and the stamp is the moment of reservation/packing, before the GPU replays. -
Both completion counter increments are now inside
Metrics::request_completed(metrics.rs:452-480): the user/text stop inWorker::complete(runtime.rs:1841) and the natural finish inWorker::publish(runtime.rs:1993). Cancelled (runtime.rs:1317,1338,1360,1407) and failed (runtime.rs:330) paths do not observe histograms, as documented. -
Decode/time-per-output-token are skipped unless
generated_tokens > 1;time_per_output_tokenuses integer divisiondecode / (generated_tokens - 1)so it truncates to whole nanoseconds before bucketing (metrics.rs:473-478) — harmless at 19 buckets. -
Prompt tokens observed =
carried.prompt_tokens.unwrap_or(live.prompt_tokens), i.e. the original prompt length carried across preemption, matching theFinishedevent's value — so prompt-token histogram agrees with per-responseusage.prompt_tokens. -
Histogram<N>::observeis a linear scan of the bounds per observation (21 comparisons) and usesOrdering::Relaxedatomics;sumstores nanoseconds and is printed assum as f64 / 1e9(metrics.rs:272-291). The ns sum exceeds f64's 2^53 exact-integer range only after ~104 days of accumulated request time in one counter, so a very long-lived, very busy server could print a_sumwith rounding (low risk, worth knowing).
#4 [high] Change: e2e is server-side only; TTFR needs a client poll, e2e does not
- e2e is observed in the
Delivery::Completearms ofhttp::generate: streaming at http.rs:614-617 (insidefilter_map, on the runtime's completion event, before the SSE body is drained) and non-streaming at http.rs:631-632 (before the JSON body is polled by the client).Delivery::Failed(http.rs:610,643) observes nothing, so failed/cancelled generations are absent from e2e — matches the description. - Asymmetry not stated anywhere:
flare_time_to_first_response_secondsis recorded only when the client actually polls the body (first_response.output()at http.rs:607/638, gated bystream_text/ non-empty chunk), whileflare_request_e2e_secondsis recorded as soon as the handler produces the completed response even if the client drops it. The phase testfirst_response_http_stream_excludes_pretext_failures_and_unpolled_bodies(phase_tests.rs:4406-4434) asserts e2e count stays 0 on failure;first_response_http_nonstream_records_only_when_completed_body_is_offered(phase_tests.rs:4436-4473) asserts e2e count is 1 whether or not the body is polled, while the TTFR histogram count followspoll_body. So e2e measures server-side handling only, not delivery to the client — a reader porting vLLM dashboards (where e2e is measured around the engine request) should know. /v1/messages/count_tokensis excluded from e2e vialet count = request.uri().path() == "/v1/messages/count_tokens"(http.rs:131). TTFR is not excluded explicitly, but a count_tokens response has no answer text, andresponse_text/stream_textwould not offer any, so it cannot be observed. Description states the e2e exclusion only.- The e2e histogram lives on the same runtime
Metricsstruct (pub(super) request_e2e: Histogram<21>), reached throughstate.model.metrics_handle()in the stream arm (http.rs:603) andstate.model.metrics()in the non-stream arm.
#5 [high] Change: process metrics are hand-rolled procfs, Linux only, no new dependency
helios/src/server/metrics/process.rs is a hand-written clone of the Prometheus client collector, not an added dependency. libc = "0.2.189" is already an unconditional dependency of the flare-helios crate (helios/Cargo.toml:50), so no new crate and no feature gate; the module is pub(super) mod process; in metrics.rs and is only reached from the /metrics text handler (server.rs:709). No Cargo.toml change in the PR (file list confirms). This satisfies the charter's "pin everything / no new dependencies" preference — the alternative (adding the prometheus crate) would have been a dependency change.
Platform behavior: render() is a no-op outside Linux (#[cfg(not(target_os = "linux"))] let _ = text;). Windows is a supported serving target (docs/windows.md; flare-winui; the native-serving CI matrix builds and tests on windows-2022, .github/workflows/native-serving.yml:17-21,64-68), so a Windows operator scraping /metrics sees no process_* series and generic Prometheus process dashboards stay empty there. docs/api.md (PR) says "Other platforms omit them", so it is documented but the PR description's framing ("generic Prometheus process dashboards have no process_* series to read") is only resolved on Linux.
Robustness choices: each source read is .ok()-guarded and a parse failure omits only the dependent metric (no unwrap in the render path); sysconf(_SC_CLK_TCK)/_SC_PAGESIZE and getrlimit(RLIMIT_NOFILE) are wrapped in unsafe with SAFETY comments; parse_stat splits after the last ) to survive a command name containing ) and spaces, and there is a unit test for that (parse_stat_reads_fields_after_a_parenthesized_command_with_a_paren).
process_open_fdscounts the entries of/proc/self/fd, which includes the directory handle opened for the read; the help string says so explicitly ("including the directory read that counts them"), so the value is off by one against the "true" count. Prometheus's own client_collector has the same artefact; worth knowing but declared.process_start_time_seconds=btimefrom /proc/stat + starttime ticks / CLK_TCK, the standard derivation.- There is no
process_threads, and no/proc/self/statmuse.
#6 [high] Related work: #536/#537/#541/#549 cluster and prior histogram code
All three come from the same request wave and are dated 2026-11-26:
- #536 (issue, Napuh, 09:03) — the feature request, vLLM monitoring parity. Closed by #548.
- #537 (issue, Napuh, 09:07) — companion KV-usage gap. Closed by #549.
- #548 (PR, WynnD) — this PR, closes #536, opened later the same day as a draft.
- #549 (PR, WynnD, 20:24) — sibling PR by the same author, closes #537, touches helios/src/server/metrics.rs and docs/api.md too; both PRs explicitly say the metrics.rs and docs/api.md hunks are in disjoint regions and "merge in either order". Verified plausible: #549 adds gauges near
cached_pages/SchedulerStatsand its own docs paragraph; #548 adds histograms besidecompletedand its own docs paragraphs; #549 also touches cache.rs, scheduler.rs, tests. - #541 (PR, jere357, 16:47, updated 19:21) — "Add a Prometheus and Grafana monitoring example": a docker-compose Prometheus+Grafana dashboard under examples/monitoring/. Its auto-review explicitly says "The only in-repo signal of Grafana interest is issue #536 (latency histograms, which Flare does not yet export)". So #541 is the consumer-side motivation for #548 and would be the first dashboard to actually use the new series — but #541's dashboard queries none of them yet (it predates the PR and its reviews flag missing/differently-named panels). Retitled by #541's review: DEPTH panels "belong with #536/#537".
- No competing or superseding PR exists for request histograms:
search_items histogram/prometheus/metricsreturns only #536, #548, #549, #541. - Prior metrics work that this extends: #507 (merged, lukealonso) persistent worker counter schema / Prometheus metrics / /v1/worker telemetry, and the host-cache histograms already in metrics.rs (flare_host_cache_missing_tokens / estimated_transfer_ns / estimated_prefill_ns / retirement_seconds, metrics.rs:851-890).
Histogramhere is a new generic type; the existing host-cache histograms keep their own[AtomicU64; 8]arrays +flare_selene::RETIREMENT_LATENCY_MSbounds, so the codebase now has two histogram implementations. PRIOR_ART_NOT_REFACTORED - a reviewer could ask why the host ones were not moved ontoBuckets/Histogram. - #78 (open issue, DS4.1 Flash disk Engram) asks "Would per-gather latency/miss-count histograms and explicit metric scope/rank labels be useful additions?" — evidence that request-level distributions have been wanted elsewhere too, though about a different subsystem.
- docs/TODO.txt:110-124 lists "Measure cross-host rank handoff ... request p99 ..." and "Qualify retained graph costs ... request latency measurements" — i.e. the project already tracks a TODO for request p99 latency measurement that this PR partially serves.
#7 [high] Claims and evidence: what is backed, what is not, CI has not run
- The PR is a draft with no CI checks on head ebecef1, no reviews, no labels, opened 2026-11-26 and updated the same day. Zero comments/reviews/reactions on the PR itself —
pr_commentsreturns "No comments". So no community engagement yet; the only external signal is the two issues it closes. - The author's own evidence claims:
--lib -- server::runtime::phase_tests: 109 passed;--lib -- server::metrics::: 20 passed. Those are two module-scoped subsets. He states explicitly "Not run here: the Windows build; the full helios suite; andmessages_image_hints_end_after_expansion_for_text_and_segmented_templates, which needs FLARE_TEST_TEMPLATE_DIR ... CI covers the first two."- Note the CI coverage: the
native-servingworkflow does build+test helios with--features runtime-core,serveron both ubuntu-24.04 and windows-2022 and sets FLARE_TEST_TEMPLATE_DIR fromtests/frontend/prepare_templates.py(.github/workflows/native-serving.yml:28-31,56-68). So the unrun Windows build and template-dependent test are genuinely covered once CI runs — but with no checks on the head commit, none of that has happened yet.
- Note the CI coverage: the
- Merge-logistics claim to verify at merge: description says the branch was cherry-picked onto the AzallazA fork commit
5ffe4d54and that the only conflict was context around the persistent-worker metrics function. That is the live-scrape base, not the PR base: onmain,helios/src/server/metrics.rsalready contains the persistent-worker render function from #507 (merged f646bebc, 2026-11-24). Nothing in the PR diff removes or relocates it, so the base merge is a clean add — the conflict story only affects reproducing the live numbers, not the merge. - The live evidence is on one two-GPU DeepSeek-V4.1-Flash instance, built with the repo Dockerfile, swapped into a llama-swap entry. The author states the instance also served the agent session's own requests, so the deltas exceed the three named requests ("Counts gained 5 for each runtime histogram and 6 for the first-response histogram" against 3 requests). Prompt-token buckets are used to attribute the extra observations: "le="64" gained exactly one observation ... le="2048" gained four, which are the two long prompts plus two session requests". That is a self-declared confound, not a controlled measurement; it is honest but the numbers cannot be read as a clean 3-request run.
- No performance claim is made ("Observability only ... nothing about serving changes", "claims no performance or memory improvement"). The only implicit cost not measured or mentioned: per-observation atomics in the decode loop (6 histogram fields, 1-2 atomic adds + a 21-entry linear scan per completed request, and one extra
monotonic_ns()per completion plus one per step inreserve_and_pack), and 6 new histograms of memory inMetrics(~63 AtomicU64 = ~500 B) times the number ofMetricsinstances. Not a plausible throughput risk, but is unmeasured and unstated.
#8 [high] People: first-time contributor; the area is owned by yatesdr and Luke Alonso
- Author: WynnD (git name Wynn Drahorad), GitHub association with the repo: NONE. In the last 180 days: 0 merged, 0 closed, 1 open PR before today — and that open one is #549, also opened today (2026-11-26 20:24). So #548/#549 are the author's first contributions to the repository; there is no merged history to weigh. Both close issues filed the same morning by Napuh; both carry
Discord: oystersmiles. - The issue filer, Napuh, is also new in this window: #536 and #537, both 2026-11-26, both 0 comments, both
Environment: hyperflare-inference v0.3.2 (c0c4f79). So the demand signal (two issues) and the supply (two PRs) all appeared within ~12 hours, from two accounts with no prior merged work in the last 180 days. That matters for "how long and how widely it has been wanted": by the local record, the ask is <1 day old and has one requester. - Who usually works in this area:
helios/src/server/metrics.rscommits in the last 180 days are dominated by yatesdr (host-cache/selene counters: #400, #415, #429, #358, #168, #141, #92), Luke Alonso (persistent worker schema #507, dashboard scaling, startup selection), Martin Vit (#504, #479, #298), jasonc (orbit/agent metric sampling), Eugene Rakhmatulin (KV capacity gauges). docs/ commits: Luke Alonso (367), Martin Vit (52), yatesdr (47). None of these people has engaged with #548. - Related consumer: #541 by jere357 (Discord cropinky) builds the Grafana example and is being actively auto-reviewed; it depends on the same metric names being right. jere357 has not commented on #548.
- Priority contributors named in the charter:
@voipmonitor,@original-el8,@lukealonso. Neither author of #548 nor #541 is one. docs/api.mdownership: Luke Alonso's commit 698ee450/543 and PCCessna's #538 landed in docs the same day; the api.md §Health and metrics table is maintained by Luke Alonso (author of the surrounding text and of #507's metric schema).
#9 [high] Reach: docs inconsistencies introduced or fixed by the change
- docs/api.md §Health and metrics was rewritten by this PR (docs/api.md:296-318 at PR head) to (a) move histograms into their own paragraph, (b) add the missing
flare_host_cache_retirement_secondsto the histogram list — an undeclared doc fix: the old text said "The only histograms describe host prefix-store lookups: missing_tokens, estimated_transfer_ns, estimated_prefill_ns", which was already stale because retirement_seconds shipped earlier (metrics.rs:851-890; docs/operating.md:47-50). So the PR's docs hunk also corrects pre-existing drift, which the description does not mention. - docs/api.md's JSON-contract section is not updated to say the new histograms are text-only in a way a JSON consumer sees: the PR writes "Histograms appear in the Prometheus format only" and the JSON snapshot is unchanged (verified: no new fields in
Metrics::snapshot, metrics.rs:488-526, andHttpState//metricsJSON path at server.rs:645-659 only insertsfirst_response, input counts andpersistent_worker). Soflare_helios::server::Snapshotconsumers see nothing new. Consistent with the description. - The metrics table at docs/api.md:338+ is not extended with the new series; they are described in prose paragraphs above it instead. Operator-facing consequence: the table remains the "field ↔ Prometheus name" map, and the new request series have no rows. #541's reviewer separately complained the table "lacks the *_kv_tokens gauges and requests_cancelled_total", so this is a known sore point in that area.
- No config, flag, default, or CLI change: nothing to enable or disable; the histograms are always on and always rendered. That means the
/metricsresponse body grows by ~6×(21 bucket lines + help/type/sum/count) ≈ 160 lines plus ~30 lines on Linux of process metrics — a permanent scrape-size increase with no opt-out. Not quantified by the author; Prometheus text for a scrape goes from a few KB to a few KB more, so it is small, but strictly monotone growth is a design choice a reviewer may comment on. flare_*naming overlaps:process_*is deliberately unprefixed to match the standard Prometheus collector names, so the docs' earlier claim "Counter and gauge names start withflare_" is now false. The PR does not amend that sentence (docs/api.md:288-289 still reads "Counter and gauge names start withflare_") while addingprocess_cpu_seconds_totaletc. That is an internal inconsistency introduced by the change.
#10 [high] Project fit: charter clauses on evidence, scope and what gets merged
Charter (read_charter) facts, stated as facts:
- "How We Work → Bring real evidence": "Performance PRs need benchmarks showing an actual speedup over
mainon a served workload". This PR claims no performance change, so that clause does not bite; it is observability-only. - "Keep the runtime small and model-agnostic": the change adds no per-model branch (scheduler/runtime only). It does add ~200 lines of generic histogram infrastructure plus ~184 lines of Linux procfs code inside
helios/src/server. The procfs code is arguably not hyperflare-specific and the charter's "smallest footprint ... or a way to solve it without new code at all" asks whether a dependency (theprometheuscrate's process collector) would be smaller — the author chose hand-rolled to avoid a dependency, which is the opposite trade of thelibc-free preference but matches "pin everything". - "What gets merged": "PRs that address a maintainer request, a roadmap item, a reproducible bug, a measured performance/memory issue, or bad docs." #548 addresses an issue filed by a non-maintainer (Napuh, association NONE per the record — the packet only gives association for the PR author WynnD; Napuh's association is not stated in what I read). The charter's authorization clause says "An explicit maintainer request covering the work is sufficient authorization"; a community issue is weaker. No maintainer has commented on #536/#537/#548/#549.
- AGENTS.md:165-169 "Every contribution must address an explicit maintainer request, a demonstrated defect, a measured performance or memory problem, or inaccurate documentation. ... Hypothetical future consumers, agent-generated suggestions, and lint findings alone do not establish a need for a change." The need here is stated as operator need (Grafana migration, SLO alerts) and the only consumer in-repo is #541, which is itself unmerged and has no maintainer approval.
- AGENTS.md:72-112 four-part PR description (why / what / claimed result / evidence). #548 has all four with headers, states what was not run, and distinguishes claimed from measured. It is unusually compliant on this axis.
- AGENTS.md:52-60 "State support as present qualification ... Record unresolved defects, unrun checks ... in docs/TODO.txt". The PR documents the Linux-only omission in docs/api.md rather than TODO.txt; acceptable as it is designed behavior, not an unresolved defect.
- Charter Non-Goals include "Broad production coverage across arbitrary models, GPUs, or deployment setups" and "general cluster orchestration". vLLM-parity Grafana/SLO tooling is closer to production monitoring framing than to the project's self-description ("a focused research prototype ... not trying to make it a general-purpose production server"). That is a tension a maintainer may weigh: the motivating issue is explicitly "monitoring parity with vLLM" and "move existing vLLM Grafana dashboards and SLO alerts to Flare".
- Reverse tension in the PR's favour: the project already ships a rich
flare_*metric surface, a terminal dashboard, anddocs/api.md§Health and metrics, so metrics work is established practice, not new scope.
#13 [high] Research summary
Case file for PR #548 "Add request latency histograms and process metrics" (WynnD, draft, +545/−20, 8 files, head ebecef1, no CI checks, no reviews) is gathered in the scratchpad across 12 entries, one per angle.
Key findings a reader could not get from the description:
flare_request_queue_secondsstarts at runtime arrival, not HTTP admission:Incoming.arrival_nsis set inModelRuntime::schedule(runtime.rs:901) and handed to the scheduler at runtime.rs:1471. Issue #536 asked for "admission to first scheduled step"; e2e and TTFR, by contrast, start at HTTP admission (AdmittedAt, server.rs:828). The description names neither start point, so a reader porting vLLM queue-time semantics can mis-map it. Prompt-token observation uses the preemption-carried original prompt length, so it agrees with per-responseusage.prompt_tokens.- Undeclared asymmetry in the HTTP observations:
flare_time_to_first_response_secondsis recorded only when the client actually polls the body, whileflare_request_e2e_secondsis recorded as soon as the handler produces the completed response even if the body is dropped (http.rs:614-617 vs :607/638; phase_tests.rs:4406-4473 pins both behaviours). e2e therefore measures server-side handling, not delivery. helios/src/server/metrics/process.rsis hand-written procfs code, Linux only;libcis already an unconditional dependency offlare-helios(Cargo.toml:50), so no Cargo change. Windows is a supported serving target and CI builds it, but a Windows scrape gets noprocess_*series — documented, yet it means the description's generic-dashboard motivation is resolved only on Linux.process_open_fdscounts its own directory read (declared in the help string).- The docs hunk also silently repairs pre-existing drift: the old text claimed host-prefix lookups were "the only histograms" while
flare_host_cache_retirement_secondsalready shipped. Conversely the change leaves "Counter and gauge names start withflare_" (api.md:288-289) standing while adding unprefixedprocess_*. - Process/community: the PR is a draft with zero checks, zero comments and no maintainer engagement anywhere in the cluster. The author has no merged contribution and GitHub association NONE; their other PR (#549) was opened the same day; both close issues (#536, #537) filed the same morning by one new filer, Napuh. So the demand is under a day old and one-requester wide — relevant to the charter's "explicit maintainer request" merger test.
- Evidence: the claimed test runs are two module subsets (
server::runtime::phase_tests109 passed;server::metrics::20 passed); Windows build, full helios suite and one template-dependent test are explicitly not run, and CI does cover the first two on both ubuntu and windows-2022 (native-serving.yml:56-68) but has not run. The live scrape is a single two-GPU DeepSeek instance whose deltas include the agent session's own traffic — self-declared confound, not a controlled three-request measurement. No performance claim is made and none of the added per-completion cost is measured. - Related work: nothing on main conflicts (no default-branch commit since f377dc8 touches these files);
metrics.rshas three open PRs in flight (#548, #549, #542) plus #334 touching it; #507 is the function the new code sits beside; #541 is the Grafana consumer whose own auto-review says the only in-repo Grafana signal is #536. The change leaves the four existing host-cache histograms on their older[AtomicU64; 8]implementation, so the file now holds two histogram implementations. - Charter fit: observability-only, no per-model branch, complete four-part description — but the motivating framing ("monitoring parity with vLLM", migrating SLO alerts) sits against the charter's "not a general-purpose production server" self-description, and no maintainer has authorized the work.
Angles with nothing found: community (no comments, reviews or reactions anywhere in the cluster).
#11 [medium] Recent activity: nothing recent on main conflicts; metrics.rs has 3 open PRs
- Last commits on the default branch in the touched areas: helios/src — ba35da3f (#538 cold pure-prefill), c915b5f0 (#532 16-SM alignment), c36a6a02 (#527 Latent576 page-split codec), 225758fe (#525 kv-codec parallel), e685a975 (#529 GB300 PCI id), 3d8640c6 (#523 kv-codec verify), e30d55db (#522 GPU confidence calibration), 716df00f (#504 KV compression). docs — 698ee450 (#545 RecipeParameters), f377dc85 (#543 remove joint kernel tuning), ba35da3f (#538), 33ab6df5 (#508 row-sharded attention), 28bd5047 (#531 publisher keys). None of these touch metrics, latency or
/metrics; the orientation packet also says no default-branch commit since the branch point (f377dc8) touches any file this PR changes. So the change builds on nothing recent and conflicts with nothing recent on main. - The most recent metrics-area commit is f646bebc (2026-11-24, Luke Alonso, #507) — persistent worker counter schema, Prometheus metrics, /v1/worker telemetry, launch dashboard view, parallax CLI. That is the function next to which the new histograms are inserted; it is also the commit that created the live-scrape cherry-pick conflict the author describes. #507 is merged, so #548 layers on top of it cleanly on main.
- Sibling in-flight work in the same file: #549 (WynnD, same day), #542 (FujitsuPolycom, "single-phase TP dispatch, x86_64 wake wait, intermediate batch capacities, and PreparedAllToAll") also lists
helios/src/server/metrics.rsas touched; #334 (javieratomic, Engram rows ahead of prefill) also touches it. So metrics.rs has two other open PRs plus #548 in flight — a three-way textual-overlap risk that the PR description addresses only for #549. - Prior art in the same file that the change does not unify with: the host-cache histograms (
flare_host_cache_missing_tokens,estimated_transfer_ns,estimated_prefill_ns,retirement_seconds) use[AtomicU64; 8]+flare_selene::RETIREMENT_LATENCY_MSand emit bucket bounds divided by 1000 at render time (metrics.rs:851-876). A reviewer may ask whether the new genericBuckets/Histogramshould replace them; the PR deliberately leaves them alone (no diff in that region).
#14 [medium] Why (continued): #537 sibling gap, demand age, and the only pre-existing signals
- Issue #537 (Napuh, 2026-11-26 09:07, open, 0 comments, env v0.3.2
c0c4f79) is the sibling gap: vLLM'svllm:kv_cache_usage_perccannot be computed from Flare's gauges because pages pinned by active requests still count asflare_cached_kv_pages. It reports three attempted bounds on the same two-GPU load:1 - free/totalvery high % even idle;1 - (free+cached+snapshot_backing)/total~0 % (lower bound);1 - (free+snapshot_backing)/total~16 % (upper bound); vLLM ~9 %. It proposesflare_request_kv_pagesor splitting cached into pinned/idle. Closed by #549, not by #548. - Relevance to #548: the PR description cross-references it ("This PR and #537 add different regions of
helios/src/server/metrics.rs"), and #549's description repeats the same claim in reverse ("page gauges besidecached_pageshere, request histograms beside the completion counter there. They merge in either order"). Verified plausible from the two diffs: #549 changesMetricsnear cached/free page fields plusSchedulerStats/cache.rs/scheduler.rs, #548 changes it besidecompletedplus runtime.rs/http.rs/latency.rs; both edit docs/api.md in different paragraphs. Same author, same day, so they are effectively a two-PR series closing #536+#537 together. - Demand age and width: both issues and both PRs appeared within about twelve hours of each other on 2026-11-26, from two accounts with no prior merged work in the 180-day window. Nothing in the repo's older history records a prior request for request histograms (searches for
histogram,p95/p99,vLLM parity,time to first tokenreturn only #536/#548/#549/#541 and unrelated issues). The one adjacent older signal is issue #78 (open, DS4.1 Flash disk Engram), which asks in passing whether "per-gather latency/miss-count histograms and explicit metric scope/rank labels" would be useful — a different subsystem. docs/TODO.txt:110-124 separately carries a standing TODO to "Measure cross-host rank handoff ... request p99 ..." and "Qualify retained graph costs ... request latency measurements; measure GPU replay, queueing, and host planning separately", which is the closest thing to a pre-existing project want in this area.
#15 [medium] Process: draft with no CI on head; description meets the repo's four-part rule
- State at review time: draft, base
main, headebecef1, branched fromf377dc8, 8 files +545/−20, labels none, reviews none, inline comments none, no CI checks on the head commit, opened and last updated 2026-11-26 (same day, so under a day old when examined).pr_commentsreturns "No comments". - Because no workflow has run, the
native-servingmatrix (ubuntu-24.04 + windows-2022,cargo test --release --features runtime-core,serverfor helios, plusflare-cli,flare,eos,selene,selene-manager) has produced no result for this head. The author's "CI covers the first two" refers to what that matrix would do, not to a run. - The description follows the repo's mandatory four-part shape from AGENTS.md:72-112 (why / what changed / claimed result / evidence), states "Not run here: the Windows build; the full helios suite; and
messages_image_hints_end_after_expansion_for_text_and_segmented_templates", and carries the requiredDiscord: oystersmilesline (AGENTS.md:142-153). Both issues (#536, #537) also carry Discord lines. - Merge logistics: no rebase or stacking dependency is declared against main. The
5ffe4d54cherry-pick story in the evidence section concerns reproducing the live scrape on a fork base, not the merge target; on main the surrounding persistent-worker code from #507 (f646bebc) is present and untouched by the diff. - Reviewer queue notes: the same file is claimed by #542 (FujitsuPolycom) and #334 (javieratomic), so whichever lands first sets the context for the others; #548's description only reasons about #549's overlap.
#12 [low] Community: zero comments, reviews or reactions anywhere in the cluster
Community angle: nothing found beyond what is recorded elsewhere. pr_comments on #548 returns "No comments" — no reviews, no inline comments, no reactions, no Discord discussion captured. #536 and #537 each show "Discussion (0)". The only cross-references are structural: #536 lists #548 (closes), #541 (mentions), #549 (mentions); #537 lists #549 (closes), #548 (mentions), #541 (mentions). Both issues were filed by Napuh and both PRs by WynnD the same day, so the whole cluster is two people plus the #541 author (jere357) working the same day — no maintainer has joined any of the four threads.