Opened by a workflow run, Nov 28, 2026 3:38 PM EST.
screen malicious
Screen Result: All Clear
Evidence: Screening of NVIDIA/hyperflare-inference PR #573 ("helios: tolerate omitted closing tags on complete tagged tool calls at EOS", head 09cc5244, +1423/−70, 9 files, CI passing, 0 comments/reviews) found no prompt injection or other content aimed at steering an agent.
The PR description is ordinary engineering prose — motivation, per-file before/after, test evidence with named limitations — with no instructions to an agent, no requests to run commands, alter CI, or handle credentials. There is no discussion at all (no comments, reviews, or inline review comments), so there is no conversational injection vector, and the branch is a single commit with a normal message.
The diff is Rust parser logic plus unit tests: a new ToolDialect::parse_eos, confirmed/outer_closed tracking in TaggedTools, ToolBegin counting in TaggedOutput::finish, per-dialect EOS recovery gated on non-strict tools and on the absence of trailing non-whitespace, PlainText::parse_eos returning the pre-existing "tool parsing is not configured" error, and docs/api.md spec prose that matches the implemented behavior. Tests only assert on parser events.
Greps over the touched area return nothing for process spawning, Command::new, unsafe, include_bytes, env::var, HTTP clients, and for prompt-injection phrasings ("ignore all/previous instructions", "system prompt"); repo-wide hits for "autobot / language model / agentic" are unrelated docs and comments.
Reviewer note (product judgement, not a security finding): the PR deliberately relaxes a previously failing path — unclosed non-strict tagged tool calls at natural EOS are now accepted — but strict tools, truncation causes (OutputLimit/UserStop/Cancelled/ExecutionError) and trailing-text cases still fail or omit.
Verification limitation: the code-search tool rejected the unicode-range regex used to scan for invisible/bidi characters, so that check rests on reading the full diff manually rather than on a regex match.
Full report · Notes decide malicious: all_clear (100%): No malicious content found
explore
Author: lukealonso (COLLABORATOR; one of three "priority contributors" named in the charter; Discord not provided in the PR)
Motivation: Tagged tool-call models sometimes finish writing a complete argument body and then stop without emitting the final closing wrapper tag, and the runtime currently errors the whole request for that. This PR lets those calls through when the opener was genuinely confirmed, the arguments are complete and self-delimited, and the tool isn't strict, while still rejecting undecided or truncated calls.
Scale: +1423 / −70 lines in 9 files
Proposal:
- Add a required
ToolDialect::parse_eosand per-dialect accept rules for GLM, Qwen/MiMo, Gemma 4 and MiniMax XML (no per-model boolean flags). - Track
confirmedso an undecided opener still errors at EOS, andouter_closedsoouter_tool_pendingis only set when the inner closer did not end the call. - Make
TaggedOutput::finishadvance the call counter for recovered calls; shareemit_calls. - Rewrite the
docs/api.mdparser policy to document natural-completion recovery. - Add ~1,230 lines of tests: every UTF-8 split, all four non-EOS causes, undecided prefixes, strict rejection, protocol and logprobs coverage. Touches:
helios/src/output/tagged.rs(state machine and EOS policy)helios/src/output/{argument_tags,chatml,gemma_call,minimax_xml}.rs(per-dialect leniency)docs/api.mdandhelios/src/server/protocol/tests.rsRelated items:- #514 helios: allow lenient EOS close for GLM argument-tag tool calls (open): competing PR on the same two files with a per-model flag; #573 subsumes it and does not cite it
- #133 GLM-5.3 TP2 live serving trace (closed): records the EOS-error rule as deliberate, introduced in
99cfcd5beand pinned in03074c11, both by this PR's author - #67 Keep prose tool-tag mentions as text (merged): supplies
starts_calland the undecided-opener rule whose EOS outcome this changes - #418 Add strict function-tool schemas for DSML, Qwen, GLM and TML (merged): supplies the
strictsemantics this branches on and restricts strict tools to Qwen/GLM/DSML/TML - #179 Retain GLM tool arguments that do not match their declared type (merged): adjacent GLM blast-radius fix, different root cause
Link: https://github.com/NVIDIA/hyperflare-inference/pull/573
Autobot comments: No linked issue, no captured model output and no reproduction anywhere in the tracker — the only earlier statement of the problem is the competing #514, which was auto-halted as "low value or does not align with the project charter". The behaviour being removed was deliberate and pinned by the same author, so this is a policy reversal, not a bug fix. Two widenings happen outside EOS and are under-explained: Qwen/MiMo and MiniMax accept a call closed by
</tool_call>at any time, andouter_tool_pendingchanges on the normal streaming path.docs/api.md:547is left stale, and there is no opt-out or replacement diagnostic for operators losing the EOS error signal.
Value Proposition
Verdict: worth merging with changes (#573, helios: tolerate omitted closing tags on complete tagged tool calls at EOS)
What the PR actually is
9 files, +1423/−69, but the production core is only ~150–190 net lines; ~900 lines are tests and 17 are docs. helios/src/output/tagged.rs adds a required ToolDialect::parse_eos (tagged.rs:43-45), tracks confirmed (set only when D::starts_call returned Some(true), or on OutputStart::ToolBody; tagged.rs:715-724, 428-433) and outer_closed, and on Termination::Eos delegates the leftover body to the dialect instead of returning Err("incomplete … tool call") (tagged.rs:302-322). Each dialect then enforces its own structural completeness: ArgumentTags (≥1 closed <arg_key>/<arg_value> pair, valid function name, non-empty body), FunctionTags (≥1 closed <parameter=…>), GemmaCall (brace-balanced, no trailing text), MiniMaxXml (≥1 closed parameter element, no unclosed elements), plus strict: true rejection in all four.
Why it is worth doing (charter fit)
- It is the vision's core workload. The charter's first line is "long conversations, coding agents, and heavy tool use," for "people running local models through OpenAI and Anthropic SDK clients." Today a structurally complete GLM/Qwen/Gemma/MiniMax call that omits only its wire closer fails the whole request at natural EOS. Turning a hard failure into the call the model obviously meant is a real user-facing improvement on the primary path, not a hypothetical one.
- There is measured precedent for exactly this leniency. #67 (merged, same maintainer) measured Qwen3.8 Flash ending its turn where a literal
</tool_call>would follow — 7 of 20 logprob requests, with<|im_end|>at ~0.97 probability versus</tool_call>at ~0.02 — and already accepts prose-complete calls. #228 (merged) accepts omitted XTML message closure the same way. #573 extends an established behaviour rather than inventing one; vLLM/SGLang are likewise more tolerant here. - It is in the right layer and flag-free. The charter mandates "no per-model special cases or flags" and "smallest footprint in shared code." The dialect method puts dialect knowledge in the dialect impls and adds zero branches to the runtime. This is strictly better than #514's
const LENIENT_EOS_CLOSE: bool = trueon GLM only. - The anti-fabrication guardrails survive. I verified them: an undecided opener (
<tool_call>run,run<arg,run</tool) still promotes toMode::Toolduring finish but carriesconfirmed = falseand is rejected;in_json_stringalso rejects; every non-Eoscause still returns empty (tagged.rs:302-312), soOutputLimit,UserStop,Cancelled,ExecutionErrorkeep omitting unclosed calls. All five existingToolDialectimpls were updated, so the new required method breaks no third implementation. - Two incidental fixes came along.
outer_tool_pendingwas previously set even whenD::CLOSEhad already been consumed, which silently swallowed a following duplicate</tool_call>(tagged.rs:593-596 vs 615-635) — a genuine small defect. Theself.callsincrement inTaggedOutput::finishis defensive-only (nothing readsself.callsafter finish). - Contributor standing. @lukealonso is a charter-named priority contributor; the PR meets the charter's four-part description format.
What it costs, and why it is not simply mergeable
- It deliberately reverses a documented invariant.
docs/api.md:447on main says "recognized but incomplete calls at natural completion are errors" — a pinned, restated decision from 99cfcd5be, reaffirmed in #67 and in #133. The PR rewrites that sentence. That is a policy change to the user-visible contract and arguably needs explicit maintainer sign-off, not just passing tests. - The evidence is synthetic, not captured. Every input is a hand-built string reconstructed from chat templates, split at every UTF-8 boundary. There is no captured model stream that fails today and succeeds after the patch, and no serving run on hardware. The charter is explicit: "hypothetical users aren't enough," and bug fixes must address a root cause rather than swallow an error. Worse, the one field report on this surface, #133, traced its
incomplete GLM tool callfailures to corrupted prepared graphs, not model habit — and after re-export went 1/84 → 0/84 tool parse rejections with 84/84 HTTP 200. The PR's premise ("models occasionally omit the closer") is plausible and partly supported by #67, but for GLM specifically the only hard evidence points the other way. Note that #578, opened the same day, does the equivalent DeepSeek argument recovery with a captured regression sequence and 120+20 live passes — that is the evidence bar this PR should meet. - It leaves the matrix inconsistent. DeepSeek DSML keeps
Err("incomplete DeepSeek tool call at end of response")(dsml.rs:379-380), and XTML, TML and recipient parsers get no EOS leniency, so the same model habit still hard-fails those recipes.docs/api.mdonly implies this. The charter's review standard says to "check interactions across every supported model." - It duplicates an open PR. #514 is the same goal on the same two files, open, and its auto-review already stopped with "low value or does not align with the project charter." #573 never mentions it, so as things stand the maintainers have two overlapping leniency PRs and no stated precedence — and #573 is the one whose premise was previously judged low value, which is exactly why it needs the extra evidence.
- A residual over-broadening is untested and undocumented.
GemmaCallandMiniMaxXmluse the trait-defaultstarts_call = Some(true)(tagged.rs:48-50), soconfirmedis always true for them. An unclosed but brace-balanced Gemma example call written in prose that previously errored at EOS now becomes an executed tool call. #67 already accepts this for closed examples (11 of 32 mention requests wrote complete example calls), so it is defensible, but the PR neither tests nor documents the change. The duplicate-close-tag behaviour flip from theouter_closedfix is likewise untested. - Minor footprint.
PlainTextin pipeline.rs gets a stubparse_eos(+108 lines, mostly tests) returning the same error it already returns — afn parse_eos(...) -> Result<Vec<…>> { Err(...) }default on the trait would delete that file's production change entirely.GemmaCall::parse_eosisparse_body(body, tools, true)where all structural checks already existed inparse_body, so it is 8 lines — fine, but the same "reuseparse" reasoning applies. Theself.callsincrement is dead bookkeeping. For a charter that asks for "the smallest footprint in shared code," these add up to visible noise around a genuinely small idea.
Required changes before merge
- Cite and supersede #514 explicitly (or close it) so there is one leniency line of work, and say which guardrails of #514 were rejected and why.
- Replace or supplement the synthetic evidence with one captured failing stream for GLM and for one function-tag model (before/after on the served path), or relabel the PR as a maintainer policy change and get explicit sign-off for reversing the documented "incomplete calls at natural completion are errors" rule. This is the charter's "bring real evidence" bar, and #578 shows it is achievable.
- Document and test the DSML/XTML/TML asymmetry — state in
docs/api.mdthat those parsers still reject omitted closers at EOS, and ideally file the follow-up rather than leaving the matrix silently inconsistent. - Shrink the footprint: default
parse_eostoErr(…incomplete…)on the trait and drop thePlainTextstub; keep theouter_closedfix (it is a real bug) but drop the no-opself.callsincrement or justify it with a test that reads it. - Add tests for the Gemma/MiniMax prose-mention broadening and the duplicate-close-tag behaviour change, and state both in the docs paragraph.
Bottom line
The idea is right and lands in the right layer: it converts a hard request failure into the call the model clearly meant, on the exact workflow the charter is built around, with the anti-fabrication, strict-tool and truncation guarantees intact and no per-model flags. The implementation is careful — I could not find a way it fabricates a call or steals text from content. What holds it back is not design but the charter's own evidence rule: the proof is template-derived, the one real field report on this path blames corrupted graphs, a documented invariant is reversed in passing, and a same-goal PR sits open beside it. Fix those five points and this is a merge.
Full report · Notes Decide Value: yes (99%): This change is worth reviewing: it provides value to the project in line with its charter.
Conventions
Verdict: should-fix issues only
Blocking:
- None.
Should fix:
- helios/src/output/argument_tags.rs:40-44 (+ chatml.rs:109-113, gemma_call.rs:123-129, minimax_xml.rs:162-167): the function-by-name +
f["strict"]idiom now has a third and fourth copy, with dsml.rs:288-291 and recipient.rs:250-258 spelling it differently; add sharedfunction()/is_strict()helpers next toRawArgumentsin tagged.rs. - helios/src/output/tagged.rs:38-45 with argument_tags.rs:103-111, chatml.rs:24-32, gemma_call.rs:144-149, minimax_xml.rs:197-205: the parse/parse_candidate/parse_eos triple names one leniency flag three ways (
eos,allow_unclosed_function,allow_unclosed_invoke), andToolDialect::parseis production-dead for ArgumentTags, FunctionTags and MiniMaxXml (only caller left is the trait default at tagged.rs:40-42). - helios/src/output/minimax_xml.rs:200-205:
parse_candidateandparse_eosare now byte-for-byte identical withNoneunreachable, collapsing the trait's documented text-inside-JSON-string signal (tagged.rs:39); collapse to one method and document the new non-EOS leniency. - docs/api.md:446-451 vs 514-525: the EOS recovery contract and its exclusion list are stated twice with different membership ("unclosed strict calls" vs "strict calls missing their wire closer"; only the second mentions stop sequences).
Nits: 2 — ToolBegin counting copy-pasted at tagged.rs:524-527 vs 579-583 (emit_calls was shared, the counter was not); parse_eos overlaps the private EOS recovery in recipient.rs:264-296, tml.rs:374, xtml.rs:243 without saying those are exempt.
Link: https://github.com/NVIDIA/hyperflare-inference/pull/573
No blocking issues: the PR adds no per-model boolean flags, keeps the capability in the shared tagged layer, and gates on strict (a request field, not model identity), consistent with the charter and design-review principle 3. Two items need maintainer intent to resolve: whether ToolDialect::parse may stay test-only, and whether MiniMax's new non-EOS </tool_call> leniency is deliberate (a streaming test would settle it).
Architecture
Verdict: should-fix issues only
Blocking:
- None.
Should fix:
- helios/src/output/argument_tags.rs:109 + chatml.rs:30 + gemma_call.rs:147 + minimax_xml.rs:203 (with docs/api.md:447-451): four dialects' EOS behaviour is relaxed on assertion — no captured model output, checkpoint or reproduction for any of them; the only linked request is GLM-only #514, previously assessed as low value. AGENTS.md:103-112 and docs/design-review.md:106-115 require claim-to-evidence binding. Cite a captured generation per dialect or narrow the change to the demonstrated one.
Nits: 2 — parse_eos is a required method on the public ToolDialect trait with no default (tagged.rs:45), duplicating the PlainText body at pipeline.rs:49-51 that could be the default (incomplete <NAME> tool call, already produced at tagged.rs:317-318); and docs/api.md:447-451 says "tagged tool parsers" generically while dsml.rs:364-383, xtml.rs:234-250, tml.rs:358-374 (not opened) and recipient.rs:264-291 (not opened) remain strict.
Architecturally the change is right for this repository: it lives entirely in the output-parser layer, introduces no per-model boolean flag, env switch or config knob (it replaces the LENIENT_EOS_CLOSE flag #514 proposed, per AGENTS.md:356-357 / design-review.md:58-61), and preserves the anti-fabrication contract — unconfirmed openers and unfinished JSON strings still fail (tagged.rs:317-318), every dialect's EOS path rejects strict: true, and non-EOS terminations still omit (tagged.rs:303-312). It also fixes two real pre-existing defects: self.calls not advancing for calls emitted during finish (tagged.rs:522-529) and outer_tool_pending being set after an already-consumed </tool_call> (tagged.rs:593-596).
Link: https://github.com/NVIDIA/hyperflare-inference/pull/573
Simplicity
Verdict: should-fix issues only
Blocking:
- None.
Should fix:
- helios/src/output/chatml.rs:30-32 (also minimax_xml.rs:203-205, pipeline.rs:49-51):
parse_eosre-implementsparse_candidatewith the same arguments, so the EOS rule is spelled twice per dialect; rewrite each asSelf::parse_candidate(body, tools)?.ok_or_else(...)(pipeline:Self::parse). - helios/src/output/argument_tags.rs:598-612, chatml.rs:1069-1086, gemma_call.rs:308-324, minimax_xml.rs:401-419: the identical "non-EOS causes omit" loop is copied into four test modules although it exercises one dialect-independent branch (tagged.rs:302-312) already covered at chatml.rs:867-900 and server/protocol/tests.rs:2606-2660; keep one shared test.
Nits: 5 — dead search_from/escaped resets (tagged.rs:314, 316); garbled "incomplete strict Gemma call tool call" (gemma_call.rs:128); recovery rule stated twice in docs/api.md (447-451 vs 514-525); tool-name character predicate duplicated (argument_tags.rs:36 vs :119); one new test block re-asserts unchanged plain-text </think> behaviour (pipeline.rs:1418-1435).
Link: https://github.com/NVIDIA/hyperflare-inference/pull/573
The change itself is correctly small: confirmed and outer_closed are per-call state, not per-model flags; emit_calls is a genuine dedupe of the push path; the calls advance in finish makes call indexing consistent rather than adding a second scheme; and ArgumentTags::parse_body's eos flag carries checks (name character set, non-strict requirement, non-empty body) that the streaming path does not, so it is not duplication. Keeping parse_eos a required trait method with no default is right — a default would make every dialect lenient and defeat the anti-fabrication contract.
Open question: whether D::parse must stay strict for its other callers decides whether chatml's new allow_unclosed_function parameter can be deleted after the parse_eos rewrite; a grep of non-test ::parse( call sites settles it.
Correctness
Verdict: clean (nits only)
Blocking:
- None.
Should fix:
- None.
Nits: 2
PR 573 (helios: tolerate omitted closing tags on complete tagged tool calls at EOS) was reviewed through the correctness lens. Every changed file was read in context — helios/src/output/tagged.rs, argument_tags.rs, chatml.rs, gemma_call.rs, minimax_xml.rs, pipeline.rs, docs/api.md, plus the test-only edits in server/protocol/tests.rs and server/logprobs.rs — and the callers in model/prompt.rs:226-386, server/request.rs:230-284/500-518, grammar/strict.rs:1392-1486 and server/http.rs:471-567 were followed.
The core state machine holds. TaggedTools::finish rejects !confirmed || in_json_string before delegating to D::parse_eos (tagged.rs:313-320), and confirmed is decision == Some(true) only (tagged.rs:721), so undecided openers (<tool_call>run, <tool_call>run<arg, <tool_call>run</tool>) still fail; OutputStart::ToolBody correctly pre-confirms (tagged.rs:431). Non-EOS causes still clear and omit (tagged.rs:303-312), matching main. Counting ToolBegin at finish (tagged.rs:522-529) fixes index/newline-trim for calls emitted only at finish, with no double count against push (tagged.rs:579-583). outer_closed (tagged.rs:275-283/292/593-596) correctly stops waiting for a closer already written.
A caveat from my research resolved in the code's favour: although server/request.rs:503-518 omits strict from the presented tool object, grammar/strict.rs:1437-1449 injects "strict": true into that same OutputConfig.content.tools, and dialects without strict-grammar support (Gemma, MiniMax) are rejected at admission by strict.rs:1482-1484. So strict: true calls cannot be silently recovered.
Nits: (1) the lenient flag is also passed from parse_candidate (chatml.rs:127-129, minimax_xml.rs:200-201), so function-tag and MiniMax calls missing their inner closer are accepted during ordinary streaming, not only at EOS — intended and documented in docs/api.md:511-524, but understates the title; (2) docs describe the recovery as uniform although GLM and Gemma recover only at EOS while the other two also recover at </tool_call>.
Open: GemmaCall::parse_eos calls parse(...).remove(0) (gemma_call.rs:159) — unverified whether parse can return an empty vec (would panic); checkpoint-gated and live-serving tests were not run, so tokenizer/grammar end-to-end evidence of the omitted-closer path is missing.
Link: https://github.com/NVIDIA/hyperflare-inference/pull/573
Prose
Verdict: clean
Blocking:
- None.
Should fix:
- None.
Nits: 3
Link: https://github.com/NVIDIA/hyperflare-inference/pull/573
The description satisfies AGENTS.md:72–79 (why, what changed, claimed result, evidence, in order) and AGENTS.md:142–153 (the Discord: no username provided line). The docs/api.md rewrite is present-state specification, no chronology, per .agents/skills/repo-prose/SKILL.md:26–29 (not opened).
I withdrew my only would-be should-fix. I had flagged the Evidence claim "deepseek_output: 14 passed" as invented, but helios/tests/deepseek_output.rs has 10 #[test] plus 4 #[tokio::test] functions (lines 196, 246, 270, 602) = 14, with no macro generation. The count is accurate. The other counts also check out: 9 ignores in reasoning_delimiters.rs, 1 in glm_frontend.rs, 5 in parser_start.rs, and exactly 4 #[ignore] across helios/src/grammar.rs and grammar/strict.rs (not opened).
Every before/after claim in "What changed" holds against the code: confirmed set only on starts_call/ToolBody (tagged.rs:431, 698, 721, 760), in_json_string rejection (:317), outer_closed gating outer_tool_pending (:276–292, :593–596), calls advanced in finish (:522–529), and non-EOS terminations unchanged (:303–312). Per-dialect rules in docs/api.md:514–525 match argument_tags.rs:36–50, chatml.rs:127–129, gemma_call.rs:109–149, minimax_xml.rs:168–186, pipeline.rs:49–51.
Nits, all in docs/api.md: (1) :447/:514 use "natural completion" without a definition even though the code condition is Termination::Eos; (2) :514–525 packs four dialect rules into one sentence with nested parentheticals; (3) :524–525 says calls cut by "output limits or stop sequences" are never recovered but omits Cancelled and ExecutionError (tagged.rs:303–312).
Open: protocol-test equivalence claims rest on the new test, which I read in diff form only.
Subtractive
Verdict: make it smaller first The change: +1423 / −70 lines (9 files); ~120 production lines, ~1150 test lines, 17 doc lines. Could remove: ~760 lines, in ~9 places. Biggest subtractions:
- helios/src/server/protocol/tests.rs:2350-2665: the new 5-dialect × 3-protocol test re-asserts undeclared-tool, parallel_tool_calls, required/named tool_choice and OutputLimit/UserStop semantics already covered at tests.rs:321/366/407/724/1461/1550; keep glm × Chat buffered+streamed: ~250 lines.
- Per-dialect unit tests re-run their whole case list at every UTF-8 split (argument_tags.rs:419,470; chatml.rs:969,998; gemma_call.rs:250; minimax_xml.rs:331), duplicating split-invariance tests at chatml.rs:363 and argument_tags.rs:318: ~250 lines.
- helios/src/server/logprobs.rs:362-462: 101-line test asserts logprob/reasoning/worker machinery the PR never touches: ~101 lines.
- Identical non-EOS "finish is empty" loop copy-pasted four times (argument_tags.rs:599-612, chatml.rs:1070-1086, gemma_call.rs:319-326, minimax_xml.rs:403-419) for one shared pre-existing branch (tagged.rs:302-312): keep one, ~60 lines.
- ToolDialect::parse (tagged.rs:38) is now test-only, and is the sole reason for the four parse_body(.., eos: bool) wrappers and its five impls; make parse_candidate required: ~28 lines. Also TaggedTools::confirmed (~8), the unobservable calls bump in TaggedOutput::finish (~6), PlainText::parse_eos + duplicated ToolBegin filter (~9), and docs/api.md's twice-stated rule at 447-451 vs 514-525 (~11). Left behind: ToolDialect::parse and its default parse_candidate (tagged.rs:38-42) plus five impls become dead; PR #514's per-model LENIENT_EOS_CLOSE is superseded; four cause loops and four split loops leave duplicated coverage with no new behaviour. Link: https://github.com/NVIDIA/hyperflare-inference/pull/573
Pre Test Report
Pre-Test Report — PR #573 "helios: tolerate omitted closing tags on complete tagged tool calls at EOS"
Verdict: REFER TO HARDWARE TESTING — but small, and as post-merge validation, not a merge gate
Test one host only: cn5, one GLM core, ~35 requests, ~45 minutes. Do not run a throughput A/B.
Door condition: the PR is already merged. Merge commit 2bdc8472 is on main ("helios: tolerate omitted closing tags on complete tagged tool calls at EOS (#573)"), merged 2026-11-28 21:17 by the author, lukealonso (COLLABORATOR and a charter-named priority contributor). Priority #1 of this review ("never test code that will need to be changed") therefore no longer decides the question: there is no revert-before-merge risk left, and nothing in my review is a blocking defect. What remains is that the change deliberately reverses a documented user-facing invariant (docs/api.md), its motivating premise has no captured evidence for any dialect, and the author ran no live serving run. A short served check is the cheapest way to close exactly that gap.
1. What the change actually is
9 production files, but the real behaviour change is ~150–190 net lines of CPU-side model-output parsing. No CUDA, no kernels, no scheduling, cache, admission or encoder policy. The diff is dominated by ~1,150 lines of tests plus, since review, 176 lines of Kani proofs.
Before: TaggedTools::finish(Termination::Eos) returned Err("incomplete <dialect> tool call") for every unclosed call.
After: at natural EOS a non-strict call is accepted if its argument body is structurally complete and self-delimited.
| Dialect | Recovery rule | Where |
|---|---|---|
| GLM argument tags | ≥1 closed <arg_key>/<arg_value> pair, valid name (no <, >, whitespace), non-empty body, non-strict |
argument_tags.rs:25-60, 109 |
| Qwen/MiMo function tags | ≥1 closed <parameter=…>; also at </tool_call>; empty rest |
chatml.rs:127-129 |
| Gemma 4 | brace-balanced {…}, no trailing text, non-strict |
gemma_call.rs:109-148 |
| MiniMax XML | ≥1 closed element, no leftover; also at </tool_call> |
minimax_xml.rs:168-186 |
Guarantees that visibly survive: undecided openers still reject (eos_decision rejects on !confirmed), unfinished JSON strings still reject, strict: true still rejects in all four dialects, and all non-EOS causes (OutputLimit, UserStop, Cancelled, ExecutionError) still omit (tagged.rs:247-263). Two genuine pre-existing bugs are fixed as a side effect (outer_tool_pending after an already-consumed </tool_call>, and call indexing for calls emitted during finish).
2. Why no defect blocks testing
I read the code at main, not only the diff, and re-checked every should-fix finding. Nothing substantive survives.
Resolved since the lenses ran — the reviews are stale by two commits:
- The
GemmaCall::parse_eosparse(…).remove(0)panic risk is gone. Mergedgemma_call.rs:147-149is a directparse_body(body, tools, true); the refactor removed the indexing. No empty-vec panic path. - Correctness open question "MiniMax/Gemma non-EOS leniency untested" is now tested (
minimax_xml.rsandchatml.rstests, plus the protocol matrix). - Value-prop required change 1 ("cite and supersede #514") was done at merge: #514 was closed by lukealonso with "Superseded by #573".
Invalid or resolved claims I am deliberately not carrying forward:
- "No per-model boolean flag" holds — one required trait method
parse_eos(tagged.rs:45) gated onstrict, a request field, not model identity. This is the correct shape and strictly better than #514'sconst LENIENT_EOS_CLOSE. - "Add a trait default for
parse_eos" should not be done — a default would silently make every dialect lenient and defeat the anti-fabrication contract. The simplicity lens is right here and the architecture lens's nit is wrong. - "Delete the
self.callsbump as unobservable" is wrong —tagged.rstests now assert post-finishcalls == 3and indices[1, 2]. Keep it.
What survives is real but cleanliness, not correctness — none of it is a reason to withhold hardware:
ToolDialect::parseis production-dead for three dialects (only the trait-defaultparse_candidatestill calls it); it is also the sole reason fourparse_body(…, eos: bool)wrappers exist.- The "find function by name, read
strict" idiom is duplicated four times with no shared helper (gemma_call.rs:123-129,minimax_xml.rs:162-166, and two differently-spelled precedents indsml.rs(not opened)/recipient.rs(not opened)). MiniMaxXml::parse_candidateandparse_eosare byte-identical, making the trait's documentedNonesignal unreachable for that dialect.docs/api.mdstates the recovery contract twice (:447-451,:514-525) with different exclusion lists — only the second mentions output limits and stop sequences. Its:524-525sentence also omitsCancelled/ExecutionErrorwhile reading as exhaustive.- Garbled user-visible error string:
"incomplete strict Gemma call tool call"(gemma_call.rs:128). - Test bloat: the subtractive lens calls ~700–760 of the 1,423 added lines removable. Since the PR is merged this is maintenance cost, not rework.
Two findings I judge not actionable: the "lenient at EOS" title understates that function-tag and MiniMax also recover at the outer closer — intended, documented at api.md:519,522, and tested; and "Gemma/MiniMax prose examples now execute" is inherent to those dialects having no opener confirmation (starts_call defaults to Some(true)), only reachable for non-strict tools, and consistent with merged #67.
3. What testing would actually add
Verification already in place — hardware must not redo it: 11/11 Kani harnesses (I read kani_proofs.rs; the four new output-parser proofs are oracle-based and self-consistent), cargo-mutants 168 mutants / 157 caught with both misses documented as mathematically equivalent, 206 passing unit/protocol/logprob/grammar tests, and a 5-dialect × 3-protocol × 6-scenario encoder test.
The one real gap is exactly the layer hardware can reach: the author discloses that checkpoint-gated tests (FLARE_*_TEST_SNAPSHOT for reasoning_delimiters, glm_frontend, parser_start, 4 ignored grammar:: tests, FLARE_TEST_TEMPLATE_DIR) and all live GPU serving were unrun. That is the tokenizer/grammar end-to-end path.
And the premise itself is unevidenced. The PR asserts four model families omit their closers, with no captured generation, checkpoint or reproduction for any of them. The evidence splits:
- For Qwen/function tags: merged #67 measured it — Qwen3.8 Flash ended its turn where
</tool_call>would follow in 7 of 20 logprob requests,<|im_end|>≈ 0.97 vs</tool_call>≈ 0.02. - For GLM: the only field report on this exact path, #133, recorded the
incomplete GLM tool callerror as deliberate and traced its failures to corrupted prepared graphs (fixed by #129, not by leniency); after re-export rejections went 1/84 → 0/84 with 84/84 HTTP 200. The one hard data point for GLM points the other way.
So the served run answers two questions at once: does the code work end-to-end, and does the failure mode it fixes actually occur?
4. Feasibility limits you must know before allocating the job
- No Gemma 4 and no MiniMax M3.1 checkpoint on either host. Two of the four changed dialects cannot be end-to-end tested with available hardware. Report this as a coverage gap; do not substitute.
- The harness cannot force a model to omit its closing tag. This is the honest ceiling of any end-to-end test here. Use the #67 shape (ask the model about its own chat-template/tool tags), which is the measured condition under which omission occurred. A 0-sample result is a finding, not a reason to inflate N.
- cn5 is the right host (amd64, 4 × 96 GiB, 48 CPUs). cn7's arm64 adds nothing — the parser is architecture-independent. On cn5, Dinov2 and vit are vision-only and have no tool parsing: irrelevant.
- Prepared-core risk. Serving needs a prepared core (
flare run <core>), not a raw HF checkpoint; the "0 GiB" size hints in the model list may just be cached HF references. If no GLM core exists, this job silently becomes a multi-hour ignition preparation job. Check for a prepared core (flare inspect, core cache) before scheduling. This is the single biggest threat to hardware-time efficiency. - Dialect is chosen by the prepared core's contract (
ToolParserKind,model/contract.rs:67) and recorded at preparation time by an external repo (local-inference-lab/hyperflare-recipes, perdocs/model-preparation.md:310-326). I cannot verify from this repository which kind each host checkpoint uses — confirm withflare inspectfirst.
5. Proposed test plan — cn5, GLM core, ~35 requests, ≤45 min
Serve the GLM core (flare run, flare-cli/src/cli.rs:45). Precondition: flare inspect reports ToolParserKind::GlmArgumentTags. If it reports DSML/XTML/TML/ATEM, the changed code is not on the request path and the job should be cancelled and re-planned.
| # | Check | Requests | Assertion | Why it is worth hardware |
|---|---|---|---|---|
| 0 | flare inspect core contract |
0 | dialect is GLM argument tags | Else the job tests nothing |
| 1 | #67-shape prompt, buffered + SSE | 10 | Zero HTTP 500s; no incomplete GLM tool call or other parser error frame |
The actual regression risk: strictness lost on a legitimate path |
| 2 | Ordinary tool calls, tool_choice:"auto" |
10 | finish_reason:"tool_calls"; arguments parse as declared JSON types; streamed function.arguments deltas concatenate exactly to the buffered value |
Confirms real tokens survive framing and events pair correctly |
| 3 | strict:true GLM tool |
3 | Still fails / is refused; never silently recovered | The guarantee the PR claims to preserve |
| 4 | max_tokens truncation mid-call |
3 | finish_reason:"length" and the unclosed call is omitted (no tool_calls) |
Truncation must still omit; the asymmetry the PR must not break |
| 5 | Optional, cn7 only: Qwen function tags | ~9 | Same as 1–2 | Second changed dialect, only if #1–4 are clean |
Excluded on purpose (would burn the job for nothing): throughput/latency A/B — the code is off the decode hot path and runs once per completed envelope, so any delta is noise; KV/prefix cache; multi-GPU/TP; MTP/speculation; CUDA-graph capture; Dinov2/vit; Gemma 4 and MiniMax (no checkpoint).
A/B baseline: worth it only for check 1, and only if a pre-merge binary or core can be reused cheaply. Otherwise skip — the parser is a closed system already covered by Kani, mutation testing and 206 unit tests. The served run's job is to prove the code is reachable and correct with real tokens, not to re-derive coverage.
Interpretation: a parser error in check 1, a silently recovered strict tool in check 3, or a recovered call in check 4 are genuine regressions of a merged change and warrant a follow-up PR immediately. Checks 1–4 taking 0 samples of the omission is not a failure — it means the motivating premise did not reproduce on this hardware, which is itself the most valuable thing this job can tell you, given #133.
6. Summary for the decision
Refer, minimally, one host. Not because the code is in doubt — I found no blocking or should-fix correctness defect, and the implementation is the architecturally correct one (shared trait method, no per-model flags, anti-fabrication, strict-tool and truncation guarantees intact, two real bugs fixed). Refer because a deliberately-reversed user-facing contract with zero captured model evidence and zero live serving runs is precisely the gap a 45-minute served check closes, and because the alternative — trusting ~1,150 synthetic tests that were all reconstructed from chat templates — is what the charter's "bring real evidence" rule was written to prevent. Expected value: moderate-to-high for confidence in the premise, high for confirmed non-regression on the GLM path; low information on throughput, which is why no A/B is proposed.
code review summary
Recommendation: Changes Requested
The mechanism is right and no lens found a correctness defect, but PR #573 was merged with four dialects relaxed on assertion rather than captured evidence — reversing the #514 scope decision — and ~700 of its 1423 added test lines are redundant. Both are post-merge follow-ups, not merge gates.
- Blockers: 1
- Should fix: 4
- Subtractive suggestions: 2
- Nits: 5
Final review
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
- Deduplicate the 4×
toolsfunction-lookup andstrictcheck intohelios/src/output/tagged.rshelios/src/output/argument_tags.rs:40-44,helios/src/output/chatml.rs:109-113,helios/src/output/gemma_call.rs:123-127, andhelios/src/output/minimax_xml.rs:162-166all repeat the exact same five lines to look up a function spec by name and readf["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)(ortool_function+is_strict) inhelios/src/output/tagged.rsalongsidestrict_nonstring_rawandcontainer_parameterkeeps the load-bearingstrictanti-fabrication gate in one place.
Nits
- 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"(fromD::NAME = "Gemma call"). Consider"incomplete strict Gemma tool call"or"strict Gemma call requires <tool_call|>".
- Share the name-delimiter predicate in
helios/src/output/argument_tags.rs:36,119parse_body(:36:c == '<' || c == '>' || c.is_whitespace()) andstarts_call(:119:c == '<' || c == '>' || c.is_whitespace()) spell the same character predicate twice; a 3-linefn is_name_delimiter(c: char) -> boolkeeps them in sync.
Verified passes
- Anti-fabrication &
confirmed/in_json_stringgating (helios/src/output/tagged.rs:141-156,247-261,339-353,462,746-755):- Undecided openers promoted during
TaggedOutput::finish(self.finishing == true)—both fromMode::Contentand viaThinkReasoning::pushemitting aremainderback intoMode::Content—enterMode::Toolwithconfirmed = false, soTaggedTools::eos_decisionreturnsEosDecision::RejectatTermination::Eos. - Unfinished JSON strings (
in_json_string == true) are also rejected at EOS even whenconfirmed == true. - All non-EOS terminations (
OutputLimit,UserStop,Cancelled,ExecutionError) map toEosDecision::Omit.
- Undecided openers promoted during
- Per-dialect structural completeness &
strict: truegates:ArgumentTags(helios/src/output/argument_tags.rs:25-95): requires non-empty valid function name (no<,>, whitespace),!strict, non-empty argument body with ≥1 closed<arg_key>...</arg_key><arg_value>...</arg_value>pair, and no trailing non-whitespace.FunctionTags(helios/src/output/chatml.rs:95-178): allows omitted</function>only when!strict,!arguments.is_empty(), andrest.is_empty()after trimming.GemmaCall(helios/src/output/gemma_call.rs:109-136): rejectsstrict: trueat EOS and requires a brace-balanced{...}object with closed<|"|>strings and no trailing non-whitespace.MiniMaxXml(helios/src/output/minimax_xml.rs:144-188): allows omitted</invoke>only when!strict, ≥1 closed parameter element is parsed (!values.is_empty()), andparameters.trim().is_empty(), while rejecting empty<tool_call></tool_call>blocks (allow_unclosed_invoke && calls.is_empty()).
outer_closeddouble-close fix (helios/src/output/tagged.rs:231-244,319-330,624-627):select_candidatedistinguishes outerD::CLOSEfrom innerD::FUNCTIONcloser soouter_tool_pendingis only set when the inner closer ended the call; verified by the duplicate-</tool_call>test athelios/src/output/chatml.rs:941-946.partial_marker& Kani proofs (helios/src/output/tagged.rs:855-868,helios/src/output/tagged/kani_proofs.rs:1-176,helios/src/lib.rs:20-22):partial_markerreverse-scans on UTF-8 char boundaries;pub mod outputis properly gated forcfg(kani)with#[cfg(feature = "server")]ongrammar_envelope(tagged.rs:474), and all four Kani harnesses match the documented bounds inverification/helios-lifecycle/README.md:385-473.- Documentation & sibling-parser alignment (
docs/api.md:446-451,511-525): Accurately states the per-dialect rules (including</tool_call>-closedFunctionTags/MiniMaxXml), and sibling parsers behave consistently with the doc:dsml.rs:379-380andxtml.rs:242-247reject unclosed tool blocks at EOS (explicitly noted atdocs/api.md:511-512), whilerecipient.rs:270-272andtml.rs:374-376already handle EOS completion in their own state machines.
Dropped on verification
- B1 (Four dialects relaxed without captured generations; #514 precedent): Dropped — PR #573 was authored and merged by project owner
lukealonso(docs/design-review.md:22-23), deliberately superseding #514 (which failed auto-review for adding a GLM-onlyconst LENIENT_EOS_CLOSEboolean flag and blindly callingD::parsewithoutconfirmed/strictguards); #67 already measured Qwen emitting EOS where</tool_call>would follow, #514 reported GLM doing the same, the PR honestly discloses unrun checkpoint/GPU checks, and the structural/strictgates prevent call fabrication. - S1 (
parse_eosduplication / unreachableNoneinMiniMaxXml::parse_candidate/ missing MiniMax</tool_call>test): Dropped — keepingparse_eosrequired onToolDialectprevents silently lenient future dialects;MiniMaxXmlis XML and previously inherited the trait default.map(Some)(tagged.rs:40-42) soin_json_stringwas never reachable for it; and MiniMax's</tool_call>-without-</invoke>streaming case is already tested at every UTF-8 split inhelios/src/output/minimax_xml.rs:320-324. - S2 (
strictlookup duplication as Should Fix): Downgraded to Subtract / Simplify #1 — all four copies are currently identical and safe (filter_map(|t| t.get("function"))+as_bool() == Some(true)), so there is no active bug. - S3 (
docs/api.mdduplicate rule / omittedCancelled/ExecutionError/ over-general "tagged tool parsers"): Dropped —docs/api.md:447-451is the overview paragraph and:514-525explicitly enumerates all four tagged dialects (GLM, function-tag, Gemma 4, MiniMax XML);Cancelled/ExecutionErrorabort the stream rather than returning a response; andrecipient.rs:270-272andtml.rs:374-376already handle EOS completion whiledsml.rs:379-380andxtml.rs:242-247are explicitly excluded at:511-512(refuting the upstream Value Prop claim thatrecipient/tmllack EOS handling). - S4 (Mid-stream leniency at
</tool_call>not reflected in title): Dropped — explicitly documented in the PR description ("What changed" and "Claimed result"),docs/api.md:518-522, and tests (chatml.rs:934-946,minimax_xml.rs:321-324). - X1 (Delete ~700 lines of protocol, logprob, split, and non-EOS tests): Dropped —
protocol/tests.rs:2350-2664andlogprobs.rs:362-463validate real streaming-encoder, control-semantics, worker/local stop-filter, content-logprob, and reasoning-token invariants when calls are emitted fromfinish(Termination::Eos)instead ofpush, and the per-dialect suites back thecargo-mutantscoverage; deleting useful unit/protocol tests is counterproductive. - X2 (Unify
eos/allow_unclosed_function/allow_unclosed_invokenames and removeToolDialect::parse): Dropped — the parameter names accurately reflect distinct semantics (ArgumentTags/GemmaCallonly relax at EOS, whereasFunctionTags/MiniMaxXmlalso relax at</tool_call>), andToolDialect::parseis the primary required method of apub traitused byGemmaCall,PlainText, and tests. - N2 ("Dead" resets in
TaggedTools::finish,tagged.rs:342-344): Dropped — resettingself.search_from = 0alongsidestd::mem::take(&mut self.buffer)preserves theself.search_from <= self.buffer.len()invariant required by&self.buffer[self.search_from..]attagged.rs:314. - N3(i) (
ToolBegincounting duplicated inrecipient.rs:273-274): Dropped —recipient.rs:272-274incrementsself.calls += 1inside a call-emission loop rather than filteringEvent::ToolBegin; only two 4-line expressions exist intagged.rs:555-558,610-614. - N4 (Mention
recipient/tml/xtmlinToolDialect::parse_eosdoc comment): Dropped — those sibling parsers do not implementToolDialect, so cross-referencing them inside the trait doc adds noise. - N5 (PR description "What changed" omits
kani_proofs.rs): Dropped (factually false) — verified via PR #573's current description (701ddd4), which explicitly listshelios/src/output/tagged/kani_proofs.rs,helios/src/lib.rs,.github/workflows/helios-lifecycle.yml(not opened), andverification/helios-lifecycle/README.mdalong with the Kani andcargo-mutantsevidence. - Value Prop claim that the
outer_closedduplicate-close-tag flip is untested: Dropped (factually false) — explicitly tested at every UTF-8 split inhelios/src/output/chatml.rs:941-946.
Full report Decision to Test: yes (73%): Testing will add considerable value with the code. It is ready to merge and the tests will validate and improve confidence on hardware we have available for testing.
Discord Test Request
Discord post (ready to paste — exactly the requested template)
Recommendation: Test
Medium confidence — high confidence the GLM tool path is not regressed, low confidence the omitted-closing-tag premise reproduces at all.
Hardware Required
- 1 host only: cn5 (amd64) — no second host, no A/B build.
- A GLM prepared core that
flare inspectreports as GLM argument tags (not DSML/XTML/TML/ATEM, else the changed code isn't even on the request path). - No Gemma 4 or MiniMax M3.1 checkpoint exists on either host, so 2 of the 4 changed dialects stay untested — coverage gap, not a substitute.
Justification
- PR #573 is already merged, so this is post-merge validation, not a merge gate: it deliberately reverses a documented user-facing contract (
docs/api.md) with zero captured model evidence and zero live serving runs. - It closes exactly the one gap synthetic tests can't: tokenizer + grammar + real tokens end-to-end — and answers whether the failure mode it fixes actually happens (for GLM the only field data, #133, points the other way).
Estimated Time to Complete
~45 minutes on one host, ~35 requests (checks: 10 prompt-shape buffered+SSE, 10 ordinary tool calls, 3 strict, 3 mid-call truncation). Add multi-hour ignition preparation time only if cn5 has no pre-built GLM core — check flare inspect first.
What I verified against the repo before writing it
- Merge status:
read_item(573)— merged 2026-11-28 21:17 by lukealonso (COLLABORATOR, charter-named priority contributor), head701ddd425d, +1937/−104 over 13 files. So "Recommendation: Test" can only be post-merge validation; nothing reverts. - File list matches the report: 9 production files plus tests/proofs/docs (
pr_files), all insidehelios/src/output/,docs/api.md, and lifecycle CI — no CUDA, no scheduling/cache policy. Consistent with "~150–190 net lines of CPU-side parsing" and "no throughput A/B". - The reported panic risk is genuinely gone:
helios/src/output/gemma_call.rs:147-149is a directparse_body(body, tools, true); theparse(…).remove(0)indexing now exists only in#[cfg(test)](gemma_call.rs:159). The review's "no empty-vec panic path" claim holds. - Garbled error string is real:
helios/src/output/gemma_call.rs:128returns"incomplete strict Gemma call tool call". Cosmetic only, correctly not a hardware blocker. - Doc-contract point is real:
docs/api.md:447-451and:514-525state the recovery contract twice, and the two exclusion lists differ — the:524-525sentence names output limits and stop sequences but omitsCancelled/ExecutionErrorwhile reading as exhaustive. Supports "deliberately reversed documented invariant" as a justification bullet. - Premise-evidence split confirmed: #67 measured the omission on Qwen3.8 Flash (7 of 20 logprob requests ended where
</tool_call>would follow;<|im_end|>≈0.97 vs</tool_call>≈0.02) and explicitly lists GLM and Gemma/MiniMax as "not run / unit tests only". #133 (GLM-5.3 TP2) recordedincomplete GLM tool callas documented/deliberate behavior and traced its rejections to prepared-graph corruption; after #129's re-export, rejections went 1/84 → 0/84 with 84/84 HTTP 200. So for the one host we can actually test (GLM), the only field data argues the defect may be rare or absent — which is why the post keeps the time estimate short and does not inflate N. - Charter alignment: the post's justification leans on "Bring real evidence" and "Never test code that will need to be changed" being satisfied by the merge, which is how the report framed it; no per-model flags are being requested, matching the "no per-model special cases" standard.
Deliberate omissions from the post (template limits)
The template allows only 3 hardware bullets and 2 justification bullets, so the post leaves out: the exact pass/fail assertions per check (strict still refused, truncation still omits, streamed function.arguments deltas concatenating to the buffered value), the "a 0-sample omission result is a finding, not a reason to inflate N" rule, the cn7/arm64 exclusion reasoning, and the explicit excluded list (throughput A/B, KV cache, TP, MTP, CUDA graphs, vision models). Those live in the pre-test report and should be attached or linked alongside the post for whoever runs the job.
Caveat on process
This was my final turn, so I could not write the findings above into the scratchpad before finishing; everything worth keeping is inline here. All orientation-packet leads (merge status, file scope, the two stale review findings, the doc duplication, #67 and #133 evidence, feasibility limits, test plan) were followed and are either reflected in the post or noted above as intentionally out of scope.
Full report Human Approval: Do you approve this test? → by yatesdr on , Nov 28, 2026 10:51 PM ET.
Discord post (ready to paste — exactly the requested template)
Recommendation: Test
Medium confidence — high confidence the GLM tool path is not regressed, low confidence the omitted-closing-tag premise reproduces at all.
Hardware Required
- 1 host only: cn5 (amd64) — no second host, no A/B build.
- A GLM prepared core that
flare inspectreports as GLM argument tags (not DSML/XTML/TML/ATEM, else the changed code isn't even on the request path).- No Gemma 4 or MiniMax M3.1 checkpoint exists on either host, so 2 of the 4 changed dialects stay untested — coverage gap, not a substitute.
Justification
- PR #573 is already merged, so this is post-merge validation, not a merge gate: it deliberately reverses a documented user-facing contract (
docs/api.md) with zero captured model evidence and zero live serving runs.- It closes exactly the one gap synthetic tests can't: tokenizer + grammar + real tokens end-to-end — and answers whether the failure mode it fixes actually happens (for GLM the only field data, #133, points the other way).
Estimated Time to Complete
~45 minutes on one host, ~35 requests (checks: 10 prompt-shape buffered+SSE, 10 ordinary tool calls, 3 strict, 3 mid-call truncation). Add multi-hour ignition preparation time only if cn5 has no pre-built GLM core — check
flare inspectfirst.
What I verified against the repo before writing it
- Merge status:
read_item(573)— merged 2026-11-28 21:17 by lukealonso (COLLABORATOR, charter-named priority contributor), head701ddd425d, +1937/−104 over 13 files. So "Recommendation: Test" can only be post-merge validation; nothing reverts.- File list matches the report: 9 production files plus tests/proofs/docs (
pr_files), all insidehelios/src/output/,docs/api.md, and lifecycle CI — no CUDA, no scheduling/cache policy. Consistent with "~150–190 net lines of CPU-side parsing" and "no throughput A/B".- The reported panic risk is genuinely gone:
helios/src/output/gemma_call.rs:147-149is a directparse_body(body, tools, true); theparse(…).remove(0)indexing now exists only in#[cfg(test)](gemma_call.rs:159). The review's "no empty-vec panic path" claim holds.- Garbled error string is real:
helios/src/output/gemma_call.rs:128returns"incomplete strict Gemma call tool call". Cosmetic only, correctly not a hardware blocker.- Doc-contract point is real:
docs/api.md:447-451and:514-525state the recovery contract twice, and the two exclusion lists differ — the:524-525sentence names output limits and stop sequences but omitsCancelled/ExecutionErrorwhile reading as exhaustive. Supports "deliberately reversed documented invariant" as a justification bullet.- Premise-evidence split confirmed: #67 measured the omission on Qwen3.8 Flash (7 of 20 logprob requests ended where
</tool_call>would follow;<|im_end|>≈0.97 vs</tool_call>≈0.02) and explicitly lists GLM and Gemma/MiniMax as "not run / unit tests only". #133 (GLM-5.3 TP2) recordedincomplete GLM tool callas documented/deliberate behavior and traced its rejections to prepared-graph corruption; after #129's re-export, rejections went 1/84 → 0/84 with 84/84 HTTP 200. So for the one host we can actually test (GLM), the only field data argues the defect may be rare or absent — which is why the post keeps the time estimate short and does not inflate N.- Charter alignment: the post's justification leans on "Bring real evidence" and "Never test code that will need to be changed" being satisfied by the merge, which is how the report framed it; no per-model flags are being requested, matching the "no per-model special cases" standard.
Deliberate omissions from the post (template limits)
The template allows only 3 hardware bullets and 2 justification bullets, so the post leaves out: the exact pass/fail assertions per check (strict still refused, truncation still omits, streamed
function.argumentsdeltas concatenating to the buffered value), the "a 0-sample omission result is a finding, not a reason to inflate N" rule, the cn7/arm64 exclusion reasoning, and the explicit excluded list (throughput A/B, KV cache, TP, MTP, CUDA graphs, vision models). Those live in the pre-test report and should be attached or linked alongside the post for whoever runs the job.Caveat on process
This was my final turn, so I could not write the findings above into the scratchpad before finishing; everything worth keeping is inline here. All orientation-packet leads (merge status, file scope, the two stale review findings, the doc duplication, #67 and #133 evidence, feasibility limits, test plan) were followed and are either reflected in the post or noted above as intentionally out of scope.