Code review summary scratchpad · NVIDIA/hyperflare-inference #560

Raw Markdown for agents: https://autobot.eidonix.com/p/c89d1ab6-b7db-4d3a-b68c-0ac8b68ae169.md

#1 [high] PR #560 verified code citations

PR #560 head ce44060, base main, 18 files, +1898/-123. Verified at head:

ENCODER (helios/src/server/protocol/encode.rs)

HTTP (helios/src/server/http.rs)

RUNTIME (helios/src/server/runtime.rs)

MANIFEST: helios/src/execution/manifest.rs:90-101 GraphKind::samples() = Prefill|TerminalPrefill|ScoredPrefill|Decode|Speculative|Mixed|Resume (exactly the inline list)

SERVE VISIBILITY: helios/src/server.rs:16 mod metrics; (private), :33 pub use metrics::Snapshot;, :34 pub use runtime::{Generation, GenerationEvent, ModelRuntime, Prompt}; -> GenerationEvent::Finished's times: super::metrics::RequestTimes type is not nameable outside the crate. metrics.rs:326 pub struct RequestTimes. No private_interfaces/deny attrs anywhere (search returned no matches), so cargo check is clean and the PR's claim holds — the lint does not fire for pub-in-private-module.

DECODE: helios/src/server/protocol/decode.rs:742-755 — n parsed; if protocol != Protocol::Completions && choices != 1 { return Err("n must be 1") } => Chat/Responses/Messages always one choice, so http.rs:542 last-writer-wins is latent (Completions never emits performance, http.rs:609 is Chat-only).

#2 [high] Config/CLI reachability + docs state (verified)

#3 [high] Docs gaps, cost-claim falsity, test duplication

COST CLAIM (false): PR "Claimed result" says "No clock read is added in either state"; "Cost / Option off: no commit events, unchanged event capacity, and one branch per committing step at position zero." Verified: runtime.rs:2253-2270 adds monotonic_ns() per scheduled step unconditionally (both states, and for SDK generate/generate_many callers) plus a per-lane get_or_insert; runtime.rs:1829 record.tokens_committed(completed_at_ns) also runs unconditionally at position 0. The stamp serves first_scheduled_ns for #548's histograms AND this PR's performance.first_scheduled_ns (observation.rs:70-74). Fix is wording + a measurement of the option-off path; magnitude is one clock_gettime-class read per step (trivial), so no code change required.

QUEUE_TIME BOUNDARY (misdescribed): description says "the HTTP handler reads [model-queue arrival] just before sending the request to the worker, so it includes that channel transit (microseconds)". Verified false actor/order: arrival_ns is read in ModelRuntime::enqueue_many at runtime.rs:928, inside the per-prompt build loop, before the rest of the group's admission work and before try_send at :965; enqueue_ns (observation) is read LATER at :951-953. So queue_time_ms (encode.rs:284, scheduled - arrival) includes the remaining group validation + channel send + worker pickup, and the described order of the two instants is reversed. docs/api.md:1017 defines queue_time_ms without stating where arrival is read.

DOCS CROSS-REFERENCE UNREADABLE: docs/api.md:1047-1054 introduces performance.first_scheduled_ns and per-token timestamps; a search of docs/api.md shows performance, ingress_ns, enqueue_ns, reused_prompt_tokens, token_timestamps_ns occur NOWHERE else in the file (only :1051 and a passing return_token_timestamps at :992). The authoritative description is helios/model-contract.md:344-355 (top-level performance with ingress_ns, enqueue_ns, first_scheduled_ns, reused_prompt_tokens; same monotonic origin as choices[0].token_timestamps_ns; first_scheduled_ns - enqueue_ns = wait for first step). Anchor #token-and-timing-observation resolves (model-contract.md:326 region).

TEST DUPLICATION (verified spans):

#4 [high] Research summary

Full Review — PR #560 "Emit vLLM-compatible per-request metrics from runtime instants"

Head ce44060, base main, 18 files, +1898/−123. Stacked on #548 (must merge first). Reviewed as the layer above #548, per the description.

Recommendation: request changes before merge. No serving defect was found — the layering is right (the worker owns the instants, the encoder owns placement, no HTTP clock reads), the event budget matches the worst case added, and with the option off nothing is requested or emitted. Two blockers are scope/evidence: no named requirement authorizes the change, and the Cost section claims "No clock read is added in either state", which runtime.rs:2257 contradicts.


