Verdict: worth it with changes — one hard blocker (a config-schema break I reproduced), a maintainer sign-off, and three small fixes
The revision I re-checked is still 046aaef (five commits, no push since my last report), and the newest auto-review at 05:42 raises a blocker I had missed. I verified it in the tree and it is real. Everything I flagged as fixed last round is still fixed; everything I flagged as open is still open; and the gap the auto-review found is on a shared surface the charter cares about, so it moves from "nit" to "must fix before merge."
The one thing that stops the merge: the documented opt-in breaks every Ignition command
docs/api.md:1007 and docs/cli-design.md:736,1349 tell users to set [server] per_request_metrics = true. Ignition's Python reader validates the same file with a closed schema:
ignition/cli/config.py:21-33—_SECTIONS["server"]listshost,port,api_key,thinking_token_budget,scheduler_checkpoint_extra_work_fraction. Noper_request_metrics.ignition/cli/config.py:108-114—_validateraisesUsageError("... unknown key {key} in [{section}]")for anything outside it, andConfiguration.loadvalidates every section (config.py:89-100).- Every Ignition command loads that file:
serve.py:127,174,264,431,590(export,debug-serve, …),bench.py:144(not opened),publishing.py:31 (not opened),73,174,194. - It is the same file as native Flare's:
DEFAULT_PATHis~/.config/flare/config.toml(not opened) (config.py:19) versusSettings::loadatflare/src/settings.rs:120-124, anddocs/cli-design.md:1313states outright "Ignition and native Flare read this file."
Concretely: a user who follows the new documentation to enable the feature, then runs ignition export or ignition debug-serve to prepare a model, gets a usage error. The Rust side is permissive (flare/src/configuration.rs:26-28 has no deny_unknown_fields); only the Python side is closed. per_request_metrics is the first [server] key in this situation — every other key in configuration.rs:28-35 also exists in _SECTIONS, which is why precedent did not catch it. And tests/cli/test_config.py:151-177 has unknown-key cases but no row for this key, so CI could not see it.
The fix is small and belongs in this PR: add "per_request_metrics": bool to _SECTIONS["server"], a _BUILT_IN default, a commented line in write_initial (config.py:183-213, which currently never offers the key), and one parametrized row in tests/cli/test_config.py. Related and cheap: ignition/cli/serve.py:486-487 forwards only thinking_token_budget and scheduler_checkpoint_extra_work_fraction into the native options dict, so ignition debug-serve cannot turn the object on at all — one line, same file.
This is exactly the charter's "solve the right problem in the right place": a public configuration key is shared property of two readers, and only one of them learned about it.
Why the change is still worth making
- The problem is concrete and reproducible. #551 (same author) documents that llama-swap's
buildMetrics(internal/server/metrics.go(not opened), v25060226b6) reads llama.cpp (not opened)timingsor vLLMmetricsfrom the proxied body and never scrapes/metrics; with neither object present every Flare request shows-1for prompt and decode rates. That is an interop defect, not a hypothetical. - Evidence clears the charter's bar (#210). WynnD's 2026-11-28 03:26/04:12 comments report an RTX PRO 6000 Blackwell serving the prepared gb202 Qwen3.8-Flash package behind llama-swap v250: 40/40 request-matrix checks,
tokens_per_secondandmean_itl_msreconciling with vLLM's definitions computed from the other fields,performance.first_scheduled_nsfalling betweenenqueue_nsand the first token stamp, llama-swap showing prompt and generation rates for Chat and Completions, and CPU 15.4–15.9 s (on) versus 16.0–16.3 s (off) over 16×512-token streams. Re-validated through the configuration key, not just the flag. - It is built on data the worker already has. The instants come from #548's
RequestRecord(helios/src/server/metrics.rsdiff:RequestTimes { first_scheduled_ns, first_token_ns, last_token_ns }); this PR adds no clock read. The encoder does placement only:enable_request_metrics/record_times/metrics_value(protocol/encode.rs:229-275) and three call sites (encode.rs:712-716,:729-734,http.rs:609-613). Nothing is emitted when the option is off (http.rs:387). - Wire fidelity, not invention. All six vLLM fields, TTFT from scheduling, decode-only
generation_time_ms,mean_itl_msnull for one token,tokens_per_secondspanning scheduling→last token,metrics: nullforn > 1, omitted for multi-prompt Completions and Messages, Responses onresponse.completed/response.incomplete, streams needinclude_usage. Tests pin every one of those rules with real worker steps (protocol/tests.rs:2346-2449,phase_tests.rs:4684-4830). - The four-way fork is resolved. #552 and #553 are closed as superseded; #562 is a draft stacked on top. One shape, one implementation — worth preserving, since double-emission would make llama-swap subtract
cache_ntwice.
Remaining fixes besides the schema (all small)
- Maintainer sign-off on the feature itself. The only request is #551, filed by the author whose #536/#548/#549/#560/#562 cluster this is;
docs/core-design.md(not opened) says Flare "does not aim for vLLM's feature matrix," whiledocs/api.md:472-514now carries a large vLLM correspondence table. Two lines from an owner settle it. Nothing else matters if the answer is no. #[non_exhaustive]onRequestTimes. Exported athelios/src/server.rs:33and embedded in publicGenerationEvent::Finished(runtime.rs:102-105).search_codefornon_exhaustiveover the whole tree returns nothing, so the attribute is not in use anywhere yet, but with the in-process SDK (#6) on the roadmap (and vLLM already growing this object) a future field would otherwise be a breaking change. One line now.- Persistent Orbit groups cannot turn it off.
flare-cli/src/cli.rs:643-649/857-863declare only the positive flag;cli.rs:698-700pushes it into a group'srank_zerooptions;orbit/controller.rs:691-692and:846-850save it;flare-cli/src/config.rs:73-75applies the config value only when the flag is absent. So the only exit is editingorbit.toml(not opened). Repo precedent pairs negatives (docs/cli-design.md:199,741,742). Either add--no-enable-per-request-metricsor say in thedocs/cli-design.md:736row that there is no negation. - One missing caveat in
docs/api.md:1031-1038. The include_usage gap is now documented — good. Not documented: for streamed Responses the object sits insideresponse(encode.rs:729-734), while llama-swap readsmetricsonly at an event's top level, so Responses streams still show no rates. WynnD's own live table says so. It is the same class of "the motivating workflow stays broken here" honesty the include_usage paragraph establishes.
Cost, and the one number I would change
| Dimension | Assessment |
|---|---|
| Users helped | People fronting Flare with llama-swap or any body-parsing gateway, plus billing/SLA tooling. Modest, but exactly the charter's local-workstation user. |
| Complexity | ~200 production lines in 560's own commits: one enum field pair on the terminal event, one encoder-owned struct, one config key, one flag on run/orbit run, one config-file schema (once fixed). No new event, no new clock read, no runtime state. |
| Maintenance | The vLLM contract is an unpinned snapshot (worth one sentence naming the version); one boolean wired through four places (CLI flag, flare/src/configuration.rs:34, flare/src/settings.rs:32,224, flare/src/controller.rs:2566) that must stay in sync — the Ignition schema is the fifth place that was missed. |
| Performance | Not measurable in the author's runs; per-request work off is one copy of ~32 bytes, on is one JSON object. The per-step monotonic_ns() belongs to #548. |
| Risk | Low once the schema is fixed: everything behind one flag, null/omitted rules match vLLM, tests assert instants fall inside the step that produced them. |
Review-shape problem worth naming: because #548 has not merged, this PR's diff against main currently carries ~1,760 added lines (metrics.rs +548, phase_tests.rs +535, latency.rs +24, scheduler.rs +4, most of runtime.rs +104 and docs/api.md +174 are #548's). A reviewer cannot see what 560 actually changes. Land #548 first, then re-review 560 as a ~250-line diff — that alone removes most of the auto-review's "~180 duplicated lines" complaint, which is really #548's tests being reviewed twice in one diff. Within 560's own tests, four sites for one boolean (flare-cli/src/config.rs:219-234, flare/src/settings.rs:75-87, helios/src/server/config.rs:727-740, plus the CLI test) is more than the rule needs; two would do.
Simpler alternative, and why I am not pressing it
Chat already exposes the same instants in Flare's own vocabulary via return_token_timestamps → performance{ingress_ns, enqueue_ns, first_scheduled_ns} plus token_timestamps_ns (this PR adds first_scheduled_ns there, observation.rs:58-75, model-contract.md:343-356). The new value is specifically the vLLM wire shape that body-parsing gateways already read, so the object should stay minimal — and it is: six fields, no new event, no new clock read. A gateway-side patch would mean changing llama-swap for one engine, which is strictly more work than emitting the shape llama-swap already understands.
Bottom line
Worth merging with changes. Do not merge at 046aaef: the documented [server] per_request_metrics key makes ignition export, debug-serve, bench, join, and publishing fail with "unknown key," which the docs themselves invite. Add the key to ignition/cli/config.py (schema, built-in, write_initial, test row) and forward it in ignition/cli/serve.py:486, put #[non_exhaustive] on RequestTimes, either add a negation flag or document its absence, add the streamed-Responses/llama-swap caveat to docs/api.md, and get a maintainer's yes. #548 must land first; #552/#553 stay closed; #562 is judged separately on whether the streaming content instant has a consumer.