#1 [high] Change: PR #457 shape and size
PR #457 (open, ready for review, head aacbca1, base main, no labels, no reviews, no CI checks on head). 4 files, +431/-7: helios/src/grammar.rs, helios/src/grammar/strict.rs, helios/src/output/tml.rs, helios/src/server/request/tml_tests.rs. Described as 3 parts:
- tml.rs: new
AnswerState { Empty, HeaderWithoutContent, Emitted }field onTmlOutput. Non-empty model header (model && at > 0) closing on<|end_message|>(END) or<|content_model_end_sampling|>(TURN_END) while answer==Empty → HeaderWithoutContent;finish()returns Err on Termination::Eos. Visible non-thinking content and non-empty tool-invocation bodies set Emitted (call_or_text sets Emitted before validation, so even invalid tool JSON as visible text counts). - grammar.rs
compile_content_headers: new factoredtool_unnamedrule (<|content_invoke_tool_json|> @payload_any <|end_message|>, schema enum over registered tool names) alongside namedtool_{index}; tool-enabled ending changed from(answer | tools)to(answer ({restart} thinking* tool)* | tools). - grammar/strict.rs
compile_strict_tml: newtool_unnamedrule with(@payload_0 | ... | @payload_k)union; non-required ending now(answer ({restart} thinking* tool)? | tools)when single_call, else(answer ({restart} thinking* tool)* | tools). Tests added: grammar.rscontent_headers_grammar_allows_preamble_before_tools; strict.rsTML_unnamedcase instrict_tool_wire_grammars_enforce_constraints+strict_tml_grammar_allows_unnamed_headers_and_preamble_before_tools; tml.rs unit testsnonempty_model_header_closed_without_a_content_kind_fails_at_eos,a_closed_untyped_header_allows_visible_content_and_completed_calls,empty_model_headers_other_roles_and_external_stops_keep_their_termination; tml_tests.rs (tokenizer-gated, #[ignore])a_model_frame_without_a_content_kind_reports_a_failed_response,inkling_stress_untyped_closed_header_must_surface_failure,inkling_stress_custom_grammar_preamble_then_tool. Citation: PR #457 diff (pr_diff); body.
#3 [high] Related work: #418 strict tools created strict.rs; #457 rewrites its TML ending
#418 (merged 2026-11-22, jcartu/CONTRIBUTOR, +6048/-128, 16 files) added helios/src/grammar/strict.rs (new, +4504) and wired "strict": true function tools for DSML/Qwen/GLM/TML. Relevant to #457 in three ways:
- #457 edits
compile_strict_tmlin the very file #418 created; #418 merged 2026-11-22 04:43 and #457 says it merged main b9cac839 "including #418". #457's ending change(answer | tools)→(answer ({restart} thinking* tool)* | tools)directly rewrites a line #418 wrote. - #418 restricted active-strict TMLv0 requests to declared tool names "including under tool_choice: auto" — #457's unnamed-header rule keeps that (payload enum over declared names in grammar.rs;
(@payload_0 | ... )in strict.rs). - #418 left served TMLv0 as an UNRUN check (
docs/TODO.txttracks served TMLv0 qualification) and reviewer yatesdr accepted fixture-only TML coverage on 2026-11-21 ("TML: fixtures are enough"), requiring only a schema-violating argument the grammar rejects. #457 now claims live SM120 TMLv0 serving verification on an Inkling 2 Mini checkpoint — i.e. #457 supplies the check #418 deferred. Also #418's reviewer yatesdr (COLLABORATOR) is the main gatekeeper in strict.rs/grammar areas. Citation: read_item #418 (description, discussion); PR #457 body.
#6 [high] Change: verified mismatches (unnamed header, preamble-then-tool) and the grammar shapes chosen
The body's "Why" said both grammars enforced rules "stricter than TmlOutput". Verified in code at PR head aacbca18:
TmlOutput::call(helios/src/output/tml.rs:346-374) accepts a tool call whosenameheader is absent:self.name.as_ref().is_some_and(|header| header != name)only rejects a present mismatching header. So unnamed header +<|content_invoke_tool_json|>{"name":...,"args":...}parses.- Before #457,
compile_content_headers(grammar.rs:399-401 before) requiredself.marker(name)before<|content_invoke_tool_json|>for every tool; there was no unnamed alternative. So the grammar masked a token sequence TmlOutput accepts — a parser/grammar mismatch, i.e. the same defect class as #228 (XTML message closure after structured answers) and inline with docs/api.md:552-557 ("grammar compilation uses the same bounded llguidance compiler"). - Second mismatch: preamble then tool. #457 replaces
(answer | tools)with(answer ({restart} thinking* tool)* | tools), citing XTMLwrapped_answer (ws tool)*framing in compile_recipient (grammar.rs:353) which already allowed answer-then-tools. So #457 makes TML behave like the existing Atem/XTML path; not a novel grammar shape. - Cost note: the unnamed rule uses ONE schema with
name: {enum: [...tools]}to avoid N-way Earley ambiguity; the named path keeps per-toolconstschemas. In strict.rs it instead unions(@payload_0 | ... | @payload_k). Verified facts, not claims. Citations: read_file helios/src/output/tml.rs:334-374, helios/src/grammar.rs:324-420, helios/src/grammar/strict.rs:1533-1620 at pr/457.
#8 [high] Reach: EOS error becomes HTTP 500 / response.failed for every TMLv0 request, not only grammar-constrained ones
Verified in code at pr/457 head aacbca18:
TmlOutput::finishreturnsErr("TML model header closed without a content kind and the turn produced no answer or tool call")only whencause == Termination::Eos(helios/src/output/tml.rs:399-401).OutputLimit,UserStop,Cancelled,ExecutionErrorkeep prior behavior (testsempty_model_headers_other_roles_and_external_stops_keep_their_termination).- The
Erris aString-converted error:impl From<String> for Errormaps toExecution(ExecutionError::State)(helios/src/error.rs:174-178), whichstatus()maps to HTTP 500 anderror_code()to "server_error" (helios/src/server.rs:647-668). So both buffered and streamed paths fail: streaming emitsDelivery::Failed→encoder.failure(&e)→response.failedwith error.codeserver_error(http.rs:526, 574-578; protocol/mod.rs:53-59); buffered returnsrejection(...)with HTTP 500 (http.rs:638). The PR's claim "surface response.failed (server_error) on /v1/responses instead of completing with output=[reasoning]" matches the code, for both transports — the description only names the streaming event, not that buffered requests become HTTP 500. - Reach: the parser change applies to every TMLv0 request regardless of whether any grammar is active (the grammar only exists when a grammar/structured output/strict tool is requested). So a plain, unconstrained TMLv0 turn that ends reasoning-only now returns a 500-class failure where it previously returned 200 with reasoning-only output. This is the intended fix, but it is a client-visible behavior change for all TMLv0 serving, not only for grammar-constrained requests.
- Nuance:
call_or_textsetsAnswerState::Emittedbefore validating the call body, so a malformed tool payload emitted as visible text (tml.rs:334-344) suppresses the new error; a TMLv0 header whose JSON body is non-empty never errors, matching the PR's "preserves behavior for turns that emit visible text or a tool call". Citations: read_file tml.rs:376-403, 334-344; error.rs:174-178; server.rs:647-668; http.rs:517-578, 638; protocol/mod.rs:53-59.
#10 [high] Process: DCO sign-off + Design-Signed-Off-By trailers are strictly enforced; #457 unverified
Citations for the process/DCO points:
- CONTRIBUTING.md:9-11 (main): "We require that all contributors 'sign-off' on their commits ... Any contribution which contains commits that are not Signed-Off will not be accepted."
- docs/design-review.md:191-208 (main): exactly one trailer
Design-Signed-Off-By: <reviewer identity>; design-review=<four lowercase hex digits>in the final commit-message trailer block, and the.githooks/commit-msghook rejects absent or invalid acknowledgments (docs/design-review.md:210-231). - AGENTS.md:142-153 (main): every PR description must carry a
Discord:line,Discord: no username providedwhen none is given — #457 does have that line. - The PR body gives a base commit b9cac839 and head aacbca1; the PR has 3 branch commits + main (aacbca18 "helios/grammar: allow unnamed tool headers and preamble-then-tool in strict TMLv0 grammars", d75bc3a8 "Merge main (b9cac839) ...", 9b2f2f6a, 76c50158) per search_history at pr/457. Whether each carries Signed-off-by/Design-Signed-Off-By could not be read from the tools available (search_history text search for "Signed-off-by"/"design-review" matched commits only by message body text and returned unrelated main commits, so it is not evidence either way) — record as an open check for the deciding reader, not as a finding.
- Note the #418 precedent: contributor jcartu had to be told by reviewer yatesdr (2026-11-21) that "Contributor DCO sign-off is still pending before I push the revised commits", and #304 was blocked on missing Signed-off-by and a missing design-review acknowledgment hash (review #304, 2026-11-18). So DCO/design-review trailers are actively enforced in this repo, and #457 has had no reviewer yet to check them. Citations: CONTRIBUTING.md, docs/design-review.md, AGENTS.md on main; #418 and #304 discussions.
#11 [high] Claims and evidence: live numbers unverifiable from repo; 5/5 vs 4/5 inconsistency
- PR #457's Supporting Evidence cites unit-test counts (124 passed across output::tml, frontend::tml, grammar, grammar::strict, server::protocol, server::output), 8 real-tokenizer snapshot tests ("FLARE_INKLING2_TEST_SNAPSHOT=... --ignored --test-threads=1 server::request::tml_tests::"), and live SM120 GPU numbers: before
tool_unnamed, 0/5 tool calls with 178 declared tools andgrammar: "start: /(?s:.+)/"; after, 5/5 tool calls; 5/5 (4/5 with ['reasoning','message','function_call']) on preamble-plus-tool prompts;"strict": trueonget_weatherreturns HTTP 200 with a schema-conforming function_call;agentic_suite.pySUITE: PASS 3/3. - What is NOT in the description: the exact checkpoint/core served for the live checks beyond "
TML-d24-varloop-researchon RTX PRO 6000 Blackwell" (no core hash, no binary SHA-256, no revision the tests ran on), no baseline commit named for the "before" runs, no command lines for the GPU runs, no repetition counts or spread on the 5/5 and 4/5 figures, andagentic_suite.pyis not in this repository (search for "agentic_suite" at pr/457 returns no matches), so the harness behind "SUITE: PASS" is unverifiable from the repo. Compare #418, where reviewer yatesdr demanded and got "the command or harness behind the served checks". - The 4/5 figure in the description literally reads "5/5 tool calls (
4/5['reasoning', 'message', 'function_call'])" — an internal inconsistency in the claimed result (5/5 vs 4/5) that a reader cannot resolve from the text. - Checkable evidence that does exist: the two new tokenizer tests are
#[ignore]-gated on FLARE_INKLING2_TEST_SNAPSHOT (tml_tests.rs:247, 394, 442 at pr/457), so CI without that snapshot silently skips them — consistent with the repo's existing gating but means no CI enforcement. Citations: PR #457 body; search_code "agentic_suite" at pr/457; tml_tests.rs attributes; #418 discussion (yatesdr 2026-11-21).
#13 [high] People: author's prior merged parser work (#162), three-PR bundle with #458/#468, no reviewer yet
- Author brandonmmusic-max: GitHub association CONTRIBUTOR; in the last 180 days 2 merged (#162 reasoning close delimiter in visible content, #154 warmup mappings), 3 closed (#468 TML-d24 checkpoint closed as moved to local-inference-lab/hyperflare-recipes, #215, #163), 4 open (#480, #475, #458, #150). Merged areas: heliopause/src, helios, helios/src, helios/tests, ignition/preparation. So the author has one previously merged Helios output-parsing change (#162, which touched helios/src/output/tagged.rs & pipeline.rs and helios/model-contract.md) — the closest precedent that this author has shipped parser-behavior changes in this repo, but they are NOT one of the charter's priority contributors (@voipmonitor, @original-el8, @lukealonso).
- Their open #458 (2026-11-22) is the companion Responses-SSE sequence_number fix, prompted by the same reported incident and the same outside reporter (@madarkadonk /
madaron Local Inference Lab Discord). #457 and #458 both cite that reporter for the bug report; #457 credits him for the initial untyped-header patch, the captured malformed token sequence and both stress tests. So the underlying defect comes from an outside contributor's live observation, relayed by the author. - #468 (author's own, closed 2026-11-23) states it "benefits from the companion Helios TML output-parsing and Responses SSE error-sequence fixes in #457 and #458" — i.e. #457 is the author's half of a three-PR bundle for serving Inkling 2 Mini/TML-d24 on SM120, and #468 was closed only because its seven files moved to the other repository, not because the need went away.
- Nobody has engaged on #457 yet: zero comments, zero reviews, no labels (contrast #228 which got area:api/bug/priority:P1/triage:review labels, and #418 which went through two formal review rounds by yatesdr).
- The likely reviewer by precedent is yatesdr (COLLABORATOR), who reviewed #405, #418, #433, #461 in the same files; jcartu authored the strict.rs layer #457 edits and reviewed #433. Neither has looked at #457. Citations: orientation packet; read_item #458, #468, #162, #228, #418, #405.
#15 [high] Coverage: angle-to-entry map and leads deliberately not pursued
Angle-by-angle coverage check for PR #457 (so the report writer knows nothing was skipped):
- The change — entry 1 (shape/size/files), entry 6 (verified mismatches + grammar shapes).
- The why — entry 6 (parser/grammar mismatch verified in code), entry 3 (#418 lineage), entry 5 (#304/#405/#433 attribution check), entry 7 (#228 same defect class).
- Related work — entries 3, 4, 5, 7, 12 (#418, #405, #304/#433, #228, #191), entry 13 (#458/#468 bundle).
- Recent activity — entry 12.
- People — entry 13.
- Community — entry 2 (zero comments/reviews/labels), entry 13 (likely reviewers by precedent).
- Project fit — entry 14, entry 9 (docs), entry 8 (reach vs charter footprint rule).
- Claims and evidence — entries 10, 11, 8 (what the code verifies about the claimed failure surfacing).
- Reach — entry 8 (every TMLv0 request; HTTP 500 buffered; response.failed streamed), entry 9 (docs), plus: no config/default changes, no dependency changes, no package/core-format change (grammar is compiled at request time;
helios/model-contract.mduntouched), so existing exported cores keep working without re-export (grammar and parser live in Helios, per docs/api.md:626-630 and the #228 note that "existing packages work without re-export"). - Process — entry 2 (open, ready for review, no CI checks on aacbca1, no labels, no reviews, opened 2026-11-22, ~2 days old), entry 10 (DCO/design-review trailer requirements and how strictly enforced).
Leads from the orientation packet not pursued further, with reason:
- #475, #480, #496, #497, #490 (same author, unrelated areas: DMA all-reduce, checkpoint TP, disk offload, CLI channel) — same-author context only, captured in entry 13.
- #471, #163, #427 (GLM/Kimi recipe PRs surfaced by title words) — no code overlap with #457's four files.
- #94, #167, #461 — listed via one shared file (helios/src/grammar.rs or strict.rs) but different subsystems (reasoning delimiter counting, reasoning budget, docs/numeric bounds); #461 noted in entry 3/14 context as the open strict-tool docs PR by jcartu, untouched by #457.
- helios/src/frontend/tml.rs (the TML prompt renderer) and tests/frontend/inkling2_tml.json fixtures: reference data the new tests replay against; not changed by #457, noted in entry 12/11.
#2 [medium] Process: PR state, CI, review, age
PR #457 opened 2026-11-22 by brandonmmusic-max (GitHub association CONTRIBUTOR), last updated 2026-11-22, state "open, ready for review" (not draft). Labels: none. Reviews: none. CI on head commit aacbca1: no checks. pr_comments returned "No comments." — zero discussion so far, no reactions evidence available. Base main at b9cac839 per body; head = aacbca1. Size 4 files +431/-7. Discord: no username provided in body.
Citation: orientation packet; pr_comments.
#4 [medium] Related work: #405 refers to #457; no overlapping files
#405 (merged 2026-11-20, yatesdr/COLLABORATOR, +1179/-477, 28 files) made declared markers controls and rewrote ordinary_tokens/literal-token tests. Link to #457: the PR body lists #405 as one of the PRs that "introduced"/hardened TMLv0 handling ("introduced in #304 and hardened in #405"), and #405 is listed under "Referred to by" for #457. #405's substance is about control-token/request-text handling (frontend), not TML grammars, so the connection is mostly lineage rather than overlapping code: #405 touched helios/src/model/prompt.rs, output/pipeline.rs, output/argument_tags.rs, frontend/* — none of the four files #457 changes. Note #405 replaced OutputPipeline::dsml_markers() with dsml::CONTROL_MARKERS; #457's tests use tml::CONTROL_MARKERS for the same style.
Citation: read_item #405; PR #457 diff (uses crate::output::tml::CONTROL_MARKERS).
#5 [medium] Claims: body cites #304/#405/#433 as TMLv0 origin, but only #418 has TML grammar code
- #304 (merged 2026-11-20, original-el8/COLLABORATOR, "Prepare and serve Inkling 2 Small NVFP4 at TP4 on four DGX Sparks", +388/-56, 10 files) is listed in #457's description as the PR that "introduced" TMLv0 handling. Checked: #304's files are ignition/recipes/inkling2/{bootstrap,decoder,recipe}.py, tests/cli, tests/recipes, docs/{TODO,model-preparation,roce-ring}.md — none in helios/src, no grammar/parser work. So "TMLv0 introduced in #304" most plausibly refers to the Inkling 2 serving path being introduced there (the model family that emits TMLv0), not to TML parsing code. Flag as an imprecise claim attribution, not evidence of a defect.
- #405 (2026-11-20, yatesdr) is listed as having "hardened" TMLv0 — it did touch helios/src/model/prompt.rs and output/pipeline.rs (declared_markers) but no TML grammar code.
- #433 (merged 2026-11-22 03:09, nero-, Inkling 2 Mini preparation/vision/kernels, +4711/-230) merged the same day #457 was opened; #457 says "Inkling 2 Mini merged in #433", and #457's live verification uses a
TML-d24-varloop-researchcore on RTX PRO 6000 Blackwell. #433 is not a TML parser PR either. Conclusion for the report: the "introduced in #304 / hardened in #405 / #418 / #433" lineage is a description framing; only #418 actually contains TML(-strict) grammar code (#457 rewrites it). #304/#405/#433 are the model-serving/packaging PRs the affected requests come from. Citations: read_item #304, #405, #433; PR #457 body.
#7 [medium] Related work: #228 (merged) is the same grammar-vs-parser mismatch class, triaged P1
#228 (merged 2026-11-11, voipmonitor/COLLABORATOR, labels area:api, bug, model:kimi-k3.1, priority:P1, triage:review, +129/-7) is the clearest precedent for #457's defect class: the XTML structured-output grammar rejected the parser's own message-close marker, so the model's preferred token was masked and it looped in whitespace to the token limit. Fix: added OutputEnvelope.message_close to the shared grammar. #457's description says its new ending matches "XTML's wrapped_answer (ws tool)* framing" — i.e. #457 follows the shape #228 established. Both PRs touch helios/src/grammar.rs; #228 is listed as sharing 1 file with #457. Useful precedent for how maintainers have treated grammar-vs-parser mismatch (as a serving-correctness bug, fixed in the grammar). Note #228 drew maintainer triage labels; #457 currently has none.
Citation: read_item #228; related_items #457.
#9 [medium] Project fit: no docs updated, docs/TODO.txt strict-TMLv0 item left open
- PR #457 changes no documentation. docs/api.md (main) documents TMLv0 only at :585-602 (strict tools: "With an active strict tool, TMLv0 recognizes only declared tool names") and docs/TODO.txt:5-8 holds the open item "Qualify
strict: truefunction tools on a TMLv0 core (ToolParserKind::TmlJson, e.g. Inkling 2) served byflare run... Close when a served TMLv0 core passes those checks and the result is recorded." #457's live SM120 verification is exactly that check, yet the PR does not close or amend the TODO entry, and does not add an api.md sentence for the new unnamed-header/preamble framing or for the new EOS failure mode. AGENTS.md:165-166 requires contributions to address a demonstrated defect (satisfied) but also expects stated limits; docs/design-review.md principles ask that behavior changes be documented where they are user-visible. - Nothing in docs/api.md mentions that a TMLv0 turn can now fail on a reasoning-only end; a client guide/queue of api.md statements about failures (:543-545 for required-mode) is the closest precedent for where such a sentence belongs. Citations: search_code docs/TODO.txt/TML, docs/api.md:480-640 (main), PR #457 pr_files (4 code/test files only).
#12 [medium] Recent activity & people in the touched areas; #191 unmerged TML work overlaps
Area history (verified):
- helios/src/output/tml.rs on main has only two commits: dc0d40e0 (2026-11-19, Luke Alonso, "Harden Helios HTTP ingress, frontend bounds, RoCE/TP lifecycle, and crate boundaries") and 8628b7c5 (2026-11-14, Luke Alonso, "Prepare Inkling 2 Small NVFP4 for native TP4 serving"). The feature itself entered through #191 (open draft, YouNeedCryDear), which added helios/src/output/tml.rs (+476) and helios/src/server/request/tml_tests.rs (+194) plus the TML JSON/content-header parser kinds; #191 has been in draft since 2026-11-04 with merge conflicts flagged by original-el8 on 2026-11-05 and 2026-11-08 and never merged — yet #457's base already contains tml.rs, so TMLv0 must have landed through 8628b7c5/Luke Alonso. That makes #191 overlapping-but-superseded work on the exact two files #457 touches (grammar.rs, output/tml.rs, server/request/tml_tests.rs are 3 of #191's files); a reader deciding #457 should know #191 is an older unmerged attempt at the same TML path.
- helios/src/grammar.rs on main: last touched by 0b09434d (#418, 2026-11-22), earlier by 8628b7c5 (Luke Alonso, 2026-11-14), f76b517f (#228), 0e0dbf1e/5ed3f47f/5e76f096/c845f6e9 (Luke Alonso, Oct 27 recipient-frame work) — so Luke Alonso is the dominant author of the recipient/grammar machinery and yatesdr/jcartu of the strict-tool layer.
- helios/src recent commits are dominated by Luke Alonso (204), Martin Vit (45), yatesdr (43) per the orientation packet; no commit on main since #457 branched (b9cac83) touches its four files, so no rebase conflict has arisen.
- Recent main activity right around #457's head: #418 strict tools merged 2026-11-22 04:43; uv.lock/FlashInfer bumps (b9cac839, ee49d850) — i.e. #457 sits immediately on top of the strict-tool layer and was rebased onto it (commit d75bc3a8 "Merge main (b9cac839)"). Citations: search_history paths/output tml.rs, grammar.rs; items_touching tml.rs & strict.rs; orientation packet; #191 read_item.
#14 [medium] Project fit: matches charter's root-cause and model-agnostic rules; docs rule not met
Charter / AGENTS fit for PR #457 (facts, both directions):
- Fits "Bring real evidence ... Bug fixes need to address the root cause; don't just swallow, skip, or retry an unexplained error (#397)" (charter / AGENTS.md:165-166): #457 turns a silently discarded malformed turn into an error instead of suppressing it, and the grammar fix removes the masking rather than papering over it.
- Fits "Keep the runtime small and model-agnostic ... shouldn't accumulate per-model branches (#267, #334)": no model or recipe identity is branched on; the change lives in the TMLv0 parser and its grammars, keyed on framing control tokens only.
- Fits "respect the OpenAI/Anthropic documented subset": this is Responses/Chat tool-call correctness.
- Where it may not line up: the charter asks for the smallest footprint in shared code and "if this is the right layer"; #457 puts a new hard failure (
HTTP 500) into the shared output parser for every TMLv0 request, which is a behavior change beyond the reported malformed-token case (see the reach entry). - Documentation: AGENTS.md:230 requires reading docs/api.md for API behavior changes; #457 changes client-visible behavior (a new failure mode, plus newly accepted wire framings) without touching docs/api.md. docs/design-review.md asks that material limitations be disclosed; the description does disclose unrun families and the unrun GPU coverage for non-TML formats.
- Non-goal check: nothing here expands hardware, backends, or models; it does not add a recipe or alias (that was #468, in the other repo). Citations: read_charter; AGENTS.md:155-200, :230; PR #457 body.