Re review report · NVIDIA/hyperflare-inference #575

Raw Markdown for agents: https://autobot.eidonix.com/p/9e633c27-c4c7-4fd0-b0d8-af7b52da5d7b.md

Recommendation: Ready To Merge

PR #575 fixes a real, reproducible HTTP 500 bug still live on main (helios/src/output/tml.rs:365) with a minimal, zero-dependency change in the right layer (TmlOutput::call), bringing TMLv0 to parity with the existing RawValue preservation used by Qwen/GLM (helios/src/output/tagged.rs:871,927). The rebase onto 571a4471 (head a0d9065) introduces no correctness, concurrency, memory, or CI regressions, and the author has refreshed the commit trailers and disclosed the non-strict verbatim-forwarding and duplicate-key behaviors in the PR description. Only optional test-duplication simplifications and minor bookkeeping nits remain.

Merge Risk

Level: Low

Walkthrough

Pre-merge Checks

Blockers

None.

Should Fix

None.

Subtract / Simplify

  1. Deduplicate the 30-digit schema fixture in helios/src/grammar/strict.rs:3827-3848. tml_strict_parser_preserves_30_digit_integers copies big and the 20-line big_schema verbatim from qwen_and_glm_strict_parsers_preserve_30_digit_integers immediately above it (helios/src/grammar/strict.rs:3726-3746). Extract a shared fn big_integer_case() -> (&'static str, Value) helper in mod tests (~20 net lines removed, zero coverage loss).
  2. Reuse the service fixture and collapse repeated urllib POST boilerplate in tests/server/test_inkling2.py:121-209. test_strict_tml_tool_calls_and_truncation re-fetches /v1/models (:122-123) even though the module service fixture already resolves url and model["id"] (:31-33), and repeats identical urllib.request.Request + urlopen + json.load plumbing three times (:155-169, :176-189, :194-207). Exposing url/model (or a small post(path, body) helper) on service alongside ask.chunk (:67) removes the redundant /v1/models call and cuts ~25–30 lines.

Nits

  1. docs/TODO.txt bookkeeping (docs/TODO.txt:5-8; :12-15 on main): The strict TMLv0 qualification item remains [ ] (and tests/server/test_inkling2.py:121-209 covers Chat buffered/streamed and Responses buffered/truncated, leaving Responses streamed only in the external 35/35 run). Either close/update the entry with recorded results once streamed Responses is covered or note why it stays open.
  2. Optional API doc note (docs/api.md:614-631): Consider adding one sentence noting that TMLv0 forwards raw args text verbatim (trimmed of outer whitespace) and surfaces duplicate wrapper keys as visible text.
  3. Out-of-scope follow-up (multi-turn precision): Multi-turn conversations still round-trip tool arguments through serde_json::Value on the next turn's ingress (helios/src/server/protocol/decode.rs:91-101), TMLv0 prompt rendering (helios/src/frontend/tml.rs:75-88,149-174), and Anthropic Messages non-streaming tool_use.input (helios/src/server/protocol/encode.rs:334). Worth tracking separately if multi-turn >64-bit integer round-trips are needed.
  4. Evidence provenance: Consider noting the core/command behind the "35/35 strict TMLv0 live serving tests" claim and confirming --release on the rebased SHA (a0d9065) to match .github/workflows/native-serving.yml:63 (not opened),68.

Dropped on verification