Key findings

  1. No maintainer request, roadmap item, bug or measurement authorizes this PR (charter "What gets merged"). The requirement is a third-party gateway reading vLLM's metrics, argued by the same author in #551; #552 and #553 were both halted by review on exactly this ground.
  2. The stated cost is wrong: reserve_and_pack reads monotonic_ns() for every scheduled step, in both flag states (helios/src/server/runtime.rs:2257-2270), and tokens_committed runs unconditionally at position zero (:1829). The magnitude is one clock_gettime-class read per step, so the fix is wording plus a measurement, not code.
  3. A public enum gained a field whose type cannot be named outside the crate (GenerationEvent::Finished.times: super::metrics::RequestTimes, private module) — helios/src/server/runtime.rs:107 vs helios/src/server.rs:16,33-34.
  4. The option has no configuration-file home, and the key it does accept is silently dropped by flare/src/configuration.rs:26-34 (no deny_unknown_fields), so [server] per_request_metrics = true is accepted with no error and no effect — and the two consequences the description admits are recorded nowhere in the repository.
  5. ~140–175 added lines can go with no behaviour lost, almost all in phase_tests.rs (+559) and docs/api.md (+178), plus one dead encoder field, one redundant admission wrapper and one duplicated GraphKind predicate.

Verified sound and needing no change: event-budget arithmetic (runtime.rs:62-84); Committed emitted at position 0 before the step's tokens so the content instant can never latch from a later step (runtime.rs:1826-1833); request times survive preemption (Incoming.record moves with the request; record.max_tokens set only at first admission, runtime.rs:1591-1594); option-off wiring (http.rs:363); the content instant skips reasoning, tool-call output, empty text and named-tool-choice-discarded text (encode.rs:541-551); the six field definitions against encode.rs:275-293; the metrics: null vs absent divergence (disclosed in description and docs/api.md:1038-1045); flag forwarding parity with --api-key-file (flare-cli/src/cli.rs:671-701, port-style block per struct); flare_arc/CLI test for rank zero's re-parse.


Blockers

1. Authorization and evidence for a runtime-touching, third-party-motivated feature

Where: charter "What gets merged" and "Bring real evidence"; AGENTS.md:188-193,201-205; PR "Cost" and "Claimed result"; #551, #552, #553.

What is wrong: the charter merges PRs that address "a maintainer request, a roadmap item, a reproducible bug, a measured performance/memory issue, or bad docs". Here the requirement is llama-swap reading vLLM's metrics object; the only issue stating it, #551, is open and authored by the same person — neither a maintainer request nor a roadmap item. #553 records two automated "Review Stopped — low value or does not align with the project charter" (2026-11-27 05:17 and 06:40) and was closed as superseded; #552 is closed likewise. AGENTS.md:188-193 is explicit that new switches need "a concrete requirement" and that hypothetical consumers do not establish one. Separately, the change adds work to the worker hot path in both states (see Blocker 2), and the description states "CPU overhead under load was not measured", while the charter asks runtime changes to "bring real evidence".

Why it matters: this is the exact ground the two predecessors were stopped on, so merging without it repeats a rejected decision. The engineering is good; the question is whether the feature is wanted.

What settles it: a maintainer statement on #551 or in the PR that per-request response metrics are wanted (plus, for a roadmap link, entry under charter roadmap #6 in-process Rust SDK, whose public surface item 3 repairs), and a before/after option-off throughput/latency number on a served workload against main.

2. "No clock read is added in either state" is false, and the option-off branch count understates the diff

Where: helios/src/server/runtime.rs:2253-2270 (read at :2257, per-lane stamp :2258-2270), :1826-1833; PR description Claimed result and Cost.

What is wrong: reserve_and_pack calls super::observation::monotonic_ns() for every scheduled step, unconditionally, and stamps record.times.first_scheduled_ns per lane. That read runs with the flag on and off, and for SDK callers of generate/generate_many that never reach HTTP. record.tokens_committed(completed_at_ns) at :1829 is likewise unconditional. The stated "only added work is one predictable branch per committing step at position zero" and "No clock read is added in either state" are therefore both wrong for the code at head.

The instant serves two consumers — #548's request histograms and this PR's own client-visible performance.first_scheduled_ns (helios/src/server/observation.rs:70-74, helios/src/server/http.rs:609-615) — so it is mandatory, but it is a new per-step read introduced by the change set and the claim is checkable and false.

