#1 [high] Change: what #560 does, and its stacked scope
PR #560 "Emit vLLM-compatible per-request metrics from runtime instants", author WynnD (GitHub association NONE), draft, opened 2026-11-28, base main, head 037b9d5f, 18 files +1898/-123, 0 comments, 0 reviews, no CI checks. Closes #551. Closes-issue + description: https://github.com/NVIDIA/hyperflare-inference/pull/560
Own commit: 037b9d5f "Report vLLM per-request metrics from runtime instants" (search_history at PR head). All earlier commits in the branch (3e1512e3, 49373bc5, 15018689, 01f1e92b, 10c0b937, 54e06b30...) are #548's commits — the branch is cut from #548's branch metrics/request-latency-histograms, so the GitHub diff against main contains BOTH PRs. Evidence: metrics.rs is +548/-2, exactly #548's own metrics.rs size (read_item 548 files list), and docs/api.md here is +178/-4 vs #548's +127/-4; latency.rs is +24/-8 here, identical to #548's — #560 adds nothing to latency.rs. #560's own delta is roughly +880/-72 on top of #548 (1898-1016 / 123-51). Classification: #560-only files (not in #548's file list): docs/cli-design.md, flare-cli/src/cli.rs, flare-cli/src/main.rs, helios/model-contract.md, helios/src/server/config.rs, helios/src/server/protocol/encode.rs, helios/src/server/protocol/tests.rs, helios/src/server/runtime/response_lifecycle_tests.rs. Overlapping files that carry both PRs: runtime.rs, http.rs, metrics.rs, docs/api.md, server.rs, latency.rs, scheduler.rs, scheduler/tests.rs, phase_tests.rs. Description says explicitly it is stacked on #548 "the updated #548" and that the dependency must merge first.
#2 [high] Related work: supersedes #552 and #553, stacked on #548, closes #551
#551 (issue, open, WynnD, 2026-11-27) "Report per-request timings on final responses so llama-swap can show prompt and decode rates": llama-swap's activity table reads llama.cpp timings or vLLM metrics from the proxied body/SSE (buildMetrics, internal/server/metrics.go, llama-swap v250 @60226b6); Flare emits usage only so rates stay -1 and the input-token column shows the full prompt. #560 closes it. https://github.com/NVIDIA/hyperflare-inference/issues/551
#552 (closed 2026-11-28, draft, +929/-26) "Report request timings on final responses": emitted a llama.cpp timings object (cache_n/prompt_n/prompt_ms/prompt_per_second/predicted_*/draft_n/draft_n_accepted), stacked on #548, carried per-request DraftCounts. Closing comment by WynnD: superseded by #560 because emitting both made llama-swap subtract cached prompt tokens twice. #560's description says the llama.cpp timings object and per-request draft counts are "not carried over".
#553 (closed 2026-11-28, draft, +364/-9) "Add vLLM-compatible per-request metrics": same vLLM metrics object but timed from HTTP admission, so queue_time_ms was always null; added [server] per_request_metrics config key in flare/src (configuration.rs, settings.rs, controller.rs). Closing comment by WynnD: superseded by #560 because #560 uses model-worker instants, so queue_time_ms is reported and stop-string requests are timed correctly. #560 drops the flare/src config key.
#548 (open, draft, same author) "Add per-request histograms and vLLM-parity request metrics", closes #536, +1016/-51, head 49373bc5. It carries RequestTimes/RequestRecord, the completion histograms, model_step_tokens, parked gauge, admission_rejections, cache_lookup_tokens. #560's description states the dependency must merge first. #548 itself has 5 discussion entries: 3 Autobot reviews, all "Changes Requested"; last at 2026-11-27 07:04 lists 2 blockers (a --features server build break and unreconciled evidence).
#3 [high] Community/process: no engagement on #560; #553's auto-review stopped on charter/value grounds
#560: "No comments" (pr_comments), 0 reviews, no CI checks on head 037b9d5f ("CI on the head commit: no checks"), draft. Age <1 day at orientation. Predecessor #553 received two flare-autobot "## Review Stopped" verdicts — "Auto-Review halted due to finding: It is low value or does not align with the project charter." (2026-11-27 05:17 and 06:40), with Value Proposition Reports. That is the only recorded project-side judgement on the per-request-metrics idea so far, and it is about #553's HTTP-timed variant, not #560. source: read_item 553 discussion. #548 (the base) has 3 Autobot reviews, all "Changes Requested", none from a human maintainer. No human maintainer has commented on any of #548/#552/#553/#560/#551. Author association to NVIDIA/hyperflare-inference is NONE (orientation packet), 0 merged PRs, 2 closed, 3 open in 180 days: #553, #552, #551, #549, #548.
#4 [high] Change: #560-only code, verified against the diff
#560-only pieces, verified in the diff (pr_diff at head 037b9d5f):
- runtime.rs:
GenerationEvent::Committed { at_ns }added; emitted insideWorker::completeat the per-request token loop whenposition == 0andrequest.incoming.commits(runtime.rs:1826-1833), aftercompleted_at_ns = monotonic_ns()at :1668.GenerationEvent::Finishedgainsarrival_nsandtimes; filled on all three terminal paths (user/text stop :1925, natural finish :2104,finish_cancelled:315).Incominggainscommits: boolandrecord: RequestRecord.output_event_capacity(minimum, observed, commits)multiplies by1 + observed + commits(runtime.rs:59-75).generate_observed/generate_many_observed/enqueue_manytakecommits;generate/generate_manypass false. - runtime.rs also:
Worker::reserve_and_packstampsrecord.times.first_scheduled_ns.get_or_insert(monotonic_ns())for every lane (this is the first_scheduled_ns source);request_completed(...)replaces the directcompleted.fetch_addon both completion paths and computesoutput_limitfrom reason == "length";publish_gauges()factors scheduler stats + pending + parked;Worker::preemptincrementsrecord.preemptions. - http.rs: encoder is now built BEFORE submission (moved above the
submittedblock, http.rs:332-363), socreatedis read a few microseconds earlier — description states this in Cost.let commits = state.per_request_metrics && encoder.enable_request_metrics(decoded.stream);then all three submission arms passcommits. Two side effects visible in the same hunk: (a) the third arm changed fromgenerate_many(prompts)togenerate_many_observed(prompts, None, commits)— so every non-continuous, non-token-id request now subscribes observation=Some(false) where before it usedgenerate_many(observation None); (b)GenerationEvent::Committedis consumed in the delivery loop (encoder.record_commit(at_ns)), andFinishednow feedsencoder.record_times(...),generated[index],first_scheduled_ns. Thefirst_scheduled_nsvariable is assigned on everyFinished, so for multi-choice Completions a later choice overwrites it (line:first_scheduled_ns = times.first_scheduled_ns;). That matters because it feedsperformance.first_scheduled_ns, which is Chat-only in practice ("performanceis Chat-only, and Chat has one choice" — code comment http.rs:411-412). - encode.rs:
RequestMetrics::{Suppressed,Single(Timing)},enable_request_metrics(streaming) -> bool,record_commit,record_times,metrics_value(). Placement: top-level of a JSON body (http.rs:617-619), Chat/Completions final usage chunk only wheninclude_usage(encode.rs:736-743), Responsesresponseobject ofresponse.completed/response.incomplete(encode.rs:756-768), Messages never. Null/omit rules inenable_request_metrics(encode.rs:245-253): omitted for Messages, for a stream without include_usage (except Responses), and for multi-prompt Completions;Suppressed(null) for choices_per_prompt > 1. All six keys always present; each null when its instants were not reached. - config:
ServerConfig.per_request_metrics: bool(server.rs:129), HttpState copy,Bootstrap::loadaccepts only JSON bool or absence and errors otherwise (config.rs:353-357). flare-cli--enable-per-request-metricsonRunandOrbitRun, forwarded as a rank-zero option inrank_zero_options()and set into the server config JSON in main.rs:355-357 only when true. - observation.rs:
performancegainsfirst_scheduled_ns; tuple type widened from (Option,Option) to (Option,Option,Option). - model-contract.md: documents
first_scheduled_ns,token_timestamps_ns[0] - first_scheduled_ns, and the extra event per generated token in the response event budget. Docs: docs/api.md gains a "Per-request metrics" section (:1002-1057) and a vLLM correspondence table (:475-520); docs/cli-design.md lists the flag (:736) and rank-zero forwarding (:173).
#5 [high] Change: description vs diff discrepancies
- The published diff is 18 files / +1898/-123, but only about +880/-72 of that is this PR; the rest is the unmerged #548 base it is stacked on (metrics.rs +548/-2 and latency.rs +24/-8 are #548's changes verbatim; docs/api.md here +178/-4 vs #548's +127/-4). The description does say it is stacked and that "the dependency must merge first", and it credits #548 for the instants; but a reviewer reading the GitHub diff sees one large change, and #548 is a draft that has only ever received "Changes Requested" from the repo's own auto-reviewer. GitHub cannot merge this before #548 without a manual rebase.
- Undeclared side effect of moving the encoder before submission: the fall-through submission arm in http.rs changed from
state.model.generate_many(prompts)tostate.model.generate_many_observed(prompts, None, commits)(compare pr/548 http.rs:338 with #560 http.rs:374). That means requests that previously took the plain path now allocate aGenerationwithobservation: Some(false), which changesoutput_event_capacity(theobservedfactor) for every generation request, not only for the metrics streams the Cost section enumerates. The description's cost section says "Option off: no commit events, unchanged event capacity" — that is true of thecommitsterm, but theobservedterm is now 1 where it used to be 0 on that arm. This is a claim/code mismatch worth flagging. - Undeclared: the diff also carries #548's behaviour changes to the same request path —
RequestRecord.max_tokensset at admission,tokens_committedon every committing step,request_completedreplacingcompleted.fetch_addon both paths,model_stepobservation on every completed text graph,admission_rejectedcounters on the 429/503-adjacent paths,flare_parked_requestsgauge,cache_lookup_tokens,first_responsehistogram, andMetrics::response_completede2e observation. None of that is described in #560's "What changed" (it is #548's), but it is in this PR's diff. first_scheduled_nsassignment in the delivery loop is unconditional per finished choice (first_scheduled_ns = times.first_scheduled_ns;, http.rs:541), so for a multi-choice Completions body (not Chat) the last choice's value wins in theperformanceobject. The code comments thatperformanceis Chat-only, so this is latent rather than observable today; worth a note becauseobservation.finishis also called from the non-stream Chat path only.- The description says "No clock read is added in either state." Verified in this PR's own hunks: true for the encoder path (instants come from events). But #548's part of the diff does add clock reads (monotonic_ns in
completealready existed;reserve_and_packgains one monotonic_ns per submitted step). So "no clock read is added" is true of #560 alone, not of the diff. - docs/api.md's vLLM correspondence table and the "Per-request metrics" section are both in this diff and are #548-backed content plus this PR's section; the description mentions docs/api.md documents the fields, placement, null rules and cost — accurate.
- Description claims a
docs/api.mdstatement "Failures return error bodies without it" — verified: metrics is only emitted atDelivery::Complete; the failure pathyield Delivery::Failedreturns before that (http.rs:593-597).
#7 [high] Project fit: charter, AGENTS.md rules on flags, stacks and TODO.txt
Charter facts that bear on this change (read_charter):
- line 35 / "What gets merged": PRs that address a maintainer request, a roadmap item, a reproducible bug, a measured perf/memory issue, or bad docs. AGENTS.md:165-169 restates it and adds "Hypothetical future consumers ... do not establish a need". #560's justification is a real, named consumer defect (llama-swap), so it reads as a reproducible bug report — but from an outsider's deployment, and no maintainer has endorsed the approach.
- line 43 / AGENTS.md:449-456 ("No per-model special cases or flags") and AGENTS.md:188-193 ("Reject unsupported abstractions and churn ... do not add ... configuration switches without a concrete requirement"): this change adds a new user-facing flag
--enable-per-request-metrics, aServerConfigfield and aBootstrapkey. The concrete requirement is stated (llama-swap / vLLM-compatible gateways); whether that clears the bar is the maintainers' call, not a fact I can settle. Precedent: the repo already has similar opt-ins (--bypass-performance-check,--verify-weights) but both are behaviour gates, not wire-format ones. #560 itself notes there is no[server] per_request_metricskey, deliberately matching those two flags. - AGENTS.md:128-129 and docs/design-review guidance for stacked PRs: "For stacked PRs, explain what each necessary dependency supplies, what this diff contributes, and the required merge order". #560 does this in the paragraph "This PR is stacked on the per-request histogram change".
- AGENTS.md:56-58: "State designed behavior that the code does not implement as a specification marked designed, not implemented... Record unresolved defects, unrun checks, and pending measurements in docs/TODO.txt". #560 records the Windows-desktop and persistent-Orbit consequences in the description but no TODO.txt entry was added (verified:
per_request_metricsdoes not appear in docs/TODO.txt; only "metrics port" at :261 is unrelated). - Charter line 12 / AGENTS.md:407-421 ("Python prepares; Helios serves", model-agnostic runtime): the change touches only Rust runtime/HTTP/CLI and adds no per-model branch, so it is consistent with that invariant. The one place worth noting: it adds a vLLM-shaped wire object and names it after a competitor, which AGENTS.md:493-495 only speaks to for benchmarking ("Compare other runtimes against an exported core"), not for wire compatibility.
- Charter "Respect contributors"/priority contributors list (@voipmonitor, @original-el8, @lukealonso) does not include WynnD; the author has no merged PRs and GitHub association NONE.
#8 [high] Claims and evidence: what backs each claim of #560
Claims → evidence, verified or not:
- "cargo check --features server clean; cargo test ... 820 passed, 1 failed; flare-cli cli:: 33 passed" — not reproducible here; the named failure
server::protocol::decode::native_prompt_tests::messages_image_hints_end_after_expansion_for_text_and_segmented_templatesis the same pre-existing failure #548, #549 and #552 all report, needing FLARE_TEST_TEMPLATE_DIR from tests/frontend/prepare_templates.py. Consistent across four PRs, so plausible, but no CI run exists on head 037b9d5f to corroborate. - The six new tests named in the description exist in the diff and assert what the description says: phase_tests.rs
performance_reports_the_first_scheduled_model_step(:4580ish),per_request_metrics_report_the_runtime_instants_of_a_stopped_reasoning_answer(:4693),per_request_metrics_reach_completions_and_responses_where_vllm_places_them(:4746),per_request_metrics_are_absent_without_the_option_and_null_for_several_choices(:4800); protocol/tests.rsper_request_metrics_follow_vllm_placement_and_null_rules(:2350) andcontent_instant_excludes_reasoning_tool_calls_and_suppressed_text(:2520ish); cli.rsper_request_metrics_flag_is_off_by_default_and_reaches_rank_zero(:1378); config.rs Bootstrap test (:724-740). - Strong evidence point: the tests drive a real worker and pin instants to the worker step that produced them, with 3 ms sleeps between steps (
timed_pass, phase_tests.rs:4520s), and assertcommits == stream— i.e. that only the content-instant streams requested commit events. That directly supports the "no added events when off" claim rather than asserting it from code reading. - No live/gateway verification at all in #560 ("Not run here: a GPU, an exported core, a live server, a llama-swap or gateway check, the Windows build"). Its predecessor #553 DID have live llama-swap numbers (4925.84 ms TTFT, 3.20 tok/s non-stream; 128.01 ms mean ITL streaming) but those came from a tree that also carried an unpublished local
timingsobject, and #553's own numbers were produced by the HTTP-timed variant, not this one. #552 had live llama-swap numbers too. So the swap to runtime instants traded away the only end-to-end evidence the family had. - "No clock read is added in either state" — true of #560's own hunks; #548's hunks add one monotonic_ns per submitted step in reserve_and_pack.
- Cost numbers in the description are read from code, explicitly not measured; CPU overhead under load was not measured. The repo's own rule (AGENTS.md:74-112) requires distinguishing an expectation from a measured result, which the description does.
- Undeclared-behaviour risk not covered by any test: the fall-through arm now calls
generate_many_observed(prompts, None, commits)instead ofgenerate_many(prompts), soobservationbecomesSome(false)for requests that previously hadNone.output_event_capacitythen multiplies by 2 instead of 1 for those requests. Tests added here do not cover that arm's capacity.
#9 [high] Reach: who and what the flag affects, and the include_usage gate
Reach — users/operators/config/compat/docs:
- Users: anyone consuming OpenAI Chat/Completions/Responses from
flare run. With the flag off nothing changes on the wire (asserted byper_request_metrics_are_absent_without_the_option_and_null_for_several_choices). With it on, a Chat or Completions stream only carries the object if the client sentstream_options.include_usage; a Responses stream always carries it; Anthropic Messages never does. So a gateway in front of Chat streams that does not set include_usage sees no object at all — a practical limit for the llama-swap motivation, since llama-swap would have to add that option (see #551's own note that "a stream without stream_options.include_usage has no usage to use"). - Operators: one new boolean, off by default, no config-file key (deliberate). Orbit: the flag is a rank-zero option and is forwarded only when set (cli.rs
rank_zero_options), so it cannot be saved as always-off. #560's description states both consequences itself: the WinUI desktop controller cannot enable it (verified: flare/src/configuration.rsServerstruct has no such field, flare/src/runtime_settings.rs has no such field, flare-winui/bridge/src/lib.rs maps only the existing runtime settings), and a persistent Orbit group that saved the flag cannot turn it off without a negating flag (verified:GroupSpec.rank_zero: Vec<String>is persisted bycontroller.rs:841-879and reloaded at:691, and there is no--no-enable-per-request-metricsin cli.rs). - Interaction with
[server]unknown keys:flare::configuration::Serveris#[serde(default)]withoutdeny_unknown_fields(configuration.rs:26-34), so a user who writes[server] per_request_metrics = truefollowing #553's documentation gets it silently ignored rather than an error. That is worth flagging next to the charter's "Don't silently ignore API fields" spirit, though the rule is about API request fields, not TOML. - Also relevant: #553 added that
[server] per_request_metricskey (flare/src/configuration.rs, settings.rs, controller.rs in its file list) and #560 drops it; anyone who ran #553's branch loses the key without a diagnostic. - Compatibility: no change to
usage,choices, or existing keys; a new key appears only when opted in. vLLM's ownmetrics.speculative_decodingis not emitted, and vLLM's convention of always serialisingmetrics(even null) is not followed — both stated in #560's limitations. - Deployment: rank-zero-only. Multi-host Orbit applies the flag to rank zero's
flare runonly, matching docs/cli-design.md:173. - Docs touched: docs/api.md (+178/-4, mostly #548's content plus the new "Per-request metrics" section at :1002-1057 and the vLLM correspondence table at :475-520), docs/cli-design.md (+2/-1), helios/model-contract.md (+14/-6).
- Costs borne by the operator when on for a Chat/Completions stream with include_usage: one extra queue event per committing step, so the response queue's reserved capacity rises from 2× to 3× tokens (event capacity is a reservation bound, not an allocation — runtime.rs comment "Tokio allocates queue blocks as events arrive, not at this bound").
#11 [high] Process: draft with no CI, no review, no autobot case file; blocked base
Process state at review time:
- Draft, opened 2026-11-28, base main, head 037b9d5f, 18 files +1898/-123. Zero comments, zero reviews, no CI checks on the head commit ("CI on the head commit: no checks").
- No flare-autobot case file or auto-review has been opened for #560 yet, unlike its three siblings (#548, #549, #553 each got a case file within ~30 minutes of opening). So the repo's reviewer has not yet pronounced on this variant.
- #560's predecessors: #552 closed 2026-11-28 02:04 by the author with "Superseded by #560"; #553 closed 2026-11-28 02:05 by the author with "Superseded by #560". #553's autobot reviews were both "## Review Stopped — Auto-Review halted due to finding: It is low value or does not align with the project charter." #552 never got an autobot review (only its intake? no — #552 shows just the closing comment).
- Its base #548 is a draft with three "Changes Requested" autobot reviews, latest 2026-11-27 07:04, listing 2 blockers including a
--features serverbuild break. So the base is not in a mergeable state, and #560 inherits that. - The author's other open items: #548 (base), #549 (independent KV-page gauges), #551 (the issue this closes). No merged PRs in 180 days. Author is not a priority contributor.
- The stack is three deep in effect: #548 → #560, with #549 noted by #548 as a rebase-order partner on the same docs/api.md rows and metrics.rs fixture rows. #560 does not mention #549; #549's file list does not include the encoder or config files, so #560 and #549 overlap only through #548.
#12 [high] People: first-week author, metrics series, no maintainer engagement
People:
- Author: WynnD / "Wynn Drahorad", Discord
oystersmiles. GitHub association with NVIDIA/hyperflare-inference: NONE. Last 180 days: 0 merged, 2 closed, 3 open. Every one of the five items is part of one metrics series: #548 (histograms, base), #549 (KV pages), #551 (issue motivating this), #552 (superseded, llama.cpp timings), #553 (superseded, HTTP-timed vLLM metrics). So the author is a metrics-focused outside contributor in their first week, with no landed change yet. - The author engages the repo's automated reviewer directly ("@flare-autobot review the pushed changes") and responds to findings by rewriting rather than arguing; the pattern across #548/#549/#552/#553 is that reviews shrink the diff and the author complies.
- The one other outsider engaged in the same space: Napuh, who opened #536 (request histograms) and #537 (KV usage) on 2026-11-26 with concrete vLLM parity complaints and cited an environment (v0.3.2 at c0c4f79). Napuh does not appear in #560's discussion; #560 closes #551, not #536.
- Who usually works here: Luke Alonso (208 commits in helios/src, 370 in docs), Martin Vit (49), yatesdr (47). Luke Alonso authored #507, the metrics infrastructure this builds on, and is in the charter's priority-contributor list. None of them has commented on any PR in this series, so there is no maintainer signal either way.
- flare-autobot is the only reviewer that has engaged any of these PRs, and its verdicts so far are: #548 Changes Requested ×3, #549 Changes Requested ×2 (blockers fixed by round 2), #553 Review Stopped (low value / charter), #560 nothing yet.
#13 [high] Research summary
Case file gathered for PR #560 ("Emit vLLM-compatible per-request metrics from runtime instants", WynnD, draft, head 037b9d5f). Scratchpad holds 12 entries covering every requested angle: change, why, related work, recent activity, people, community, project fit, claims/evidence, reach, process.
Headline findings: (1) the published diff is two PRs — 18 files / +1898/−123 against main, of which metrics.rs and latency.rs are verbatim the unmerged draft #548, which itself has three "Changes Requested" auto-reviews and is not mergeable; only ~+880/−72 is #560's own. (2) An undeclared behaviour change rides along: the http.rs fall-through submission arm changed from generate_many(prompts) to generate_many_observed(prompts, None, commits), so observation is now Some(false) where it was None, which doubles output_event_capacity for requests the description's cost section says are unaffected — and no test covers that arm. (3) No live, gateway, GPU or Windows evidence at all, unlike the two PRs it supersedes, which both had live llama-swap numbers. (4) The motivating defect is real and citable (#551: llama-swap v250 buildMetrics reads only llama.cpp (not opened) timings or vLLM metrics from the body, so Flare rates read −1), but a Chat/Completions stream carries the object only when the client sets stream_options.include_usage — a real reach limitation for that gateway. (5) Project fit is genuinely double-edged: the charter/AGENTS.md ban new configuration switches without a concrete requirement, and the flag lands as an opt-in with no config-file key, no WinUI path, and no way for a saved Orbit group to switch it off; #553's auto-review was stopped for "low value or does not align with the project charter". (6) Process: draft, zero comments, zero reviews, no CI checks, no autobot case file yet, no maintainer has engaged any PR in this five-item series, and the author has no merged PRs and NONE association.
I did not judge whether it should merge. Nothing in the orientation packet led to a dead end; #549/#536/#537 were followed and recorded as adjacent but separate, and the verification/helios-lifecycle source-text mutation was checked and still matches.
#14 [high] Synthesis: the connections between stack, succession, flag and capacity
Cross-references the final report needs to state explicitly (each already sourced in an earlier entry):
- Stacking: #560's branch is cut from #548's branch (metrics/request-latency-histograms) at 49373bc5; every file carrying #548's histograms shows up in #560's diff verbatim. Consequence: GitHub will show reviewers a +1898/−123 change, and #560 cannot merge before #548, which has only "Changes Requested" verdicts. GitHub cannot express the dependency; the description carries it in prose only. The description does name it ("This PR is stacked on the per-request histogram change (the updated #548)... The dependency must merge first"), so this is a process risk rather than a misstatement.
- Succession: #553 (HTTP-timed vLLM object) → #560 (runtime-instant vLLM object) is the author's fix for queue_time_ms and TTFT being unmeasurable from HTTP; #552 (llama.cpp
timings) → #560 is the author's fix for double-subtracting cached prompt tokens in llama-swap. Both were closed by the author within a minute of each other (2026-11-28 02:04/02:05) and both point forward to #560. So #560 is the third design iteration in two days, and the two abandoned ones are where the live evidence lives. - Flag ↔ charter: the flag is what lets the feature exist without changing the default wire format, but it is also exactly the "configuration switches without a concrete requirement" AGENTS.md:188-193 warns about, and the config-key gap (#560 has no
[server] per_request_metrics, deliberately mirroring--bypass-performance-checkand--verify-weights) means the setting has no configuration-file home at all — visible consequence: the WinUI desktop controller cannot enable it, and a persistent Orbit group cannot disable it once saved. The author documents both consequences rather than fixing them. - include_usage gate ↔ motivation: the object reaches a Chat/Completions stream only when the client sends
stream_options.include_usage; a Responses stream always gets it. llama-swap reads the object from any SSE event, so the motivation holds for Responses and for usage-enabled Chat, and not for plain Chat streams — the gateway or client must set the option. #551 itself records this concern about the vLLM object ("a stream without stream_options.include_usage has no usage to use"), and #560's description restates the requirement but does not call out that it narrows the llama-swap use case. - Undeclared capacity change ↔ #548:
output_event_capacitynow takes (observed, commits) and multiplies by 1 + observed + commits. #548 introduced the multiplicandif observed {2} else {1}and #560 changed it to1 + usize::from(observed) + usize::from(commits), and #560's http.rs additionally routes the fall-through arm throughgenerate_many_observed(..., None, commits), which sets observed=true. The unit test at runtime.rs:3352-3362 asserts the new arithmetic for (false,false)=1, (false,true)=2, (true,false)=2, (true,true)=3, so the multiplicity is tested but the newly-observed fall-through arm is not exercised, because every added HTTP test drives Chat (token id/timestamp observation) or a stream/body that already took an observed arm. - Verification harness coupling: verification/helios-lifecycle/check.py:218-220 mutates the literal text
_capacity: Some(capacity.clone()),\n arrival_ns:in runtime.rs. #560's runtime.rs:926-928 preserves that adjacency (_capacity: Some(capacity.clone()), arrival_ns: super::observation::monotonic_ns(),), so the TLA+ mutation check keeps matching;arrival_nswas added by #548, not #560.
#15 [high] Community: #560 has drawn no engagement at all
Community engagement on #560 itself: none. Zero comments, zero reactions, zero reviews, and — unlike its three sibling PRs — no flare-autobot case-file or intake comment, which #548, #549 and #553 each received within about 30 minutes of opening. So at review time the change has drawn no interest from anyone but its author. Engagement in the surrounding cluster, for scale: #548 has 5 discussion entries (3 Autobot reviews, all Changes Requested, plus the author's two "review the pushed changes" prompts); #549 has 4 entries (2 Autobot reviews, Changes Requested → blockers fixed, plus the author's prompt); #553 has 5 entries (case file, two "## Review Stopped — low value or does not align with the project charter" verdicts with Value Proposition Reports, plus the author's closing note); #552 has 1 entry (the author's closing note, no review at all); #551 has 0 entries; #536 and #537 have 0 entries each. Net: across the whole metrics series (7 items, 2 issues from Napuh, 5 items from WynnD), no human maintainer has written a single comment. The only substantive project feedback in the entire cluster is the automated reviewer's, and its two stopping verdicts are on #553 — the HTTP-timed predecessor of this exact feature, not on #560.
#17 [high] Amendment 2026-11-28: #560 revised at 046aaef0 — mechanism shrank, config key added, content TTFT split to #562
/tmp read of pr/560 at head 046aaef0 (2026-11-28 04:12). Published diff now +1757/−77 over 22 files (was +1898/−123 / 18 files). Base = #548's current head 66245920 (last six commits are #560's: 4a063e63, c4fef6b2, 6c07ef44, a5d47950, f0ccabcc, 046aaef0), so the earlier "diff carries a stale copy of #548" risk is gone. #560's own share ≈ +749/−26.
Removed from #560 (moved to new PR #562 "Report the first content token of per-request metrics in streams", draft, opened 2026-11-28 04:12, +1920/−129, zero discussion, depends on #560):
GenerationEvent::Committed { at_ns }and thecommitsadmission flag are NOT in #560 anymore (grep at pr/560 finds noCommitted {in runtime.rs; protocol tests no longer callrecord_commit).output_event_capacityis back totokens.checked_mul(if observed {2} else {1})(runtime.rs:62-82); the1 + observed + commitsmultiplier I described belongs to #562's description.time_to_first_content_token_msis now permanentlyValue::Null(encode.rs:263; docs/api.md:1020 "Always null").- http.rs submission arms are unchanged from #548 (no
generate_many_observed(prompts, None, commits)), so nothing in #560 widens the observed path — my old note #5 item 2 is fully dead.
Added in #560:
[server] per_request_metricsconfig key end to end: flare/src/configuration.rs:34 (Option), flare/src/settings.rs:32,224, flare/src/controller.rs:2566 (config["per_request_metrics"] = self.settings.per_request_metrics.into()), flare-cli/src/config.rs:73-75 (config applied only when the flag is absent), flare-cli/src/main.rs:355-357 (flag still only turns it ON), helios/src/server/config.rs:353-357 (accepts only a JSON bool; tests at :724-738). Docs: docs/api.md:1007, docs/cli-design.md:736, :1318, :1349.RequestTimesis now exported (pub use metrics::{RequestTimes, Snapshot}server.rs:33) andFinishedcarriesarrival_ns+times(runtime.rs:95-106).first_scheduled_nssemantics changed: stamped AFTER packing inreserve_and_pack(runtime.rs:2269-2285) so a failed pack leaves it unset; documented in helios/model-contract.md:343-357 together withtoken_timestamps_ns[0] − first_scheduled_ns.- Non-stream Chat body now reports the earliest value across generations:
first_scheduled_ns.into_iter().chain(times.first_scheduled_ns).min()(http.rs:538) then intoobservation.finish(..., (ingress_ns, enqueue_ns, first_scheduled_ns), false)(http.rs:609) — this fixes the latent "last choice wins" I flagged in note #5/#16. - Worker-driven tests:
timed_pass+served_through_workerharness (phase_tests.rs:4516-4847) driveshttp::generateagainst a realWorkerand asserts every metrics instant falls inside the step that produced it;performance_reports_the_first_scheduled_model_step,per_request_metrics_report_the_runtime_instants_of_a_stopped_reasoning_answer,..._reach_completions_and_responses_where_vllm_places_them,..._are_absent_without_the_option_and_null_for_several_choices. Encoder-level placement/null matrix at protocol/tests.rs:2314-2449. This closes my "capacity arithmetic/end-to-end deliverable untested" gap for #560's own code. - Docs: docs/api.md gained the "Per-request metrics" section (1005-1050) stating the include_usage gate and the missing
--enable-force-include-usageanalogue; docs/cli-design.md lists the flag with default[server] per_request_metrics.
#18 [high] Amendment: autobot case file exists, review is Changes Requested (2 blockers), #548 now 0 blockers
Case file opened 2026-11-28 02:18 (≈14 min after open) — so #560 is NOT the odd one out any more; it matches #548/#549/#553's ~30-min pattern. https://autobot.eidonix.com/api/v1/cases/0eee5683-497b-4172-bbaf-67ed18107a5b.html
Review 2026-11-28 03:21, recommendation Changes Requested: "The mechanism is right-sized and correct — worker owns the instants, encoder owns placement, nothing requested or emitted when the option is off — but merge needs a named requirement plus an honest cost section, which currently claims a per-step clock read does not exist." 2 blockers / 4 should-fix / 7 subtractive / 5 nits. So the reviewer's objection is process + cost honesty, NOT "low value / does not align with the project charter" — which is the verdict that stopped #553. That materially defuses the charter-misalignment risk I carried from #553.
Blocker 2 (cost claim) has since been fixed in the description: "This PR adds no clock read; the one monotonic read per scheduled model step comes from #548." Blocker 1 (a named requirement) is not obviously fixed: the requirement is still #551, filed by the same outside author, and no human maintainer has commented anywhere in the cluster (#548, #549, #551, #552, #553, #560, #562). Auto-review auto-runs 90 min after a push (i.e. ≈05:42 for 046aaef0) and had not run at review time.
Base #548 has advanced and de-escalated: head 66245920, +1008/−51 over 9 files, and its 4th review (2026-11-28 03:31) reports Blockers: 0 (should fix 3, subtractive 8, nits 6) — the --features server build break and unreconciled-evidence blockers are gone. My "cannot merge before a draft base whose only verdicts are Changes Requested with 2 blockers" is now "still Changes Requested but blocker-free".
Note #548's review raises exactly the analogue of #560's remaining risk: "one Closes #536 overstatement". #560's Closes #551 has the same shape (see the llama-swap Responses finding, note #19).
#19 [high] Amendment: live evidence exists (40/40, no CPU overhead); Responses placement does not reach llama-swap
Two new comments (2026-11-28 03:26, 04:12) supply the end-to-end evidence my report said was entirely absent. My "no live, GPU, gateway, Windows or overhead evidence at all" and "the move to runtime instants traded away the family's only end-to-end evidence" are now wrong and must be withdrawn.
Hardware: one RTX PRO 6000 Blackwell, prepared local-inference-lab/Qwen3.8-Flash-Next-FLARE gb202 core, behind llama-swap v250, image built from upstream main with #548 + #549 + #560.
- Request matrix 40/40 passed: Chat JSON + stream, stop string, Completions
n=2and two prompts, Responses JSON + stream, stream without usage. Logically coherent: #553's fatalqueue_time_ms-always-null is gone, stop strings are timed,n=2→null, multi-prompt→omitted. tokens_per_secondandmean_itl_msequal vLLM's definitions computed from the other fields (a definitional identity, so weak as external validation, but it does confirm no unit/off-by-one error).performance.first_scheduled_nsbetweenenqueue_nsand the first token timestamp — independent check of the new pre-pack stamp.- CPU overhead, 16×512-token streams, container cgroup time: 15.4/15.9 s with the option on vs 16.0–16.3 s off — no measurable cost. Measured on the earlier revision that still emitted per-step content instants, i.e. it bounds #562's design too.
- Unit tests 820 passed (1 template test needs
FLARE_TEST_TEMPLATE_DIR), CLI 33.
Important negative result, new: llama-swap shows prompt and generation rates for Chat and Completions but NOT for Responses streams, because llama-swap reads metrics only at an event's top level and #560 places it inside the response object for Responses (encode.rs:731-743, docs/api.md:1031-1032). So of the four placements only three are actually readable by the motivating consumer. #561's own #551 asks for a top-level timings key beside response, which would work; #560's Responses placement silently doesn't. Neither the description nor docs/api.md states this — docs/api.md:1031-1038 quotes a vLLM convention and mentions only the include_usage gap. This also makes Closes #551 overstated in the same way autobot flagged #548's Closes #536.
Net reach for llama-swap: non-streaming Chat/Completions JSON (any body), and Chat/Completions streams only when the client sets stream_options.include_usage. Responses streams: no. That is narrower than "llama-swap reads it without changes" (description, "Result").
Live re-validation after f0ccabcc used [server] per_request_metrics = true instead of the flag, so the new config path is covered live too.
#20 [high] Amendment: config key fixes Orbit/WinUI gaps; ignition config schema rejects per_request_metrics
My note #9/#14 arguments about the flag being rank-zero-only with "the WinUI desktop controller cannot enable the option" and "no configuration-file home, so a saved Orbit group cannot turn it off" are both now wrong or materially weakened by f0ccabcc:
- The setting now has a config-file home:
[server] per_request_metrics(flare/src/configuration.rs:34), read bySettings::resolve(settings.rs:224) and pushed into the served core's config byflare/src/controller.rs:2566— which is the desktop/WinUI load path (flare-winui/bridge/src/lib.rsmapsflare_runtime_settings; flare-winui/Settings.inl renders toggles;Settingsis what the controller hands the worker). So a desktop user can enable it by editing config.toml; and any persistent Orbit group can be turned off by[server] per_request_metrics = falsein the rank-zero host's config, because flare-cli applies the config only when the flag is absent (flare-cli/src/config.rs:73-75) — the flag still wins when present. That is the same precedence rule asscheduler_checkpoint_extra_work_fraction. - Caveat that survives: the derived WinUI runtime-settings struct (
flare_runtime_settings, flare-winui/bridge/include/flare.h:93-104) andRuntimeSettings(flare/src/runtime_settings.rs:15-33) still have no such field, so the GUI toggle cannot flip it; only the TOML key can. So "no GUI switch" is still true, "cannot enable the option" is false. - New asymmetry worth flagging instead: ignition's Python config validator rejects the key.
ignition/cli/config.py:21-33enumerates[server]keys and raisesunknown key per_request_metrics in [server](:112-114);ignition/cli/serve.py:486-487only forwardsthinking_token_budgetandscheduler_checkpoint_extra_work_fraction. Soper_request_metricswas added to the Rust reader and to docs/cli-design.md:1317-1318 ("Nativeflare runapplies ...per_request_metrics") but not to the Python exporter, whosewrite_initial(:183-216) also does not emit the key as a comment. Native-only is stated for the surrounding sentence, so it is arguably deliberate, but the docs sentence and the Python rejection make the file non-portable betweenignition serveandflare runfor that key.flare's reader remains#[serde(default)]withoutdeny_unknown_fields(configuration.rs:26-35; contrastPrefixCacheat :50-57 which does deny), soflaresilently ignores typos in that section while ignition errors.
#21 [high] Amendment: stack is now #548→#560→#562; #548 blocker-free; review verdict is cost/authority, not charter
Supersedes the "Related items" and "Process" sections of report entry #16:
- New: #562 "Report the first content token of per-request metrics in streams" (open, draft, opened 2026-11-28 04:12, head 4aa7b3a, +1920/−129 over 22 files, zero discussion, depends on #560, merge order #548→#560→#562). It takes back the
Committedevent, thecommitsflag, the1+observed+commitscapacity multiplier and the live content-TTFT numbers (182.0 ms content vs 2.0 ms TTFT on a reasoning stream). The stack is now four deep. Zero maintainer engagement, and it was opened ~7 weeks into a first-week contributor's metrics push in the same minute as the #560 push — this is continued decomposition, not new demand. - #548's latest review (03:31) has 0 blockers (was 2 at 07:04 on 2026-11-27) — so my "cannot merge before a draft base whose only verdicts are Changes Requested" must become "base is still
Changes Requested, but blocker-free and moving". - #560's own first review (03:21) is Changes Requested with 2 blockers, and — unlike #553 — the reviewer does not say "low value / does not align with the charter". It says the mechanism is "right-sized and correct". So the charter-misalignment risk I carried from #553's halt should be downgraded to "unresolved need authority", which is the literal blocker wording.
- Process fixes since my report: description now states the include_usage gap, the missing
--enable-force-include-usageanalogue, the queue-time origin (includes channel send), and the null rules; docs/api.md:1005-1050 is a real section; commit 046aaef0's title is literally "State the per-request metrics boundaries and the include_usage gap". - Still true and still the main unresolved item: no human maintainer comment anywhere in the eight-item cluster (#548, #549, #551, #552, #553, #560, #562, #536/#537), and #548's blocker-1 wording ("a named requirement") applies verbatim to #560 — the only named requirement is #551, filed by the same author. Author behaviour unchanged: rewrites down, self-closes predecessors, now carves a follow-up PR (#562) instead of dropping scope, and pushes + re-validates live within 6 minutes of review.
- Still true: docs/TODO.txt has no entry for
per_request_metrics(grep, no matches), so the known limitation (no force-include-usage; Responses nesting unreadable by llama-swap) lives only in prose.
#22 [high] Amendment: exact corrections to apply to report entry #16, section by section
Point-by-point deltas to report entry #16 (only these change):
- Scale/headline numbers: now +1757/−77 over 22 files at head 046aaef0 (was +1898/−123 / 18 files at 037b9d5f). Description updated 2026-11-28 04:12. Base is #548's current head 66245920, so the "stale copy of #548" concern is gone.
- Proposal section must be rewritten: three of its five bullets are no longer #560's.
- DELETE "New
GenerationEvent::Committed { at_ns }…commitsis threaded throughgenerate_observed/generate_many_observed/enqueue_manyand raises the output event reservation by one per generated token." → that is #562 now; #560'soutput_event_capacityistokens * (2 if observed else 1)(runtime.rs:62-82) andFinishedonly gainsarrival_ns+times. - REPLACE the content-TTFT bullet with:
time_to_first_content_token_msis alwaysnull(encode.rs:263, docs/api.md:1020); the stream-only latch moved to #562. - DELETE "deliberately no
[server]config-file key … the WinUI controller cannot enable it and a saved Orbit group cannot turn it off." → the key exists (docs/cli-design.md:736,1318,1349; flare/src/configuration.rs:34; controller.rs:2566; flare-cli/src/config.rs:73-75; helios/src/server/config.rs:353-357). Correct statement: the key exists and is applied when the flag is absent, so a saved Orbit group can be turned off and a desktop user can enable it via config.toml; but no GUI toggle exists (flare_runtime_settings, flare-winui/bridge/include/flare.h:93-104) and ignition's Python schema rejects the key (ignition/cli/config.py:21-33,112-114). - ADD:
RequestTimesexported;first_scheduled_nsnow stamped after packing (runtime.rs:2269-2285) and reported as the earliest across generations (http.rs:538,609), fixing the latent last-choice-wins.
- DELETE "New
- "Touches" list gains flare/src/{configuration,settings,controller}.rs, flare-cli/src/config.rs, and drops helios/src/scheduler.rs + scheduler/tests.rs from "this PR's own work" — those two files are #548's (cache_lookup_tokens, confirmed identical to #548's diff).
- Autobot comments paragraph — rewrite entirely: case file opened 02:18, review 03:21 Changes Requested (2 blockers / 4 should fix / 7 subtractive / 5 nits), verdict "mechanism is right-sized and correct" with blockers = named requirement + honest cost section. The cost blocker is now fixed in the description; the requirement blocker is not (only #551, same author). Reviewer's own re-review fires ~90 min after 046aaef0.
- Withdraw: "No live, GPU, gateway, Windows or overhead evidence at all" and "the move to runtime instants traded away the family's only end-to-end evidence." Replace with the 40/40 matrix, the CPU-on-vs-off bound, and the Responses-stream gap (note #19).
- Change direction: #560 is now ~+749/−26 of its own; the diff still looks like #548+#560+#562's sibling, so "a reviewer sees a change far larger than the PR" stands but is less extreme.
- Tests: strengthen. My "capacity arithmetic untested / no end-to-end deliverable" caveat lapses for #560's own code: worker-driven harness (phase_tests.rs:4516-4847) plus encoder matrix (protocol/tests.rs:2314-2449) plus CLI/config/settings/bootstrap tests. Note the tests build a fixture worker, so they still do not prove GPU-timed correctness — only the live table does.
- Open questions: drop "whether the flag clears AGENTS.md:188-193" (still open but now the reviewer's own blocker wording makes it the key risk, not a separate question) and drop "what changed between #548's head and the copy in this branch" (answered: nothing, base is current). Add: does #562 need to land for the docs statement to stay honest; and whether the Responses placement needs a top-level mirror for llama-swap.
- Closes #551 overstated: llama-swap reads
metricsonly at an event's top level, so Responses streams show no rates (author's own 03:26 table). The issue's proposed placement was besideresponse; #560 nested it inside. Either split the close or document the gap. - Latest activity: last main commit touched by this series is unchanged (no rebase onto main since
883abc17); branch now sits on top of #548's 66245920.
#23 [high] Research summary
Amendments only, per the request. Notes #17–#22 in the scratchpad hold the detail and citations; #22 is a section-by-section replacement list for report entry #16.
The PR changed under me and three of my five "Proposal" bullets no longer describe it. Head is now 046aaef0, +1757/−77 over 22 files (was +1898/−123 over 18), rebased onto #548's current head 66245920, so the "diff carries a stale copy of #548" risk is gone and #560's own share is ≈ +749/−26. GenerationEvent::Committed { at_ns }, the commits flag and the 1 + observed + commits event multiplier are gone from #560 — they moved to a brand-new draft #562 "Report the first content token of per-request metrics in streams" (opened 04:12, +1920/−129, zero discussion, depends on #560). time_to_first_content_token_ms is now permanently null, and output_event_capacity keeps #548's tokens * (2 if observed else 1). The stack is four deep: #548 → #560 → #562.
My "deliberately no [server] key, so WinUI cannot enable it and a saved Orbit group cannot turn it off" finding is now wrong. f0ccabcc adds the key end to end (docs/cli-design.md:736/1318/1349, flare/src/configuration.rs:34, settings.rs:224, controller.rs:2566, flare-cli/src/config.rs:73-75, helios/src/server/config.rs:353-357 with tests), applied whenever the flag is absent. What survives is narrower: no GUI toggle (flare_runtime_settings, flare-winui/bridge/include/flare.h:93-104), and ignition's Python config schema rejects the key (unknown key per_request_metrics in [server], ignition/cli/config.py:21-33/112-114; serve.py:486-487 forwards only the two older keys), so the TOML file is not portable between ignition serve and flare run. Also new: first_scheduled_ns is stamped after packing (runtime.rs:2269-2285) and reported as the earliest across generations (http.rs:538/609) — that closes the latent last-choice-wins I flagged.
Two of my strongest negatives must be withdrawn. "No live, GPU, gateway or overhead evidence at all" and "the move to runtime instants traded away the family's only end-to-end evidence" are both false now: the author posted a live run on an RTX PRO 6000 Blackwell behind llama-swap v250 (40/40 request-matrix checks, stop strings timed, n=2→null, multi-prompt omitted, first_scheduled_ns between enqueue_ns and the first token timestamp) and CPU overhead indistinguishable (15.4–15.9 s on vs 16.0–16.3 s off per 16×512-token run), re-validated through the new config key. The new evidence also turns up a real defect nobody states: llama-swap reads metrics only at an event's top level, so Responses streams show no rates at all because #560 nests the object inside response. With the stream_options.include_usage gate, that means llama-swap gets rates only for JSON bodies and usage-enabled Chat/Completions streams — so "llama-swap reads it without changes" and Closes #551 are overstated (autobot flagged the identical Closes #536 overstatement on #548).
Process findings flip too. The case file opened 02:18 and the 03:21 review is Changes Requested with 2 blockers — but the verdict is "the mechanism is right-sized and correct", with the blockers being a named requirement and an honest cost section. That is not #553's "low value / does not align with the project charter", so the charter-misalignment risk I inherited from #553 should be downgraded to unresolved need authority (the description's cost claim is already fixed). #548's fourth review (03:31) now reports Blockers: 0, so "cannot merge before a base whose only verdicts are Changes Requested" becomes "blocker-free but still Changes Requested". Unchanged: no human maintainer has commented anywhere in the eight-item cluster, the only named requirement is #551 by the same author, and docs/TODO.txt still has no entry for the limitation.
#24 [high] Amendment guard: what still stands from entry #16 after #17-#22
Guard against over-correcting entry #16: the amendments (#17-#22) do not invalidate these. Each still stands at head 046aaef0 and should be carried into the report as-is, with citations already in notes #1-#16.
- The published diff is still two-plus PRs. #560 is cut from #548's branch and the GitHub diff contains #548's
metrics.rs(+548/−2) andlatency.rs(+24/−8) byte-for-byte. #562 adds a third layer. GitHub expresses none of this; the dependency lives only in prose. Still the largest process risk and the reason a reviewer sees a change several times the PR's own size. - include_usage gate. A Chat or Completions stream carries
metricsonly when the client sendsstream_options.include_usage(encode.rs:234, docs/api.md:1031-1038). Now documented by the author (was undocumented in the description at 037b9d5f), and now compounded by the Responses-nesting finding (#19). Flare has no--enable-force-include-usage. - #551's authority is thin. The requirement is a bug report filed by the same outside contributor the same week; no maintainer statement exists anywhere in the cluster (#536, #537, #548, #549, #551, #552, #553, #560, #562). AGENTS.md:165-169 ("demonstrated defect" — satisfied) vs :188-193 ("configuration switches without a concrete requirement") is the tension, and autobot's blocker-1 wording ("a named requirement") is the same objection.
- No human maintainer has ever commented in this cluster. Author WynnD: association NONE, 0 merged, first week, self-closes predecessors (#552/#553 within a minute), rewrites scope down each round, now carves follow-ups (#562) rather than dropping features.
Closes #551is overstated (see #19) — same shape as #548's flaggedCloses #536.- Succession stands: #560 is the third design iteration in two days (#552 llama.cpp
timings, #553 HTTP-timed vLLM object, #560 runtime-instant vLLM object); #553's halt for "low value / charter" applies to #553's variant only, and #560's reviewer explicitly called the mechanism correct. - Ownership/no-maintainer-signal: Luke Alonso owns the touched areas (#507 metrics surface, 208 commits helios/src in 180 days) and has said nothing; no rebase onto main past
883abc17before this push; no commit on main changesGenerationEvent::Finished. - Description quality: the 04:12 description is materially more honest than the 037b9d5f one — it states the include_usage gap, the missing force-include-usage analogue, that queue time includes the channel send, that all six keys are always present, and that a forced reasoning-close token is counted without an instant. Credit this; do not carry forward the "description does not note it narrows the llama-swap case" complaint, which is now false for streams and only true for the (undocumented) Responses nesting.
#26 [high] Amendment 2026-11-28 (run 1820): the 05:42 re-review is in — 1 blocker, and it is the ignition schema break
#560's head is unchanged (046aaef0, +1757/−77, 22 files, updated 05:42) — the new event is comment #5, the auto-review that fires 90 min after the 04:12 push. It was listed as "not available" in my last report; it is now known.
New review, 2026-11-28 05:42, flare-autobot, Changes Requested — 1 blocker / 6 should fix / 6 subtractive / 5 nits (https://autobot.eidonix.com/p/05bfd7d9-595d-43d9-8bf7-6d5308421b5d.html). Verdict text: "The mechanism is right-sized and correct — worker owns the instants, encoder owns placement, nothing emitted when the option is off — but the documented [server] per_request_metrics key is outside Ignition's config schema, which breaks every Ignition command, and about 180 lines (most in one test file) duplicate rules and plumbing already pinned elsewhere."
So, versus my last report:
- Blocker count 2 → 1. Both 03:21 blockers are gone: the cost-honesty one (fixed by the 04:12 description) and the "named requirement" one, which the re-review simply does not mention — no maintainer statement has appeared, so it was dropped rather than satisfied. I should say "dropped", not "cleared".
- My note-#20 ignition finding is now the PR's only blocker, and stated harder than I stated it ("breaks every Ignition command"). It is no longer an optional "asymmetry/portability caveat".
- A new subtractive blocker: ~180 lines (mostly one test file) duplicate rules/plumbing pinned elsewhere. This partially undercuts my last report's "the tests strengthen the case" amendment: the phase tests add 535 lines (helios/src/server/runtime/phase_tests.rs) and the encoder matrix 133 (protocol/tests.rs); the harness
timed_pass+served_through_workeralone is phase_tests.rs:4516-4610.
Ignition break, verified independently (it is real and I can now state its exact reach):
- Schema enumerated at ignition/cli/config.py:22-25 (
server= host, port, api_key, thinking_token_budget, scheduler_checkpoint_extra_work_fraction); unknown keys raise at :109-114 →unknown key per_request_metrics in [server]; tested shape at tests/cli/test_config.py:152. - Every subcommand gets
--config(ignition/cli/init.py:96-104) and every config-reading handler callsConfiguration.load(args.config): serve.py:127 (export), :174 (multi-host export), :264 (_prepare), :431 (debug-serve), :590 (join), bench.py:144, publishing.py:31 (convert), :73 (edit), :174 (combine), :194 (sign).keygen/key-passwordnever load the file, so "every Ignition command" is right for every config-reading one and only there. - The documented contract is a shared file: docs/cli-design.md:1313 "Ignition and native Flare read this file". docs/cli-design.md:1349 ships
# per_request_metrics = falseas a sample line — uncommenting the documented sample is exactly what breaks ignition. docs/cli-design.md:1317-1318 hedges "Nativeflare runapplies … per_request_metrics". - Ignition's writer (ignition/cli/config.py:176-203
write_initial) still does not emit the key, so a file written by ignition is fine; the break appears when the user adds the key by hand to enable the feature onflare runand then runs any ignition command against the same path. flare's reader still has nodeny_unknown_fields(flare/src/configuration.rs:26-35 vs PrefixCache :50-57), so flare silently ignores typos on that section while ignition hard-errors — asymmetric in both directions.
Stack state at the same moment: #548's 5th review (05:09) is still Changes Requested with Blockers: 0 (should fix 3, subtractive 7, nits 8), so the base stays blocker-free. #549's 04:28 review is Changes Requested, 0 blockers, no new commits, description corrected. #562 unchanged since 04:12: zero discussion, and its docs/api.md:1020 now defines content TTFT (including "text that stop-string matching holds back counts from the step whose output releases it"), so #560's "always null" stays true until #562 merges rather than being a defect now. #562 does not touch the include_usage/Responses-placement text: docs/api.md:1036-1043 (pr/562) still names only the include_usage gate, so the Responses-nesting gap my last report raised is unaddressed in both revisions. No author response after 05:42 and no maintainer comment anywhere in the cluster; docs/TODO.txt still has no entry.
#28 [high] Research summary
Added two notes (#26, #27). The new event is the 05:42 flare-autobot re-review of #560 — the review my last report listed as "not available". Amendments to the prior report: (1) the blocker count drops 2 → 1, and the surviving blocker is exactly the ignition-config finding I had filed as an optional "portability caveat", now stated as "breaks every Ignition command" (verified: ignition/cli/config.py:22-25/109-114, every config-reading handler loads the file, docs/cli-design.md:1313 says Ignition reads it, and :1349 ships the key as a sample line to uncomment); (2) the earlier "named requirement" blocker was dropped, not satisfied — no maintainer endorsement has appeared — and the cost blocker is fixed; (3) a new subtractive demand of ~180 duplicated test lines means my "the tests strengthen the case" amendment needs a qualifier, since #560's own lines are mostly that test code; (4) stack status at the same moment (base #548 blocker-free at its 5th review, #549 0 blockers, #562 still silent and its docs now define content TTFT so #560's "always null" is not a defect), and the Responses-nesting gap I raised last time is unaddressed in both revisions; (5) the underlying assessment is unchanged — mechanism called correct, still no human maintainer comment anywhere, no TODO entry.
#29 [high] Amendment text ready for the report (event: 05:42 re-review) — amendments only, no re-iteration
Head is unchanged (046aaef0, +1757/−77, 22 files, updated 05:42); the new event is the fifth comment on #560, the flare-autobot re-review that fires 90 minutes after the 04:12 push and which my previous report listed as "not available". Detail in notes #26 and #27; this note is the amendment text itself.
Amendment 1 — Autobot comments / Process. Replace "2 blockers, and the 03:21 review's blocker 1 (a named requirement) is not fixed" with: a second auto-review landed at 2026-11-28 05:42 — Changes Requested, 1 blocker / 6 should fix / 6 subtractive / 5 nits (https://autobot.eidonix.com/p/05bfd7d9-595d-43d9-8bf7-6d5308421b5d.html), verdict: "The mechanism is right-sized and correct — worker owns the instants, encoder owns placement, nothing emitted when the option is off — but the documented [server] per_request_metrics key is outside Ignition's config schema, which breaks every Ignition command, and about 180 lines (most in one test file) duplicate rules and plumbing already pinned elsewhere." Both 03:21 blockers are gone: the cost-honesty one was fixed by the 04:12 description; the "named requirement" one was dropped, not satisfied — no maintainer statement has appeared anywhere in the cluster. The reviewer's "mechanism is right-sized and correct" verdict now stands for a second round.
Amendment 2 — the ignition config asymmetry is no longer a caveat; it is the blocker. Promote note #20's "new asymmetry" to the PR's only blocking defect, and state the reach I verified independently: ignition/cli/config.py:22-25 enumerates [server] keys and :109-114 raises unknown key per_request_metrics in [server] (tested shape at tests/cli/test_config.py:152); every config-reading handler calls Configuration.load (ignition/cli/serve.py:127, :174, :264, :431, :590; bench.py:144; publishing.py:31, :73, :174, :194), and every subcommand accepts --config (ignition/cli/init.py:96-104); keygen/key-password never load the file. docs/cli-design.md:1313 states "Ignition and native Flare read this file", and :1349 ships # per_request_metrics = false as a sample line — so uncommenting the documented sample is precisely what breaks ignition, while :1317-1318 hedges the key as Native-only. Ignition's own writer (config.py:176-203 write_initial) does not emit the key, so a file written by ignition is safe; the break appears once a user adds the key by hand for flare run. flare's reader still lacks deny_unknown_fields (flare/src/configuration.rs:26-35 vs PrefixCache :50-57), so the two readers disagree in both directions.
Amendment 3 — Tests: qualify last report's "the tests strengthen the case". A new subtractive blocker targets ~180 lines of duplicated test plumbing, and #560's own ≈+749 lines are mostly test code (phase_tests.rs +535, protocol/tests.rs +133). Confirmed against the code: the new helper served_through_worker re-implements a spawn/recv_timeout/to_bytes loop that already exists at phase_tests.rs:5006, :5250, :5644, and the third new test repeats it inline (…:4813-4837). So coverage is real across three planes (encoder matrix at protocol/tests.rs:2347-2450; worker-driven HTTP at phase_tests.rs:4685, :4731, :4780; CLI/config at flare-cli/src/cli.rs:1379-1400, flare-cli/src/config.rs:223-232, flare/src/settings.rs:76-86, helios/src/server/config.rs:727-738) but the PR is now criticised for being mostly tests — the opposite framing of last report's defence.
Amendment 4 — Stack status at the same moment, and #562. #548's fifth review (05:09) is still Changes Requested with Blockers: 0 (3 should fix / 7 subtractive / 8 nits), so the base remains blocker-free. #549's 04:28 review: Changes Requested, 0 blockers, no new commits, description corrected. #562 is unchanged since 04:12 with zero discussion, and its docs/api.md:1020 now defines content TTFT, so #560's "always null" is a temporary split rather than a defect; the split becomes a documentation dependency only if #560 merges alone.
Amendment 5 — the Responses/llama-swap gap is unaddressed. docs/api.md:1036-1043 on pr/562 still names only the include_usage gate and not the nesting, so my previous finding stands verbatim in both revisions: Closes #551 remains overstated (llama-swap reads metrics only at an event's top level; Responses streams show no rates), the same shape as #548's flagged Closes #536.
Amendment 6 — open questions, net after this event. (i) Will the author extend ignition's schema, or narrow docs/cli-design.md:1349 so the documented sample cannot break ignition? (ii) Does anything change before Closes #551 stands, given the nesting gap and no force-include-usage analogue? (iii) Was the "named requirement" blocker withdrawn or satisfied — it reads as withdrawn. (iv) Does #562's Committed-event cost get re-measured, given the CPU bound was taken on the earlier revision that still had it?
Unchanged by this event (do not re-iterate, but do not drop): mechanism judged correct twice; diff still carries all of #548 so a reviewer sees several PRs' worth; neither limitation (no force-include-usage, Responses nesting) has a docs/TODO.txt entry (grep of docs/TODO.txt: only unrelated hits at :42, :58, :114, :261-262); no human maintainer has commented anywhere in the cluster; author is WynnD (association NONE, 0 merged), who has not replied since 04:12.
#31 [high] Amendment 2026-11-29: head e3829e62, ignition blocker fixed, 06:19 review is a stale duplicate
Event for this turn: 14 commits since 046aaef0; #560 head is now e3829e62854767870783eeb69ee94b2f368a25de, metrics/per-request-speeds → main, +2000/−161 across 25 files (read_item #560; pr_files lists 25 files including ignition/cli/config.py, ignition/cli/serve.py, tests/cli/test_config.py). Author body was also rewritten (Evidence section now lists the ignition test counts).
The only blocker from the 05:42 review is fixed in the code. Independent verification:
ignition/cli/config.py:24—[server]schema now includes"per_request_metrics": bool;:41built-in default"server.per_request_metrics": False;:194generated template line# per_request_metrics = false …inside the existing[server]block (write_initial at :184-205 — note the sample line is placed before""/[defaults], i.e. inside[server], so it parses).ignition/cli/serve.py:488—debug_servesetsoptions["per_request_metrics"] = configuration.get("server.per_request_metrics").value(the PR's description claimedignition debug-serveplumbing;helios/src/server/config.rs:353-357accepts the JSON key as a strict bool, error otherwise).- Tests:
tests/cli/test_config.py:162-163(rejects1and"true"),:182-188(default False / true / false with source tag). No test asserts the generated template line (grep per_request_metrics tests/returns only test_config.py:162-188), so thewrite_initialsample at config.py:194 is untested. - docs follow: docs/cli-design.md:1385-1387 now says "Ignition rejects any section or key outside its schema.
ignition debug-serveapplies[server] thinking_token_budget,scheduler_checkpoint_extra_work_fraction, andper_request_metricsas nativeflare rundoes." — accurate for debug-serve only, since_server_options(serve.py:60) still does not carry the key forignition serve.
The 06:19 flare-autobot comment is a duplicate, not a new review. Its text, counts ("Blockers: 1 · Should fix: 6 · Subtractive suggestions: 6 · Nits: 5") and verdict sentence are word-for-word the 05:42 comment; only the Full Review / Value Proposition URLs differ (1cb8da22 / f6a70428 vs 05bfd7d9 / c7afd3c8). The fix commits (80b4cfb0, 0e14eaaa… e3829e62) landed 2026-11-28, i.e. before 06:19 但 the review cites the same defects; it therefore reviewed the pre-fix tree (autobot reviews auto-run 90 min after a push per its 02:18 note). So the 06:19 post is stale/duplicated, and no review of head e3829e62 exists yet.
PR state change: read_item reports the PR as open with labels area:api, enhancement, triage:review — no longer "(draft)". It is now up for review rather than WIP. I cannot observe GH check runs with the tools available (no CI status in read_item), so I can't confirm whether the Helios lifecycle workflow ran.
#562 is closed (2026-11-28 23:06, was draft): "Closing to keep the metrics work to three PRs (#549, #548, #560). In #560, time_to_first_content_token_ms is always null, which vLLM permits… The streaming content-instant implementation stays on branch WynnD:metrics/content-ttft (commit 3e8fd28) and can be reopened as a follow-up." → the stack is now two layers: #548 → #560; my earlier "#548→#560→#562" is superseded, and content TTFT is a deferred follow-up only (no open PR owns it).
#32 [high] Amendment: #560-only code changed since 046aaef0 (first_scheduled_ns exported, include_usage gate gone, delivered choices)
Changes to #560's own code since 046aaef0, verified in the diff of head e3829e62:
-
performance.first_scheduled_nsmoved out of #560 into the base.helios/src/server/observation.rs:58-70still writesperformance{ingress_ns,enqueue_ns,first_scheduled_ns,reused_prompt_tokens}, butRequestTimesis nowpub(helios/src/server/metrics.rs:343) andserver.rs:33exportspub use metrics::{RequestTimes, Snapshot}— i.e.first_scheduled_nsis part of #548's published surface, not #560's. The doc for it lives inhelios/model-contract.md:343-352("first_scheduled_nsmarks the earliest model step that included the request, when the worker reserves and packs that step before submitting it; a preempted request keeps its original value. It is null when no model step included the request."). The stamp ishelios/src/server/runtime.rs:2269-2285(after packing,get_or_insert). -
Placement gate simplified.
helios/src/server/protocol/encode.rs:234-244now readslet placed = !streaming || self.include_usage || self.protocol == Protocol::Responses;so the oldDecoder::Parse::output…include_usagesub-gate is gone; Messages ⇒None; >1 prompt ⇒None;choices_per_prompt > 1⇒Some(RequestMetrics::Suppressed)⇒metrics: null. -
Serialization changed shape: non-stream bodies are no longer
generated: Vec<u32>;http.rs:531-535doesfirst_scheduled_ns = first_scheduled_ns.into_iter().chain(times.first_scheduled_ns).min()andencoder.record_times(arrival_ns, times, generated_tokens); the body key is set athttp.rs:607-609(if !streaming && let Some(metrics) = encoder.metrics_value()).GenerationEvent::Finishednow carriesarrival_ns+times: RequestTimes(runtime.rs:99-109, emitted at:1891-1897,:2070-2077,:302-306). -
HTTP histogram gate no longer exists (was
if !count && !encoder.tool_limit_reached):http.rs:610-617callsstate.model.metrics().response_completed(elapsed, choices, &encoder.choice_generated_tokens())unconditionally — the fix for #548's flagged bug.metrics.rs:633-660skips when every choice isNoneand counts only delivered choices per prompt (request_choices= delivered count,request_max_choice_generated_tokens= max over delivered). Encoder side:encode.rs:658let cancelled = cause == Termination::Cancelled;(pre-tool-limit override),:750-756choice_generated_tokens(). -
New encoder unit test
helios/src/server/protocol/tests.rs:2347-2450per_request_metrics_follow_vllm_placement_and_null_rules(placement matrix, include_usage gate, Messages, n>1 ⇒ null, multi-prompt ⇒ absent, single-token ⇒ mean_itl null, zero-token ⇒ all null). New phase testphase_tests.rs:5005-5035for the tool-limit/choice path (test at :4982+). -
Unrelated-to-#560 churn inside the diff because #548 is stacked:
metrics.rsnow renders every observed histogram through oneHistogram/Buckets<N>with integer bounds (US/MS/Sconstants at :203-205, presets REQUEST_SECONDS/TOKEN_SECONDS/TOKEN_COUNTS/PREEMPTION_COUNTS/CHOICE_COUNTS/HOST_NANOSECONDS/HOST_TOKEN_COUNTS,renderordering_sumthen_count),time_to_first_responsehistogram moved ontoMetrics(metrics.rs:443,:661-666,latency.rs:63-78,:120),model_step(tokens)skips zero (metrics.rs:723-727),AdmissionLimit::ALL/reason()(metrics.rs:404-419), host histograms converted (metrics.rs:868-876,:1216-1233), docs/api.md "Health and metrics" rewritten,docs/design-review-adjacent prose trimmed. -
Test-harness duplication partly addressed, not removed: a shared
generates()predicate was extracted (phase_tests.rs:373-381, used at :461, :4547, :5030) andFixture::text_inputs()lifted out (:59-72), which is exactly the "share the step-generates test predicate" commit e3829e62; theserved_through_worker/timed_passpair at :4535-4610 still duplicates the spawn/recv_timeout/to_bytesloop that exists at :5009-5010, :5248-5250, :5642-5644, and the third new test repeats it inline at :4817-4818 (my note #29 wording holds).
#33 [high] Amendment text ready for the report (event: head e3829e62 + duplicate 06:19 review)
Amendments to apply to report entry #30. Sources: notes #31, #32; verification against head e3829e62.
A1 — Autobot comments / process: the 06:19 comment is not a new review. It repeats the 05:42 review verbatim — same counts ("Blockers: 1 · Should fix: 6 · Subtractive suggestions: 6 · Nits: 5") and the same verdict sentence ("…the documented [server] per_request_metrics key is outside Ignition's config schema, which breaks every Ignition command, and about 180 lines (most in one test file) duplicate rules and plumbing already pinned elsewhere") — differing only in the Full Review / Value Proposition URLs (1cb8da22 · f6a70428 vs 05bfd7d9 · c7afd3c8). Two auto-reviews therefore describe one revision, and no review of the current head e3829e62 exists. Replace my previous "the 05:42 review is the latest" with: latest review text is 06:19 (Changes Requested, 1/6/6/5), a re-post of 05:42.
A2 — the sole blocker is fixed at head; retract the blocker. Independent verification:
ignition/cli/config.py:24adds"per_request_metrics": boolto the[server]allowlist (now host, port, api_key, thinking_token_budget, scheduler_checkpoint_extra_work_fraction, per_request_metrics),:41adds the built-inFalse,:194adds the template line inside[server]inwrite_initial(:184-205).ignition/cli/serve.py:488forwards it:options["per_request_metrics"] = configuration.get("server.per_request_metrics").value;helios/src/server/config.rs:353-357parses it as a strict bool (non-bool ⇒server configuration per_request_metrics must be a boolean).- Tests added:
tests/cli/test_config.py:162-163(rejects1and"true"),:182-188(default False, true, false with source tag). So my earlier "the documented sample breaks every Ignition command" finding is now resolved, not outstanding; drop it from Blockers and from the open questions (question 1 in entry #30's list is answered: the author extended the schema, as the review asked).
A3 — three residual, smaller gaps remain around that fix (new, should-fix scale not blockers).
- The generated template line at
ignition/cli/config.py:194is untested:grep -n per_request_metrics tests/returns onlytests/cli/test_config.py:162-188, so nothing pins that the sample comment sits inside[server](i.e. that uncommenting it yields a valid file). The very thing that broke before is now only asserted by the hand-written docs sample. - Only
ignition debug-servehonours the key._server_options(ignition/cli/serve.py:60-72) does not carry it;debug_servesets it at:488.docs/cli-design.md:1385-1387states exactly this ("ignition debug-serveapplies … andper_request_metricsas nativeflare rundoes"), so docs and code agree — but a user who sets the key and runsignition servegets a parsed-and-ignored setting, silently. flare's own reader still has nodeny_unknown_fields(flare/src/configuration.rs:26-35; comparePrefixCacheat:50-57), so flare silently ignores a typo in[server]while ignition hard-errors on it — unchanged by this event.
A4 — stack is now two layers, and #562 is closed. #562 (Report the first content token … streams) was closed 2026-11-28 23:06 while still draft: "Closing to keep the metrics work to three PRs (#549, #548, #560). In #560, time_to_first_content_token_ms is always null, which vLLM permits when the value is unavailable. The streaming content-instant implementation stays on branch WynnD:metrics/content-ttft (commit 3e8fd28) and can be reopened as a follow-up." So: chain is #548 → #560; my previous "#548→#560→#562" line is superseded; content TTFT has no open PR and time_to_first_content_token_ms: null is permanent in this PR (helios/src/server/protocol/encode.rs:262 hard-codes Value::Null).
Consequence for Closes #551: the gateway-facing gaps can no longer be deferred to a follow-up — the Responses stream still nests metrics inside response (encode.rs:730-742), llama-swap reads only top-level, and docs/api.md:1022-1029 documents the nesting and the include_usage gate but not that llama-swap therefore shows nothing for Responses streams (the only place that is stated is the author's 03:26 comment). Closes #551 remains overstated.
A5 — scale and state changed. Head e3829e62, +2000/−161 in 25 files (was +1757/−77 in 22); new files in the PR's scope include ignition/cli/config.py, ignition/cli/serve.py, tests/cli/test_config.py. read_item now reports the PR as open with area:api, enhancement, triage:review — it is no longer a draft, so the "draft / not asking for review yet" line in my process finding must be dropped. CI status is not observable with my tools, so I cannot confirm the Helios lifecycle workflow (.github/workflows/helios-lifecycle.yml:1-34, triggers on any helios/** change) ran on this head.
A6 — one subtractive item is partially addressed, so my "mostly tests" critique needs an update. Commit e3829e62 "Share the step-generates test predicate and trim encoder metrics comments" extracted generates() (phase_tests.rs:373-381, used at :461, :4547, :5030) and Fixture::text_inputs() (:59-72), removing three copies of the decode/resume/prefill predicate. Still duplicated: the served_through_worker/timed_pass harness (:4535-4610) vs the existing spawn/recv_timeout/to_bytes loops at :5009-5010, :5248-5250, :5642-5644, plus the inline repeat at :4817-4818. So: "the reviewer's ~180-line duplication finding is half-addressed (predicate shared, harness still duplicated)".
A7 — first_scheduled_ns is now base-surface, not PR-surface. RequestTimes is pub in helios/src/server/metrics.rs:343 and re-exported with Snapshot at helios/src/server/server.rs… (exact line: helios/src/server.rs:33), and helios/model-contract.md:343-352 documents performance.first_scheduled_ns including "a preempted request keeps its original value. It is null when no model step included the request." The PR description still lists performance.first_scheduled_ns under "Flare's own shape" as this PR's contribution; that is now inaccurate (it ships with #548). Same shape as my earlier "description vs diff" finding, now migrated.
A8 — open questions, net. (i) [answered] none for ignition. (ii) Unchanged: does Closes #551 stand given Responses nesting and no force-include-usage analogue? (iii) Unchanged: was the "named requirement" blocker withdrawn or satisfied — still no maintainer statement for #560. (iv) New: will anyone review head e3829e62, given the last two auto-reviews describe an earlier revision? (v) New: will the template line at ignition/cli/config.py:194 get a test, since it is the exact artifact whose absence broke ignition before?
#36 [high] Amendment: a maintainer now reviews this cluster — Luke Alonso's #548/#549 baseline applies to #560
This supersedes my standing line "no human maintainer has ever commented in this cluster" (report entry #30 and earlier notes #12/#15).
Luke Alonso (lukealonso, project owner per docs/design-review.md:22-26, which requires "prior explicit approval from project owner Luke Alonso") reviewed the two base PRs on 2026-11-28, after my last report:
- #549 (18:32): Changes-requested prose review with 2 blocking items — plain
unpin()can corruptrequest_pins(helios/src/cache.rsunpin_with), and run mandatory TLA+ lifecycle conformanceverification/helios-lifecycle/check.pybecause the PR touches pinned/compaction and scheduler admission/retirement. Also asks to state the combined-build live validation in the description and re-review againstdocs/design-review.mddigestc3a9. - #548 (18:37): "The core design looks good", then 2 blocking items — (1) run
python3 verification/helios-lifecycle/check.pyplus--releasetests because the PR changesRequestScheduler::admit_planned_with_checkpoint_accounting, theWorkeradmission/completion/publish/park/shutdown paths andruntime/phase_tests.rs; (2) the pre-prefillrequeuecorruption offlare_request_queue_seconds/flare_request_prefill_seconds/flare_request_inference_seconds— "Resetincoming.record.times.first_scheduled_ns = NoneinWorker::requeue". Plus should-fix:Closes #536→Part of #536, the reasoning forced-close0sdecode/TPOT observations, the vLLM parity table,http_slotsscope, avoid atomics inRequestTimes. - He has not commented on #560. #560 carries the
triage:reviewlabel and is no longer draft.
Why this matters for #560, concretely:
- The base requirement is confirmed in code:
Worker::reserve_and_packstampsfirst_scheduled_nson the first step of any graph kind (helios/src/server/runtime.rs:2269-2285, and #548 has the same code at:2255-2272), whileWorker::retry_late_pool_answerscancels a request before any token and callsself.requeue(handle, true)(:2637-2641), andrequeue(:2647-2675) does not clearrecord.times. So a request that is requeued after an Init/Restore step keeps a stalefirst_scheduled_ns— which is exactly what #560'squeue_time_ms(encode.rs:264) andtime_to_first_token_ms(:261) are computed from, so #560 inherits the defect in its headline fields and will need the same fix or will surface wrong numbers. - The lifecycle-check requirement directly hits #560 as well: it changes the cancellation semantics the harness models (
encode.rs:658cancelled,:750-756choice_generated_tokens,metrics.rs:633-660delivered-choice counting) and editshelios/src/server/runtime/phase_tests.rs(+548), the file that hostsserver::runtime::phase_tests::response_lifecycle_tests::native_responses_match_lifecycle_model(verification/helios-lifecycle/README.md:113-124). #560's Evidence lists onlycargo check,cargo test --liband live llama-swap runs — noverification/helios-lifecycle/check.pyand no--releaserun, the same omission the maintainer called blocking on #548 and #549. Closes #551will draw the same response asCloses #536did: the maintainer's rule is that a partial delivery must sayPart of. #560 delivers Chat/Completions rates to llama-swap but not Responses streams (docs/api.md:1022-1029) and not streams withoutinclude_usage, soPart of #551(or an explicit limitation in the description) is the consistent form.
#37 [high] Issue #551's own text specifies Responses top-level placement and Messages — #560 contradicts both
I had only ever summarised #551 second-hand; reading it (issue #551, WynnD, 2026-11-27 03:26, 0 comments) shows the requirement is more specific than #560 delivers, in two documented ways:
- Placement for Responses is specified explicitly and #560 violates it. #551 says: "Responses streams: the
response.completedorresponse.incompleteevent data, besideresponserather than inside it." #560 putsmetricsinsideresponse(helios/src/server/protocol/encode.rs:730-742) — mirrored by the author's own live result "Responses streams show none (llama-swap readsmetricsonly at an event's top level)". So the placement is not merely "unlucky for llama-swap": it contradicts the stated requirement in the issue #560 says it closes. - Messages is in scope there and out of scope in #560. #551 proposes the object "on the final output of Chat Completions, Completions, Messages, and Responses, both streaming and non-streaming", with Messages on
message_delta. #560 excludes Anthropic Messages entirely (encode.rs:237-238Protocol::Messages => None;docs/api.md:999"Anthropic Messages output never carries the object"). This exclusion is a deliberate vLLM-parity choice (vLLM has no Messages endpoint) but it is a silent narrowing of the requested outcome. - Token counts are a real dependency for llama-swap, not just convenience. #551: "vLLM's
metricsobject … carries no token counts of its own: llama-swap computes the prompt rate fromusageand time to first token, so a stream withoutstream_options.include_usagehas no usage to use, and the prompt rate reads zero." Hence a Chat/Completions stream needsmetricsandusageon the same event — which is exactly the usage chunk #560 targets, so #560's gate is right, but it also means no other placement could work, and it confirms theinclude_usagehole is a requirement-level gap, not a cosmetic one. - The reader is pinned: "
buildMetricsininternal/server/metrics.go(llama-swap v250, commit60226b6) reads a llama.cpptimingsobject, or a vLLMmetricsobject, from a non-streaming body or from any SSE event". So "any SSE event" is the mechanism; a nested key in a Responses event is not read. - #551 also asks for
draft_n/draft_n_accepted,cache_n,prompt_n,predicted_*— llama.cpp'stimingsshape — which #552 implemented and #560 replaced with vLLM'smetrics. #560's reasoning for switching ("emitting both objects makes llama-swap subtract cached tokens twice") is coherent, but the delivered object no longer carries draft counts at all, so the speculative-acceptance part of #551 is not delivered by either surviving PR.
Conclusion for the report: Closes #551 is overstated on Messages (excluded), Responses placement (contradicts the requested spot), and draft counts (absent); the defensible claim is Part of #551 — the same wording the maintainer demanded of Closes #536 on #548.
#38 [high] Charter mapping (re-checked): flag compliant; silent include_usage drop breaks the #417 rule
Two charter/AGENTS.md confirmations for the final report, checked against the re-read charter (result 70) and AGENTS.md greps.
-
The new
--enable-per-request-metricsflag is charter-consistent. Charter "How We Work" dislikes "random switches", but AGENTS.md:453-454 says a setting belongs in "the environment, the configuration file, or a command-line flag, as the CLI design specifies. A setting that only experiments need is an advanced flag carried…", anddocs/cli-design.mddocuments both the flag (:736) and the per-host key (:1317-1318,:1345-1349). So it is a documented serving setting, not a model-identity switch (the charter's worry, echoed at AGENTS.md:349-357 aboutsupports_*/can_*model allowlists). Flag behaviour is test-pinned on both entry points:flare-cli/src/cli.rs:1379-1400(off by default;orbit runforwards to rank zero) andflare-cli/src/config.rs:223-258(config/flag precedence; Orbit rank zero reads its node's file). -
Charter "Don't silently ignore API fields" (#417) is the sharpest remaining charge against #560, and it is a rule, not a preference. Charter text: "If a standard request field is passed in, either implement it according to the spec or reject it. Never accept it and quietly drop it." #560 accepts a Chat/Completions request with
stream: trueand nostream_options.include_usagewhile the option is on, and silently emits nothing (helios/src/server/protocol/encode.rs:236placed;docs/api.md:1022-1029admits it in prose). Documenting a silent omission is not the same as complying — the spec-faithful outcomes are rejecting, warning, or implementing vLLM's force-include-usage, whichdocs/api.md:1027-1029says Flare lacks. -
The dropped "named requirement" blocker has a charter basis after all. Charter "What gets merged: PRs that address a maintainer request, a roadmap item, a reproducible bug, a measured performance/memory issue, or bad docs." Issue #551 is a reproducible bug report from a user running Flare behind llama-swap, so the requirement the 03:21 review demanded and the 05:42/06:19 reviews dropped can be satisfied by the charter row itself without any maintainer statement. Keep "dropped, not satisfied" (no maintainer has endorsed it — though note #36 now records Luke Alonso reviewing #548/#549, and he has not commented on #560), but add that the charter's "what gets merged" list is the route that would satisfy it.
-
Evidence rows, final state. Charter "Bring real evidence… benchmarks on a served workload" is met by the description's live 40/40 matrix and the CPU bound (on vs off: 15.4–15.9 s vs 16.0–16.3 s per 16×512-token run). The gap that remains is procedural and maintainer-named: no
verification/helios-lifecycle/check.pyrun and no--releasetest run, which Luke Alonso made blocking on both #548 (2026-11-28 18:37) and #549 (18:32) — see note #36. #560's Evidence section lists onlycargo check,--libtests and live runs.
#6 [medium] Why: the motivating problem and how long it has been wanted
The stated problem is concrete and verifiable from an external project: llama-swap v250 (commit 60226b6) buildMetrics in internal/server/metrics.go reads a llama.cpp timings object or a vLLM metrics object out of the proxied body or any SSE event; Flare emits only usage, so llama-swap's prompt and decode rates show -1 and the input-token column shows the whole prompt. Source: #551 (issue, open, WynnD, 2026-11-27) https://github.com/NVIDIA/hyperflare-inference/issues/551. #560's description states this without naming llama-swap; the issue names it.
Age: short. #551 opened 2026-11-27; #552 and #553 opened the same day; #560 opened 2026-11-28, one day later. The adjacent monitoring-parity asks, #536 (request histograms) and #537 (KV usage), were opened by Napuh on 2026-11-26 — one day earlier — and are about /metrics, not response bodies. So the wants are two days old at most, from two different outsiders (WynnD, Napuh), and none of them comes with a maintainer request.
The vLLM behaviour being copied: --enable-per-request-metrics and a metrics object on the response with queue_time_ms, time_to_first_token_ms, time_to_first_content_token_ms, generation_time_ms, mean_itl_ms, tokens_per_second, plus metrics.speculative_decoding which #560 does not implement (description says so).
#10 [medium] Recent activity: metrics owner is Luke Alonso; the change builds on #507
Recent activity and who owns these areas:
- The areas touched are Helios server/metrics/runtime. Commits on main in the last 180 days: Luke Alonso 208 in helios/src, Martin Vit 49, yatesdr 47. So Luke Alonso is the de-facto owner of the code this PR edits, and he has not appeared in any of #548/#549/#552/#553/#560/#551/#536/#537.
- Recent relevant commits on main: f646bebc "Add persistent worker counter schema, Prometheus metrics, /v1/worker telemetry, launch dashboard view, and flare parallax CLI (#507)" by Luke Alonso, merged 2026-11-24 — this is the most recent substantive change to server metrics before this series, and it is the shape #548/#560 extend (Metrics struct, render(), snapshot). #560 builds on it rather than reversing it.
- 6d74db3a "Fix Rust compiler warnings across Helios, Heliopause, and Selene" (2026-11-26) — the #560 branch was written after it; description claims
cargo checkclean. - 883abc17 (#556) "replace same-process TP dispatch with lock-free DispatchRing" and c9693765 (#555) "add intermediate batch capacities" are the most recent helios/src commits; neither touches the files this PR edits, and nothing in the current main since 2026-11-27 conflicts textually with it except the files themselves.
- No commit on main changes
GenerationEvent::Finished, so #560's widest-reaching signature change (a public enum variant gaining two fields) lands on a stable surface, but any out-of-tree consumer or theverification/helios-lifecycle/check.pysource-text mutation ("unfinished producer admission",_capacity: Some(capacity.clone()),\n arrival_ns,at check.py:218-220) depends on the literal textarrival_nsfollowing_capacity:in theIncominginitializer. In #560's runtime.rs:926-928 that order still holds (_capacity: Some(capacity.clone()), arrival_ns: ...), so the TLA+ mutation harness keeps matching — verified by reading both. #548 addedarrival_nsthere originally; #560 leaves it in place. - The branch is 3e1512e3/49373bc5/037b9d5f on top of #548's commits, all authored by Wynn Drahorad on 2026-11-26/27; nothing has been rebased onto main since 883abc17.
#27 [medium] Detail: the 05:42 subtractive blocker is real (test harness duplication), and the post-event open questions
Supporting detail for the 05:42 review's subtractive blocker, checked against the code rather than taken on trust:
- The new phase tests re-implement a loop the file already has:
spawn(http::generate)→spawn_blocking(receiver.recv_timeout(5s))→axum::body::to_bytesappears in the new helperserved_through_worker(helios/src/server/runtime/phase_tests.rs:4583-4598) and again inside the third new test (…:4813-4837), while the same pattern already exists at :5006, :5250, :5644. So "duplicate rules and plumbing already pinned elsewhere" is credible, and my last report's line that the tests are a strength needs the qualifier "strength of coverage, with redundant harness code the reviewer wants cut". - The null/placement matrix is asserted twice by design: encoder level at helios/src/server/protocol/tests.rs:2347-2450 (
metered/metered_generationhelpers at :2318/:2336) and HTTP level at phase_tests.rs:4731-4777 and :4780-4849. The n>1 → null and no-option → absent cases are covered in both planes. - Consequence for the report: coverage is real (three planes: encoder, worker-driven HTTP, CLI/config), but the cost the reviewer wants removed is concentrated in the +535/+133 test lines, which is where #560's ~+749 own lines mostly sit. So "the PR is mostly tests" becomes a live criticism rather than a defence.
Remaining open questions after this event (unchanged otherwise):
- Will the author add the key to ignition's schema, or narrow docs/cli-design.md:1349 so the documented sample cannot break ignition?
- Does anything need to be done before
Closes #551stands, given llama-swap reads only top-levelmetrics(Responses streams still show no rates) and #562 does not touch docs/api.md:1036-1043? - Was the "named requirement" blocker withdrawn or satisfied? No maintainer statement exists in the cluster, so it reads as withdrawn.
- Will #562's own 90-minute review repeat the config/placement findings, and does its
Committedevent add per-step cost that #560's CPU bound does not cover (the author measured overhead on the earlier revision that still had it, so it arguably does)?
#35 [medium] Correction: no ignition serving gap — export omits the key by design; only the template line is untested
Correction to note #33 item A3.2 — the "only debug-serve honours the key" framing is wrong and should not be reported as a gap.
Verified: ignition export keeps its native server options in _server_options (ignition/cli/serve.py:60-72), pops api_key (:215), and passes them to prepared.export(...) (:240-242, :374-375) — by design per_request_metrics is not baked into the exported core. ignition debug-serve adds it at :488 and hands options through _serve_prepared → prepared.start_server(bind=bind, options=limited) (:553-563), where helios/src/server/config.rs:353-357 parses it. On the native side it arrives from the host file or flag (flare-cli/src/config.rs:73-75, flare-cli/src/cli.rs:698-700, flare-cli/src/main.rs:355-357) and Orbit rank zero (flare-cli/src/cli.rs:695-726), plus the desktop path (flare/src/controller.rs:2566 writes config["per_request_metrics"] = self.settings.per_request_metrics.into() from flare/src/settings.rs:224). So the only Ignition command that serves with the key is debug-serve, it does honour it, and docs/cli-design.md:1385-1387 says exactly that. No gap.
Residual gaps around the ignition fix, final list (both small):
ignition/cli/config.py:194(the generated template comment,write_initialat :184-205) has no test:grepoftests/shows onlytests/cli/test_config.py:162-188, which pin validation and default resolution but not the generated sample's placement inside[server].flare's reader still lacksdeny_unknown_fields(flare/src/configuration.rs:26-35vsPrefixCacheat:50-57), so the two readers of the shared file disagree: ignition hard-errors on an unknown[server]key, flare ignores it silently.
#34 [low] Detail: mean_itl denominator includes the forced reasoning-close token (undocumented)
Small, low-value but checkable detail: mean_itl_ms divides the first→last token span by generated - 1 (helios/src/server/protocol/encode.rs:265-267), and generated is the usage-style count handed in at helios/src/server/http.rs:534 (encoder.record_times(arrival_ns, times, generated_tokens)). The PR description's caveat "a forced reasoning-close token is counted without an instant" therefore also means the forced close token enlarges the denominator without enlarging the numerator, so mean_itl_ms is understated by roughly (n-1)/n on a forced-close response. Speculative rounds are the same pattern but are documented (docs/api.md:1011: "tokens one speculative step commits share a completion instant, so each extra token counts as a zero-length interval"); the forced-close case is not mentioned in docs/api.md. Only worth a sentence if space allows.
Also verified for completeness: tokens_per_second = generated × 1e9 / (last − first_scheduled) with a > 0 guard (encode.rs:268-272), so a zero-length span yields null rather than infinity; generation_time_ms is 0.0 (not null) for a single token (encode.rs:255-259, asserted in helios/src/server/protocol/tests.rs:2427-2431).