Amendments to the 2026-11-26 report on PR #548 (run of 2026-11-27)
Key findings (what changed since the last report)
- Head moved, and review blocker 1 is fixed.
ebecef1→d64c3ea"Exclude cancelled responses and reuse host helpers"; size +550/−20 in 10 files (was +545/−20 in 8).flare_request_e2e_secondsis now observed exactly once, inside the delivery generator, guarded by!count && !encoder.tool_limit_reached(helios/src/server/http.rs:598-606), and a new assertion pinsflare_request_e2e_seconds_count 0on the parallel-tool-limit path (helios/src/server/runtime/phase_tests.rs:4604-4613). My earlier finding that "e2e records responses the runtime counts as cancelled" is withdrawn. - Most documentation findings are resolved by the same commit's
docs/api.mdhunk (docs/api.md:287-321):process_*naming exception, "accumulate since server start", HTTP vs runtime group split, ≥2-generated-token eligibility, stream-drain wording, queue boundary. My earlier "undeclared doc repair" note is moot — the stale "The only histograms describe host prefix-store lookups" sentence is gone (docs/api.md:297-301). - New high-severity finding introduced by
d64c3ea: the helper-refactor makes a documented Linux build configuration fail to compile.metrics/process.rs:63callscrate::runtime_core::open_descriptors(), butruntime_coreis behindfeature = "runtime-core"(helios/src/lib.rs:25-26) whileserverdoes not enable it (helios/Cargo.toml:25).--features serveralone is exactly whatdocs/model-development.md:99-100anddocs/scheduling-runtime-design.md:735-737document, and no CI job covers that combination. - #548 is now a merge-order dependency and one of three same-author PRs: #552 is stacked on it and renders
RequestTimesinto client-visible llama.cpp (not opened)timings; #553 adds an opt-in vLLMmetricsobject; issue #551, written by the same author, states outright that "Flare's Prometheus histograms cannot substitute" for a proxy consumer. That raises the cost of the weakest part of #548 — the queue histogram anchored at runtime arrival rather than HTTP admission. - Unchanged: description not edited (no queue start point, no tool-limit exclusion, stale evidence/CI claims), no CI checks on
d64c3ea, still draft, still zero reviews and zero maintainer engagement anywhere in the cluster (#536, #537, #548, #549, #551, #552, #553).
1. State at the new head
d64c3ea, +550/−20 in 10 files (was +545/−20 in 8), still draft, base main, no labels, no reviews, no CI checks on the new head. Diff file list: docs/api.md +28/−3, helios/src/runtime_core/mod.rs +1, helios/src/runtime_core/protection.rs +1/−1, helios/src/server.rs +2, helios/src/server/http.rs +8, helios/src/server/latency.rs (not opened) +27/−8, helios/src/server/metrics.rs +228, helios/src/server/metrics/process.rs +172 (was +184), helios/src/server/runtime.rs +38/−8, helios/src/server/runtime/phase_tests.rs +45 (was +35).
The only comments on the PR are the autobot intake note (2026-11-26 20:56), the autobot review (2026-11-26 22:00, "Changes Requested") and WynnD's re-review request (2026-11-27 04:56: "@flare-autobot review the pushed changes. The per-request metrics PR is new; the other two carry review fixes."). Still nobody with merge rights has engaged.
2. Corrected: the cancelled-response blocker is fixed
flare_request_e2e_seconds is observed once per successful response, immediately before yield Delivery::Complete(response), guarded by if !count && !encoder.tool_limit_reached (helios/src/server/http.rs:598-606). The two former observation sites are gone (Delivery::Complete(_) => None at http.rs:621; the non-streaming arm at http.rs:635-644 now only maps the body), and the cached metrics_handle() clone is replaced by state.model.metrics(). The tool-limit path was the only place the HTTP layer cancelled a generation while still delivering a complete response (http.rs:471-476, :526, :563-567), so the documented promise that cancelled and failed requests appear only in flare_requests_cancelled_total / flare_requests_failed_total (docs/api.md:315-316) holds again. The new test assertion is phase_tests.rs:4604-4613. The e2e/TTFR asymmetry I flagged on 26 Nov (e2e recorded before the body is delivered, TTFR only once the client reads text) still exists but is now deliberate, documented and pinned by tests.
3. Corrected: most documentation findings are resolved
docs/api.md:287-321 at the new head fixes:
- the
process_*exception to "Counter and gauge names start withflare_" (docs/api.md:288-290); - "Histograms … accumulate since server start" (
:297); - named group split, "The HTTP histograms observe delivery" (
:303) and "The runtime histograms observe completed generations" (:309); - ≥2-generated-token eligibility of decode and time-per-output-token (
:312-314), matchingmetrics.rs:470-479; - stream-drain wording (
:304-306); - the queue boundary named as model-scheduler arrival to the first model step, "which can be a vision step" (
:309-312).
Two doc inaccuracies remain, both smaller than before:
- "The HTTP histograms observe delivery" (
docs/api.md:303) is still wrong for non-streaming: e2e is recorded before the response is returned (http.rs:598-606) andfirst_response_http_nonstream_records_only_when_completed_body_is_offeredpins count = 1 withpoll_body = false(phase_tests.rs:4461-4465). Only streams require a drain. One clause would fix it. - The vision note covers the queue boundary only.
first_scheduled_nsis stamped for every lane before theGraphKind::Visionsplit (runtime.rs:2191-2203vs:2208), so prefill also absorbs vision work; the docs do not say so.
4. New high-severity finding: the helper reuse breaks a documented feature build on Linux
helios/src/server/metrics/process.rs:63 calls crate::runtime_core::open_descriptors(), but runtime_core is declared #[cfg(feature = "runtime-core")] pub mod runtime_core; (helios/src/lib.rs:25-26) while server is gated only on #[cfg(feature = "server")] (:28-29) and does not enable it (helios/Cargo.toml:25; default = [] at :17). A Linux build of helios with --features server and without runtime-core therefore references a module that is not compiled (E0433).
That feature set is documented and used: docs/model-development.md:99-100 (cargo test --manifest-path helios/Cargo.toml --features server --lib frontend:: and --features server --test message_boundaries) and docs/scheduling-runtime-design.md:735-737 (--features server --lib scheduler::, server::runtime::phase_tests::). No CI job covers it: native-serving always passes --features runtime-core,server (.github/workflows/native-serving.yml:63 (not opened),68), flare/flare-cli always enable both (flare/Cargo.toml:23 (not opened), flare-cli/Cargo.toml:27), helios-lifecycle runs cargo kani --lib with no features. Windows --features server still compiles because the call sits behind cfg(target_os = "linux") — the break is Linux-only and invisible to the matrix. Before this commit the server module had no unconditional runtime_core reference (only #[cfg(feature = "runtime-core")] code in session.rs and runtime/prompt_tests.rs (not opened)), so this is newly introduced.
Cheap fixes: gate the call on the feature; gate the whole process module on the feature; or route the fd count through the crate::os surface (it is a /proc read, not a runtime-core concept — helios/src/os.rs:8 already re-exports flare_eos).
The rest of the consolidation is an improvement and is what the review asked for: crate::os::page_size() (process.rs:56; eos/src/unix.rs:73-75), crate::os::raise_open_file_limit(0) (process.rs:65; eos/src/unix.rs:138-165, a zero target reads the soft limit), and shared open_descriptors (runtime_core/protection.rs:291-302, newly pub(crate) and re-exported at runtime_core/mod.rs:58). Roughly 12 hand-rolled lines disappear from process.rs; the separate page-size fallback for process_resident_memory_bytes is gone.
5. New cluster context: #548 is a merge-order dependency, and the author has written down what it cannot do
- Issue #551 "Report per-request timings on final responses so llama-swap can show prompt and decode rates" (WynnD, 2026-11-27 03:26, open, 0 comments). llama-swap's activity table shows −1 because Flare emits only
usage; itsbuildMetricsreads a llama.cpp (not opened)timingsor vLLMmetricsobject from response bodies and never scrapes/metrics. The issue says explicitly: "Flare's Prometheus histograms cannot substitute: llama-swap parses proxied response bodies and does not scrape/metrics." That is the author of #548 stating that #548's series do not serve that consumer. - PR #552 "Report request timings on final responses" (WynnD, 2026-11-27 04:30, draft, +929/−26, 11 files, head
aea4147, closes #551) is stacked on #548: "This branch is stacked on #548, which adds the request-latency histograms and theRequestTimesstamps this PR reads… Merge #548 first." It makesRequestTimespub, addsDraftCounts, carries both onGenerationEvent::Finished, and rendersprompt_ms/predicted_ms/draft_nfrom exactly the stamps #548 added. Its file list still shows #548's files because it is not rebased. Consequence: a mis-anchored queue or prefill stamp no longer stops at a scrape — it reaches a client-visible response body in a downstream PR. - PR #553 "Add vLLM-compatible per-request metrics" (WynnD, 2026-11-27 04:52, open, +302/−9, 11 files, head
fd5c67e) adds an opt-in--enable-per-request-metrics/[server] per_request_metricsvLLMmetricsobject. It claims no overlap with #548, but itshttp.rshunk starts from the pre-#548 base (thedelivery.next()loop is still present), so it will conflict textually with #548's e2e rearrangement (http.rs:598-606vs:631-644).
None of #551/#552/#553 has a maintainer comment, review or CI run either; all are under a day old. The metrics.rs/http.rs overlap queue is now effectively five-way (#542, #548, #549, #552, #553, plus #334).
6. Unchanged since the last report
The description was not edited: it still omits the queue histogram's start point, still omits the tool-limit exclusion the new head implements, still says "nothing about serving changes", still cites the two module-subset runs (109 + 20 passed) with no run on the new head, still says "CI covers the first two", and does not mention the runtime_core dependency or the helper refactor. Line count went up, not down (+550 vs +545).
Untouched review items: the unmeasured per-step clock read plus lane loop and the blocking procfs reads per scrape; converting the four host-cache histograms to Histogram<8> (two histogram implementations still coexist in metrics.rs); gating the process module on target_os instead of the let _ = text shim; the maintainer-authorization question for #536; and the ~190-line permanent growth of every /metrics body with no opt-out. Windows still gets no process_* series (docs/api.md:318-321).
Open questions
- Does the project accept a Linux-only
process_*surface when Windows is a supported serving target, or should it be feature-gated out entirely? - Was the queue histogram deliberately re-anchored at runtime arrival, given #536 asked for "admission to first scheduled step" and #552 will render it as
queue_time_ms? - Is a two-PR (now four-PR) series from a first-time contributor with no prior merged work acceptable to merge as a chain, and who reviews it?
- Will the
--features serverLinux build actually break in CI-invisible fashion, or is there an undeclared feature unification path (e.g. a workspace-widecargo testthat enables both)? Not determinable from the local record.
Could not be found
- Any CI run, check or reviewer on
d64c3ea(or on #551/#552/#553). - Any maintainer acknowledgement of #536, which is the authorization question the previous review raised.
- Any measured cost for the per-step clock reads, the lane loop, or the procfs reads per scrape.