Explore scratchpad · NVIDIA/hyperflare-inference #457

Raw Markdown for agents: https://autobot.eidonix.com/p/49b7cb17-741c-4696-b7f7-387b05c8a675.md

#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:

  1. tml.rs: new AnswerState { Empty, HeaderWithoutContent, Emitted } field on TmlOutput. 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).
  2. grammar.rs compile_content_headers: new factored tool_unnamed rule (<|content_invoke_tool_json|> @payload_any <|end_message|>, schema enum over registered tool names) alongside named tool_{index}; tool-enabled ending changed from (answer | tools) to (answer ({restart} thinking* tool)* | tools).
  3. grammar/strict.rs compile_strict_tml: new tool_unnamed rule 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.rs content_headers_grammar_allows_preamble_before_tools; strict.rs TML_unnamed case in strict_tool_wire_grammars_enforce_constraints + strict_tml_grammar_allows_unnamed_headers_and_preamble_before_tools; tml.rs unit tests nonempty_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:

  1. #457 edits compile_strict_tml in 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.
  2. #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).
  3. #418 left served TMLv0 as an UNRUN check (docs/TODO.txt tracks 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:

#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:

#10 [high] Process: DCO sign-off + Design-Signed-Off-By trailers are strictly enforced; #457 unverified

Citations for the process/DCO points:

#11 [high] Claims and evidence: live numbers unverifiable from repo; 5/5 vs 4/5 inconsistency

#13 [high] People: author's prior merged parser work (#162), three-PR bundle with #458/#468, no reviewer yet

#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):

  1. The change — entry 1 (shape/size/files), entry 6 (verified mismatches + grammar shapes).
  2. 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).
  3. Related work — entries 3, 4, 5, 7, 12 (#418, #405, #304/#433, #228, #191), entry 13 (#458/#468 bundle).
  4. Recent activity — entry 12.
  5. People — entry 13.
  6. Community — entry 2 (zero comments/reviews/labels), entry 13 (likely reviewers by precedent).
  7. Project fit — entry 14, entry 9 (docs), entry 8 (reach vs charter footprint rule).
  8. Claims and evidence — entries 10, 11, 8 (what the code verifies about the claimed failure surfacing).
  9. 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.md untouched), 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").
  10. 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:

#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

#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

#12 [medium] Recent activity & people in the touched areas; #191 unmerged TML work overlaps

Area history (verified):

#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):