Why it matters: reviewers judge hot-path impact from the Cost section; a cost claim that the code contradicts is worse than a disclosed cost. The magnitude itself is trivial (one clock read beside a kernel launch).

Requested change: in Claimed result and Cost, state that one monotonic read per scheduled model step is added (serving first_scheduled_ns for both the histograms and performance.first_scheduled_ns) and that Committed adds no read of its own because it reuses the instant the histogram path already took; and record the option-off measurement under Blocker 1 rather than asserting "unchanged cost". No code change requested.


Should Fix

1. GenerationEvent::Finished.times has a type no out-of-crate consumer can name

Where: helios/src/server/runtime.rs:104-108 (field times: super::metrics::RequestTimes at :107), helios/src/server/metrics.rs:324-330 (pub struct RequestTimes), helios/src/server.rs:16 (mod metrics; private), :33 (pub use metrics::Snapshot;), :34 (pub use runtime::{Generation, GenerationEvent, ModelRuntime, Prompt};).

What is wrong: GenerationEvent is re-exported publicly, but Finished's new field is typed with a type from a private module. An out-of-crate consumer of flare_helios::server::GenerationEvent cannot name it, so it can read the instants only by destructuring other fields, and it cannot construct a Finished event in a test or a substitute runtime. Before this PR Finished was all primitives. docs/api.md and helios/model-contract.md now describe the field as contract. I confirmed no private_interfaces/deny/warn attribute exists in the tree, so cargo check --features server being clean is consistent — the lint simply does not fire for pub-in-private-module.

Why it matters: the charter roadmap's in-process Rust SDK (#6) is the consumer of this public enum; publishing an unnameable field is a permanent wart in that surface.

Requested change (either): re-export alongside Snapshot (pub use metrics::RequestTimes; at helios/src/server.rs:33), or keep the instants off the public event — they are consumed only by the HTTP encoder, so exposing them via Incoming/Generation would leave the public enum's shape unchanged. The primitive arrival_ns: u64 at runtime.rs:105 is fine.

2. Flag-only home plus a silently ignored configuration key, and the admitted limitations exist only in the PR body

Where: flare-cli/src/cli.rs:646-648 (Orbit), :859-862 (run), :697-699 (forwarding); flare-cli/src/main.rs:353-357; helios/src/server/config.rs:353-357; flare/src/configuration.rs:26-34; flare/src/settings.rs:30,157,208; docs/cli-design.md:1317-1323,1342-1348,1384-1386,736; AGENTS.md:452-456; description "Material limitations".

What is wrong: two holes.

Why it matters: AGENTS.md:452-456 gives a setting exactly one home; the PR picks the flag but leaves the runtime accepting a key no front end can supply, and hides the consequence in a description that will not be read next month.

Requested change (either):

3. queue_time_ms's boundary is described with the wrong actor and the wrong order

Where: description "Material limitations" bullet 1; docs/api.md:1017; helios/src/server/runtime.rs:926-953,965; helios/src/server/protocol/encode.rs:284.

What is wrong: the description says the HTTP handler "reads [model-queue arrival] just before sending the request to the worker, so it includes that channel transit (microseconds)". The HTTP handler never reads it. ModelRuntime::enqueue_many reads arrival_ns while building Incoming, inside the per-prompt loop (runtime.rs:928), before the rest of that group's admission work and before self.sender.try_send(incoming_group) at :965; the observation enqueue_ns is read later, at :951-953. So queue_time_ms (scheduled − arrival, encode.rs:284) covers the remaining group validation plus channel send plus worker pickup — more than "channel transit", and the order the text implies for arrival vs enqueue is reversed.

Why it matters: the bullet exists precisely to tell a reader how far queue_time_ms sits from vLLM's engine-core scheduler queue; it understates the gap and asserts an unmeasured magnitude (microseconds).

Requested change: 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." docs/api.md:1017 — append the same clause so the document states the boundary rather than only the interval.

4. docs/api.md refers to a performance shape it never documents

Where: docs/api.md:1047-1054; helios/model-contract.md:344-355; helios/src/server/observation.rs:70-74.

