#1 [high] Change: PR #575 rewrites TmlOutput::call to use serde_json RawValue
PR #575 (https://github.com/NVIDIA/hyperflare-inference/pull/575), by fordbmorris, branch pr/tml-output-raw-json-args, head 07955d7, base main, opened 2026-11-28. 3 files, +237/-10.
Core change, helios/src/output/tml.rs (TmlOutput::call, around lines 327-365):
- Before: serde_json::from_str into Value; require object.len()==2 with "name" (str) and "args" (object); emit args.to_string().
- After: deserialize into local struct RawCall<'a> { name: String, #[serde(borrow)] args: &'a serde_json::value::RawValue } with #[serde(deny_unknown_fields)]; require parsed.args.get().starts_with('{'); tool-name membership check against self.tools; optional recipient header equality check; emit args.to_owned() (raw text verbatim).
- Net effect in behavior: args text is now the exact substring from the model output (key order, digits, escapes preserved) instead of a serde Value re-serialization. Unknown/duplicate wrapper keys now fail deserialization => returns None => falls back to visible text (same as prior failure path).
- New unit tests: helios/src/output/tml.rs test call_preserves_raw_json_arguments_including_arbitrary_precision_integers (also asserts duplicate "name" key falls back to visible text); helios/src/grammar/strict.rs test tml_strict_parser_preserves_30_digit_integers (GrammarCompiler + OutputPipeline + strict TextGrammar validator across top level/anyOf/$ref/nested array+object; asserts raw args contains the 30-digit value 5 times).
- tests/server/test_inkling2.py: new live test_strict_tml_tool_calls_and_truncation (~91 lines) covering Chat Completions buffered + streamed, max_tokens=10 truncation, Responses buffered + max_output_tokens=10 truncation.
No description claim found so far that the diff contradicts; description says nothing about needing a serde_json "raw_value" feature (worth checking Cargo features).
#2 [high] Why: strict TMLv0 integer >64-bit caused HTTP 500 'strict tool arguments does not match its grammar'
Per PR #575 body: with ToolParserKind::TmlJson (Inkling 2) + a strict:true tool whose schema has an unbounded {"type":"integer"}, constrained decoding can emit a 30-digit integer (e.g. 123456789012345678901234567890). The old serde_json::Value round-trip (serde_json compiled WITHOUT arbitrary_precision) turned it into a binary64 float rendered as 1.2345678901234568e29; OutputEncoder then re-validated that string against the compiled strict TextGrammar, saw a float where an integer was required, and failed the live request with HTTP 500 "strict tool arguments does not match its grammar".
PR body says this "addresses the strict TMLv0 tool-calling qualification tracked in docs/TODO.txt" (need to verify what docs/TODO.txt actually says).
#3 [high] Related work: #418 (merged) added strict tools incl. TMLv0 grammar but never served a TMLv0 core
Background: strict function tools were added in #418 (merged 2026-11-22, commit 0b09434d, "Constrain strict function-tool arguments in native tool syntax", closes #417). #418's own body states: "No TMLv0 (ToolParserKind::TmlJson) core was served (docs/TODO.txt tracks served TMLv0 qualification)"; TMLv0 was covered only by grammar/fixture tests (strict_wire_grammars_reject_schema_violations_during_generation, tml_json_strict_grammar_rebases_root_ref_and_parses_end_to_end, strict_tool_wires_reach_encoder_only_after_parser_completion). Reviewer yatesdr explicitly accepted "TML: fixtures are enough" but required that docs/TODO.txt carry the unserved check — hence docs/TODO.txt:5-8, the item #575 says it addresses.
#418 also established the precedent #575 leans on: Qwen (chatml.rs) and GLM (argument_tags.rs) strict parsers retain raw JSON tokens via RawArguments / Box<serde_json::value::RawValue> (helios/src/output/tagged.rs:805-860, helper strict_nonstring_raw at :846-860, doc comment "Preserve exact raw JSON tokens (such as >64-bit integers) on strict non-string scalars"), and TextGrammar::validate "accepts ... as well as >20-digit integers (123456789012345678901234567890)". DSML passes source text through (helios/src/output/dsml.rs:152-192).
So #575 extends an existing raw-token strategy to the one parser (TMLv0) that was left out.
Connection: #575's PR-body claim "matching the raw-token preservation already used by the Qwen, GLM, and DeepSeek DSML parsers" is accurate for Qwen/GLM (RawArguments) and DSML (raw text pass-through), but the strict-validator round-trip was the actual gate.
#4 [high] Change: the fix also changes non-strict TMLv0 argument text and tightens duplicate-key acceptance
Verified from the diff (https://github.com/NVIDIA/hyperflare-inference/pull/575): TmlOutput::call in helios/src/output/tml.rs is the parser used for ALL TMLv0 tool calls, strict or not (pipeline.rs:78 routes ToolParserKind::TmlJson to TmlOutput; strict gating happens later in helios/src/server/protocol/encode.rs:517-553). Consequences the description does not spell out (all follow from emitting args.to_owned() instead of args.to_string()):
- Non-strict TMLv0 calls also change: argument text is now the exact generated bytes, so whitespace inside the JSON object, number spellings (e.g. integral floats written as
1e20vs1.0), escape spellings and duplicate keys insideargsreach the client verbatim instead of being normalized by serde. Only >64-bit integer precision was cited as motivation. - Duplicate/unknown keys in the wrapper object were previously ACCEPTED when the duplicates kept
len()==2({"name":"x","name":"x","args":{}}parsed to a 2-key map). Nowdeny_unknown_fields+ struct deserialization rejects them and the body falls back to visible text — a small behavioral tightening in addition to the failure-mode preservation the description describes ("Unknown or duplicate wrapper keys fail deserialization and fall back to visible text, matching prior TMLv0 recovery semantics" — the "duplicate" half of that is new behavior, not prior). argsobject-ness is now checked byargs.get().starts_with('{')on raw text rather than byis_object()on a parsed Value; a body whose args is a JSON object is still accepted, and now so is any object text that serde_json can parse as a RawValue (which must itself be valid JSON, so semantics are close).- Key order preservation claimed in the description is really a property of the strict wire grammar (which emits members in
propertiesdeclaration order, per #418), not of this change: serde_json in this crate already enablespreserve_order(helios/Cargo.toml:52), soValuere-serialization also kept insertion order before. The change makes that order robust to any parser/Value path rather than newly introducing it.
#5 [high] Related work: #457 (open) rewrites the same TmlOutput::call and the same strict TMLv0 grammar
#457 (open, by brandonmmusic-max, opened 2026-11-22, +431/-7) rewrites the SAME function, TmlOutput::call in helios/src/output/tml.rs, and touches helios/src/grammar/strict.rs and helios/src/output/tml.rs — the exact 2 Rust files of #575. On its branch (pr/457) TmlOutput::call is still the OLD serde_json::Value + args.to_string() form (tml.rs:346-374 at pr/457), wrapped by a new call_or_text that sets AnswerState::Emitted. So:
- #575 and #457 are textually overlapping but not semantically competing: #457 does not fix the integer-precision defect (it keeps
args.to_string()), and #575 does not implement #457's AnswerState / EOS failure / grammar rules. - Whichever merges second must resolve a conflict in
TmlOutput::calland in themod testsblock of tml.rs (both add tests at the end of that module). - #457 also touches the strict TMLv0 grammar (
compile_strict_tml,tool_unnamed, preamble-then-tools) that #575's new testtml_strict_parser_preserves_30_digit_integersexercises; #457 changes the envelope shape accepted before the invoke token (unnamed headers), which is exactly what #575's grammar test drives ("audit"header +<|content_invoke_tool_json|>). - #457 still has an open CHANGES_REQUESTED review from the flare-autobot (2026-11-24, no blockers, 5 should-fix + 6 nits), including "the strict-TMLv0 truncation checks from docs/TODO.txt:25-28 neither run nor listed" — the same docs/TODO.txt item #575's live test (
max_tokens/max_output_tokenstruncation) andtests/server/test_inkling2.pyadditions cover.
#6 [high] Related work: #461 documents the same precision boundary; #191 added tml.rs; no user issue filed
- #461 (open, jcartu, +39/-14): documents the SAME numeric-precision boundary #575 fixes in code. docs/api.md:600-603 already states "numeric
enumandconstliterals ... must have magnitude strictly below 2^53 ... pass larger exact identifiers or higher-precision decimals as strings". #461 additionally documents thatminimum/maximum/exclusiveMinimum/exclusiveMaximumround through f64 for integer properties (docs/api.md:601-605 region). Relevance to #575: #575's motivating case is an unbounded{"type":"integer"}property with a 30-digit value, which #461's documented limits do NOT forbid — only bounds/const/enum are restricted — so #575 is closing a real gap that the documentation admits the value space of. overlaps strict.rs but touches only a test there, no conflict with #575's added test at strict.rs:3819-3923. - #191 (open, draft, YouNeedCryDear):
helios/src/output/tml.rswas ADDED by #191 (+476), i.e. #191 is the origin of TmlOutput; it is still draft and blocked on recipe work moved to the hyperflare-recipes repo. Any change to tml.rs lands on top of a file whose only open provenance is a draft PR. - docs/TODO.txt:5-8 is the exact item #575 says it addresses: "Qualify
strict: truefunction tools on a TMLv0 core (ToolParserKind::TmlJson, e.g. Inkling 2) served byflare run. Check Chat Completions and Responses, buffered and streamed, including max_tokens and max_output_tokens truncation. Close when a served TMLv0 core passes those checks and the result is recorded." The entry was added by #418 (its files list includes docs/TODO.txt +5). #575 does NOT edit or tick off docs/TODO.txt. - #304/#305 (merged, original-el8) own the previous Inkling 2 Small NVFP4 TP4 qualification and the concurrency raise; #312 (open, draft, original-el8) modifies tests/server/test_inkling2.py (+13/-8) on branch
inkling2/spark-performance— a different base branch, so direct conflicts with #575's +91 in that file are possible but the branches are not stacked. - No issue anywhere in the local copy reports the >64-bit rounding or the HTTP 500 directly; searching "strict tool arguments does not match its grammar", "integer precision", "TmlOutput arguments rounding", "arbitrary precision" returns only #575 itself. The closest prior report is #39 (closed, GLM argument-tags parser aborts the stream on a type-mismatched argument) and #417 (closed, strict tools rejected outright).
#8 [high] People: first-time contributor (author fordbmorris == commit author 'woooflet'), three same-day PRs, no reviews
- PR author field: fordbmorris; the commit author on the PR head (07955d70) and the "Discord" line read
woooflet. Same person, two handles — worth flagging for review provenance. - GitHub association of the author with the repo: NONE (orientation packet). In the last 180 days: 0 merged, 0 closed, 3 open PRs, all opened 2026-11-28: #577 (roce_proxy ring mailbox window), #576 (pin Helios/RoCE threads on asymmetric topologies), #574 (AOT guard pickling for hyperflare_recipes objects). So #575 is part of a same-day batch of four unrelated PRs from a first-time contributor; none has review yet.
- By contrast the strict-tool work was driven by jcartu (#418, #461) and reviewed by yatesdr (maintainer-rate reviewer who asked for evidence, rerun proofs, and docs). yatesdr's stated bar in #418/#461: unrun live checks must be listed, no claim without a named revision/command, and TML "fixtures are enough ... if the description says no TML core was served" — #575's description does the opposite: it claims a live 4-Spark TP4 qualification.
- Priority contributors named in the charter: @voipmonitor, @original-el8, @lukealonso — the author is none of them.
- No engagement yet: 0 comments, 0 reviews, 0 reactions (read_item Discussion: 0), and no flare-autobot case file or review on #575 (unlike #457/#461 which both got one within ~2 days).
#9 [high] Claims and evidence: mechanism and error string verified; test counts and 35/35 live run unverifiable from the repo
Verified:
- helios/Cargo.toml:52 already enables serde_json features ["preserve_order", "float_roundtrip", "raw_value"] — so
RawValueneeds no dependency change, and "preserve_order" means the OLDValuepath also kept key order. The description's "preserves ... key order" is therefore not new behavior from this diff. - The error string is real and originates exactly where the description says: helios/src/grammar.rs:653
format!("{subject} does not match its grammar")with subject "strict tool arguments" for the "strict tool JSON schema" grammar (grammar.rs:632-636). It is raised from OutputEncoder at helios/src/server/protocol/encode.rs:539-541 and surfaced as HTTP 500 by helios/src/server/http.rs:278 (StatusCode::INTERNAL_SERVER_ERROR) — i.e. a server fault, matching the description's "failed the live request with HTTP 500". - Mechanism of the old bug is plausible and matches the code that was replaced:
args.to_string()re-serialized through serde_json without arbitrary_precision (no "arbitrary_precision" feature anywhere in the repo — search returns only #575's test name), so a >u64 integer became an f64. - Truncation semantics claimed by the new Python test ("unfinished strict calls cleanly omitted") is real code, not new: encode.rs:532-553 drops a pending strict call unless ToolEnd arrives, and docs/api.md:624-628 documents it. So the truncation assertions in the new Python test exercise pre-existing behavior, not this diff.
- Unverified / not reproducible from the repo: the description's test counts (7/7 output::tml, 28/28 grammar::strict, 2/2 protocol::tests::strict, 5/5 server::request::tml_tests), the "cargo test ... --features runtime-core,server" run on ARM64 GB10, and the "35/35 live 4-Spark TP4 qualification ... and invalid strict schema HTTP 400 admission rejections (6/6)". None of those numbers appear in the diff, no log is attached, and the 35-case harness is not in the repo (tests/server/test_inkling2.py as committed contains exactly one new test with 6 assertions groups covering Chat buffered, Chat streamed, Chat truncation, Responses buffered, Responses truncation — not 35 checks, and nothing about $ref recursion, unicode, parallel enforcement, multi-turn roundtrips, mixed strict/non-strict, or 6 HTTP 400 admission rejections).
- Reachable via CI: the new Rust tests ARE run by .github/workflows/native-serving.yml:63 (
cargo test ... --features runtime-core,serveron Linux and Windows). The new Python test is NOT: no workflow runs pytest at all (search of .github/workflows for "pytest" or "tests/server" returns nothing), and it is skipif-gated on FLARE_RUN_CUDA_TESTS=1 + FLARE_INKLING2_TEST_URL (tests/server/test_inkling2.py:23-26), so it needs a live 4×GB10 TP4 service. - That Python test also depends on calling
service(..., tools=..., tool_choice="required")whereserviceis the fixture, which asserts the model reports ≥8 concurrency, 4096/8192 prefill chunk, and image modality (lines 29-38) — a stricter environment requirement than a plain server.
#11 [high] Reach: all TMLv0 cores; Anthropic Messages tool_use.input still re-parses through serde
- Who is affected: every TMLv0 core (
ToolParserKind::TmlJson) served byflare run— Inkling 2 Small/Mini in this repo, and Inkling-Small via #191. No model core re-export, Protobuf field, or recipe change is needed (PR body; consistent with the diff touching no proto or recipe files). - Client-visible change beyond the fix: for non-strict TMLv0 calls,
argumentsstrings in Chat Completions / Responses / Anthropictool_use.inputare now the exact generated text (whitespace, escapes, number spellings). Responses and Anthropic re-parse to values (encode.rs:300, :334, :408) so those are unaffected semantically; Chat Completions passes the raw string to the client (encode.rs / server/output.rs Accumulator stores text and validates it parses to an object at server/output.rs:113-121). A client that diffs argument strings between releases would see differences. - Grr: helios/src/server/output.rs:113-121 still does
serde_json::from_str::<Value>(&call.arguments)merely to check it is an object — the ToolArguments text itself is not re-serialized, so no precision loss there (verified). - Anthropic Messages protocol:
anthropic_block(encode.rs:328-335) doesserde_json::from_str::<Value>(arguments)fortool_use.input, so a 30-digit integer reaching a Messages client would still round through serde at that point. #575 does not fix that path; whether Messages + TMLv0 strict is even reachable is unclear (docs/api.md:634 says strict on Messages tools returns 400). Worth flagging as a residual limit not mentioned in the description. - Operator impact: none for config/defaults; no new flags, no new dependency feature (Cargo.toml:52 already had
raw_value), no perf claim. The only runtime cost is that RawValue borrows instead of building a Value — no measurable cost claimed or expected. - Deployment: fix ships with the
flarebinary; existing exported cores gain it on upgrade (PR body). Tool: the parser bound is unchanged (1 MiB header / tool-call bounds at tml.rs:266-292) so no resource-lifetime change. - Testing infra reach: the only automated coverage that will actually run in CI is the two Rust unit tests; the new
tests/server/test_inkling2.py::test_strict_tml_tool_calls_and_truncationrequires a live 4×GB10 TP4 Inkling 2 Small NVFP4 service (skipif, lines 23-26) and no CI workflow runs pytest.
#12 [high] Process: open and unedited since opening, no CI checks, no reviews, no DCO trailer visible
- State: open, "ready for review" per orientation packet; opened 2026-11-28 19:22 and last updated the same minute — zero edits since opening. Age when reviewed: under a day.
- CI: "no checks" on head 07955d70 (orientation packet). The repo does have a Native serving workflow that would run
cargo test --locked --release --manifest-path helios/Cargo.toml --features runtime-core,serveron ubuntu-24.04 and windows-2022 (.github/workflows/native-serving.yml:13-68), so the absence of checks means the workflow did not trigger (the PR describes results from ARM64 GB10, not from the two CI targets — so x86_64 Linux and Windows behavior of the new&'a RawValueborrow is untested in CI). - Review state: no reviews, no comments, no labels (read_item; labels: none). No flare-autobot intake/review has been posted, whereas #457 and #461 both received one within 2 days of opening; #457's review was CHANGES_REQUESTED.
- Process signals a reviewer will weigh: single commit 07955d70 dated 2026-11-26 but PR opened 2026-11-28; PR body cites the base as 167f22c "rebased cleanly"; description includes the four required sections (AGENTS.md:72-113); no
Signed-off-byvisible in the metadata — DCO sign-off was an explicit merge gate that jcartu had to satisfy on #418 (yatesdr's review on 2026-11-21: "The head is still a8ba868e. We will review the revision ... with Signed-off-by on every commit"), so it is plausibly also expected here (not verified from AGENTS.md, which says nothing about DCO). - Description self-describes as addressing docs/TODO.txt:5-8, but does not edit that file, so the TODO item stays open until a maintainer ticks it.
- Same-day batch: #574, #575, #576, #577 all opened 2026-11-28 within minutes of each other by the same author, none reviewed — this affects reviewer load/serialization.
#16 [high] Research summary
Case file for PR #575 is assembled: 15 scratchpad entries covering all eight angles, each with file:line or item-number citations.
The change (verified from the diff). TmlOutput::call in helios/src/output/tml.rs stops round-tripping the {"name","args"} wrapper through serde_json::Value and instead deserializes a local #[serde(deny_unknown_fields)] struct RawCall<'a> { name: String, #[serde(borrow)] args: &'a RawValue }, checking args.get().starts_with('{') and emitting args.to_owned() verbatim. 3 files, +237/−10: tml.rs (+41/−10), strict.rs (+105, a test only), tests/server/test_inkling2.py (+91, one new live test). serde_json's raw_value feature is already enabled at helios/Cargo.toml:52, so no dependency change. The error string and 500 path in the description check out exactly (grammar.rs:653 → encode.rs:539-541 → http.rs:278 (not opened)).
What a reader could not learn from the description. (1) The change also alters non-strict TMLv0 calls — argument bytes are no longer normalized by serde — and it newly rejects duplicate wrapper keys that previously parsed ({"name":"x","name":"x","args":{}}). (2) Key-order preservation is not new: preserve_order was already on. (3) The "35/35 live qualification", the Rust test counts, and the HTTP 400 admission cases are not reproducible from the repo — the committed Python test holds one test with five assertion groups, and no CI workflow runs pytest at all, so only the two Rust tests will ever execute automatically. (4) The Anthropic Messages path still re-parses arguments through serde_json::Value (encode.rs:328-335), and the prompt-side TML renderer re-serializes arguments when echoing a prior turn (frontend/tml.rs:148-174) — neither is covered. (5) docs/TODO.txt:5-8, the item the PR claims to address, is not edited.
Related work. #418 (merged 6 days earlier) created both the gap (TMLv0 strict grammars, never served) and the Qwen/GLM raw-token precedent this PR extends. #457 (open) rewrites the same function and the same strict TMLv0 grammar on its own branch, still using args.to_string() — overlapping, conflicting, neither superseding. #461 documents the adjacent numeric-precision boundary but leaves unbounded integer properties, #575's case, unrestricted. #191 (draft) first added tml.rs; #312/#304/#305 share the Inkling 2 test file. No issue anywhere reports this defect.
Standing and process. First-time contributor (association NONE; author fordbmorris, commit author "woooflet"), four unrelated PRs opened the same day, none reviewed. #575 has zero comments, reviews or reactions and no CI checks on its head, whereas #457 and #461 both drew CHANGES_REQUESTED autobot reviews within two days. Charter fit is good (root-cause fix, no per-model branch, four-part description); the tension is that qualifications live only in the PR body, which AGENTS.md:57-60/58 directs into docs.
#7 [medium] Recent activity: strict.rs is 6 days old and tml.rs last changed 2026-11-19 by Luke Alonso
- helios/src/output/tml.rs history (last commits): dc0d40e0 "Harden Helios HTTP ingress, frontend bounds, RoCE/TP lifecycle, and crate boundaries" (Luke Alonso, 2026-11-19); 8628b7c5 "Prepare Inkling 2 Small NVFP4 for native TP4 serving" (Luke Alonso, 2026-11-14); and #575's 07955d70 (2026-11-26, author "woooflet", see People).
- helios/src/grammar/strict.rs history: only two commits — 0b09434d (#418, Joshua Cartu, 2026-11-22) and #575's 07955d70. So the strict-grammar file is 6 days old when #575 lands on it, and #575 is the second change ever to it.
- helios/src in the last 60 days is overwhelmingly Luke Alonso (212 commits), Martin Vit (51), yatesdr (47); tests/server is Luke Alonso (32), yatesdr (4), derek (3). The Inkling 2 serving tests were written by original-el8 (#304/#305) and Nero (#433) / Jason Cook (1b9a1082).
- No commit on main since #575 branched (167f22c) touches any of #575's three files (orientation packet), and PR body says it "rebased cleanly onto 167f22c8".
- 17bb3c4a (Luke Alonso, 2026-11-22) "Remove extracted hyperflare_recipes, qualification drivers, and model tests from core Flare" — the split that moved recipe/model work out of this repo; #191's triage comment (2026-11-24) reflects it. #575 stays inside the runtime repo, which is consistent with that split.
#10 [medium] Project fit: aligns with charter goals and evidence rules; docs/TODO.txt item left unedited
- Charter (read_charter): goals include the documented Chat Completions / Responses APIs and "JSON Schema for structured outputs"; "Standards" says the project targets "the documented subset of the OpenAI API ... and JSON Schema for structured outputs". A strict function tool that must produce schema-valid integer arguments is squarely in that target, and a served HTTP 500 on such a request is a defect, not a feature request.
- Charter "How We Work": "Bring real evidence. ... Bug fixes need to address the root cause; don't just swallow, skip, or retry an unexplained error (#397)". #575's approach (stop normalizing the JSON text, emit it verbatim) addresses the root cause rather than catching the validator error — a fit.
- Charter: "Keep the runtime small and model-agnostic. Helios ... shouldn't accumulate per-model branches (#267, #334)". #575 adds no per-model branch or flag; it changes one generic parser path used by every TMLv0 core. Fit.
- Charter: "Be explicit and pin everything... Benchmarks, tests, or feature flags don't override architectural rules" and "PR descriptions: Expect four parts: why, what changed, claimed result, evidence" — #575 has exactly the four parts (Why / What Changed / Claimed Benefit / Supporting Evidence), as AGENTS.md:72-113 requires.
- Tension: AGENTS.md:57-60 requires qualifications to state "what is implemented, the hardware and configurations on which it is qualified, and what is not qualified", and AGENTS.md:58 says unresolved defects/unrun checks go in docs/TODO.txt. #575 records its scope only in the PR body ("Qualified live on Inkling 2 Small NVFP4 ... non-TML tool parsers are untouched") and does not touch docs/TODO.txt (the item it claims to address, TODO.txt:5-8, stays open and unedited) nor docs/api.md. #418/#457 by contrast were both required by review to update docs/api.md and docs/TODO.txt. Since docs/api.md:443 documents argument text but nothing about exact numeric preservation, a reader of the docs learns nothing new from this change.
- AGENTS.md:230 lists "Change CLI, API, or configuration behavior → docs/api.md" among required reviews; #575 changes no HTTP schema, so this is arguably not triggered — but it does change client-visible argument bytes for non-strict TMLv0 calls.
- No docs claim that TMLv0 argument text is normalized, so nothing in docs/ is contradicted. Nothing in docs/ mentions >64-bit argument preservation for TMLv0 either (docs/api.md:600-603 only restricts const/enum and bounds).
#13 [medium] Change: prompt-side TML renderer still re-serializes arguments (frontend/tml.rs:148-174), untested for big ints
Verified detail worth flagging: the TMLv0 reference renderer path re-serializes tool arguments when it replays a previous assistant turn into the prompt — helios/src/frontend/tml.rs:148-174 arguments() parses function["arguments"] through serde_json::from_str::<Json> and rewrites floats with ryu (write_json, :71-117), and its test at :567-573 shows normalization (1.50 → 1.5). So even after #575, a 30-digit integer argument survives the output path but a client echoing that call back in a later turn goes through this encode path; the doc comment at :73 says "call arguments keep request key order and spell floats as 1e20". Whether a >u64 integer survives that round trip is not covered by any test in the diff and not mentioned in the description. This matters for multi-turn tool use, which #575's description claims to validate ("multi-turn tool roundtrips") — but that claim is a live test, not a repository test.
Also: the strict wire grammar emits {"name": ..., "args": ...} (strict.rs:873-892 embed_schema_in_tml_wrapper), so the raw text #575 now forwards is the exact text the grammar produced — this is what makes the OutputEncoder validation pass (it validates the same bytes it produced), which is the real correctness argument for the change.
#14 [medium] Community: no comments, reviews or reactions; demand visible only indirectly
- Discussion on #575: 0 comments, 0 reviews, 0 reactions (read_item "Discussion (0)"). No flare-autobot case file or full review posted, unlike #457 (case file 2026-11-24, CHANGES_REQUESTED review) and #461 (case file 2026-11-24, CHANGES_REQUESTED review with 4 should-fix + 9 nits). So #575 has drawn no attention at all so far.
- Interest elsewhere in the same defect: no issue, no third-party comment found in the local copy of the last 30 days of PRs/issues mentioning >64-bit integers, TMLv0 precision, or the strict-grammar HTTP 500. The nearest expressions of demand are:
- #417 (closed): "several common clients send
strict: trueby default, so they cannot use Flare at all" (pydantic-ai), which motivated strict support generally. - docs/TODO.txt:5-8, the tracked, still-open qualification item.
- #461 (open): documents that precision-limited numeric constructs are a known client-facing limit.
- #417 (closed): "several common clients send
- The claim "matching the raw-token preservation already used by the Qwen, GLM, and DeepSeek DSML parsers" refers to work from #418 (merged 6 days earlier) — so this is a follow-on polish PR to a very recently merged feature, not a response to user demand.
- PR body signs off with "Discord: woooflet", i.e. the author is reachable on the community Discord; no thread referenced.
#17 [medium] Why: the demand timeline (#417 11-20 → #418 merged 11-22 + TODO entry → #575 11-28)
Timeline of the defect and the demand for it (dates from read_item on each item):
- 2026-11-20: #417 filed (Napuh) — strict tools rejected outright with HTTP 400; pydantic-ai and other clients unusable. yatesdr: support is in scope, "accept-and-ignore won't be accepted, even behind a flag"; a PR needs the constraint, a test that a schema-violating argument cannot be produced, a served check with a strict client, and the decode cost measured.
- 2026-11-22: #418 merged (0b09434d) — strict tools for DSML/Qwen/GLM/TMLv0. Its body states no TMLv0 core was served; reviewer yatesdr accepted fixture-only TML coverage on condition that the unserved check be recorded. #418 therefore added docs/TODO.txt:5-8 ("Qualify
strict: truefunction tools on a TMLv0 core ... Close when a served TMLv0 core passes those checks and the result is recorded"). - 2026-11-22..24: #457 (open) works the same TmlOutput/strict.rs surface on the TMLv0 grammar side; #461 (open) documents the 2^53 numeric-boundary limit.
- 2026-11-26: #575's only commit 07955d70 authored.
- 2026-11-28: #575 opened (together with #574/#576/#577), unedited since, no CI, no reviews.
So the gap was acknowledged as open on 2026-11-22 and addressed (in code, if not in docs/TODO.txt) six days later — short-lived, and driven by a tracked TODO item rather than by a user report. Nothing in the local copy suggests anyone hit the >64-bit HTTP 500 in the wild: the case arises only where a strict schema declares an unbounded
integer, which #461's documented limits do not forbid.
#18 [medium] Coverage: packet leads followed vs. dismissed as not relevant
Orientation-packet leads, each followed or dismissed:
- Followed and recorded: #457 (entry 5 — same function, conflicts), #461 (entry 6 — same precision boundary), #418 (entry 3 — origin of the gap and of the raw-token precedent), #312 (entry 6 — same Python test file, different base branch
inkling2/spark-performance), #304/#305 (entry 6 — prior Inkling 2 TP4 qualification and concurrency raise), #191 (entry 6 — added helios/src/output/tml.rs, still draft), #574/#576/#577 (entry 8 — same author, same day, unrelated), recent commits in helios/src and tests/server (entry 7). - Checked and not relevant: #433 (merged; added Inkling 2 Mini tests, no TmlOutput/strict-grammar code), #428 (closed; Inkling 2 Mini preparation superseded by #433), #281, #193, #133, #228, #39 — matched only on incidental names (
control_tokens,reasoning_effort,finish_reason) or on the generic "argument doesn't match its declared type" theme (#39, GLM argument tags, closed; different parser and different defect — it aborts the stream rather than rounding). None constrains this change. - Charter read in full (entry 10); docs/TODO.txt:5-8 read in full (entry 6); docs/api.md strict-tool section (lines 588-646) read (entries 6, 11); AGENTS.md PR-description and TODO rules (lines 40-140, 512-517) read (entries 10, 12).
- Code read for the change's blast radius: tml.rs (call, call_or_text, finish, tests), pipeline.rs routing (ToolParserKind::TmlJson → TmlOutput), strict.rs:873-892
embed_schema_in_tml_wrapperand :1533+compile_strict_tml, encode.rs:517-553 strict buffering/validation, server/output.rs:113-121 object check, grammar.rs:626-657 TextGrammar::validate, frontend/tml.rs:148-174 prompt-side arguments. All reflected in entries 1, 4, 9, 11, 13, 15. Nothing from the packet is left unexplored.
#15 [low] Change: the starts_with('{') object check is untested for spaced "args": {…} payloads
Small implementation notes a reviewer may probe (not a code review, just what the diff implies):
args.get().starts_with('{')replacesvalue.is_object(). If a generated payload wrote"args": {…}with whitespace after the colon, whether this passes depends on whetherserde_json::value::RawValue'sget()includes the leading whitespace (serde's borrowed RawValue does include surrounding whitespace captured by the raw deserializer in some paths). The diff adds no test for whitespace between the wrapper key and the object, althoughdocs/api.md:443says "Tool arguments are JSON objects" without a spelling constraint, and #418's DSML work explicitly tolerates "both DSML's spaced JSON and compact JSON" in TextGrammar::validate. A spaced-args TML payload can only arise from non-strict generation (the strict wire grammar emits compact), so the practical risk is confined to the non-strict fallback path.name: Stringnow rejects a non-string name through serde rather thanas_str(); same outcome (fall back to visible text), covered by the existing test case{"name":7,"args":{}}at tml.rs:557.- The new struct is declared inside the function, so no public API changes;
#[serde(borrow)]keeps zero-copy borrowing frombody.