Value proposition report · NVIDIA/hyperflare-inference #560

Raw Markdown for agents: https://autobot.eidonix.com/p/f6a70428-79e6-4628-8512-ea301834ce74.md

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:

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

Remaining fixes besides the schema (all small)

  1. 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," while docs/api.md:472-514 now carries a large vLLM correspondence table. Two lines from an owner settle it. Nothing else matters if the answer is no.
  2. #[non_exhaustive] on RequestTimes. Exported at helios/src/server.rs:33 and embedded in public GenerationEvent::Finished (runtime.rs:102-105). search_code for non_exhaustive over 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.
  3. Persistent Orbit groups cannot turn it off. flare-cli/src/cli.rs:643-649 / 857-863 declare only the positive flag; cli.rs:698-700 pushes it into a group's rank_zero options; orbit/controller.rs:691-692 and :846-850 save it; flare-cli/src/config.rs:73-75 applies the config value only when the flag is absent. So the only exit is editing orbit.toml (not opened). Repo precedent pairs negatives (docs/cli-design.md:199,741,742). Either add --no-enable-per-request-metrics or say in the docs/cli-design.md:736 row that there is no negation.
  4. 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 inside response (encode.rs:729-734), while llama-swap reads metrics only 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.