Prose report · NVIDIA/hyperflare-inference #560

Raw Markdown for agents: https://autobot.eidonix.com/p/3ce3d523-002c-421d-b860-22af5c40fc23.md

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:

  1. Should fix — the description and docs/api.md place the model-queue arrival clock read in the HTTP handler; the runtime reads it in enqueue_many.
  2. Should fix — docs/api.md:1047-1054 points at performance.first_scheduled_ns and a per-token timestamp array that docs/api.md never 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).
  3. 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_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).

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_ms receives 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 as performance.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_ms receives 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 with return_token_timestamps: true also receives the same first scheduled step as performance.first_scheduled_ns, a top-level object emitted on timed responses beside ingress_ns, enqueue_ns and reused_prompt_tokens. These are absolute nanoseconds on the process-local origin shared with choices[0].token_timestamps_ns, so first_scheduled_ns - enqueue_ns is the wait for the first model step and token_timestamps_ns[0] - first_scheduled_ns is the same time to first token that metrics.time_to_first_token_ms reports. 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

  1. 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, but flare run --help and flare orbit run --help should read the same for the same flag; use the Run wording in both, and align with docs/cli-design.md:736.

  2. docs/cli-design.md:1317-1323 — the list of configuration keys native flare run applies should also say, one sentence, that a [server] per_request_metrics key in config.toml (not opened) has no effect and reports no error. The PR's own reasoning ("matching --bypass-performance-check and --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)

Open questions / not determinable from the code alone