Explore report · NVIDIA/hyperflare-inference #573

Raw Markdown for agents: https://autobot.eidonix.com/p/6110aeae-b8f1-4530-aa71-ee44a5cd6b98.md

PR #573 case file — helios: tolerate omitted closing tags on complete tagged tool calls at EOS

Author: lukealonso (COLLABORATOR; one of three "priority contributors" named in the charter) · open, ready for review, 2026-11-28, head 09cc524, base main · 9 files, +1423 / −70 · no reviews, no comments, no labels, CI on head passed.

Key findings

  1. No linked issue, no captured model output, no reproduction. The description cites no issue or PR at all and offers no log, no request capture, no frequency figure for any of the five dialects it changes. The only prior tracker statement of the problem is the competing PR #514 (2026-11-25), which makes the same GLM claim with the same absence of evidence. Searches for a user-facing report of "unclosed tagged tool call at EOS" found none.
  2. The behaviour it removes was deliberate, documented, and pinned by the same author. Issue #133 records that the error-at-EOS / drop-at-limit asymmetry "was introduced deliberately in 99cfcd5be, pinned by the test output_limits_allow_incomplete_tools_but_eos_rejects_them in 03074c11, and restated in #67", and concludes that changing it "is a maintainer policy decision that would edit docs/api.md, not a defect fix". Both commits are by lukealonso. This PR is exactly that policy revision — which makes it an intentional change of contract rather than a regression fix, and the reviewer question is "is this the right shape and scope", not "is this a bug".
  3. An open competitor already occupies the same two files with the opposite design. #514 (jannerchang, +61/−0) does the GLM half with a per-model LENIENT_EOS_CLOSE boolean and was halted by flare-autobot with "It is low value or does not align with the project charter". #573 is the superset, explicitly rejects flags, and does not mention #514 anywhere — no "supersedes", no cross-link. Merging #573 closes #514 as redundant.
  4. Scope is wider than "at EOS". Two things change outside natural end-of-sequence: (a) FunctionTags::parse_candidate and MiniMaxXml::parse_candidate receive the lenient flag unconditionally, so a call missing </function>/</invoke> but closed by </tool_call> is accepted mid-stream too — disclosed parenthetically in the description and in docs/api.md, but it is not an EOS-only widening; (b) outer_tool_pending becomes conditional on which closer ended the call (tagged.rs:593-596), altering how a following tail tag is consumed on the ordinary streaming path for Qwen/MiMo/MiniMax. Neither the (b) change nor its blast radius is called out in the description.
  5. Evidence is in-repo tests only, and they are substantial. Roughly 1,230 of the added lines are tests across the five parsers, server/protocol/tests.rs and server/logprobs.rs, including every UTF-8 split boundary, all four non-EOS terminations, and the undecided-prefix anti-fabrication cases. Nothing was run against a served model; the description says so under "Unrun checks / limitations" (checkpoint-gated tests and live GPU serving not executed). The "203 passed" figure is plausible but not reproducible from the description (no CI log, no per-binary breakdown).
  6. No opt-out and no new signal. There is no flag, env var, or config for the new leniency, so an operator who relied on the EOS error to notice malformed generations loses that signal for the accepted shapes, and no metric or log line replaces it.

The change

Plain terms: tagged tool parsers buffer a call until its tags close. Previously, if generation ended with an end-of-sequence token while a call was still buffered, the whole request errored with incomplete <dialect> tool call (tagged.rs:317-319 on main). Some models consistently omit the last wrapper tag after a complete argument body. #573 lets those calls through when the opener was genuinely confirmed, the argument body is structurally complete and self-delimited with no trailing non-whitespace, and the target tool is not strict: true.

Files (pr_files): docs/api.md +17/−1; helios/src/output/argument_tags.rs +280/−10; chatml.rs +206/−6; gemma_call.rs +130/−10; minimax_xml.rs +167/−15; pipeline.rs +108/−0; tagged.rs +66/−28; helios/src/server/logprobs.rs +101/−0; helios/src/server/protocol/tests.rs +348/−0.

Mechanism, verified at head 09cc524:

Per-dialect accept rules as implemented (not just as documented):

Description says / change does not do (and vice versa):

The why

The motivating problem is stated only generically in the description — GLM omitting </tool_call>, Qwen/MiMo omitting </function></tool_call>, Gemma 4 omitting <tool_call|>, MiniMax XML omitting </invoke></tool_call> — with no captured generation and no frequency.

Tracker archaeology:

How long wanted: earliest traceable statement is 2026-11-25 (#514), three days before #573; no long-running feature request exists in the tracker.

Item State Relation
#514 helios: allow lenient EOS close for GLM argument-tag tool calls open Competing / would be superseded. Same two files, same GLM symptom, flag-based (LENIENT_EOS_CLOSE), +61/−0. Auto-review halted: "low value or does not align with the project charter". Textual conflict with #573; #573 does not cite it.
#133 GLM-5.3 TP2 live serving trace closed issue Records the deliberate EOS policy and its origin commits — the exact rule #573 reverses.
#67 Keep prose tool-tag mentions as text merged Supplies starts_call and the undecided-opener rule; #573 changes that rule's EOS result.
#418 Add strict function-tool schemas for DSML, Qwen, GLM and TML merged Most recent large change to these files; supplies the strict semantics #573's parse_eos branch on, and restricts strict tools to DSML/Qwen/GLM/TML (grammar/strict.rs:1483), so Gemma/MiniMax strict branches are unreachable over HTTP.
#179 / #39 merged / closed GLM argument-type retention; same blast-radius family, different root cause.
#102 ignore_eos finish reason merged Disclosed the same drop-at-limit / error-at-EOS asymmetry; its review set the precedent that such semantics changes need explicit maintainer acceptance in the description.
#405 declared markers as controls merged GLM argument markers as controls/delimiters; same file, no behavioural overlap.
#578 DeepSeek raw parameter recovery open Same "recoverable call shouldn't kill the response" family, different files; #573 deliberately leaves DeepSeek unrecovered, so the pattern stays open on that path.

Not relevant (followed and dismissed): #548, #560, #562, #552, #554 (metrics/engram/draft), #385/#387, #193, #426, #129, #550, #569, #568, #561, #566, #507, #509, #510, #543, #545, #546, #570, #579 — other subsystems; none touches helios/src/output.

Recent activity

No default-branch commit since the fork point (7cd83f3) touches this PR's files, so there is no rebase or conflict exposure with main. The last change in this code before #573 is #418 (2026-11-22, five days earlier); #573 builds on post-#418 code. The heavy 2026-11-28 churn in helios/src (#579, #570, #569, #568, #561, #566, #550) is entirely outside helios/src/output. Nothing in the change reverses recent work; it reverses a policy older than all of it.

People

Nobody has engaged on #573 itself.

Community

Zero. pr_comments on #573 returns "No comments": no reviews, no inline comments, no labels, no reactions, no bot case file recorded in the local copy. By contrast #514 received a flare-autobot case file ~11 minutes after opening and a "Review Stopped / low value or does not align with the project charter" verdict ~16 minutes after opening. That verdict is about #514's narrow flag design and should not be read as a verdict on #573, but it is the only machine-generated signal about this problem area. Interest drawn by #573: none measurable.

Project fit

Claims and evidence

Claim Backing found
Non-strict complete calls recovered at natural EOS across five configurations Real: new unit tests in all five parser modules; server/protocol/tests.rs::unclosed_tagged_tool_calls_at_eos_match_protocol_and_control_semantics (5 configs × 3 protocols); server/logprobs.rs::unclosed_glm_tool_call_at_eos_preserves_content_logprobs_and_reasoning_tokens (worker × streaming = 4)
"across all 5 tagged dialect configurations (glm, qwen, mimo, gemma, minimax)" Accurate wording, but qwen and mimo are the same ToolParserKind::QwenCoder differing only in wrapping_newlines — four parser kinds, five configurations
Undecided openers / bare headers / unclosed args / trailing text / strict still fail Backed by tests and by reading the confirmed gate (tagged.rs:317-319) and per-dialect guards
All non-EOS terminations unaffected Backed: tagged.rs:302-312 plus explicit tests for OutputLimit/UserStop/Cancelled/ExecutionError in each parser module
strict: true missing its wire closer still fails Backed for Qwen and GLM at the protocol layer (extended strict_tool_wires_reach_encoder_only_after_parser_completion, which has _ => None for other dialects). The Gemma/MiniMax strict rejections exist in code but are unreachable via HTTP because #418 rejects strict tools for those parsers at admission (grammar/strict.rs:1483) — defensive only
tool_choice auto/required/named, undeclared tools, parallel_tool_calls: false Exercised at the encoder layer with hand-fed text (cases 1b/2/3/4), no HTTP round trip
"203 passed, 0 failed, 4 ignored" Plausible from the added test count; not re-runnable from the description (no CI log, no per-binary breakdown). Not re-run for this case file
Real-world model behaviour (models omit tags) No captured output, no frequency, no served run. The description's own "Unrun checks" concedes live GPU serving was not exercised

Gaps: no evidence for the premise, no test at the HTTP layer, and no verification against the checkpoint-gated suites (reasoning_delimiters, glm_frontend, parser_start — 15 tests — compiled but not run; deepseek_output ran, 14 passed), which is the normal environment limit in this repo (#102, #179, #418 all have the same gate).

Reach

Process

Open, ready for review (not draft), head 09cc524, CI passed, 9 files, +1423/−70, opened and last updated 2026-11-28 — no staleness. Description follows the repo's required four-part shape plus limitations and Discord line. No reviews requested or received; no labels; no design-review digest visible; DCO sign-off not visible (lives in commit messages). The author is a priority contributor, so process review will likely be quick — which raises, not lowers, the weight on the two substantive questions: whether the policy reversal is wanted without a maintainer request or a reported reproduction, and whether the two out-of-EOS widenings are intended.

Open questions / not found