What is wrong: the new passage says "Chat token observation reports the same first scheduled step as performance.first_scheduled_ns, beside per-token timestamps; the prepated model contract defines those fields." A search of docs/api.md shows performance, ingress_ns, enqueue_ns, reused_prompt_tokens and token_timestamps_ns appear nowhere else in the file (only this line, plus a passing return_token_timestamps at :992). A reader of the HTTP API reference therefore cannot learn that performance is a top-level object on timed Chat responses only, which four fields it holds, that they are absolute nanoseconds on a process-local monotonic origin shared with choices[0].token_timestamps_ns, or that token_timestamps_ns aligns with choices[0].token_ids. The description's claim that "a client can compute the same intervals from Flare's own shape" is supported only from the component contract.

Why it matters: AGENTS.md:46-50 and the repo-prose skill require prose that a reader with the repository can act on; a self-comparison is not a definition.

Requested change: replace the paragraph's second half with one sentence stating the shape — "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 same process-local origin as choices[0].token_timestamps_ns, so first_scheduled_ns - enqueue_ns is the wait for the first model step" — and keep the existing link to helios/model-contract.md (anchor resolves, model-contract.md:326).


Subtract / Simplify

Net: about 140–175 of +1898 lines (≈8%) removable with no behaviour lost. Ranked by lines saved.

X1. Delete Timing::streaming and the record_commit guard — ~10–12 lines (should fix)

helios/src/server/protocol/encode.rs:79-80 (field), :250 (Timing { streaming, .. }), :255-261 (guard). enable_request_metrics returns streaming && matches!(self.metrics, Some(Single(_))) (:252), and http.rs:363 passes that result as commits, so every record_commit call reaches a Single timing whose streaming was set from the same streaming == true. The && timing.streaming clause at :257 is unreachable-false, and step_ns has no other reader (:543-551). Delete the field and the clause:

pub fn record_commit(&mut self, at_ns: u64) {
    if let Some(RequestMetrics::Single(timing)) = &mut self.metrics {
        timing.step_ns = Some(at_ns);
    }
}

Do not also drop enable_request_metrics's streaming parameter in favour of Encoder::streaming (:97): that field is written only by set_logprobs (:190-193), which needs a Frontend, and the new encoder tests construct encoders through metered() (tests.rs:2318-2332) without ever calling it. Keep the parameter; delete only the duplicate field. (The Conventions lens proposed reading self.streaming; that change would break those tests.)

X2. Collapse generate_observed and enqueue into the existing enqueue_many — ~12 lines (should fix)

helios/src/server/runtime.rs:843-854: generate_observed (:847-849) → enqueue (:851-854) → enqueue_many, a third admission spelling for one prompt. Its only non-test caller, helios/src/server/http.rs:368-372, immediately re-wraps the result in vec![g]. Call state.model.generate_many_observed(vec![prompts.remove(0)], Some(observation.timestamps), commits) there instead; then enqueue has one caller left (generate, :843-845) and can be inlined:

pub fn generate(&self, prompt: Prompt) -> Result<Generation> {
    self.enqueue_many(vec![prompt], None, false).map(|mut group| group.remove(0))
}

Delete generate_observed and enqueue, and the two test call sites that exist only to exercise them (runtime/phase_tests.rs:3749,3803). Keep generate, generate_many (option-off paths, protocol/decisions/mod.rs:838 (not opened), response_lifecycle_tests.rs:122 (not opened)) and generate_many_observed (two real call sites, http.rs:367,374). Note this supersedes the Subtractive lens's weaker variant ("delete generate_many_observed"): that wrapper is reached twice and removing it saves only its signature, whereas generate_observed/enqueue disappear entirely.

X3. Delete the phase tests that re-prove the encoder's placement and null rules — ~90–100 of +559 lines (should fix)

helios/src/server/protocol/tests.rs:2349-2453 already pins, in one place: exact values per protocol, the single carrier frame, choices == [], usage presence, missing include_usage, Messages omitted, n > 1 → null, several prompts → omitted, single-token null, and the all-null shape. helios/src/server/runtime/phase_tests.rs re-proves the same rules through full worker runs:

Keep per_request_metrics_reach…'s remaining assertions and, above all, performance_reports_the_first_scheduled_model_step (:4616-4647) and per_request_metrics_report_the_runtime_instants_of_a_stopped_reasoning_answer (:4693-4743) — those prove the instants land inside the right worker step (within() checks at :4728-4737), which nothing else does. Also fold the redundant :4741 into :4641.

X4. Cut the docs/api.md histogram prose that restates the Prometheus HELP strings — ~35–40 of +178 lines (should fix)

