Key findings
The PR's prose is mostly accurate against the code, and its disclosed limitations, evidence section, and unrun-checks list follow the repository's prose rules. Three should-fix findings remain, all in documentation/description prose, none in behavior claims:
- Should fix — the description and
docs/api.mdplace the model-queue arrival clock read in the HTTP handler; the runtime reads it inenqueue_many. - Should fix —
docs/api.md:1047-1054points atperformance.first_scheduled_nsand a per-token timestamp array thatdocs/api.mdnever documents, so the "a client can compute the same intervals" promise is unreadable from this file alone (AGENTS.md:46-50, repo-prose SKILL.md:50-54). - Should fix — the two disclosed limitations (WinUI cannot enable the option; a persistent Orbit group cannot turn it off) live only in the PR description, which AGENTS.md:56-60 forbids for unresolved limitations.
Nits: two help-text/wording asymmetries (4, 5).
What I verified as accurate and needing no change: the description's problem statement, stacked-dependency explanation, placement and null rules, the event-budget sentence in helios/model-contract.md:361-364, the docs table definitions for the other five fields, and the evidence/unrun-checks sections (SKILL.md:35-37).
Should fix
1. flutter run/runtime.rs:928, description "Material limitations" bullet 1, docs/api.md:1017 — wrong actor and wrong boundary for queue_time_ms
The description says:
queue_time_msstarts at model-queue arrival, which the HTTP handler reads just before sending the request to the worker, so it includes that channel transit (microseconds).
The HTTP handler never reads this instant. ModelRuntime::enqueue_many reads arrival_ns: super::observation::monotonic_ns() while building Incoming (helios/src/server/runtime.rs:928), inside the per-prompt loop and before the rest of the loop's work and before self.sender.try_send(incoming_group) at runtime.rs:965. That value is what later reaches scheduler.set_arrival (runtime.rs:1509) and, via GenerationEvent::Finished's arrival_ns, the encoder (encode.rs:284, queue_time_ms = scheduled - arrival).
Two consequences the text gets wrong: the interval spans the remaining admission validation of every prompt in the group plus the channel send and worker pickup, not just "channel transit (microseconds)"; and enqueue_ns, which the same description contrasts against, is read later (runtime.rs:951-953), so the order the text implies is reversed. This matters because the bullet exists to tell a reader how far queue_time_ms is from vLLM's engine-core scheduler queue, and it understates the gap.
Fix for the description: "queue_time_ms starts at model-queue arrival, which the runtime reads when it builds the request group, before publishing the group to the worker channel; it therefore includes the channel send and worker pickup, and starts later than vLLM's engine-core scheduler queue."
Secondary: docs/api.md:1017 defines queue_time_ms as "Model-scheduler arrival to the first model step that includes the request" without noting where that arrival is read. Add the same clause there, so the document states the boundary the description admits is approximate.
2. docs/api.md:1047-1054 — the new cross-reference is unreadable from docs/api.md alone
The new passage reads:
The option adds no clock reads. A stream that reports
time_to_first_content_token_msreceives one additional runtime event per model step that generated a token for it, carrying that step's completion instant; other requests receive only the instants on their terminal event. Chat token observation reports the same first scheduled step asperformance.first_scheduled_ns, beside per-token timestamps; the prepared model contract defines those fields.
A reader of docs/api.md cannot act on this. A search of the file shows performance, ingress_ns, enqueue_ns, reused_prompt_tokens and token_timestamps_ns appear nowhere except this line and a passing mention of return_token_timestamps at docs/api.md:992. This is the only description of the observation extension in the HTTP API reference, and it describes it by comparison to itself: nothing in the file says the performance object is top-level and timed-only, which fields it holds, that they are absolute nanoseconds from a process-local monotonic origin, or that token_timestamps_ns is aligned with choices[0].token_ids. The claim "a client can compute the same intervals from Flare's own shape" (description, Chat timing observation bullet) is therefore only supported from helios/model-contract.md:344-355, which is the component contract, not the HTTP surface. That conflicts with AGENTS.md:46-50 (prose must make sense to a reader who has the repository) and repo-prose SKILL.md:17-21, 50-54 (no false definite references; check the affected behavior is understandable from the text and its explicit references).
Suggested rewrite, dropping the self-comparison and stating the shape:
The option adds no clock reads. A stream that reports
time_to_first_content_token_msreceives one additional runtime event per model step that generated a token for it, carrying that step's completion instant; other requests receive only the instants on their terminal event. A Chat request withreturn_token_timestamps: truealso receives the same first scheduled step asperformance.first_scheduled_ns, a top-level object emitted on timed responses besideingress_ns,enqueue_nsandreused_prompt_tokens. These are absolute nanoseconds on the process-local origin shared withchoices[0].token_timestamps_ns, sofirst_scheduled_ns - enqueue_nsis the wait for the first model step andtoken_timestamps_ns[0] - first_scheduled_nsis the same time to first token thatmetrics.time_to_first_token_msreports. The prepared model contract defines those fields. (The anchor resolves: helios/model-contract.md:326.)
3. Description "Material limitations" — two consequences are recorded nowhere in the repository
AGENTS.md:56-60 says: "Record unresolved defects, unrun checks, and pending measurements in [docs/TODO.txt], not in design documents. Do not add defect reports, investigation logs, run journals, or progress notes to the repository." Here the direction is reversed and equally non-compliant: the description states two durable limitations of the shipped flag — "the WinUI desktop controller reads only configuration settings and cannot enable the option" and "a persistent Orbit group that saves the flag cannot turn it off without a negating flag" — and neither appears in docs/cli-design.md's --enable-per-request-metrics row (docs/cli-design.md:736) or anywhere in the docs the PR touches. A reader of the repository cannot learn that the flag has no configuration key and no negating form.
Both claims are true in the code: the flag is declared on Run (flare-cli/src/cli.rs:859-862) and OrbitRun (cli.rs:646-648) with no negating --no- form and no configuration.rs mapping, and --enable-per-request-metrics is pushed into the server config map rather than a [server] key (flare-cli/src/main.rs:355-356). Fix: add to the docs/cli-design.md:736 row "no [server] configuration key and no negating flag; saved Orbit groups must be recreated to disable it", and note in the same section (near docs/cli-design.md:1317-1323, which enumerates the keys native flare run applies) that per_request_metrics is not among them.
Nits
-
flare-cli/src/cli.rs:646(OrbitRun) versus:859-860(Run) — the same flag is described two ways: Orbit's says "in rank zero's OpenAI responses", Run's says "in OpenAI Chat, Completions, and Responses output" and wraps over two lines. Both are correct, butflare run --helpandflare orbit run --helpshould read the same for the same flag; use the Run wording in both, and align with docs/cli-design.md:736. -
docs/cli-design.md:1317-1323— the list of configuration keys nativeflare runapplies should also say, one sentence, that a[server] per_request_metricskey inconfig.toml(not opened) has no effect and reports no error. The PR's own reasoning ("matching--bypass-performance-checkand--verify-weights, which also have no key") makes this predictable, and the current text leaves a reader to discover it by experiment.
Verified accurate (no change requested)
- Description: problem statement (server aggregates vs. per-request timing; why HTTP round-trip timing mixes queueing, prefill and transfer), the #552/#553 replacement rationale, the stacked-dependency paragraph, and the Discord line match the repository's conventions.
- Placement and null rules: the description,
docs/api.md:1031-1045anddocs/api.md:1038-1042agree with helios/src/server/protocol/encode.rs:244-294, encode.rs:736-743 and encode.rs:756-760 and with the HTTP wiring at helios/src/server/http.rs:617-619: JSON body top level, Chat/Completions final usage chunk, Responsesresponse.completed/response.incomplete, never Messages,nullforn > 1, omitted for several prompts. - Field table, docs/api.md:1015-1022: each row matches the arithmetic at encode.rs:275-293 (
queue_time_msfrom arrival to scheduled;time_to_first_token_msscheduled to first token;generation_time_msfirst to last token;mean_itl_msdivided bygenerated - 1;tokens_per_secondover generated tokens from scheduled to last). helios/model-contract.md:361-364(event budget: one completion instant per generated token) matchesoutput_event_capacity's1 + observed + commits(runtime.rs:918-920).- Evidence and cost sections: the command lines, pass/fail counts, the named known failing template test, and the explicit "Not run here" list satisfy SKILL.md:35-37 and :45-46; the cost section is labelled as read from code with no measurement, and no performance claim is made.
Open questions / not determinable from the code alone
- Whether
queue_time_ms's extra span (validation + send + worker pickup) is materially larger than "microseconds" is a measurement question; the description should stop asserting a magnitude it did not measure (fix in finding 1), but the true size needs a timed run. - The WinUI claim in finding 3 rests on the WinUI controller reading only configuration settings; I verified only that no
per_request_metricsconfiguration key exists inflare-cliorhelios/src/server/config.rs, not the WinUI source, which is not in this tree. The description should either qualify it as "reads only configuration settings, which do not include this option" or cite the file.