Verdict: worth merging — with three small fixes and one maintainer sign-off
My previous verdict was "worth it with changes, but only after a maintainer decision and with a narrower first cut." Revision 046aaef (four commits since I last reviewed) satisfies four of my five conditions on its own: the content-instant half of the diff is gone, [server] per_request_metrics is a real configuration key, the include_usage limitation is written into the repo's docs, and live llama-swap evidence is on the PR. What remains is not design work — it is one permission question (charter, AGENTS.md:165-169, :201-207), one one-line API-hygiene fix, and two documentation/flag gaps.
What got fixed, checked against the branch
- The riskiest code left this PR.
time_to_first_content_token_msis now alwaysnull(helios/src/server/protocol/encode.rs:251-275,docs/api.md:1020), andGenerationEvent::Committedno longer exists in this branch; the streaming content instant moved to the stacked draft #562.output_event_capacityis back to its two-argument form (helios/src/server/runtime.rs:62-82), so this PR no longer touches the invariant thatverification/helios-lifecycle/check.py(not opened) mutation-tests for response-queue safety. This was my single largest objection and it was answered exactly as asked. llama-swap never reads that field and vLLM permits null, so nothing was lost. - The flag now works everywhere it should.
flare/src/configuration.rs:34addsper_request_metrics: Option<bool>,flare/src/settings.rs:32,224resolves it,flare/src/controller.rs:2566pushes it into rank zero's server config, andflare-cli/src/config.rs:73-75applies it only when the flag is absent (flag > config > off). Bootstrap rejects1,"true"andnull(helios/src/server/config.rs:719-741(not opened)), and there are precedence tests in all three crates. The silent-drop behaviour I flagged previously is gone, and the desktop controller path now has a real setting to read. - The consumer gap is documented in-tree.
docs/api.md:1031-1038now says plainly that a Chat/Completions stream carriesmetricsonly on the usage chunk, that gateways which read rates from the body (llama-swap named) show none for those streams, and that Flare has no--enable-force-include-usageequivalent. That is the honest-docs resolution I asked for (the alternative — forcing usage under the flag — remains vLLM's better long-term answer, and would be a separate small PR). - Live evidence exists. WynnD's 2026-11-28 comments report an RTX PRO 6000 Blackwell serving the gb202 Qwen3.8-Flash package behind llama-swap v250: 40/40 request-matrix checks,
tokens_per_secondandmean_itl_msreconciling with vLLM's definitions,performance.first_scheduled_nsbetweenenqueue_nsand the first token stamp, llama-swap showing prompt and generation rates for Chat and Completions, and CPU 15.4–15.9 s with the option on vs 16.0–16.3 s off over 16×512-token streams (no measurable overhead). Re-validated through the configuration key rather than the flag. This clears the charter's "bring real evidence" bar (#210) for the claim that actually matters. - The four-way fork is resolved. #552 and #553 are closed as "Superseded by #560"; #562 is now a draft stacked on top. One wire shape, one implementation on main, no double-emission (the double
cache_nsubtraction that motivated the consolidation is real).
Why it fits the charter
- Right problem, right layer. The gap is concrete and reproducible (#551: llama-swap shows
-1for every Flare request because it parses proxied bodies and does not scrape/metrics). This PR builds the object from instants the worker already records for the histograms (#548), adds no clock read of its own, and just copies ~32 bytes of instants into the terminal event on the disabled path. Off: oneif state.per_request_metricsand one early-Nonemetrics_value()per response. That is the "solve it where the data already is" instinct the charter asks for (#404). - Wire fidelity, not invention. Checked again against vLLM's "Per-Request Metrics" doc: TTFT from scheduling,
generation_time_msdecode-only,mean_itl_msnull for one token,tokens_per_secondspanning scheduling→last token,queue_time_msfrom the queue,metrics: nullforn > 1, omitted for multi-prompt Completions, Responses onresponse.completed/response.incomplete, streams needinclude_usage. Placement inencode.rs:712-744andhttp.rs:613-615matches. Precedent for mirroring vLLM naming exists in the repo (docs/api.md:973,docs/cli-design.md:475,server/models.rs(not opened) ModelCard fields). - Bounded and self-contained. The 560-only delta is roughly +750 lines, of which ~570 is tests (encoder placement/null-rule tests, worker-driven phase tests that assert each instant falls inside the step that produced it, CLI/config precedence tests) and ~61 docs; production code is ~185 lines across eight files. That is a proportionate footprint for a documented public wire field, and the tests exercise real behaviour rather than source text.
- Honest about divergence. All six keys always present,
metrics: nullforn > 1in bodies as well as streams,queue_time_msstarting at model-queue arrival (including the channel send and worker pickup), a forced reasoning-close token counted without an instant — all stated indocs/api.md:1025-1043rather than hidden.
What still needs to happen before merge
- A maintainer decision on the PR that per-request vLLM-shaped response metrics are wanted (
AGENTS.md:165-169,:201-207). The only request is #551, filed by the same author whose #548/#549/#560/#562 are the whole cluster; llama-swap appears nowhere in Flare's documented deployment story except the docs this PR adds; #536 is about histograms, not response bodies. The charter's counterweight is real — Flare already mirrors vLLM flags and wire fields — butdocs/core-design.md(not opened) also says Flare "does not aim for vLLM's feature matrix". That is a two-line decision, and one auto-review already called the same idea low value (that review was on #553, the weaker HTTP-clock version). Nothing else below matters if the answer is no. - One line of API hygiene.
RequestTimesis now exported (helios/src/server.rs:33(not opened)) as a plain struct with three public fields, no#[non_exhaustive], and it appears inside the publicGenerationEvent::Finished(runtime.rs:102-105). With the in-process Rust SDK (#6) on the roadmap, add#[non_exhaustive]now — vLLM is already growing this object (metrics.speculative_decoding), so a future field should not be a breaking change. - Do not leave persistent Orbit groups unable to turn it off.
--enable-per-request-metricsis saved into a group'srank_zerooptions (cli.rs:698-700,orbit/controller.rs:691-692,:846-850), there is no negating flag, and the config key cannot override a saved flag (config.rs:73-75), so the only way off is editingorbit.toml(not opened). Either add--no-enable-per-request-metrics(the repo pairs negatives for--history-draftsand--mtp-adaptive-verification) or add one sentence to thedocs/cli-design.md:736row. - One more doc line.
docs/api.md:1031-1038covers the include_usage gap but not the second consumer gap the author found live: for streamed Responses, vLLM nests the object inresponse, while llama-swap readsmetricsonly at an event's top level, so it sees nothing there. That belongs beside the existing caveat — it is the same class of "the motivating workflow stays broken in this case" honesty.
Simpler alternative, and why I am not pressing it
Chat already exposes the same instants in Flare's own vocabulary via return_token_timestamps → performance{ingress_ns, enqueue_ns, first_scheduled_ns} plus choices[0].token_timestamps_ns, so the new value here is specifically the vLLM wire shape that body-parsing gateways already read. That argues for keeping the object minimal — which this revision now is: six fields, no new event, no new clock read, one flag, and placement the encoder already has hooks for. I see no cheaper route to a llama-swap that shows real prompt and decode rates. Two things I would watch rather than block on: this is a frozen snapshot of a moving vLLM object (worth one sentence saying so), and queue_time_ms/time_to_first_token_ms are systematically slightly larger than vLLM's because the queue clock starts at request-group construction and TTFT ends at step completion — fine for a hobby-scale engine, but people may bill on these numbers, so the definitions in docs/api.md:1016-1029 are load-bearing and should stay accurate.
Cost summary
| Dimension | Assessment |
|---|---|
| Users helped | Anyone fronting Flare with llama-swap or a similar body-parsing gateway, plus billing/SLA tooling: real rates where there were -1s. Modest audience, but that audience is the charter's local-workstation user. |
| Complexity | ~185 production lines, one enum field pair on the terminal event, one encoder-owned struct, one config key, one flag on run/orbit run. No new event, no new clock read, no runtime state. |
| Maintenance | The vLLM contract can drift (spec-decode acceptance already exists there). One flag added to three surfaces (flag, config, controller) that must stay in sync — currently the persistent-group negation is the weak link. |
| Performance | Not measurable in the author's CPU runs; one copy of ~32 bytes per request when off, one JSON object when on. The per-step monotonic_ns() belongs to #548, not here. |
| Risk | Low. Everything is behind one flag, null/omitted rules match vLLM, and the previously riskiest mechanism (the Committed event and the output-event budget) is no longer in this PR. |
Bottom line: the engineering is now proportionate and the evidence is real. Merge it once a maintainer confirms Flare wants vLLM's per-request metrics object on the response, with #[non_exhaustive] on RequestTimes, a way to negate the saved flag (or a doc line saying there isn't one), and the streamed-Responses/llama-swap caveat added to docs/api.md. #548 must land first, as stated; #552/#553 correctly stay closed; #562 should be judged separately on whether the streaming content instant has a consumer that wants it.