Prose review of PR #457 — Fail untyped TML model headers at EOS and align TMLv0 content-header and strict-tool grammars with TmlOutput
Lens: prose — the PR description, its commit messages, and the docs and comments the change touches, judged against the repository's own writing rules (AGENTS.md:67-148, docs/design-review.md:134-157, .agents/skills/repo-prose/SKILL.md (not opened)).
Key findings
- The description's live GPU evidence names a checkpoint this branch's repository explicitly rejects (
TML-d24-varloop-research;ignition/recipes/inkling2/config.py:88-92), so it cannot be reproduced from the reviewed tree — should fix. - The snapshot-suite reproduction command is a placeholder (
FLARE_INKLING2_TEST_SNAPSHOT=...) although the repository states the required input athelios/src/server/request/tml_tests.rs:9-12, and the tests are#[ignore]— should fix. - Three user-visible TMLv0 wire-behaviour changes ship with no
docs/api.mdupdate (the file has nocontent_invoke_tool_jsonmention at all) — should fix under AGENTS.md:225. - The four-part description scheme, the "Unrun Checks and Limitations" section and the mandatory Discord line are present and in order; nothing was found that would block.
- Smaller prose defects: an unpinned
agentic_suite.py(not opened) reference, an unexplained "5/5 … (4/5 …)" result pair, a test count whose filter is not given, a jargon-heavy title, and subject-only commit messages.
Description: the four required parts
The required scheme is: why, what exactly changed, the claimed benefit or result, and the supporting evidence, in that order (AGENTS.md:69-75; docs/design-review.md:136-147, principle 16).
Present and compliant:
- Why — "Silent reasoning-only completion on malformed TML model headers": it names the emitting model path, the exact token sequence, the pre-change observable (
response.output_item.done(reasoning)thenresponse.completed(output=[reasoning])withstatus: "completed"), and why that breaks agent clients. That is a causal explanation rather than a label, as AGENTS.md:77-82 requires. - What changed — each of the three changes gets an explicit before/after ("Before this change, activating a custom grammar … masked out
<|content_invoke_tool_json|>"; "Changed the tool-enabled ending from(answer | tools)to …"), satisfying AGENTS.md:83-89's requirement that replaced and added behaviour not share a tense. - Claimed result — stated as an observable:
response.failed(server_error) instead ofoutput=[reasoning], and grammar acceptance/rejection lists. - Evidence — the unit-test module list, the snapshot suite, and a live GPU section, followed by "Unrun Checks and Limitations", which names the non-TMLv0 families as grammar-tested only (AGENTS.md:100-104, repo-prose SKILL.md:35-37).
Discord: no username providedis present at the end (AGENTS.md:139-148).- Attribution to @madarkadonk is given for the initial patch, the captured token sequence and both regression tests.
- No process assurances such as "ready to ship" were found (AGENTS.md:124-127).
Defects in the description:
1. should fix — the live GPU evidence names a checkpoint the repository rejects, and the harness is unreferenced
PR description, "Supporting Evidence / Live SM120 GPU verification".
The section reads "Live SM120 GPU verification (TML-d24-varloop-research on RTX PRO 6000 Blackwell)". Two problems:
TML-d24-varloop-researchis not a servable core on this branch.ignition/recipes/inkling2/config.py:88-92rejectsis_varloop: true("Inkling 2 preparation requires a fixed loop pass count"), andtests/recipes/test_inkling2_mini.py:87(not opened) asserts that rejection. The alias survives only in closed PR #468 ("Add TML-d24-varloop-research checkpoint and SM120 qualification to Inkling 2 Mini"), which was closed 2026-11-23 as moved tolocal-inference-lab/hyperflare-recipes. A reviewer following the description in this repository cannot build the thing that produced the numbers.- The multi-turn suites cited as
agentic_suite.py(not opened) (nit 1 below) also have no path.
Rule: AGENTS.md:105-107 — "Reproduction commands must identify the required inputs and configuration directly or through a precise reference; placeholder arguments alone do not explain a measurement" — and AGENTS.md:90-96, which requires the scope and material limitations of a measured result. The description does not say which checkpoint or recipe produced the served model, so the measured scope is invisible.
Fix: name the served core exactly as a reviewer could obtain it (checkpoint repository plus revision and a recipe alias that exists on this branch, or state plainly that the core is external to the repository and is not reproducible here), and give the path or a link for the round-trip suite in both cases.
2. should fix — the snapshot-suite command uses a placeholder for its required input
PR description, "Supporting Evidence": "Real tokenizer snapshot suite (FLARE_INKLING2_TEST_SNAPSHOT=... --ignored --test-threads=1 server::request::tml_tests::)".
The repository already records what the variable must contain: helios/src/server/request/tml_tests.rs:9-12 says the tests read tokenizer.json (not opened) from FLARE_INKLING2_TEST_SNAPSHOT, and the pattern in this tree is to name a checkpoint repository and revision (as docs/model-preparation.md does elsewhere). AGENTS.md:105-107 forbids leaving a measurement explained by a placeholder alone.
Two further facts a reviewer needs and the command omits:
- Every one of these tests is
#[ignore](helios/src/server/request/tml_tests.rs:103,:394,:442,:285,:302,:351), so a plaincargo testrun does not execute them; the description's separate "124 passed" unit-test line does not cover them. Stating this explicitly is what AGENTS.md:100-104 asks for ("Explain differences between runs when passed and skipped cases would otherwise appear contradictory"). - The line is not the
cargo testinvocation; the manifest/feature flags appear only in the preceding bullet. Write the whole command once.
Fix: give the full invocation, name the snapshot source (repository + revision) that FLARE_INKLING2_TEST_SNAPSHOT must point at, and note the --ignored requirement in the same sentence.
3. nit — the "124 passed" count has no filter argument
The unit-test bullet lists module prefixes (output::tml::tests::, grammar::tests::, …) and states "124 passed", but the quoted command (cargo test --locked --release --manifest-path helios/Cargo.toml (not opened) --features runtime-core,server) has no filter and would run the whole suite. Either give the filters that produce 124 or state that 124 is the subset of the full run. AGENTS.md:98-104 requires the evidence to connect claim to configuration.
4. nit — contradictory live results are left unexplained
The same section reports "5/5 tool calls (4/5 ['reasoning', 'message', 'function_call']) on preamble-plus-tool prompts". It is not stated what the fifth preamble run looked like, nor whether it is a limitation. AGENTS.md:101-102: "Explain differences between runs when passed and skipped cases would otherwise appear contradictory."
5. nit — the title leads with an internal type name and stacks three changes
"Fail untyped TML model headers at EOS and align TMLv0 content-header and strict-tool grammars with TmlOutput" front-loads TmlOutput, a helios-internal parser type, before any reader has been told what it is, and packs three distinct changes into one line. The writing rules ask for concepts before identifiers and warn against making "implementation shorthand … the vocabulary of the design" (repo-prose SKILL.md:20-25); AGENTS.md:117-123 asks that a component's role be explained before its internal shorthand is used. Fix: lead with the user-visible consequences — malformed TML turns failing instead of silently completing, and TMLv0 grammars accepting unnamed tool headers and a text preamble before tool calls.
Commit messages
6. nit — the commit bodies do not carry the four-part explanation
search_history on the PR head shows three one-line commits:
76c50158 helios/output: fail TML turns that close a nonempty model header without a content kind9b2f2f6a helios/grammar: allow unnamed tool headers and answer-then-tool in TMLv0 grammarsaacbca18 helios/grammar: allow unnamed tool headers and preamble-then-tool in strict TMLv0 grammars
(plus d75bc3a8, a Merge main).
Rule: docs/design-review.md:137-147 requires commit message bodies to follow the four-part scheme in order, and docs/design-review.md:169-174 makes the review of the final commit message body against that scheme a gate. The subjects are accurate but leave rationale, before/after, claimed result and evidence entirely in the PR description; a reader of git log alone cannot reconstruct the argument. This is a nit only because the description carries the content and the repository accepts descriptions of this shape, but the rule names the commit message too, so the trailers/body should be squared up before merge.
Docs and comments the change touches
7. should fix — user-visible TMLv0 wire behaviour changes are not documented
docs/api.md:585-602describes strict tool behaviour by parser and says "With an active strict tool, TMLv0 recognizes only declared tool names, including undertool_choice: "auto"." It never says that a TMLv0 grammar now accepts an unnamed header (<|message_model|><|content_invoke_tool_json|>) — the exact framing the PR makes work — nor that a visible text preamble followed by tool calls is accepted.search_code "content_invoke_tool_json" docs/returns no match, andsearch_code "preamble" docs/api.mdreturns no match, so neither behaviour is stated anywhere in the docs.docs/api.md:443-444says "recognized but incomplete calls at natural completion are errors". The new rule is a distinct, newly enforced condition — a non-empty model header closed on<|end_message|>/<|content_model_end_sampling|>with no content kind and no answer, which now produces a failed turn at EOS — and there is no way for a client author to learn it from the docs.helios/model-contract.md:256-270describes recipient-frame reasoning and tool envelopes and says "Structured-output grammars preserve recipient frames and constrain the user answer while allowing the registered tool recipients", which is the TML/XTML-adjacent contract the change alters; it does not mention unnamed tool headers either.helios/model-contract.mdhas noTML/tmlmention in this region (only:230,XTML).
Rule: AGENTS.md:225 — "Change CLI, API, or configuration behavior → CLI design and the relevant API sections"; the charter's "Standards & Contributions" section states the target is the documented API subset, and repo-prose SKILL.md:26-29 requires stale claims to be replaced rather than left alongside new ones. The PR changes four files, none of them documentation, and the description does not flag the documentation gap under "Unrun Checks and Limitations".
Fix: add a short, precise paragraph to docs/api.md around lines 585-602 covering (a) unnamed versus named TMLv0 tool headers, (b) a text preamble followed by tool calls, and (c) the new EOS failure for a non-empty model header closed without a content kind; update the "incomplete calls" sentence at lines 443-444 to distinguish it. If the author believes docs/api.md is intentionally silent on TMLv0 frame syntax, say so in the description and cite where the contract lives.
8. nit — the new error text and comments read well; one test-name label is unexplained
helios/src/output/tml.rs:400 — "TML model header closed without a content kind and the turn produced no answer or tool call" — is a present-state statement of the condition rather than a narration of the change, which is what the rules ask for, and the doc comments added at helios/src/output/tml.rs:81 (HeaderWithoutContent) and around :332 (call_or_text) describe behaviour, not the patch. No changelog-style narration was introduced anywhere in the diff.
The two new tests, however, carry a stress label that is not a technical property: inkling_stress_untyped_closed_header_must_surface_failure (helios/src/server/request/tml_tests.rs:395) and inkling_stress_custom_grammar_preamble_then_tool (:443). Nothing in helios/src establishes a stress-suite convention, and repo-prose SKILL.md:15-16 warns against lifecycle labels that do not name a property. Small fix: drop stress, or explain in the description what makes these stress tests.
What was checked and could not be settled
- I did not attempt to build or run anything: no
cargo test, no snapshot, no GPU. The correctness of the grammar rewrites and theAnswerStatetransition is for the code lenses; this report only checks what the prose claims against what the tree contains. agentic_suite.py(not opened), cited as "multi-turn Chat/Responses tool round-trip suites (agentic_suite.py(not opened)) passSUITE: PASS(3/3tool calls on every tool case,0failed trials,0server errors)", has no match in the repository (search_code agentic_suite: no results) and no path is given. Under repo-prose SKILL.md:20-21 ("On first reference, give the object's semantic role and … durable identifier: artifact name, path") this needs a path; if the file lives in the externallocal-inference-lab/hyperflare-recipestree, say so. Counted as a nit here because it travels with finding 1.- Whether
TML-d24-varloop-researchis legitimately external (rather than a leftover reference to the closed #468) cannot be determined from this repository; a one-line statement in the description would settle it. Likewise whether the maintainers intenddocs/api.mdto document TMLv0 frame syntax at all — if they do not, finding 7 becomes a nit rather than a should-fix, and the description should say where the contract is recorded instead.