#1 [high] Research summary
Read the charter, AGENTS.md, docs/design-review.md, .agents/skills/repo-prose/SKILL.md (not opened), the full PR description and commits, and the changed prose (docs/api.md, docs/cli-design.md, helios/model-contract.md, new doc comments in encode.rs/server.rs/runtime.rs/cli.rs (not opened)) against the code those passages describe (runtime.rs, http.rs, encode.rs, config.rs, metrics.rs, main.rs, flare/src/configuration.rs), plus related items #548/#551/#553.
Five prose findings. Should fix: (1) the description's claim that "the HTTP handler reads" the model-queue arrival instant is wrong — ModelRuntime::enqueue_many reads it at runtime.rs:928, before the remaining validation and the try_send at :965, and docs/api.md:1017 should carry the same boundary clause; (2) the two disclosed limitations (WinUI cannot enable the option, a persistent Orbit group cannot turn it off) are recorded only in the description, not in docs/TODO.txt or cli-design.md as AGENTS.md:56-60 requires, though both claims are true in cli.rs:697 and flare/src/configuration.rs; (3) docs/api.md:1047-1054 compares performance.first_scheduled_ns to itself and never says what the reader receives — a rewrite is supplied. Nits: (4) the OrbitRun help text at cli.rs:646 describes the option differently from Run's at :859 and cli-design.md:736; (5) cli-design.md:1317-1323 should note that [server] per_request_metrics in config.toml (not opened) has no effect and reports no error.
Verified accurate and needing no change: the four-part description order and Discord line, the stacked-dependency explanation, the placement and null rules in docs/api.md:1031-1045 against encode.rs:244-294/:736-743/:756-760 and http.rs:617-619, and the event-budget sentence at model-contract.md:361-364 against output_event_capacity's 1 + observed + commits.
#2 [high] Should fix: description mislocates the model-queue arrival clock read
PR #560, description section "Material limitations", first bullet: "queue_time_ms starts at model-queue arrival, which the HTTP handler reads just before sending the request to the worker, so it includes that channel transit (microseconds)."
Wrong actor and wrong boundary. The HTTP handler never reads it. ModelRuntime::enqueue_many reads arrival_ns: super::observation::monotonic_ns() when it constructs each Incoming (helios/src/server/runtime.rs:928), before the rest of the per-prompt validation loop and before self.sender.try_send(incoming_group) at runtime.rs:965; the same value then goes to scheduler.set_arrival at runtime.rs:1509.
Consequence: the interval to the first scheduled step includes the remaining admission validation of every prompt in the group plus the channel send and worker pickup, not just "channel transit (microseconds)". enqueue_ns, which the description contrasts against, is read later at runtime.rs:951-953.
Fix: "the runtime reads it when it builds the request group, before publishing the group to the worker channel, so it includes the channel send and worker pickup, and it is later than vLLM's engine-core scheduler queue start."
Secondary: docs/api.md:1017 defines queue_time_ms as "Model-scheduler arrival to the first model step that includes the request" with no note of the pre-send read. Add the same clause so the doc states the boundary the description admits is approximate.
#4 [high] Status at head 046aaef: earlier findings 1 and 3 resolved
Head 046aaef ("State the per-request metrics boundaries and the include_usage gap") and f0ccabcc addressed two of the previous report's findings:
-
docs/api.md:1026-1029 now says "The runtime reads model-queue arrival when it builds the request group, before publishing the group to the worker channel, so
queue_time_msincludes the channel send and worker pickup and starts later than vLLM's engine-core scheduler queue." This matches helios/src/server/runtime.rs:908-945 (arrival_ns: monotonic_ns()inside the per-prompt loop buildingIncoming,self.sender.try_send(incoming_group)at :946-947). The PR description "Result" likewise now says "queue time starts when the runtime builds the request group, so it includes the channel send to the worker". Old finding (description said the HTTP handler reads it) is resolved. -
The description's "Material limitations" bullets about the WinUI controller being unable to enable the option and a persistent Orbit group being unable to disable it are no longer in the description at all; instead the description says the option is reachable through
[server] per_request_metrics. Verified true: flare/src/settings.rs:224 and flare/src/controller.rs:2566 push settings.per_request_metrics into the server config map. So the previous AGENTS.md:56-60 finding is moot. -
docs/api.md:1045-1050 now describes
performanceconcretely ("top-levelperformanceobject holdingingress_ns,enqueue_ns,first_scheduled_nsandreused_prompt_tokens; the three instants are absolute nanoseconds on the same process-local origin aschoices[0].token_timestamps_ns") and links helios/model-contract.md#token-and-timing-observation (anchor exists at model-contract.md:326). Previous cross-reference finding largely resolved; remaining question is whether api.md documentstoken_timestamps_ns/return_token_timestampsanywhere else (only :992 and :1045-1048 mention them), so the new section is now the de facto definition — check whether that is sufficient.
#5 [high] Report of 2026-11-28 (final): verdict, findings, verified claims
Verdict: should-fix issues only. No blocking findings. The description now answers why/what/result/evidence in order (AGENTS.md:72-112), and the earlier WinUI/Orbit-limitation bullets are gone.
Should fix
-
PR description, "Result", third sentence: "This PR adds no clock read; the one monotonic read per scheduled model step comes from #548." The second clause is false at head 046aaef, and contradicts the description's own "What changed" bullet saying the Chat
performanceobject "gainsfirst_scheduled_ns". This diff adds the per-step read:helios/src/server/runtime.rs:2259-2275(reserve_and_packcallssuper::observation::monotonic_ns()and stampsrecord.times.first_scheduled_nsviaget_or_insert), moved there from beforepack_inputsby commit 66245920. The diff shows the removed pre-pack block and the new post-pack block, so the reader can see the read is added by this PR. Fix: "This PR adds one monotonic read per scheduled model step, after packing inreserve_and_pack; otherwise it reads no clock." It is per step, not per request — one instant shared by every lane in the step, which docs/api.md:1025-1026 already states. -
docs/api.md:1005-1050(new "Per-request metrics") is the only place in the HTTP API reference that touchesperformance,token_timestamps_ns,return_token_timestamps, andreturn_token_ids: the whole file mentions them only in passing at :991-992 and in this new section at :1045-1048. The new passage relies onchoices[0].token_timestamps_nsas if already defined. A reader of the HTTP API doc cannot learn thatreturn_token_timestampsrequiresreturn_token_ids(helios/src/server/observation.rs:37-39), that JSON puts the array inchoices[0]and a Chat stream emits one metadata-only chunk per token (helios/src/server.rs:915,helios/src/server/http.rs:603). The link to helios/model-contract.md#token-and-timing-observation resolves (model-contract.md:326), so this is not an unexplained reference, but the HTTP surface should define the shape it references. Fix: add one sentence to the "Chat token observation extensions" paragraph at docs/api.md:991-992 (or here) giving placement and thereturn_token_idsrequirement.
Nits
-
flare-cli/src/cli.rs:646-648(OrbitRun) and:859-863(Run) give the same flag help text butflare run --helpandflare orbit run --helpdiffer in wrapping/context, and neither mentions that[server] per_request_metricssets the same option, unlike docs/cli-design.md:736. Use one wording and mention the configuration key. -
docs/cli-design.md:1317-1323: correctly listsper_request_metricsamong keys nativeflare runapplies (flare-cli/src/config.rs:73-75). It does not sayflare orbit runignores that key — OrbitRun has no configuration path — so an operator who sets it and launches Orbit gets no metrics and no error. One clause states the qualification, per AGENTS.md:52-56.
Verified accurate, no change requested
- Description's four-part order; stacked dependency on #548 and merge order; Discord line; "Closes #551".
- docs/api.md:1016-1023 field table matches
Encoder::metrics_value(helios/src/server/protocol/encode.rs:251-275): queue time = scheduled − arrival; TTFT = scheduled → first token; generation = first → last; mean ITL = generation/(generated−1); tokens/s over scheduled → last; content TTFT always null. - docs/api.md:1031-1043 placement and null rules match
enable_request_metrics(encode.rs:233-241), the usage chunk (encode.rs:711-718), the Responses terminal object (encode.rs:731-743), and the JSON body placement (helios/src/server/http.rs:613-615). - docs/api.md:1026-1029 queue-arrival boundary matches runtime.rs:908-947: arrival read while building
Incoming,try_sendafter the loop. This clears the previous report's finding. - docs/api.md:1025-1026 "one completion instant per step, shared by tokens of a speculative step" matches runtime.rs:1649 (
completed_at_nsread once incomplete) and runtime.rs:1800-1801 (tokens_committedonly atposition == 0). - docs/api.md:1045-1050
performancecontents match helios/src/server/observation.rs:70-74 and are timed-only. - helios/model-contract.md:343-355: "when the worker reserves and packs that step before submitting it" matches the stamp after
pack_inputsand beforesubmit(runtime.rs:2259-2275 vs :2279); "a preempted request keeps its original value" matchesget_or_insert; "null when no model step included the request" matches theOption. - docs/cli-design.md:736 and :1349 match the flag (flare-cli/src/cli.rs:860-863), the config fallback (flare-cli/src/config.rs:73-75, flare/src/configuration.rs:34, flare/src/settings.rs:224), and the controller path (flare/src/controller.rs:2566).
- Evidence section names hardware, package, enabling path, 819/1 test split with the known unrelated template test, the earlier-revision caveat for the CPU numbers, and the "Not run: multi-GPU cores and the Windows build" line; consistent with AGENTS.md:103-112 and SKILL.md:35-37.
- New Rust doc comments (encode.rs:232-250, runtime.rs:2259-2261, server.rs:127-129) state invariants, not history.