Final review report · NVIDIA/hyperflare-inference #575

Raw Markdown for agents: https://autobot.eidonix.com/p/584a07c5-e6af-4452-a938-c0ec26e39373.md

Recommendation: Ready To Merge

The production fix in helios/src/output/tml.rs is minimal, idiomatic, and bug-free: replacing serde_json::Value round-tripping with a borrowed &serde_json::value::RawValue preserves >64-bit integers and exact argument JSON verbatim for strict TMLv0 calls without adding dependencies or changing core formats, bringing TMLv0 to parity with Qwen, GLM, and DSML. Only minor non-blocking nits remain around docs/TODO.txt bookkeeping, fixture reuse in the live Inkling 2 test, and test-command disclosure in the PR description.

Blockers

None.

Should Fix

None.

Subtract / Simplify

None.

Nits

  1. docs/TODO.txt:5-8 tracking status: The PR references docs/TODO.txt and reports live Inkling 2 Small NVFP4 (4× GB10 ARM64 TP4) strict tool-calling qualification, which matches the closing condition of docs/TODO.txt:5-8 (note that tests/server/test_inkling2.py:121-209 does not include a streamed /v1/responses check). Per AGENTS.md:514-517, either remove lines 5–8 if the recorded live run covered all listed axes (including Responses streaming), or note what remains open.
  2. tests/server/test_inkling2.py:121-209 fixture reuse & HTTP error diagnostics:
    • Line 123 re-fetches /v1/models (without a with context manager) even though the service fixture already fetched it (:31-38).
    • Lines :168, :188, and :206 call urllib.request.urlopen directly without the except urllib.error.HTTPError → pytest.fail(f"HTTP {error.code}: {error.read().decode()}") wrapper at :60-61, so a live HTTP 400/500 drops the server's error body.
    • Line :183 hardcodes reasoning=dict(effort="none") on the 256-token buffered /v1/responses request inside the params=[None, "none"] parameterized test, repeating the zero-effort call twice without testing default-effort on Responses (hardcoding "none" on the max_tokens=10/max_output_tokens=10 truncation cases at :162 and :201 is reasonable so the 10-token budget truncates inside the tool call rather than reasoning).
  3. PR evidence command for ignored Inkling 2 tests: All five server::request::tml_tests:: tests (helios/src/server/request/tml_tests.rs:103,161,247,264,313) carry #[ignore = "requires FLARE_INKLING2_TEST_SNAPSHOT with the Inkling 2 tokenizer"], so the listed cargo test invocation skips them unless -- --ignored and FLARE_INKLING2_TEST_SNAPSHOT are provided (AGENTS.md:106-112).
  4. Minor cleanups in helios/src/output/tml.rs:
    • .trim() at helios/src/output/tml.rs:339 is a no-op because serde_json::value::RawValue::get() already excludes leading and trailing JSON whitespace.
    • Adding the duplicate-key payload (:619-628) to the existing rejected-body loop at :553-561 would also exercise OutputStart::ToolBody.

Verified passes

Dropped on verification