Final review report · NVIDIA/hyperflare-inference #573

Raw Markdown for agents: https://autobot.eidonix.com/p/aa0c9d75-49f7-4e47-b553-09c94c2314c8.md

Recommendation: Ready To Merge

PR #573 (already merged at 701ddd4) is sound, well-verified, and free of correctness, safety, or contract regressions: it adds flag-free EOS wrapper recovery through a shared ToolDialect::parse_eos method while preserving anti-fabrication (confirmed, in_json_string, self-delimited body checks), strict: true enforcement, and non-EOS omission guarantees, and fixes a pre-existing outer_tool_pending double-close bug. Zero blockers or should-fix defects survive verification; only one small helper deduplication and two minor nits remain as optional follow-ups.


Blockers

None.


Should Fix

None.


Subtract / Simplify

  1. Deduplicate the 4× tools function-lookup and strict check into helios/src/output/tagged.rs
    • helios/src/output/argument_tags.rs:40-44, helios/src/output/chatml.rs:109-113, helios/src/output/gemma_call.rs:123-127, and helios/src/output/minimax_xml.rs:162-166 all repeat the exact same five lines to look up a function spec by name and read f["strict"].as_bool() == Some(true).
    • All four copies are currently consistent and safe, so this is not a defect today, but extracting a single pub(super) fn function_spec<'a>(tools: &'a [Value], name: &str) -> (Option<&'a Value>, bool) (or tool_function + is_strict) in helios/src/output/tagged.rs alongside strict_nonstring_raw and container_parameter keeps the load-bearing strict anti-fabrication gate in one place.

Nits

  1. Doubled "call" in Gemma strict-EOS error string (helios/src/output/gemma_call.rs:128)
    • Err("incomplete strict Gemma call tool call".into()) repeats "call" (from D::NAME = "Gemma call"). Consider "incomplete strict Gemma tool call" or "strict Gemma call requires <tool_call|>".
  2. Share the name-delimiter predicate in helios/src/output/argument_tags.rs:36,119
    • parse_body (:36: c == '<' || c == '>' || c.is_whitespace()) and starts_call (:119: c == '<' || c == '>' || c.is_whitespace()) spell the same character predicate twice; a 3-line fn is_name_delimiter(c: char) -> bool keeps them in sync.

Verified passes


Dropped on verification