#1 [high] should fix: Timing::streaming is dead state; record_commit guard unreachable
PR 560, helios/src/server/protocol/encode.rs:79-80 (Timing::streaming), :244-253 (enable_request_metrics stores it), :254-261 (record_commit guard && timing.streaming).
http.rs:363 computes commits = state.per_request_metrics && encoder.enable_request_metrics(decoded.stream), and enable_request_metrics returns streaming && matches!(self.metrics, Some(Single(_))). So GenerationEvent::Committed is only ever produced when streaming is true. record_commit (encode.rs:255) is the only writer of timing.step_ns, and the && timing.streaming guard therefore never rejects a call: it is unreachable-false. content_ns is only set from step_ns (:546-551), so the field has no other use.
Smaller version: drop the field, construct Timing::default(), and return the bool from the placement decision:
pub fn enable_request_metrics(&mut self) -> bool { ... } // reads self.streaming, set by set_logprobs (:190-193) with the same decoded.stream
The streaming parameter of enable_request_metrics is also redundant: Encoder::streaming already holds the same value (set in http.rs:349-353 set_logprobs(..., decoded.stream)), so the call at http.rs:363 can be encoder.enable_request_metrics(). This removes a field, a guard, a threaded parameter and the duplicated notion of "streaming" on the same struct.
#3 [high] D-lens findings: dead Timing::streaming guard, redundant generate_observed, duplicated tests, prose weight
Items found, with citations, in the simplicity lens. Severity first in title.
A) should fix — helios/src/server/protocol/encode.rs:79-80, :244-253, :254-261. Timing::streaming is redundant with Encoder::streaming (encode.rs:97, set by set_logprobs at :190-193 from http.rs:349-353 with the same decoded.stream). The record_commit guard && timing.streaming can never reject: enable_request_metrics returns streaming && matches!(metrics, Some(Single(_))), and http.rs:363 only sets commits when that returns true, so Committed events only ever reach a streaming single-choice encoder. step_ns is only written by record_commit and only read at :546-551. Fix: delete Timing::streaming, drop the streaming parameter of enable_request_metrics and read self.streaming, and remove the guard. Deletes a field, a guard, a threaded bool, and a second notion of "streaming".
B) should fix — helios/src/server/runtime.rs:846-853 generate_observed is a one-line wrapper over enqueue_many(vec![prompt], Some(timestamps), commits); generate_many_observed (:860-869) is the same wrapper. Only non-test caller: http.rs:368-372 (observation.token_ids && size == 1). Threading commits through three signatures and two test call sites (phase_tests.rs:3749, :3803) exists because of this third entry point. Fix: delete it, call generate_many_observed(vec![prompt], Some(observation.timestamps), commits) at http.rs:368.
C) should fix (tests that do not prove a distinct behaviour) — helios/src/server/protocol/tests.rs:2350-2491 already asserts exact values, the single carrier frame, and null rules for Chat/Completions/Responses, stream and body. per_request_metrics_reach_completions_and_responses_where_vllm_places_them (phase_tests.rs:4746-4798) re-asserts the carrier frames and null rules over HTTP; what only the phase tests prove is that the instants fall inside worker steps (within) and that commits == stream. content_instant_excludes_reasoning_tool_calls_and_suppressed_text (tests.rs:2452-2491) duplicates the Chat/stream half of per_request_metrics_report_the_runtime_instants_of_a_stopped_reasoning_answer (phase_tests.rs:4693). AGENTS.md:194-199 asks tests to exercise the affected behaviour; the HTTP-level carrier assertions exercise the encoder, not HTTP. Fix: keep exact-value/null tests in the encoder test, keep only instant-provenance and commits flag in the phase tests; deletes ~15 lines and two served-worker runs.
D) nit — helios/src/server/protocol/tests.rs:2444-2446 asserts metrics_value() has exactly 6 keys via a literal 6 while :2380-2390 already spells the six keys. Assert equality with the all-null expected shape instead.
E) nit — comment/prose weight. encode.rs:238-243 doc comment restates the placement and null rules that docs/api.md's "Per-request metrics" section (added, ~50 lines) states again as prose and as a table. AGENTS.md:188-193 rejects comment expansion. Keep in code only the non-obvious invariant: the encoder's placement decision also decides whether the worker must send commit instants.
Things checked and NOT reported (no defect found in this lens): metrics_value builds all six keys with Option maps (no fallback path); the Batch-style Buckets/Histogram refactor already removes parallel render loops (metrics.rs:208-300,:1545+); publish_gauges (runtime.rs:1227-1237) de-duplicates the two gauge stores; generate/generate_many remain needed for the option-off path at phase tests; flare-cli flag plumbing is three lines per site and mirrors --bypass-performance-check with no config key, as the description says.
#2 [medium] should fix: generate_observed is a redundant third entry point
PR 560, helios/src/server/runtime.rs:846-853 generate_observed(prompt, timestamps: bool, commits) is a one-line wrapper over enqueue_many(vec![prompt], Some(timestamps), commits); generate_many_observed (:860-869) is the same wrapper with Option<bool> and a vec. The only non-test caller of generate_observed is http.rs:368-372 (observation.token_ids && size == 1).
The PR has to thread commits through three signatures and their test call sites (phase_tests.rs:3749, :3803) because this wrapper exists. Deleting it and calling state.model.generate_many_observed(vec![prompt], Some(observation.timestamps), commits) at http.rs:368 removes one of the three parallel admission entry points (and the prompts.remove(0) dance), leaving generate/generate_many for the option-off path and generate_many_observed for everything observed. The per-request allocation of a one-element Vec is the same Vec enqueue_many builds anyway (self.enqueue at :856 does exactly that).