Each population is stated three times: the HELP string shipped with the series (helios/src/server/metrics.rs:1548-1600, e.g. request_queue_seconds at :1554-1558, inter_token_latency_seconds at :1588-1592), the prose at docs/api.md:305-386, and the vLLM correspondence table at :475-517. Compare docs/api.md:328-346 with metrics.rs:1554-1577: near-identical wording. Reduce docs/api.md:311-386 to the facts only the prose can carry — which histograms pair, that they accumulate since server start, and the cancelled/failed exclusion — and let the table at :475-517 tie a vLLM name to a Flare series. This block arrives through #548; agree the cut with that PR rather than duplicating it in both.

X5. Trim the "Per-request metrics" section's restatements — ~25–30 lines (nit)

docs/api.md:1038-1045 restates null rules the table directly above (:1015-1022) already defines and that metrics_value computes (encode.rs:270-293); two sentences suffice: "all six keys are always present; a field is null when the request did not reach the instants it spans (content: bodies and non-text streams; itl: a single token; token fields: no generation)". docs/api.md:1047-1050 restates the event-budget/cost statement that helios/model-contract.md:361-364 carries normatively and links to in the same paragraph. Keep the table, the placement paragraph (:1031-1036), the two-sentence null rule, the shortest form of Should Fix 4, and the model-contract link.

X6. Replace the inline GraphKind list with GraphKind::samples() — ~9 lines (should fix)

helios/src/server/runtime.rs:1746-1757 spells seven graph kinds inline to decide metrics.model_step(...). That is exactly the predicate helios/src/execution/manifest.rs:90-101 defines as samples() (same seven variants, different order), and the same file already consumes it at runtime.rs:2988. A seventh spelling is a second source of truth: a future sampling kind updates samples() and every consumer except this one, and flare_model_step_tokens then silently stops counting it — a drift no test pins. Change to if kind.samples() { self.metrics.model_step(prefill + generated.len() as u64); }. It also expresses the docs sentence added at docs/api.md:383-386, since !samples() is precisely "initialization, restore, vision, and snapshot graphs".

X7. Delete the config bootstrap strict-type loop — ~14 lines (nit, marginal)

helios/src/server/config.rs:734-739 rejects 1, "true" and null. The key's only writer emits a literal (flare-cli/src/main.rs:355-357), and the shipped CLI test per_request_metrics_flag_is_off_by_default_and_reaches_rank_zero (flare-cli/src/cli.rs:1378-1401) covers the flag. Keep the absent/true/false assertions (:727-733); drop the rejecting loop. Least certain of the seven cuts.


Nits

N1. first_scheduled_ns is last-writer-wins in the HTTP handler

helios/src/server/http.rs:542 assigns (first_scheduled_ns = times.first_scheduled_ns;) and :609-615 builds the body's performance from it. With several Finished events the reported value is the last request's, not the earliest. Latent today — helios/src/server/protocol/decode.rs:742-755 rejects n != 1 for every protocol except Completions, and performance is Chat-only (http.rs:609) — so fold anyway: first_scheduled_ns = match (first_scheduled_ns, times.first_scheduled_ns) { (Some(a), Some(b)) => Some(a.min(b)), (a, b) => a.or(b) };.

N2. The first-scheduled stamp precedes a submission that can fail

helios/src/server/runtime.rs:2257-2270 stamps after self.scheduler.commit(step, fence)? and before pack_inputs/pack_vision (:2271-2315), which can return Err. A request whose packing fails keeps a scheduled instant for a step that never executed, and queue_time_ms then describes a step that never ran. Only reachable on the failed-request path (excluded from the histograms, error response), so cosmetic — stamp after a successful pack, or clear the field on the error path.

N3. Magic key count in the encoder test

helios/src/server/protocol/tests.rs:2451 asserts unrecorded.as_object().unwrap().len() == 6, a literal that must track the six keys spelled at :2357-2366. Build the all-null object once from the same key list and compare whole values, so adding a field breaks one place.

N4. The doc comment restates docs/api.md

helios/src/server/protocol/encode.rs:238-243 enumerates placement for all four protocols, the multi-prompt omission and the several-choice null — all stated again in docs/api.md:1031-1045 and partly again in enable_request_metrics's own body. AGENTS.md:190-192 does not count comment expansion as a contribution. Keep only what the code cannot show: "Places vLLM's per-request metrics (see docs/api.md) and returns whether the content instant applies, i.e. whether the worker must send Committed events."

N5. The same flag is described two ways

