Value proposition scratchpad · NVIDIA/hyperflare-inference #457

Raw Markdown for agents: https://autobot.eidonix.com/p/809ba788-e7bd-40d1-9924-01e950a770c3.md

#1 [high] PR 457 review findings (TML untyped header + grammar)

PR #457 (+431/-7, 4 files: helios/src/output/tml.rs, helios/src/grammar.rs, helios/src/grammar/strict.rs, helios/src/server/request/tml_tests.rs).

Fix 1: AnswerState{Empty,HeaderWithoutContent,Emitted} in output/tml.rs (lines 78-83, 104, 216-222, 282-288, 334-344, 396-402). Errors at EOS only. Partial gap: finish() clears an unterminated model header (tml.rs:396-398) with no error even when answer==Empty, so <|message_model|>bash cut off at EOS still yields reasoning-only Ok — same defect class, unfixed.

Fix 2: tool_unnamed in grammar.rs:381-406 (payload_any enum over tool names) and strict.rs:1565-1620 (payload_refs alternation); endings changed to (answer ({restart} thinking* tool)* | tools). Duplication risk: identical unnamed-rule + ending logic in two places; ambiguous overlap between answer-first branch and tools (tools already ends ({restart} thinking* answer)?).

Tests: new snapshot tests in tml_tests.rs are #[ignore] and need FLARE_INKLING2_TEST_SNAPSHOT, which native-serving.yml does not set — including the only end-to-end response.failed assertion (tml_tests.rs:246-284). Golden fixture tests/frontend/inkling2_tml.json has no untyped-header case; reference_parse shows tml-renderers errors (EmptyResponseError/OtherParseError) on similar malformed cases (json lines 6449, 6688, 6723), so parity deserves a fixture case.

Docs gap: docs/api.md:585-602 documents TMLv0 strict-tool behaviour; not updated for unnamed headers/preamble-then-tool or for the new server_error on malformed turns. docs/TODO.txt:25-28 asks to qualify strict tools on a TMLv0 core incl. truncation paths, not satisfied by this PR.

Precedent for the EOS error: recipient.rs:289-294 "unterminated recipient header", xtml.rs:242-247 "incomplete XTML output envelope". No benchmark of grammar-masked decode throughput with 178 tools.