Prose-lens review — PR #573 "helios: tolerate omitted closing tags on complete tagged tool calls at EOS"
Key findings
No blocking and no should-fix prose defects. The description answers the four mandatory questions in the mandatory order (AGENTS.md:72–79, strong>why → what changed → claimed result → evidence), the Discord: no username provided line is present as required (AGENTS.md:142–153), and the docs/api.md rewrite is present-state specification that never narrates the change history, as .agents/skills/repo-prose/SKILL.md:26–29 (not opened) requires.
Three nits, all in docs/api.md wording, none affecting correctness of the documented rules.
One candidate should-fix from my earlier notes was withdrawn after verification — see "Withdrawn finding" below. This is worth stating explicitly because it looked like invented evidence.
Rules applied
AGENTS.md:43–50— every PR description is subject to.agents/skills/repo-prose/SKILL.md(not opened).AGENTS.md:72–79— a description must answer why, what exactly changed, what benefit or result is claimed, what evidence supports it, in that order.AGENTS.md:88–94— "What exactly did this PR change?" must name affected components and the concrete behavior change, make before/after explicit, and not substitute a file list or a label.AGENTS.md:103–112— evidence must connect each material claim to the check run, keep counts tied to the tested contract, and "Never invent evidence to complete the description."AGENTS.md:120–121— avoid exhaustive inventories of changed files and tests..agents/skills/repo-prose/SKILL.md:13–19 (not opened), 26–29, 35–37— describe the system as it exists; no chronology; no false definite references; state evidence as conditions, measurement, result, limitation.
Description accuracy (verified, no defect)
- Why. The stated failure mode matches the changed code. Before the PR,
TaggedTools::finishrejected every unclosed call at EOS (helios/src/output/tagged.rs:302–322pre-change) andTaggedOutput::finishopened calls during finish (old:519–523). The description's before/after bullets are all true of the diff:confirmedset only onstarts_call(...) == Some(true)orOutputStart::ToolBody(tagged.rs:431,:698,:721,:760in the diff), thein_json_stringguard (tagged.rs:317),outer_closedgatingouter_tool_pending(tagged.rs:276–292,:593–596), andcallsadvanced forToolBeginemitted infinish(tagged.rs:522–529). - What changed. All six behavior-changing source files and the doc are named:
argument_tags.rs,chatml.rs,gemma_call.rs,minimax_xml.rs,pipeline.rs,tagged.rs,docs/api.md. The per-dialect rules it attributes to each file hold: GLM name and greedy-pair rules (argument_tags.rs:36–50,:77–93), function-tag!strict && !arguments.is_empty() && rest.is_empty()(chatml.rs:127–129, used by bothparse_candidateandparse_eos), Gemma brace parsing plus strict rejection (gemma_call.rs:109–149), MiniMaxclosed/values/parameters gate (minimax_xml.rs:168–186),PlainText::parse_eosreturning the pre-existing error (pipeline.rs:49–51), and the trait contract comment on the new method (tagged.rs:43–45). - Claimed result. "Non-EOS terminations (
OutputLimit,UserStop,Cancelled,ExecutionError) remain unchanged and omit unclosed calls" matchestagged.rs:303–312exactly. - Evidence — the "14 passed" count is correct, contrary to my initial suspicion.
helios/tests/deepseek_output.rshas 10#[test]functions (lines 310, 351, 388, 440, 494, 560, 586, 654, 695, 740) and 4#[tokio::test]functions (lines 196, 246, 270, 602) = 14 tests, with no macro-generated cases. The other counts also check out exactly: 9#[ignore]inhelios/tests/reasoning_delimiters.rs, 1 inglm_frontend.rs, 5 inparser_start.rs, and 4#[ignore]inhelios/src/grammar.rs(1366, 1738, 1928) plushelios/src/grammar/strict.rs(not opened) (4343), matching "4 ignoredgrammar::tests". - Unrun checks are disclosed (
FLARE_TEST_TEMPLATE_DIRcase, checkpoint-gated snapshots, "live GPU serving runs were not executed"), satisfyingAGENTS.md:103–112andSKILL.md:35–37.
Withdrawn finding (was "Should fix")
"PR #573 evidence claim deepseek_output: 14 passed not reproducible." Withdrawn, not reported as a defect. The test target contains 14 test functions; my earlier count of 10 omitted the #[tokio::test] cases at helios/tests/deepseek_output.rs:196, 246, 270, 602. The description's count is accurate and ties to the tested contract.
Nits
-
Nit —
docs/api.md:447and:514rely on "natural completion" without a local definition. The code condition is preciselyTermination::Eos(helios/src/output/tagged.rs:302–322), and"natural completion"appears only at lines 447, 514, and 591 with no line defining it. The neighboring sentence contrasts it with the output limit, so it is inferable, but the fix is one clause: name the honored end-of-sequence token, whose vocabulary the doc already uses atdocs/api.md:478. This matters forSKILL.md:20–25(explain concepts before identifiers) and:17–19(no referents the reader must supply). -
Nit —
docs/api.md:514–525packs all four dialect rules into a single sentence with nested parentheticals. The reader must track wrapper tag,</function>closer,</invoke>closer, and</tool_call>fallback simultaneously; the two(also accepted when closed by </tool_call>)parentheticals sit inside an already-subordinate clause. The rules themselves are verified correct (chatml.rs:127–129for the function-tag case, MiniMax:168–186, Gemmagemma_call.rs:109–149), so this is presentation only. Splitting into one short clause per dialect, or a small table, would remove the ambiguity. -
Nit —
docs/api.md:524–525says "calls cut off by output limits or stop sequences are never recovered", narrower than the code. The code also clears unclosed calls forTermination::CancelledandTermination::ExecutionError(helios/src/output/tagged.rs:303–312). The sentence is not false — it states a true subset — but the enumeration reads as exhaustive and leaves two omission causes unmentioned, whichAGENTS.md:103–109("Keep material failures, skipped checks, and measurement limitations visible") argues against. Add "cancellation, or execution error" to the clause.
Open questions / what could not be verified
- The
docs/api.mdclaims about buffered-versus-streamed equivalence across all five dialects (title/PR body "Claimed result") rest on the newserver::protocol::tests::unclosed_tagged_tool_calls_at_eos_match_protocol_and_control_semanticstest, which I read only in the diff, not by execution. Nothing in the prose contradicts it; only running the suite would settle the count of dialects and protocols. - The description attributes
helios/src/server/logprobs.rsandhelios/src/server/protocol/tests.rsonly to Evidence, not to "What changed". This is defensible:logprobs.rschanges are insidemod tests(the hunk header at+359,6opens withinmod tests), andprotocol/tests.rsis a test file, whileAGENTS.md:120–121explicitly forbids exhaustive changed-file inventories. I therefore did not raise it; if a maintainer wants the reasoning-token/logprob behavior pinned in the change list, one sentence in "What changed" would satisfy that reading. > Cite:AGENTS.md:88–94and:120–121pull in opposite directions here. - I did not re-open every changed test body line by line; my verification of the unit-test claims rests on the test names and assertions visible in the diff for
logprobs.rsplus the counts above.