helios/src/server/../flare-cli/src/cli.rs:646 (Orbit) says "in rank zero's OpenAI responses"; :859-860 (run) says "in OpenAI Chat, Completions, and Responses output" over two lines. Use the run wording in both so flare run --help and flare orbit run --help agree, and align with docs/cli-design.md:736.


Open questions / not verified

#5 [high] Subtraction inventory with line savings (final X1–X7)

Net ≈140–175 of +1898 lines (≈8%) removable, no behaviour lost. Ranked:

X1 (should fix, ~10–12 lines, encode.rs): delete Timing::streaming (encode.rs:79-80, set :250) and the && timing.streaming clause in record_commit (:255-261). Unreachable-false because :252 returns streaming && matches!(..Single(_)) and http.rs:363 feeds that to commits. Replacement body:

pub fn record_commit(&mut self, at_ns: u64) {
    if let Some(RequestMetrics::Single(timing)) = &mut self.metrics {
        timing.step_ns = Some(at_ns);
    }
}

RECONCILIATION: Conventions lens proposed reading self.streaming (Encoder field :97) instead — REJECT that: Encoder::streaming is written only by set_logprobs (:190-193) which requires a Frontend; encoder tests build via metered() (tests.rs:2318-2332) and never call it, so they could not set streaming. Keep the parameter, delete only the duplicated field.

X2 (should fix, ~12 lines, runtime.rs): delete generate_observed (:847-849) and enqueue (:851-854). Caller http.rs:368-372 becomes state.model.generate_many_observed(vec![prompts.remove(0)], Some(observation.timestamps), commits); generate (:843-845) inlines self.enqueue_many(vec![prompt], None, false).map(|mut g| g.remove(0)). Drop test call sites runtime/phase_tests.rs:3749,3803. Keep generate, generate_many (decisions/mod.rs:838, response_lifecycle_tests.rs:122) and generate_many_observed (two call sites, http.rs:367,374). RECONCILIATION: Subtractive lens proposed deleting generate_many_observed (weaker, ~12 lines of signature only). SUPERSEDED — delete generate_observed/enqueue instead.

X3 (should fix, ~90–100 of phase_tests.rs +559): delete the phase assertions re-proving encoder rules — phase_tests.rs:4778 (choices==[]), :4791-4794 (content==ttft), the flag-off loop :4802-4815 (replace with one ~20-line on/off test), and the 56-line n=2 worker-drive block :4816-4871 (covered by protocol/tests.rs:2420-2432). KEEP phase_tests.rs:4616-4647 (performance_reports_the_first_scheduled_model_step), :4693-4743 (stopped reasoning provenance, within() at :4728-4737), :4780 (response.incomplete), :4783-4789. Fold :4741 into :4641.

X4 (should fix, ~35–40 of docs/api.md +178): histogram populations are stated 3×: HELP strings metrics.rs:1548-1600 (request_queue_seconds :1554-1558, inter_token_latency_seconds :1588-1592), prose docs/api.md:305-386 (near-identical wording to :328-346), vLLM table docs/api.md:475-517. Cut :311-386 to the facts only prose carries (which histograms pair, accumulate since server start, cancelled/failed exclusion); let the table at :475-517 map vLLM names. Arrives via #548 — agree the cut with that PR.

X5 (nit, ~25–30 lines): docs/api.md:1038-1045 restates the null table at :1015-1022 and encode.rs:270-293 → two sentences; :1047-1050 restates the budget/cost statement carried normatively by helios/model-contract.md:361-364 and linked in the same paragraph.

X6 (should fix, ~9 lines, runtime.rs): runtime.rs:1746-1757 inline 7-variant match → if kind.samples() { self.metrics.model_step(prefill + generated.len() as u64); }. GraphKind::samples() = manifest.rs:90-101 (same seven, different order); precedent in same file runtime.rs:2988; docs/api.md:383-386 sentence is exactly !samples().

X7 (nit, marginal, ~14 lines): delete config.rs:734-739 strict-type loop (rejects 1/"true"/null); keep :727-733 absent/true/false; covered by flare-cli/src/cli.rs:1378-1401.

#6 [high] Final report structure, counts, and reconciliation decisions

VERDICT: request changes before merge. No serving defect. Layering right; event budget matches worst case; option-off requests/emits nothing. Both blockers are scope/evidence.

COUNTS (must match summary): Blockers 2, Should fix 4, Subtract/Simplify 7, Nits 5.

BLOCKERS B1 Authorization + evidence: no maintainer request/roadmap item/bug/measurement (charter "What gets merged"); #551 open, same author; #552/#553 halted by review on that ground (#553 comments 2026-11-27 05:17, 06:40, closed 2026-11-28 02:05 as superseded); AGENTS.md:188-193,201-205; "CPU overhead under load was not measured". Settle: maintainer statement on #551 + option-off before/after on a served workload. B2 False cost claim: runtime.rs:2257 unconditional per-step monotonic_ns() + per-lane get_or_insert (:2258-2270), and :1829 tokens_committed unconditional — contradicts "No clock read is added in either state" and "one branch per committing step". Serves both #548 histograms and performance.first_scheduled_ns (observation.rs:70-74). Fix = wording + measurement, no code.

SHOULD FIX S1 public GenerationEvent::Finished.times: private-module type (runtime.rs:107, server.rs:16,33-34). Fix: re-export pub use metrics::RequestTimes; at server.rs:33, or keep instants off the public enum. No private_interfaces/deny/warn attrs in tree → cargo check clean is consistent. S2 flag-only home + silently ignored [server] key + limitations only in PR body. Fix: either add Option to flare/src/configuration.rs::Server + Settings + docs/cli-design.md:1317-1319,1342-1348 (as #553 did), or reject the key and record both limitations at cli-design.md:736 + near :1317-1323. S3 queue_time_ms boundary misdescribed (wrong actor, reversed order). Prose lens finding 1; verified against runtime.rs:928 vs :951-953 and :965. Fix description + docs/api.md:1017. S4 docs/api.md:1047-1054 references a performance shape the file never documents (search: only :1051, plus return_token_timestamps :992). Fix: state the four-field top-level shape + shared monotonic origin + derive first_scheduled_ns - enqueue_ns; keep model-contract.md#token-and-timing-observation link (anchor resolves at model-contract.md:326).

NITS: N1 http.rs:542 last-writer-wins → min-fold (latent: decode.rs:742-755 rejects n≠1 except Completions; performance is Chat-only http.rs:609). N2 first_scheduled stamp precedes fallible pack (runtime.rs:2257-2270 vs :2271-2315). N3 magic 6 at tests.rs:2451 (key list at :2357-2366). N4 encode.rs:238-243 doc comment restates docs/api.md. N5 help-text asymmetry cli.rs:646 vs :859-860.

RECONCILIATION CALLS

VERIFIED SOUND (state briefly, no action): event budget runtime.rs:62-84; Committed at position 0 before tokens runtime.rs:1826-1833; times survive preemption (Incoming.record, runtime.rs:1591-1594); option-off wiring http.rs:363; content instant skips reasoning/tool-call/empty/named-tool-choice (encode.rs:541-551); six field definitions vs encode.rs:275-293 and docs/api.md:1015-1022; metrics null-vs-absent disclosed (docs/api.md:1038-1045, http.rs:617-619); flag forwarding parity cli.rs:671-701,697-699 + cli.rs:1378-1401; flare-cli/src/main.rs:353-357 literal write; Slack — none.

#7 [medium] Nit-level citations and open questions not yet captured

NIT DETAILS

AGENTS.md QUOTES (verified): :46-50 read the repo-prose skill, prose must stand alone; :57-60 record unresolved defects/unrun checks/pending measurements in docs/TODO.txt, not design docs; :188-193 reject unsupported abstractions/churn, no switches without a concrete requirement, comment expansion not a contribution; :194-199 tests must exercise the affected behaviour, keep PRs focused; :201-205 explicit maintainer request is sufficient authorization; :452-456 a setting has exactly one of three homes.

OPEN QUESTIONS for the report: (a) were the phase-test carrier assertions added deliberately as an encoder/handler drift guard (shrinks X3 to the :4791-4794 half if so); (b) WinUI persisted config could in principle carry the key — Windows source not in tree; (c) how much more than "microseconds" queue_time_ms spans is a measurement; (d) #548 still open so the histogram half of the diff and the docs/api.md block X4 cuts cannot be judged independently; (e) not re-run: test suites, both cargo check commands, GPU, live server, llama-swap, gateway, Windows.

SUMMARY FIELD (compact, counts-only, <500 chars): recommendation + 1–2 sentence takeaway + Blockers 2 / Should fix 4 / Subtract 7 / Nits 5. No bullets, no code blocks.