Opened by a workflow run, Nov 28, 2026 2:23 PM EST.
screen malicious
Screen Result: All Clear
Evidence: PR #575 ("Preserve raw JSON tool arguments in TmlOutput for strict TMLv0 calls", head 07955d7, 3 files, +237/−10, single commit 07955d70) is a narrow Rust correctness fix with no prompt-injection content, no hidden instructions, and no unwanted agentic behavior. Nothing in the description, the diff, or the (empty) discussion attempts to instruct an agent, exfiltrate data, or execute commands.
helios/src/output/tml.rs:TmlOutput::callreplaces theserde_json::Valueround-trip with a private#[serde(deny_unknown_fields)] struct RawCall<'a> { name: String, #[serde(borrow)] args: &'a RawValue }, checksargs.starts_with('{'), validates the tool name and recipient header, and emitsargs.to_owned()verbatim — plus one unit test covering 30-digit integers, key order, and duplicate-key rejection ({"name":"lookup","name":"lookup","args":{}}falls back to visible text).helios/src/grammar/strict.rs: change is entirely inside the existingmod tests(newtml_strict_parser_preserves_30_digit_integers); pure in-memorybyte_tokenizer_with(&CONTROL_MARKERS)+ GrammarCompiler/OutputPipeline, no I/O, env vars, or downloads.tests/server/test_inkling2.py: newtest_strict_tml_tool_calls_and_truncationonly talks toos.environ["FLARE_INKLING2_TEST_URL"]viaurllib.request, matching the file's existing helpers; nosubprocess,os.system,eval/exec, base64, curl/wget, sockets, or third-party hosts.- No CI/workflow, Dockerfile, Cargo.toml (not opened)/lockfile, hook, or dependency changes, so no privilege-escalation or supply-chain surface. Repo-wide searches for injection phrasing ("ignore previous", "system prompt", "you are an AI", "do not tell", exfiltration, etc.) returned only legitimate docs/source; obfuscation/zero-width/HTML-comment tricks are absent from the diff.
pr_commentsreturns "No comments": no reviews, no inline comments, so no injected instructions via discussion.
Open questions / non-security notes: the commit author and Discord handle read "woooflet" while the GitHub account is fordbmorris (NONE association, first-time contributor, one other open PR #574); the description's "Supporting Evidence" (7/7, 28/28 cargo tests, 35/35 live TP4 qualification) cannot be verified from the diff, and no CI checks were reported on the head commit — reviewer skepticism warranted, but neither is an attack indicator.
Full report · Notes decide malicious: all_clear (100%): No malicious content found
explore
Author: fordbmorris (first-time contributor, GitHub association NONE; commit author and Discord handle "woooflet")
Motivation: With a strict TMLv0 tool whose schema allows an unbounded integer, constrained decoding can emit a 30-digit number, and the parser's serde round-trip turned it into a float, so the strict validator rejected it and the request failed with HTTP 500. The patch forwards the model's raw JSON argument text instead of re-serializing it.
Scale: +237 / −10 lines in 3 files
Proposal:
TmlOutput::calldeserializes the{"name","args"}wrapper into a local#[serde(deny_unknown_fields)] struct RawCall<'a> { name: String, #[serde(borrow)] args: &'a RawValue }and emitsargs.to_owned()verbatim instead ofargs.to_string().- Guards become
args.get().starts_with('{'), tool-name membership, and optional recipient-header equality; failures fall back to visible text. - Adds Rust test
call_preserves_raw_json_arguments_including_arbitrary_precision_integers(plus duplicate-key rejection). - Adds Rust test
tml_strict_parser_preserves_30_digit_integersoverGrammarCompiler+OutputPipeline+TextGrammar. - Adds live
tests/server/test_inkling2.py::test_strict_tml_tool_calls_and_truncation(Chat and Responses, buffered/streamed,max_tokens/max_output_tokens). Touches: - helios/src/output/tml.rs — the TMLv0 tool-call parser shared by every TMLv0 core, strict and non-strict.
- helios/src/grammar/strict.rs — strict wire grammar tests only, no production change.
- tests/server/test_inkling2.py — manual live qualification, skipped without a 4×GB10 TP4 service. Related items:
- #418 Add strict function-tool schemas for DSML, Qwen, GLM and TML parsers (merged): created the gap (no served TMLv0 check) and the raw-token precedent this extends.
- #457 Fail untyped TML model headers at EOS and align TMLv0 content-header and strict-tool grammars (open): rewrites the same
TmlOutput::calland same strict grammar; conflicts, does not fix this bug. - #461 Document strict tool selection and numeric range precision (open): documents the adjacent precision limit but leaves unbounded
integerunrestricted. - #191 (open, draft): originally added helios/src/output/tml.rs.
- #312 Shorten Inkling 2 prefill and drafting rounds (open): shares tests/server/test_inkling2.py on a different base branch.
Link: https://github.com/NVIDIA/hyperflare-inference/pull/575
Autobot comments: Undeclared reach:
TmlOutput::callserves non-strict TMLv0 calls too, so argument whitespace, number and escape spellings now reach clients unnormalized; duplicate wrapper keys that previously parsed now fall back to visible text ("matching prior semantics" is not accurate for the duplicate half). "Preserves key order" is not new —preserve_orderwas already on at helios/Cargo.toml:52 (as wasraw_value, so no dependency change). The "35/35 live" run, the Rust test counts and the "6/6" HTTP 400 cases are not reproducible: the harness is not in the repo, the committed Python test has ~5 assertion groups, and no CI workflow runs pytest, so only the two Rust tests ever run automatically; CI did not trigger on the head commit at all. docs/TODO.txt:5-8, the item the PR says it addresses, is left unedited, contrary to AGENTS.md:57-60. Two residual re-serialization paths remain unfixed and undisclosed: Anthropictool_use.input(encode.rs:328-335) and the prompt-side TML renderer (frontend/tml.rs:148-174). First-time contributor with four unreviewed same-day PRs; zero comments, reviews or reactions, no autobot case file.
Value Proposition
Verdict: worth merging — with four small changes (one of them a merge blocker)
This is a genuine root-cause bug fix at the right layer, in the layer that owns the wire bytes, with a tiny footprint and no flags, no per-model branch, and no core-format change. It closes a maintainer-tracked roadmap item (docs/TODO.txt:5-8). It needs a DCO sign-off before merge, and three description/doc/tracking corrections.
Why the change is the right one (charter: "reproducible bug", "root cause", "smallest footprint")
The defect is real and the diagnosis is correct. Before this PR TmlOutput::call parsed the TMLv0 invocation body into serde_json::Value, then re-serialized it (object.len() != 2 / args.to_string(), old helios/src/output/tml.rs:329-348). serde_json is built with preserve_order, float_roundtrip, raw_value but not arbitrary_precision (helios/Cargo.toml:52), so a 30-digit integer round-trips through Value::Number as binary64 (1.2345678901234568e29). OutputEncoder holds every strict call until it completes, then validates the buffered argument text against the TextGrammar compiled at admission (helios/src/server/protocol/encode.rs:517-553, validator at :539-541); the grammar emits an integer, the parser hands it back as a float, and helios/src/grammar.rs:653 fails the request with strict tool arguments does not match its grammar → HTTP 500. That is exactly the failure the PR describes, on exactly that path — this is not a symptom being swallowed, and it is not fixed by retrying or by weakening validation.
It fixes the problem where the project already fixes it. The Qwen function-tag and GLM argument-tag parsers already keep raw JSON tokens for strict non-string scalars through RawArguments / strict_nonstring_raw (helios/src/output/tagged.rs:805-859), and #418 added a 30-digit test for them (helios/src/grammar/strict.rs:3723-3817). TMLv0 was simply the one parser left behind, which is why #418 had to leave docs/TODO.txt:5-8 open. This PR brings TMLv0 to parity rather than inventing a new mechanism, so the "solve the right problem in the right place" and "no per-model special cases" rules are satisfied: rml.rs (not opened) becomes #[serde(deny_unknown_fields)] RawCall { name: String, #[serde(borrow)] args: &'a RawValue }, gate on args.get().starts_with('{') (helios/src/output/tml.rs:329-363), emit args.to_owned() verbatim (:359). raw_value is already an enabled feature, so there is no dependency change — which also matters given the project's "pin everything" rule.
Who benefits, how much
Anyone serving a TMLv0 core (Inkling 2 Small / Mini NVFP4, the recipes named at docs/model-preparation.md:324 (not opened)) through OpenAI Chat Completions or Responses with strict: true function tools, and any agent client that passes exact identifiers (audit IDs, hashes-as-integers, snowflakes) rather than strings. The failure mode being removed is a hard HTTP 500 on a live request, so the benefit is qualitative but high: strict TMLv0 goes from "500 on a legal schema" to "works". Client-visible value is real but narrow: one model family, one strict-tool feature, and docs/api.md:588-605 already advertises TMLv0 as a supported strict parser, so today the docs promise something that breaks. That pre-existing doc/behaviour gap is the strongest argument for merging.
Cost
- Complexity: ~+41/−10 in
tml.rs, ~+105 of tests instrict.rs, ~+91 lines of a skipped-by-default Python qualification test. No new modules, traits, flags, config, or extension points. Net effect is less code on the hot path: one borrow-based wrapper parse replaces a fullValuetree construction plus re-serialization. - Performance: strictly cheaper per TMLv0 call (no intermediate
Value, no allocation of the argument tree;&RawValueborrows the slice). No effect on decode, scheduling, MTP width, MTP/prefix cache, or any GPU path. - Maintenance: negligible; one struct and one byte check, both idiomatic serde_json raw-value usage.
- Risk: low and well-contained to TMLv0.
argsobject-ness is now checked by a leading{byte instead ofis_object()— equivalent for well-formed JSON, and serde still validates the whole body's syntax, so malformed payloads still fall back to visible text. All recovery paths are asserted:strict.rs:3893-3925runs the realGrammarCompiler+OutputPipelinewire throughTextGrammar::validateacross top-level,anyOf,$ref, and nested array/object 30-digit integers;tml.rs:607-629covers the raw-bytes case and duplicate-key rejection. ExistingFrame/ToolBody/truncation tests (tml.rs:525-573) still exercise the fallback semantics.
Simpler alternative? No.
The only alternatives are worse: (a) turn on arbitrary_precision in serde_json — a global change to Value semantics across the whole runtime, requiring a dependency-feature change and re-auditing every Value consumer, squarely against "keep the runtime small"; (b) re-slice the original body string in TmlOutput — hand-rolled string surgery in place of a library primitive; (c) validate the parsed Value instead of the emitted text in OutputEncoder — that is what the client receives, and it would either weaken the check or drop the guarantee that the client sees the validated bytes. The chosen fix is the smallest correct one and matches existing precedent.
Changes to request before merge
- Merge blocker — DCO sign-off is missing.
CONTRIBUTING.md:9-11requiresSigned-off-by:on every commit ("Any contribution which contains commits that are not Signed-Off will not be accepted"). The head commit07955d702ccarriesDesign-Signed-Off-By: Antigravity (gemini-3.1-pro); design-review=eb2fandDiscord: woooflet, but noSigned-off-by:trailer. Ask forgit commit -sand a force-push. - Close the tracked item.
AGENTS.md(Task tracking) says to "update or remove entries as work is completed", anddocs/TODO.txt:5-8says "Close when a served TMLv0 core passes those checks and the result is recorded." The PR claims to address that item but does not touchdocs/TODO.txt. Require the entry be updated/removed with the recorded result in the same PR, otherwise the roadmap silently keeps a stale open item. - Correct one description claim. The description says unknown and duplicate wrapper keys "fail deserialization and fall back to visible text, matching prior TMLv0 recovery semantics." Unknown keys did previously fail (
object.len() != 2), but duplicate keys did not:Valuecollapses them, so{"name":"lookup","name":"lookup","args":{}}used to be accepted as a call. The new behaviour is stricter and, I think, better — under a strict grammar duplicate keys cannot be generated, so only prose or unconstrained output is affected — but it is a behaviour change, not a preserved semantic. Say so explicitly, and add the same statement for the other client-visible change: for non-strict TMLv0 calls the argument text is no longer normalized by aValueround-trip, so number spellings and any whitespace the model emitted now reach the client verbatim (the strict grammar emits compact JSON, so strict calls are unaffected). Both facts are correct-as-implemented, they are just not what the description currently says. - Tighten the evidence and the served test. The
35/35live result has no command, core ID, or harness reference;AGENTS.mdrequires reproduction commands to identify required inputs and configuration. The re-runnable part (tests/server/test_inkling2.py:121-209) is good and already fills the "no TMLv0 core was served" gap that#418had to disclose — so cite it as the harness and name the core/deployment ID behind the35/35. Also note that this one Python test bundles about eight model-behaviour assertions (including a 30-digit literal reproduction and twomax_tokens=10truncation cases); if it proves flaky on hardware, splitting the truncation cases out is the natural follow-up, since a model output variance would otherwise fail the whole strict-TMLv0 result.
Optional, not required: docs/api.md:588-633 describes strict TMLv0 support and buffering but says nothing about argument text being passed through verbatim; one sentence would make the new non-normalizing behaviour part of the documented contract rather than an implementation detail.
Summary
Merge it. It is a small, correctly-placed latent fix that turns a documented-but-broken strict path (docs/api.md:588-605) into a working one for the Inkling 2 recipes, removes an HTTP 500, adds net-negative work to the parse path, and closes a maintainer roadmap item — the exact profile of change AGENTS.md says gets merged. What it does not yet have is a DCO sign-off, a closed TODO entry, an accurate statement of the two behaviour changes it introduces, and evidence concrete enough to reproduce the served claim.
Full report Decide Value: yes (100%): This change is worth reviewing: it provides value to the project in line with its charter.
Architecture
Verdict: should-fix issues only Blocking:
- None. Should fix:
- docs/TODO.txt:5-8: the strict-TMLv0 qualification entry the PR body says it "addresses" is left open, contrary to AGENTS.md "Task tracking" ("Update or remove entries as work is completed"); the reported 35/35 live run is exactly the recording the entry asks for.
Nits: 2 (deny_unknown_fields also rejects duplicate wrapper keys that the old
object.len() == 2path executed, untested for duplicateargs, undocumented in docs/api.md; and emitted args aretrim()-ed, so "verbatim"/"exact JSON argument text" is slightly overstated). Link: https://github.com/NVIDIA/hyperflare-inference/pull/575
Simplicity
Verdict: should-fix issues only
Blocking:
- None.
Should fix:
- helios/src/output/tml.rs:329-363: "emits args verbatim" is false (line 339 trims), and "matching prior TMLv0 recovery semantics" is false — the old
object.len() != 2ran on aValuemap that collapsed duplicate keys, so{"name":..,"name":..,"args":..}was accepted before and is now rejected; name the tightening and document it near docs/api.md:604-605.
Nits: 5 — strict.rs:3828-3847 (20-line schema byte-identical to 3727-3746, hoist a helper); strict.rs:3909-3921 (matches(big).count()==5 should be assert_eq!(raw_args, args), shorter and pins order); strict.rs:3820-3907 (rebuilds the harness of 2802-2930; extract a setup helper, ~60 of 105 added lines go); tml.rs:619-628 (duplicate-key case only restates serde's derive; append the body to the loop at 553-562, delete 10 lines); tests/server/test_inkling2.py:121-209 (one 90-line test for five behaviours plus three hand-rolled urllib requests to dodge the line-63 finish_reason assert; split + parametrise, and assert big_id == int(big) rather than a digit substring at 139/152/192).
Link: https://github.com/NVIDIA/hyperflare-inference/pull/575
Conventions
Verdict: should-fix issues only
Blocking:
- None.
Should fix:
- helios/src/grammar/strict.rs:3819-3922: the new
tml_strict_parser_preserves_30_digit_integersre-creates the schema, validator, config, plan andcount==5assertion of the already dialect-parameterizedqwen_and_glm_strict_parsers_preserve_30_digit_integers(:3723-3817) instead of adding aTmlJsonrow to that loop; it also re-implements the control-tokenencode()thatstrict_wire_grammars_reject_schema_violations_during_generation(:4167-4333, TML row at :4219-4228, encode at :4290-4306) already has, and drops the sibling's negative assertion. - tests/server/test_inkling2.py:121-209:
test_strict_tml_tool_calls_and_truncationre-reads/v1/modelsand hand-rolls four rawurllib.requestcalls instead of the module'sservicefixture (:29-68), so the fixture'sdefault-effortparameter never reaches the strict path and an HTTP 500 (the failure this PR fixes) surfaces without its body. - docs/TODO.txt:5-8: the TMLv0 strict-qualification entry the PR body claims to close is untouched, against AGENTS.md:514-516 ("Update or remove entries as work is completed").
Nits: 2 — docs/api.md:588-605/:624-628 never states that strict argument text is preserved verbatim (order, >64-bit integers); strict.rs:3821-3825 copies the CONTROL_MARKERS controls-collection idiom a third time.
Link: https://github.com/NVIDIA/hyperflare-inference/pull/575
Prose
Verdict: should-fix issues only
Blocking:
- None.
Should fix:
- helios/src/output/tml.rs:330-347 (PR description, "What Changed"): the description calls duplicate wrapper-key rejection "prior TMLv0 recovery semantics", but it is new — the old
serde_json::Valueparse kept the last value of a repeated key and accepted the call (tml.rsatmain, 328-341), while the deriveddeny_unknown_fieldsstruct now rejects it and falls back to visible text, as the PR's own test asserts (tml.rs:619-628). State it as a compatibility change; AGENTS.md:88-94. - Supporting Evidence (three items a reader cannot reproduce):
server::protocol::tests::strictnames no module — the tests arestrict_function_tools_…(protocol/tests.rs:1751) andstrict_tool_wires_…(:2026); the fiveserver::request::tml_testsare all#[ignore]d (tml_tests.rs:103, 161, 247, 264, 313) and need--ignoredplusFLARE_INKLING2_TEST_SNAPSHOT, so the stated command reports them ignored, not passed; and the 35/35 live inventory does not say which cases came from the out-of-repo driver versus the far smaller in-repo test added here (tests/server/test_inkling2.py:121-209). AGENTS.md:103-112.
Nits: None.
Link: https://github.com/NVIDIA/hyperflare-inference/pull/575
The mechanism claims all check out: the deny_unknown_fields struct with args: &RawValue (tml.rs:330-336), the '{' check (:339-340), verbatim args.to_owned() (:351-360), the absence of arbitrary_precision in helios/Cargo.toml:52 (so the old Value round-trip did produce a binary64 float), the quoted encoder error (encode.rs:538-541; grammar.rs:631-653), the "1 ignored DeepSeek fixture" disclosure (strict.rs:4448, the only #[ignore] in grammar/), the correctly-referenced open TODO.txt:5-8, and the Discord: woooflet line. The added test comments are accurate and claim no more than their assertions. One open question: I did not read the commit body of c7fae93b, so I cannot say whether it states the duplicate-key compatibility impact (repo-prose SKILL.md:40-43).
Correctness
Verdict: should-fix issues only Blocking:
- None. Should fix:
- docs/api.md:588-628 / helios/src/server/protocol/encode.rs:334: the "arbitrary-precision preserved end to end" claim holds only for Chat Completions and Responses; the Anthropic Messages encoder still re-serialises tool arguments through
serde_json::Value(noarbitrary_precision, helios/Cargo.toml:52), so a 30-digit integer becomes binary64 on that API, and the new Python test covers only /v1/chat/completions and /v1/responses. Nits: 2 Link: https://github.com/NVIDIA/hyperflare-inference/pull/575
Detail: The changed TmlOutput::call (helios/src/output/tml.rs:329-363) is correct. The #[serde(deny_unknown_fields)] RawCall with #[serde(borrow)] args: &'a RawValue reproduces the prior rejection set: serde_json::from_str::<&RawValue> enforces JSON syntax, args.get().trim().starts_with('{') replaces the removed is_object() check, and the tool-name and recipient-header (self.name) checks keep their meaning; every rejection still falls back to visible text via call_or_text (tml.rs:317-327). Raw text stays intact downstream: the Chat accumulator stores it as a JSON string and only asserts is_object (helios/src/server/output.rs:83-120, 1371-1414), Chat tool_calls and the Responses function_call item emit arguments.as_str() verbatim (encode.rs:313), and the strict validator consumes exactly the emitted bytes (pending_strict_calls, encode.rs:517-553), so OutputEncoder cannot see a mismatched re-serialisation. Truncation is unaffected because a call body is only published at Termination::Eos (tml.rs:377-384), matching the new max_tokens/max_output_tokens assertions.
The Messages gap is pre-existing and shared with the Qwen/GLM/DSML raw paths, and strict: true on Messages is rejected at admission (helios/src/server/protocol/decode.rs:373), so the reported HTTP 500 cannot recur there; what remains is non-strict Messages tool calls rounding big integers, plus no test coverage or documentation of that limit. Nits: arguments are emitted trim-med (tml.rs:339), so the description's "verbatim/exact" is imprecise (harmless — the validator sees the same bytes); and duplicate keys inside args now reach clients byte-for-byte instead of being collapsed last-wins, unlike DeepSeek DSML which rejects non-unique names (helios/src/output/dsml.rs:386-414, docs/api.md:449-452).
Subtractive
Verdict: make it smaller first The change: +237 / -10 lines (3 files) Could remove: about 133 lines, in 4 places Biggest subtractions:
- helios/src/grammar/strict.rs:3819-3922: delete
tml_strict_parser_preserves_30_digit_integers; the same 30-digit schema/assertions already exist at strict.rs:3723-3817, the TML grammar+pipeline+validator path at strict.rs:2802-2930, and the exact raw-text precision at output/tml.rs:607-617. Replacement: onecontains(big)assertion on the existing TML test's payload: about 105 lines. - docs/TODO.txt:5-8: delete the strict-TMLv0 qualification entry the PR says it completes; AGENTS.md:512-517 requires updating/removing completed entries: about 4 lines.
- helios/src/output/tml.rs:619-628: delete the duplicate-key block; the visible-text fallback is already pinned for four malformed wrappers at tml.rs:551-573, and the strict wrapper grammar cannot emit a duplicate key: about 10 lines.
- tests/server/test_inkling2.py:143-152 and 122-123: delete the chat-streamed delta block (encoder-level coverage exists) and reuse the module fixture's model id instead of re-fetching
/v1/models: about 12 lines. - None. Left behind: docs/TODO.txt:5-8 — the completed qualification entry stays on the list, contradicting the PR description. Link: https://github.com/NVIDIA/hyperflare-inference/pull/575
Pre Test Report
Pre-Test Report — PR #575 "Preserve raw JSON tool arguments in TmlOutput for strict TMLv0 calls"
Head: 07955d7 (single commit, also referenced as c7fae93) · base main · 3 files, +237/−10
Author: fordbmorrris (commit/Discord "woooflet"), first-time contributor, association NONE
Decision: DO NOT REFER TO HARDWARE TESTING — send back to the author
Two independent reasons, either sufficient on its own:
- The one test a GPU could add cannot be run on cn5 or cn7. TMLv0 is exercised only by Inkling 2 cores, and staging that core is infeasible on both hosts (details in §3). We also cannot even confirm the Inkling 2 recipe exists in-repo — it lives in an external repository.
- Substantive non-code items must be fixed first. A probable merge blocker (missing DCO sign-off), an accurate-description violation, the tracking entry the PR claims to close being untouched, and a live test built as the wrong instrument. Testing now would validate a change that cannot merge as-is.
The good news: this is a genuinely correct, well-placed, minimal fix, and its real regression guard is a Rust unit test that already runs automatically in CI on Linux and Windows. There is no throughput or performance dimension to A/B test. So the honest expected value of hardware time here is close to zero even after the code fixes land.
1. What the PR does, and why it is right
TmlOutput::call (helios/src/output/tml.rs:329-363) is the output parser for ToolParserKind::TmlJson cores. It used to round-trip the tool-call wrapper through serde_json::Value and re-serialise the arguments with args.to_string(). serde_json is built with preserve_order, float_roundtrip, raw_value but not arbitrary_precision (helios/Cargo.toml:52), so a 30-digit integer became binary64. OutputEncoder then validated the re-serialised text against the compiled strict grammar and failed the request with strict tool arguments does not match its grammar → HTTP 500.
The fix replaces the round-trip with a borrowed &RawValue and emits the model's own bytes:
#[derive(Deserialize)]
#[serde(deny_unknown_fields)]
struct RawCall<'a> { name: String, #[serde(borrow)] args: &'a RawValue }
let parsed: RawCall<'_> = serde_json::from_str(body).ok()?;
let args = parsed.args.get().trim();
if !args.starts_with('{') || <tool-name check> || <recipient-header check> { return None; }
Verified correct, in the right layer, with no regression surface beyond TMLv0:
- The old guards are preserved in meaning: whole-body JSON syntax still enforced by
from_str, object-ness now viastarts_with('{'), non-stringnamestill rejected, unknown keys still rejected, and every rejection still falls back to visible text throughcall_or_text(tml.rs:317-327). - Raw text survives downstream: Chat keeps arguments as a
Stringand only parses atToolEndto assertis_object(helios/src/server/output.rs:78-123, re-emitted at:140); Responses emitsarguments.as_str()(protocol/encode.rs:313); the strict validator consumes exactly the emitted bytes (protocol/encode.rs:517-553). - Truncation is untouched: a call publishes only at
Termination::Eos(tml.rs:377-384), so a limit-truncated strict call emits notool_calls. - Blast radius is one parser kind.
OutputPipeline::newroutes toTmlOutputonly forTmlJson(output/pipeline.rs:78); GLM, Qwen, DSML, XTML, MiniMax and Gemma use separate arms. No other model family can regress.strict.rsis test-only (+105 insidemod tests). - No dependency change, no flag, no per-model branch, no Protobuf change, no core re-export required — correct per the charter's "smallest footprint in shared code" and "keep the runtime model-agnostic."
The reviews' agreement that there is no blocking code defect matches my own reading of the diff.
2. Substantive problems that must be fixed before any test is scheduled
A. DCO sign-off missing — probable merge blocker, hardware-independent.
CONTRIBUTING.md:9-11: "Any contribution which contains commits that are not Signed-Off will not be accepted"; git commit -s is required. The commit carries the design-review trailer (Design-Signed-Off-By: …; design-review=…, the only trailer .githooks/commit-msg:56-63 enforces) and Discord: woooflet, but no Signed-off-by:. Needs a force-push. Note: I could not read the raw commit body through the available tools; the Value lens reports this trailer set, so the author should confirm.
B. The tracking entry the PR claims to close is untouched.
docs/TODO.txt:5-8 is exactly "Qualify strict: true function tools on a TMLv0 core … Close when a served TMLv0 core passes those checks and the result is recorded." The description claims to address it, but the file is not in the diff. AGENTS.md:512-517 requires completed entries be updated or removed. Three review lenses flagged this independently. Resolve it either way: close it with the recorded result, or narrow it and stop claiming closure.
C. The description misstates a behaviour change.
"Unknown or duplicate wrapper keys fail deserialization and fall back to visible text, matching prior TMLv0 recovery semantics" is half false. The old object.len() != 2 ran on a serde_json::Value map that collapses duplicate keys, so {"name":..,"name":..,"args":..} was accepted; deny_unknown_fields now rejects it — as the PR's own test pins (tml.rs:619-628). AGENTS.md:88-94 requires compatibility changes be stated as changes. The tightening is defensible (the strict wrapper grammar cannot emit duplicates); it just needs to be named.
D. The added live test is the wrong instrument for hardware use.
tests/server/test_inkling2.py:121-209 bypasses the module's own service fixture (:29-68) for 4 of its 6 requests: no HTTPError → pytest.fail(body) wrapper, hardcoded reasoning_effort="none" so the fixture's default-effort parameter never reaches the strict path, a redundant /v1/models fetch, and one test asserting ~5 independent contracts. For a hardware run this specifically defeats the purpose — the exact failure this PR fixes is an HTTP 500, which would surface here with no response body. Also no CI workflow runs pytest (.github/workflows/ has no pytest step), so this file is not a regression guard at all.
E. Rebase risk (scheduling, not a defect). PR #457 (open) rewrites the same TmlOutput::call and the TMLv0 strict grammar. Landing order may force a rebase, which would invalidate any hardware run done in between.
3. Why hardware testing cannot help here
TMLv0 is Inkling-only, and Inkling cannot be staged on the available hardware.
- No substitute model exists.
TmlJsonis selected by the model contract; onlyTmlOutputparses it. GLM-5.3, Qwen3.8 and the others on cn5/cn7 use DSML/Qwen/GLM/XTML parsers — none of them execute the changed code. - The recipe is out of repo.
ignition/recipes/inkling2/does not exist atmainor at the PR head;docs/model-preparation.md:310-330places official recipes in the externallocal-inference-lab/hyperflare-recipes, listinginkling-2-small-nvfp4. - The weights do not fit the hosts.
- cn5 (4 × RTX PRO 6000 96 GiB, SM120) is the architecturally correct shape for single-host TP4, which is what #304 originally supported. But the job gets 16 GiB scratch and 125 GiB RAM against a 344 GB NVFP4 checkpoint and, per #304, a 351 GB core (even its reduced core loaded 82.91 GiB/rank). Staging is impossible. Models on cn5 (dinov2, GLM-5.3, vit) include no Inkling.
- cn7 (1 × GB10, 60 GiB RAM, 16 GiB scratch, arm64) cannot host 4 TP ranks, and 60 GiB is below the ~86 GiB one rank needs. Its staged models (Qwen3.8, GLM-5.3) are not TMLv0.
- Inkling 2 Small is TP4 and its qualified deployment is one rank per host across four Sparks (
docs/roce-ring.md:9, #304) — we have one GB10.
- A synthetic fixture core is not worth building. The fixture frontend is a 2-token WordLevel tokenizer (
helios/tests/fixture_frontend.py:10-20) and TML framing needs the 14 control markers as real tokens (output/tml.rs:42-45). Such a core would validate parser plumbing, not served behaviour — and that plumbing is already pinned by the in-repo Rust testtml_strict_parser_preserves_30_digit_integers(strict.rs:3819-3922).
The 35/35 live result in the description therefore rests entirely on out-of-repo evidence and is not reproducible here. Independently, the Supporting Evidence is unreproducible as written: server::protocol::tests::strict names no module, and the five server::request::tml_tests are all #[ignore]d (tml_tests.rs:103,161,247,264,313), so the stated command reports them ignored, not passed.
4. Expected value of a hardware test: negligible
- No kernel, scheduler, decode, cache, graph or numerics change. A/B throughput testing is not applicable — the PR makes no performance claim, and the charter requires benchmarks only for performance claims.
- The change is CPU-side string/JSON handling, fully exercised by Rust unit tests that already run in CI on both Linux and Windows (
.github/workflows/native-serving.yml:56-68(not opened) runscargo test --manifest-path helios/Cargo.toml --features runtime-core,server). That is the correct and cheapest instrument, and it costs no GPU time. - The residual risks (Anthropic
tool_use.inputstill rounds big integers viaserde_json::Value,protocol/encode.rs:334; and Messages non-strict calls) are pre-existing, shared with the Qwen/GLM/DSML raw paths, and explicitly outside this PR's claim. They are not regressions and should be filed as a TODO, not tested as part of this PR.
5. Minimal testing plan — CI only, no hardware
Run when the author pushes fixes; all of it is CPU work on existing runners:
cargo test --locked --release --manifest-path helios/Cargo.toml --features runtime-core,server(the CI command). Must pass:output::tml::tests::call_preserves_raw_json_arguments_including_arbitrary_precision_integers— the 30-digit positive/negative/nested round-trip and duplicate-wrapper-key fallback (tml.rs:607-629). This is the primary regression guard.grammar::strict::tests::tml_strict_parser_preserves_30_digit_integers(strict.rs:3819-3922) — end-to-end grammar → pipeline → strict validator.- The pre-existing fallback suite
output::tml::tests::rejected_invocations_surface_as_text_and_open_calls_complete_only_at_eos(tml.rs:550-573), which covers unknown keys, non-object args, wrong names and incomplete bodies.
- Confirm a green CI run exists on the head commit. None was reported; this matters because the two added Rust tests are the entire automated defence for this change.
- Optional, only if the maintainer wants the guard tightened (test-quality fixes, no hardware): fold the TML case into the existing parameterised
qwen_and_glm_strict_parsers_preserve_30_digit_integers(strict.rs:3723-3817) so it also gains the negative "schema violation is rejected during generation" assertion it currently lacks, and route the Python test through theservicefixture so failures carry the response body. - Hardware test: not scheduled. If a TMLv0 core is ever staged on real hardware for other reasons, the cheapest meaningful check is a non-strict TMLv0 tool call whose schema permits an unbounded
integer, asserted asjson.loads(arguments)["big_id"] == int(big)rather than a digit substring — but that requires a host that can hold the checkpoint, which neither cn5 nor cn7 can.
6. Findings by review lens (for the record)
| Lens | Reported verdict | My assessment |
|---|---|---|
| Malicious content | All clear | Agree; no injection, no unwanted agentic behaviour, empty discussion |
| Architecture | No blocker; fix TODO | Agree, and fully confirmed in code |
| Correctness | No blocker; Messages gap out of scope | Agree; confirmed encode.rs:334 is pre-existing and Messages rejects strict at admission |
| Conventions | Duplicated fixtures, bypassed fixture, TODO | Agree — test-quality only, no parser defect |
| Simplicity | "verbatim"/"prior semantics" prose wrong | Agree; the description claim is factually wrong |
| Subtractive | ~133 of 237 added lines removable | Partly agree — worthwhile churn reduction, but not a reason to touch hardware |
| Value | Merge with 4 fixes | Agree, with the DCO gate added |
7. Conclusion
The code is a small, correct, root-cause fix in the right layer and should eventually merge. The PR is not ready for a hardware run: a probable DCO blocker, an inaccurate behaviour claim, an untouched tracking entry, and a live test that would hide the very error it is meant to observe — against a backdrop of hardware on which the target core cannot be staged at all.
Recommendation: return to the author for items A–D, validate with the existing CI Rust suites, and do not allocate cn5 or cn7. If a hardware slot is nevertheless reserved, the only defensible run is the non-strict unbounded-integer check in §5.4 — and it cannot be performed on either host as configured.
code review summary
Recommendation: Changes Requested
No blocker: the production fix in TmlOutput::call is correct and is itself a net simplification, and all six lenses agree on that. Two bookkeeping/hygiene items are worth fixing before merge (stale docs/TODO.txt entry; new server test bypassing its own fixture), plus two clear subtractions of duplicated tests.
- Blockers: 0
- Should fix: 2
- Subtractive suggestions: 2
- Nits: 3
Context for the adjudicator: five upstream sub-findings were dropped or rewritten because I opened the cited files and they did not hold. (1) .trim() at helios/src/output/tml.rs:339 is a no-op — serde_json RawValue spans exclude surrounding whitespace — so the entire "verbatim is overstated / arguments are whitespace-trimmed" family (Architecture#3, Simplicity#1a, Correctness#4) is behaviourally false; only "the trim is dead code" survives, as a 0-line nit. (2) Conventions' prescribed fix ("assert through accepts_bytes") cannot work for TML because accepts_bytes advances raw bytes and cannot carry <|content_invoke_tool_json|> control tokens. (3) Conventions' "the new test dropped the only TML negative coverage" is false: strict.rs:4219-4228 + :4320-4331 already exercises a TML Case with an invalid payload. (4) Prose#1 and Simplicity#1(b) quote "matching prior TMLv0 recovery semantics" as the description's words; the description at head does not contain that sentence and instead discloses the duplicate-wrapper-key tightening twice (What Changed + Caveats:), so those two findings rest on text not in the reviewable diff. (5) No CI checks are reported on head c7fae93 (discussion is one bot case-file comment), so there was no runner-infra noise to drop.
The two should-fix items are judgment calls, not defects: the TODO entry may legitimately stay open if the live qualification used a locally built binary or if "a served TMLv0 core" is meant to cover cores beyond Inkling 2 Small NVFP4 (in which case narrow rather than delete).
Final review
Recommendation: Ready To Merge
The production fix in helios/src/output/tml.rs is minimal, idiomatic, and bug-free: replacing serde_json::Value round-tripping with a borrowed &serde_json::value::RawValue preserves >64-bit integers and exact argument JSON verbatim for strict TMLv0 calls without adding dependencies or changing core formats, bringing TMLv0 to parity with Qwen, GLM, and DSML. Only minor non-blocking nits remain around docs/TODO.txt bookkeeping, fixture reuse in the live Inkling 2 test, and test-command disclosure in the PR description.
Blockers
None.
Should Fix
None.
Subtract / Simplify
None.
Nits
docs/TODO.txt:5-8tracking status: The PR referencesdocs/TODO.txtand reports live Inkling 2 Small NVFP4 (4× GB10 ARM64 TP4) strict tool-calling qualification, which matches the closing condition ofdocs/TODO.txt:5-8(note thattests/server/test_inkling2.py:121-209does not include a streamed/v1/responsescheck). PerAGENTS.md:514-517, either remove lines 5–8 if the recorded live run covered all listed axes (including Responses streaming), or note what remains open.tests/server/test_inkling2.py:121-209fixture reuse & HTTP error diagnostics:- Line 123 re-fetches
/v1/models(without awithcontext manager) even though theservicefixture already fetched it (:31-38). - Lines
:168,:188, and:206callurllib.request.urlopendirectly without theexcept urllib.error.HTTPError→pytest.fail(f"HTTP {error.code}: {error.read().decode()}")wrapper at:60-61, so a live HTTP 400/500 drops the server's error body. - Line
:183hardcodesreasoning=dict(effort="none")on the 256-token buffered/v1/responsesrequest inside theparams=[None, "none"]parameterized test, repeating the zero-effort call twice without testingdefault-efforton Responses (hardcoding"none"on themax_tokens=10/max_output_tokens=10truncation cases at:162and:201is reasonable so the 10-token budget truncates inside the tool call rather than reasoning).
- Line 123 re-fetches
- PR evidence command for ignored Inkling 2 tests: All five
server::request::tml_tests::tests (helios/src/server/request/tml_tests.rs:103,161,247,264,313) carry#[ignore = "requires FLARE_INKLING2_TEST_SNAPSHOT with the Inkling 2 tokenizer"], so the listedcargo testinvocation skips them unless-- --ignoredandFLARE_INKLING2_TEST_SNAPSHOTare provided (AGENTS.md:106-112). - Minor cleanups in
helios/src/output/tml.rs:.trim()athelios/src/output/tml.rs:339is a no-op becauseserde_json::value::RawValue::get()already excludes leading and trailing JSON whitespace.- Adding the duplicate-key payload (
:619-628) to the existing rejected-body loop at:553-561would also exerciseOutputStart::ToolBody.
Verified passes
- Root cause and fix (
helios/src/output/tml.rs:329-363,helios/Cargo.toml:52):serde_jsonenables["preserve_order", "float_roundtrip", "raw_value"]withoutarbitrary_precision. Deserializing{"name", "args"}into#[serde(deny_unknown_fields)] struct RawCall<'a> { name: String, #[serde(borrow)] args: &'a RawValue }validates full JSON syntax onbody(including nestedargs), supports JSON-escapednamestrings, rejects unknown/missing/duplicate wrapper keys back to visible text (tml.rs:318-327), gates object-ness viaargs.starts_with('{'), validates tool registration and optional header name, and emitsargs.to_owned()without allocating or re-serializing aValuetree. - Downstream protocol handling (
helios/src/server/protocol/encode.rs:313,517-553,helios/src/server/output.rs:84-122,140):OutputEncoderbuffers strict calls untilEvent::ToolEndand validates the rawargumentsstring againstTextGrammar::validate; the Chat accumulator (output.rs:113-121,140) validates JSON object syntax without overwritingcall.arguments; Responses (encode.rs:313) emitsarguments.as_str()verbatim. Truncation semantics attml.rs:377-384remain intact. - Unit test coverage (
helios/src/output/tml.rs:608-629,helios/src/grammar/strict.rs:3819-3922): Directly covers arbitrary-precision positive/negative 30-digit integers, key-order preservation, duplicate wrapper-key rejection, and end-to-endGrammarCompiler→ token advance with TML control tokens →OutputPipeline→TextGrammar::validateacross top-level,anyOf,$ref, and nested array/object properties. - PR description accuracy at head
c7fae93b: Accurately discloses both non-strict verbatim forwarding and duplicate wrapper-key fallback inWhat ChangedandCaveats, with no unapproved scope expansion or core-format/Protobuf changes.
Dropped on verification
- Missing DCO
Signed-off-by:trailer (Value Proposition Blocker #1): Cited an earlier commit07955d702c; head is nowc7fae93band full commit trailers are not exposed by the available repo tools, so cannot be asserted as missing on head. - PR description misstates duplicate-key rejection as prior TMLv0 semantics (Value Proposition #3 / Prose#1 / Simplicity#1b): Already corrected in head
c7fae93b's PR description, which explicitly discloses the tightening in bothWhat ChangedandCaveats. .trim()invalidates "verbatim" claim (Architecture#3 / Simplicity#1a / Correctness#4):serde_json::value::RawValue::get()excludes surrounding whitespace by contract, so.trim()athelios/src/output/tml.rs:339is a harmless no-op (kept only as a minor nit).- Delete or fold
tml_strict_parser_preserves_30_digit_integers(helios/src/grammar/strict.rs:3819-3922) (Candidate X1): Useful end-to-end regression test exercising TML control tokens throughGrammarCompiler,OutputPipeline, andTextGrammar::validate; theCasetable atstrict.rs:4219-4332never invokesOutputPipeline/TmlOutput, andaccepts_bytescannot encode TML control tokens. - Duplicate keys inside
argsdiverge from DSML /docs/api.md:449-452(Candidate N2):docs/api.md:449-452scopes the unique-key rule specifically to DeepSeek DSML (helios/src/output/dsml.rs:386-414); priorTmlOutputcollapsed duplicate keys viaValuerather than rejecting them, strict TML grammars already forbid duplicate properties, and the PR description discloses verbatim non-strict forwarding. docs/api.md:588-605omits raw-argument preservation and Messagestool_use.inputrounding (Candidate N3a):docs/api.md:588-605does not document raw-token preservation for Qwen/GLM/DSML either (TMLv0 now matches existing parsers), anddocs/api.md:634-635already statesstrict: trueon Messages tools returns HTTP 400 (makingencode.rs:334pre-existing and unreachable on strict paths).server::protocol::tests::strictmodule does not exist (Candidate N3b): False —helios/src/server/protocol/mod.rs:70(not opened) declaresmod tests;, andserver::protocol::tests::strictis a validcargo testsubstring filter matchinghelios/src/server/protocol/tests.rs:1751and:2026.- DCO / CI status & live hardware numbers: No CI run is reported on head
c7fae93band live 4× GB10 TP4 results cannot be re-executed from the repository; not flagged as PR defects.
Full report Decision to Test: no (100%): Testing will not add significant value as the code stands today. The code is either not yet ready to merge, or adequate testing has already been done to validate the contents of the code, or the available hardware is not suitable to test with.
screen malicious
Screen Result: All Clear
Evidence: Screened NVIDIA/hyperflare-inference PR #575 ("Preserve raw JSON tool arguments in TmlOutput for strict TMLv0 calls", author fordbmorris, head c7fae93, 3 files, +237/−10). All three changed files were read in full, both production hunk and new tests.
helios/src/output/tml.rs(only production change):TmlOutput::callreplaces aserde_json::Valueround-trip (which rounded integers aboveu64::MAXinto binary64 notation) with a#[serde(deny_unknown_fields)]struct borrowing&RawValue, trimming and requiringargs.starts_with('{'), then emitting the raw JSON text. The existing registered-tool-name check and header-name match remain, and the pre-existing rejection test at lines 550-573 (unregistered tools, non-object args, extra wrapper keys) is untouched — the tool allow-list gate is not loosened. New unit test at ~607-629 asserts 30-digit integer precision and duplicate-key fallback; it is in-process with no I/O.helios/src/grammar/strict.rs(+105): test-onlytml_strict_parser_preserves_30_digit_integersat line 3819, pure grammar/pipeline assertions. The only URL-like string in the file (https://example.com/s.json, ~line 2537) is a pre-existing$reffixture outside the added hunk.tests/server/test_inkling2.py(+91): one gated live-server test using the file's existingservicefixture andFLARE_INKLING2_TEST_URL, following patterns already in the file; no new imports, credentials, or hosts.
Checked and absent: instruction-style text aimed at an agent/reviewer ("ignore previous instructions", "disregard", "you must", "system prompt"), hidden or bidi/zero-width unicode (U+200B–200F, U+202A–202E, U+2060–2064, U+FEFF), homoglyphs, unlisted/hidden files, new endpoints, secrets, env exfiltration, file writes, shell execution, dependency or CI/workflow changes. pr_files confirms exactly the three stated files.
PR discussion is two comments from the repo's own flare-autobot (intake notice and a "Ready To Merge" summary linking external autobot.eidonix.com report pages) — informational bot output with no instructions to an agent; the links were not followed. The PR body's only external reference is a Discord handle ("woooflet"), normal social contact.
Limits: assessment is by reading; cargo/pytest were not run and GitHub reports no CI checks on c7fae93, so functional correctness is unverified (not a security concern). Related PRs/issues (#461, #457, #418, #578, #576, #574) were context only, not screened.
No prompt injection or other attempt to induce unwanted agentic behavior was found.
Full report · Notes decide malicious: all_clear (100%): No malicious content found
Apply Labels
Applied: +triage:review, +bug, +area:api, +model:inkling-small
Classification Confidence
Threshold: 65%
Triage
- [✓]
triage:review: 98.6% -
none: 0.9% -
triage:validation: 0.4%
Priority
-
priority:P2: 59.9% -
none: 28.3% -
priority:P1: 11.8%
Type
- [✓]
bug: 94.7% -
community: 32.1% -
duplicate: 32.1% -
enhancement: 18.2%
Area
- [✓]
area:api: 92.4% -
area:preparation: 34.9% -
area:orbit: 16.5% -
area:selene: 13.3%
Model
- [✓]
model:inkling-small: 81.8% -
model:muse-glimmer: 29.4% -
model:deepseek-v4.1: 26.9% -
model:qwen3.8-27b: 26.9% decide malicious: all_clear (100%): No malicious content found
explore
Author: fordbmorris (FIRST_TIME_CONTRIBUTOR; commit author and Discord handle "woooflet")
Motivation: Strict TMLv0 tool calls to an Inkling 2 core were returning HTTP 500 when an argument was a large integer (e.g. a 30-digit ID), because the parser re-serialised the arguments through serde_json::Value and lost the exact digits. This PR keeps the argument text as it arrived so the strict grammar sees the same numbers the model produced.
Scale: +237 / −10 in 3 files
Proposal:
- Replace the
Valueround-trip inTmlOutput::callwith a borrowed&RawValuestruct (helios/src/output/tml.rs:342-376). - Emit the trimmed raw argument text verbatim as
Event::ToolArguments(:352,:372). - Reject duplicate/unknown wrapper keys via
#[serde(deny_unknown_fields)](:343-344). - Add a Rust test for 30-digit ints and duplicate keys (
tml.rs:620) and a strict-grammar 30-digit test (grammar/strict.rs:3820). - Add a live Chat-Completions/Responses strict-tool + truncation test (
tests/server/test_inkling2.py:121). Touches: helios/src/output/tml.rs(client-visible tool-call text; non-strict TMLv0 calls change too)helios/src/grammar/strict.rs(test only)tests/server/test_inkling2.py(live test, skipped in CI) Related items:- #457 (open): rewrites the same
TmlOutput::calland the same TMLv0 strict grammar; textual conflict - #461 (open): documents the same numeric-precision boundary
- #418 (merged): added strict TMLv0 tool grammars but never served a TMLv0 core
- #670 (open): third open PR also editing
grammar/strict.rs - #582 (merged): the review bar for this area — approved only after exact-SHA live A/B
Link: https://github.com/NVIDIA/hyperflare-inference/pull/575
Autobot comments: Amendments to my earlier report: the stale
Design-Signed-Off-Bydigest finding is withdrawn (nowdesign-review=2e5b, the maintainer-named on-main value, with model in the identity); the autobot "Ready To Merge, 0 blockers, 4 nits" verdict is stale (written against pre-rebasec7fae93, head is nowa0d9065) and there are still zero human reviews, though labels now exist; CI gained.github/workflows/python-cpu.yml(not opened) (barepull_request), buttest_inkling2.py:23-26skips the module withoutFLARE_RUN_CUDA_TESTS=1/FLARE_INKLING2_TEST_URL, so the new integration test never runs. The author's 7/7 and 28/28 counts now match the tree (7#[test]intml.rs,#[ignore]atstrict.rs:4448); 35/35 live remains unverifiable. New nit: the Python "property order" assertion (test_inkling2.py:139-141) cannot distinguish old from new behaviour sincepreserve_orderis already on (helios/Cargo.toml:52). Still honestly disclosed side effects, still live on main (tml.rs:341-369,args.to_string()at:365),docs/TODO.txt:5-8anddocs/api.md:614-631unedited, and the Anthropictool_use.input(encode.rs:334) and prompt-sidefrontend/tml.rs:148-174re-serialisation paths untouched.
Classify intake
Selected: triage:review, priority:P2, bug, area:api, model:inkling-small
Threshold: 65%
Triage
- [✓]
triage:review: 99.6% -
triage:validation: 0.2% -
triage:design-review: 0.1% -
none: 0.0% -
triage:investigate: 0.0% -
triage:partial: 0.0% -
triage:integration: 0.0% -
triage:verify-for-closure: 0.0% -
triage:superseded: 0.0%
Priority
- [✓]
priority:P2: 99.3% -
priority:P1: 0.5% -
none: 0.2%
Type
- [✓]
bug: 95.3% -
community: 34.9% -
duplicate: 34.9% -
performance: 29.4% -
enhancement: 14.8% -
documentation: 0.1%
Area
- [✓]
area:api: 97.7% -
area:engram: 0.6% -
area:memory: 0.3% -
area:preparation: 0.3% -
area:rocenante: 0.2% -
area:caching: 0.1% -
area:kernels: 0.1% -
area:selene: 0.1% -
area:orbit: 0.0% -
area:scheduling: 0.0% -
area:packaging: 0.0%
Model
- [✓]
model:inkling-small: 94.0% -
model:deepseek-v4: 11.9% -
model:deepseek-v4.1: 11.9% -
model:muse-glimmer: 10.7% -
model:glm-5.3: 7.6% -
model:qwen3.8-flash-next: 6.0% -
model:mimo-v2.6: 4.2% -
model:qwen3.8-27b: 4.2% -
model:kimi-k3.1: 2.6% -
model:nemotron-3.5-bolt: 1.6% -
model:gemma4: 0.7%
Apply Labels (Intake)
No label changes
Subtraction and simplicity
Subtraction/Simplicity review of PR #575 (head a0d9065, 3 files, +237/−10). The product change is lean and I say so plainly: TmlOutput::call (helios/src/output/tml.rs:342-376) removes branches (old as_object(), object.len() != 2, filter(is_object), name.to_owned()), adds no flag/knob/fallback/dead code, replaces a hand-rolled arity check with deny_unknown_fields, and follows the existing tagged.rs raw-token idiom. All removable bulk is test scaffolding.
Findings, by value:
- ~44 duplicated lines — the new test
tml_strict_parser_preserves_30_digit_integers(strict.rs:3819-3922) re-declares the 30-digit constant and the entire 20-linebig_schemabyte-identically to the test directly above it (:3723-3746), plus the samevalidate_strict_tool_schemacall and "5 occurrences" assertion. Hoistfn big_integer_case() -> (String, Value)next toaccepts_bytes(:2471)/decoded_args(:2781). - ~54 → ~20 lines —
tests/server/test_inkling2.pyre-resolves URL/model (:122-123, duplicating the module fixture at:31-33) and hand-rolls four near-identicalurllibPOST blocks (:155-169,:176-189,:194-207) instead of onepost(url, path, body)helper; the repo already uses a service-object pattern (test_muse_spark.py:55-66). - Delete one clause —
test_inkling2.py:141assert list(parsed.keys()) == ["big_id", "city"] and ...: key order is preserved bypreserve_ordertwice over (helios/Cargo.toml:52(not opened)), so that clause cannot fail for old or new code; keepparsed["city"] == "Paris". - Low — the module fixture parametrizes the new live test twice (
:29,:121), but three of its five requests hard-codereasoning_effort/effort = "none"(:162, :183, :201), so ~40% of the added live HTTP calls are byte-identical duplicates.
Explicitly not deletable: the !args.starts_with('{') guard (tml.rs:353) replaces the removed filter(|v| v.is_object()) and is required for non-strict TMLv0 (existing test :566-575 sends args:[]); .trim() at :352 is load-bearing for it. No config knobs, speculative generality, dead code, or AGENTS.md structural violations found.
Correctness and contracts
PR #575 (raw JSON args in TmlOutput) is a correct, well-placed bug fix with no Blocker; the gaps are contract/documentation and prompt-side symmetry. Zero human reviews; the only review (autobot "Ready To Merge", 0 blockers, 4 nits) predates the rebase and is stale for head a0d9065.
Findings:
- Major — undocumented global wire change. Head
helios/src/output/tml.rs:343-372forwardsargsverbatim for all TMLv0 calls, not just strict, so interior whitespace/escapes/number spelling change versus main'sargs.to_string()(main:342-365), anddeny_unknown_fieldsnow downgrades duplicate wrapper keys ({"name":..,"name":..,"args":{}}) — which main accepted after itsMapcollapsed them — to visible text.docs/api.md:614-631says nothing about any of it, againstAGENTS.md:52-60. No non-strict test pins it. - Minor — prompt-side mirror.
helios/src/frontend/tml.rs:148-174(called:488-494, f64 print:75-88) still round-trips arguments throughValue, so a preserved 30-digit id becomes1.2345…e29when the client echoes the call back. - Minor — no JSON-object guard.
helios/src/output/tml.rs:352-353only checksstarts_with('{'); the bytes then hit re-parsers atserver/output.rs:148-156and:1823-1827andprotocol/encode.rs:539-541, whose failures map to 500 (server.rs:735). Net fewer 500s, but the claim overstates. - Minor — test evidence.
tests/server/test_inkling2.py:140-141order assertion passes on main too (helios/Cargo.toml:52haspreserve_order); the module skips withoutFLARE_RUN_CUDA_TESTS/FLARE_INKLING2_TEST_URL(:23-26), so it never runs in CI;docs/TODO.txt:5-8still unticked.
Verified clean: concurrency/contention, memory (the change removes an allocation), failure blast radius, stale state, platform parity, metric spans.
Open: whether CI ran on a0d9065; the unverifiable 35/35 live run; digest-sha correspondence.
Re-review
Recommendation: Ready To Merge
PR #575 fixes a real, reproducible HTTP 500 bug still live on main (helios/src/output/tml.rs:365) with a minimal, zero-dependency change in the right layer (TmlOutput::call), bringing TMLv0 to parity with the existing RawValue preservation used by Qwen/GLM (helios/src/output/tagged.rs:871,927). The rebase onto 571a4471 (head a0d9065) introduces no correctness, concurrency, memory, or CI regressions, and the author has refreshed the commit trailers and disclosed the non-strict verbatim-forwarding and duplicate-key behaviors in the PR description. Only optional test-duplication simplifications and minor bookkeeping nits remain.
Merge Risk
Level: Low
- Isolated per-request parser change: Only
TmlOutput::call(helios/src/output/tml.rs:342-376) changes production behavior; it touches per-request parser state with no locks, shared buffers, CUDA graph/op-contract changes, or cross-request blast radius. - Net reduction in hot-path allocation: Replacing
serde_json::Valuetree construction +args.to_string()with borrowed&'a RawValue(#[serde(borrow)]) removes an intermediate heap AST allocation per TMLv0 tool call while preserving the existing 1 MiB parser bound (helios/src/output/tml.rs:279,303) and 8 MiB response bound (helios/src/server/output.rs:1803). - Well-bounded behavioral delta: Non-strict TMLv0 calls now forward trimmed raw
argstext verbatim (preserving interior whitespace/number spellings) and reject duplicate wrapper keys as visible text via#[serde(deny_unknown_fields)]; both behaviors are disclosed in the PR description and covered by unit tests.
Walkthrough
helios/src/output/tml.rs:22-23,342-376: Replacesserde_json::Valuedeserialization andargs.to_string()re-serialization inTmlOutput::callwith a local#[serde(deny_unknown_fields)]RawCall<'a>struct borrowingargs: &'a RawValue(using the already-enabledserde_jsonraw_valuefeature athelios/Cargo.toml:52), trims outer whitespace, checksargs.starts_with('{'), and emitsargs.to_owned()verbatim.helios/src/output/tml.rs:620-642: Adds unit testcall_preserves_raw_json_arguments_including_arbitrary_precision_integersverifying 30-digit positive/negative/nested integers, reversed wrapper key order, and duplicate wrapper key fallback to visible text.helios/src/grammar/strict.rs:3819-3922: Addstml_strict_parser_preserves_30_digit_integers, exercising the realGrammarCompiler,compile_presented_strict_tools,OutputPipeline,validate_strict_tool_schema, andTextGrammar::validateend-to-end across top-level,anyOf,$ref, nested object, and nested array 30-digit integers.tests/server/test_inkling2.py:121-209: Adds live TP4 qualification testtest_strict_tml_tool_calls_and_truncationcovering buffered/streamed Chat Completions, Chatmax_tokens=10truncation, Responses buffered, and Responsesmax_output_tokens=10truncation (module-skipped withoutFLARE_RUN_CUDA_TESTS=1andFLARE_INKLING2_TEST_URL).
Pre-merge Checks
- [PASS] Security / malicious screen: No suspicious code, dependency changes, network exfiltration, or prompt-injection artifacts; existing parser size bounds (
helios/src/output/tml.rs:279,303) are untouched. - [PASS] Charter & value fit: Fixes a reproducible HTTP 500 on documented strict TMLv0 support (
docs/api.md:614-631) in the output parser with no per-model switches, flags, or new dependencies. - [PASS] Related / duplicate / conflict check: Bug is still live on
main(helios/src/output/tml.rs:365); open PRs #457 (tml.rs,strict.rs) and #461/#670 (strict.rs) do not semantically conflict withTmlOutput::call(at most minor contextual merge ordering instrict.rstests). - [WARN] Tests & verification evidence: Rust unit/grammar tests cover the real parser and strict validator (
output::tml::7 tests andgrammar::strict::28 + 1 ignored match the tree), and.github/workflows/native-serving.yml:63 (not opened),68runs them in--releaseon Linux/Windows; however, the post-rebase comment rancargo testwithout--release,tests/server/test_inkling2.py:23-26is skipped by.github/workflows/python-cpu.yml:30-33(not opened), and the external "35/35" live harness has no command/core ID recorded in-repo.
Blockers
None.
Should Fix
None.
Subtract / Simplify
- Deduplicate the 30-digit schema fixture in
helios/src/grammar/strict.rs:3827-3848.tml_strict_parser_preserves_30_digit_integerscopiesbigand the 20-linebig_schemaverbatim fromqwen_and_glm_strict_parsers_preserve_30_digit_integersimmediately above it (helios/src/grammar/strict.rs:3726-3746). Extract a sharedfn big_integer_case() -> (&'static str, Value)helper inmod tests(~20 net lines removed, zero coverage loss). - Reuse the
servicefixture and collapse repeatedurllibPOST boilerplate intests/server/test_inkling2.py:121-209.test_strict_tml_tool_calls_and_truncationre-fetches/v1/models(:122-123) even though the moduleservicefixture already resolvesurlandmodel["id"](:31-33), and repeats identicalurllib.request.Request+urlopen+json.loadplumbing three times (:155-169,:176-189,:194-207). Exposingurl/model(or a smallpost(path, body)helper) onservicealongsideask.chunk(:67) removes the redundant/v1/modelscall and cuts ~25–30 lines.
Nits
docs/TODO.txtbookkeeping (docs/TODO.txt:5-8;:12-15onmain): The strict TMLv0 qualification item remains[ ](andtests/server/test_inkling2.py:121-209covers Chat buffered/streamed and Responses buffered/truncated, leaving Responses streamed only in the external 35/35 run). Either close/update the entry with recorded results once streamed Responses is covered or note why it stays open.- Optional API doc note (
docs/api.md:614-631): Consider adding one sentence noting that TMLv0 forwards rawargstext verbatim (trimmed of outer whitespace) and surfaces duplicate wrapper keys as visible text. - Out-of-scope follow-up (multi-turn precision): Multi-turn conversations still round-trip tool arguments through
serde_json::Valueon the next turn's ingress (helios/src/server/protocol/decode.rs:91-101), TMLv0 prompt rendering (helios/src/frontend/tml.rs:75-88,149-174), and Anthropic Messages non-streamingtool_use.input(helios/src/server/protocol/encode.rs:334). Worth tracking separately if multi-turn >64-bit integer round-trips are needed. - Evidence provenance: Consider noting the core/command behind the "35/35 strict TMLv0 live serving tests" claim and confirming
--releaseon the rebased SHA (a0d9065) to match.github/workflows/native-serving.yml:63 (not opened),68.
Dropped on verification
- Missing DCO
Signed-off-by:blocker (Value Proposition #1) & staleDesign-Signed-Off-Bydigest (early Dossier): Dropped as stale against pre-rebase commits (07955d702c/c7fae93). On heada0d9065, the author rebased onto571a4471and reported addingSigned-off-by: woooflet <ford@fordmorris.com>and refreshingDesign-Signed-Off-By: Antigravity (Gemini-4-Neon); design-review=2e5b(verified via.githooks/commit-msg). - PR description misstates duplicate-key behavior as preserved (Value Proposition #3): Dropped as stale; the current PR description explicitly discloses both non-strict verbatim forwarding and duplicate-key fallback to visible text.
- "No JSON-object guard before hand-off" & proposed
serde_json::from_str::<&RawValue>(args).is_ok()fix (Correctness & Contracts Lens C): Dropped as factually incorrect.serde_json::from_str::<RawCall<'_>>(body)already syntactically validatesparsed.argsas a complete JSON value, soargs.starts_with('{')guarantees a syntactically valid JSON object, and re-runningfrom_str::<&RawValue>(args)would be a no-op. (The only remainingRawValue-vs-Valuedelta is> f64::MAXnumbers such as1e500reachinghelios/src/server/output.rs:148,1823, which matches existing Qwen/GLM behavior athelios/src/output/tagged.rs:927.) - "Not tested for non-strict" sub-claim and Major severity on
docs/api.md(Correctness & Contracts Lens A): Dropped/downgraded.helios/src/output/tml.rs:620-642exercises non-strictTmlOutput(parser()at:415has nostrict: true) for both raw 30-digit integers and duplicate wrapper keys; the optionaldocs/api.mdsentence is kept underNits. - "Delete unprovable key-order assertion" at
tests/server/test_inkling2.py:141(Subtraction & Simplicity Lens #3 / Dossier #5 / Correctness Lens D1): Dropped as over-flagging. Whilepreserve_order(helios/Cargo.toml:52) already preserved insertion order onmain, the live test also qualifies strict schema property emission order; deleting a valid 1-line assertion adds churn without value. - Parametrized
servicefixture duplicatingeffort="none"calls intests/server/test_inkling2.py(Subtraction & Simplicity Lens #4): Dropped as low-signal;test_streamed_reasoning_and_answer(tests/server/test_inkling2.py:80-82) in the same file already follows the exact same pattern. - Inflated line-reduction / block-count estimates in Subtraction & Simplicity Lens #1 and #2: Corrected "~44 duplicated lines" in
helios/src/grammar/strict.rsto ~20 net lines removable and "four"urllibPOST blocks intests/server/test_inkling2.pyto 3urllib.request.RequestPOST blocks plus 1/v1/modelsGET.
Classify triage
Selected: triage:review
Threshold: 65%
Triage
- [✓]
triage:review: 95.0% -
triage:validation: 3.3% -
none: 1.1% -
triage:design-review: 0.3% -
triage:investigate: 0.1% -
triage:verify-for-closure: 0.1% -
triage:integration: 0.0% -
triage:partial: 0.0% -
triage:superseded: 0.0%
Apply labels
No label changes Decision to Test: yes (68%): Testing will add considerable value with the code. It is ready to merge and the tests will validate and improve confidence on hardware we have available for testing.
Pre Test Report
Hardware Test Plan — PR #575 "Preserve raw JSON tool arguments in TmlOutput for strict TMLv0 calls"
Head: a0d9065 (rebased onto 571a4471) · 3 files, +237/−10 · helios/src/output/tml.rs is the only production change.
Decision: allocate cn5, one GPU, ~1–1.5 h (plus ~30 min CPU). Do not allocate cn7 and do not attempt Inkling 2 Small NVFP4.
1. What must actually be exercised, and why the choice of machine matters
TmlOutput::call (helios/src/output/tml.rs:342-376) runs only for cores whose contract declares ToolParserKind::TmlJson (helios/src/output/pipeline.rs:98 (not opened); enum value TML_JSON = 8, helios/proto/runtime_core.proto:464). Only Inkling 2 recipes declare TMLv0 (docs/roce-ring.md:9, docs/TODO.txt:5-8). Nothing on cn5 or cn7 — dinov2, GLM‑5.3, Qwen3.8, MiniMax, MiMo, Gemma, Step‑5, Nemotron — executes the changed code, so the model choice is the whole decision.
| Option | Verdict |
|---|---|
| Inkling 2 Small NVFP4 (what the PR claims was tested) | Infeasible on both hosts. 344 GB checkpoint, TP4-only, 351 GB full core, ~90 GiB resident per rank (#304, merged). Qualified as one rank per each of four GB10/SM121 hosts. cn7 has one GB10 with 60 GiB RAM — one rank's weights alone are ~90 GiB. cn5 has the right architecture (4× SM120, 96 GiB each) but 125 GiB RAM and 16 GiB scratch cannot stage a 344 GB checkpoint or a 351 GB core. |
Inkling 2 Mini (inkling-2-mini) |
Viable on cn5 with a single GPU. 19,525,870,752-byte (~19.5 GB) checkpoint, TP1 supported, and already qualified end-to-end on exactly one SM120 RTX PRO 6000 in #468 (132 graphs, ~11.8k kernels; service tests passed in plain, fixed-7-draft and adaptive modes). Fits 96 GiB VRAM comfortably. |
| cn7 (1× GB10, SM121, 60 GiB RAM) | Fallback only. Mini TP1 would fit in the unified 60 GiB, but it is a different SM (121 vs the qualified 120), slower to prepare, and has the same 16 GiB scratch problem. Use only if cn5 is unavailable. |
Pre-flight gates before you claim the slot (these are the two things most likely to burn the booking):
- Recipes are not in this repository.
ignition/here has norecipes/package,pyproject.toml:20-36does not pull one, andAGENTS.md:383-396(not opened) +docs/model-preparation.md:310-330place them inlocal-inference-lab/hyperflare-recipes(hyperflare_recipes/recipes/…). Install that package and runignition export inkling-2-mini --helpto confirm the alias resolves. - Disk/scratch. 16 GiB scratch < 19.5 GB checkpoint + prepared core. Stage into the model cache on a filesystem with ≥60 GiB free (
--core-cache), confirm Hugging Face access tothinkingmachines/Inkling-2-Mini(may be gated), and checkflare models list --offlinefirst in case a prebuiltgb120-tp1core is already cached — that removes the entire export step.
No re-export is needed for the A/B. The fix is server-side string handling; no core format changed, so a core exported before or after the change behaves identically on the wire. Build the core once.
2. Step 1 — CPU-only gates (30 min, no GPU; do this first)
The authoritative regression guard for this fix is a Rust unit test that already runs in CI (.github/workflows/native-serving.yml:63 (not opened),68 runs it with --release on Linux and Windows). Run the same commands on the PR head:
cargo test --locked --release --manifest-path helios/Cargo.toml (not opened) --features runtime-core,server \
--lib output::tml::
cargo test --locked --release --manifest-path helios/Cargo.toml (not opened) --features runtime-core,server \
--lib grammar::strict::
cargo test --locked --release --manifest-path helios/Cargo.toml (not opened) --features runtime-core,server \
--lib server::protocol::tests::strict
Must pass: call_preserves_raw_json_arguments_including_arbitrary_precision_integers (tml.rs:620) and tml_strict_parser_preserves_30_digit_integers (strict.rs:3819 (not opened)). If either fails, stop — cancel the GPU slot.
Then the cheapest real TMLv0 end-to-end check in existence — fully CPU, no GPU, no service. It drives the production decoder and OutputPipeline with real Inkling tokens against golden references:
git clone --depth 1 https://huggingface.co/thinkingmachines/Inkling-2-Mini /tmp/inkling2 # need tokenizer.json (not opened) only
FLARE_INKLING2_TEST_SNAPSHOT=/tmp/inkling2 \
cargo test --locked --release --manifest-path helios/Cargo.toml (not opened) --features runtime-core,server \
--lib server::request::tml_tests:: -- --ignored
These six tests are all #[ignore]d (tml_tests.rs:103,161,247,264,313,356) — that is why the PR's stated cargo test invocation reports them as ignored, not passed. Three of them (prompts_match_tml_renderers_token_for_token, outputs_match_reference_parses, structured_output_grammars_constrain_frames) are the ones that matter here; they compare against tests/frontend/inkling2_tml.json (not opened). Note this validates the parser and prompt path, not a served strict request.
3. Step 2 — One GPU run on cn5 (~1 h export if needed, ~10 min GPU)
# build both binaries from the same base so the A/B differs only in the PR
git checkout 571a4471 && cargo build --locked --release --manifest-path flare-cli/Cargo.toml (not opened) && cp flare-cli/target/release/flare /tmp/flare-base
git checkout a0d9065 && cargo build --locked --release --manifest-path flare-cli/Cargo.toml (not opened) && cp flare-cli/target/release/flare /tmp/flare-fix
# core (once) — chunk size MUST be 4096 or 8192 to satisfy the committed driver's fixture
<recipes-venv>/bin/ignition export inkling-2-mini --gpus 0 --max-concurrency 8 --prefill-chunk-size 8192
# serve (repeat this one command per binary)
/tmp/flare-fix run <CACHE_ENTRY> --gpus 0 --max-concurrency 8 --host 0.0.0.0 --port 8000
Pick an idle GPU (nvidia-smi); export and serving each need one device.
Test matrix — run every case against both binaries
| # | Request | Pass criterion (fix) | Baseline expectation |
|---|---|---|---|
| T1 | Strict Chat, unbounded integer (body below) |
HTTP 200, finish_reason=="tool_calls", exactly one call, arguments contains 123456789012345678901234567890 byte-for-byte |
HTTP 500, body strict tool arguments does not match its grammar |
| T2 | Same schema on /v1/responses, buffered |
output[] has one function_call, arguments literal intact |
500 |
| T3 | T1 with "stream": true |
Exactly one arguments delta containing the literal (strict calls are buffered whole) | 500 |
| T4 | T1 with max_tokens: 10, tool_choice:"auto" |
finish_reason=="length", no tool_calls (partial strict calls are dropped) |
same on both — control case |
| T5 | T1 with "strict" removed |
200 on both; baseline returns 1.2345678901234568e29, fix returns the 30-digit literal |
rounding visible, no 500 |
T1 body (deterministic: temperature: 0):
{"model":"<id from /v1/models>",
"messages":[{"role":"user","content":"Call record_city with big_id=123456789012345678901234567890 and city='Paris'."}],
"tools":[{"type":"function","function":{"name":"record_city","strict":true,"parameters":{
"type":"object",
"properties":{"big_id":{"type":"integer"},"city":{"type":"string","minLength":2}},
"required":["big_id","city"],"additionalProperties":false}}}],
"tool_choice":"required","temperature":0,"max_tokens":256}
T1 and T5 are the two that matter. T1 reproduces the exact reported failure (the 500 comes from TextGrammar::validate via helios/src/server/protocol/encode.rs:539-541 → helios/src/grammar.rs:654 (not opened)). T5 is a fallback with even higher signal: the baseline rounds the integer to binary64 instead of erroring, so it demonstrates the root cause directly and cannot be confused with a model-behaviour flake.
Optional, if T1 is flaky: the prompt is already the crux — a model that refuses to emit a 30-digit literal turns T1 into a model test rather than a code test. If that happens, add a const-free variant whose schema uses minLength/pattern only on city and rely on T5. Do not spend more GPU time tuning the prompt.
Or drive it with the PR's own committed test (it covers T1–T4 in one file):
FLARE_RUN_CUDA_TESTS=1 FLARE_INKLING2_TEST_URL=http://127.0.0.1:8000 \
.venv/bin/python -m pytest tests/server/test_inkling2.py::test_strict_tml_tool_calls_and_truncation -q
Caveat for the engineer: three of its requests bypass the module fixture and call urllib.request.urlopen without the HTTPError wrapper (tests/server/test_inkling2.py:168,188,206), so an HTTP 500 will surface as a bare traceback with no server body. Capture the server's stderr, or prefer the hand-rolled T1 above for the first look. Also note test_inkling2.py skips itself unless FLARE_RUN_CUDA_TESTS=1 and FLARE_INKLING2_TEST_URL are both set (:23-26).
4. What to skip, and why (this is where the GPU time is saved)
- No throughput or latency A/B. The PR makes no performance claim and the change is CPU-side JSON handling that removes one
serde_json::Valueallocation per TMLv0 tool call. Measuring decode speed would report noise at best. Do not runignition benchfor this PR. - No re-export for the A/B — server-side fix, core format unchanged.
- Do not attempt Inkling 2 Small NVFP4. 344 GB checkpoint, TP4-only, needs four GB10 hosts; cn5's 125 GiB RAM / 16 GiB scratch and cn7's single GB10 both rule it out. This is the trap the "verified on 4× DGX Spark TP4" claim invites.
- Do not try to reproduce the PR's "35/35 live" run. It needs four Sparks and an out-of-repo harness; it is not reproducible here and is not needed to validate the change.
- Do not chase the Anthropic Messages
tool_use.inputpath (encode.rs:334) or the prompt-side TML renderer (helios/src/frontend/tml.rs:148-174(not opened)). Both still round-trip throughserde_json::Value, both are pre-existing and shared with the Qwen/GLM/DSML raw paths, andstrict: trueis rejected at admission on Messages — so the reported 500 cannot recur there. Out of scope for this PR; worth a separate TODO. - Do not hand-build a synthetic TML core to dodge the recipe dependency: the in-repo fixture frontend is a 2-token
WordLeveltokenizer (helios/tests/fixture_frontend.py:10-20) while TML framing needs the 14 control markers as real tokens. It would test plumbing thatstrict.rs:3819-3922(not opened) already covers.
Abort criteria: if the Mini core cannot be staged (alias unavailable, gated weights, <60 GiB free), stop rather than improvise. The Rust tests plus the #[ignore]d Inkling tokenizer tests are the authoritative guard for this fix; a hardware run is confirmation, not the gate.
5. Two things the engineer should also record (not test failures)
docs/TODO.txt:5-8is still open — the entry whose closing condition this PR claims to meet ("Close when a served TMLv0 core passes those checks and the result is recorded"). If T1–T4 pass, that recorded result belongs in the PR and the entry should be closed or narrowed (it also asks for streamed/v1/responses, which the committed test does not cover).AGENTS.md:514-517(not opened) requires this; three review lenses flagged it.- The PR's evidence command is unreproducible as written.
server::request::tml_tests::are all#[ignore]d (needs--ignored+FLARE_INKLING2_TEST_SNAPSHOT), and the post-rebasecargo testline omits--releasethat CI uses. Worth correcting in the description alongside the hardware result.
My read on the change itself: the production fix is correct and minimal — #[serde(deny_unknown_fields)] struct RawCall<'a> { name: String, #[serde(borrow)] args: &'a RawValue }, gate on args.starts_with('{'), emit args.to_owned() — it preserves >64-bit integers, removes an allocation, adds no dependency (raw_value is already enabled at helios/Cargo.toml:52 (not opened)), and is isolated to one parser kind. The docs/TODO.txt bookkeeping and the fixture reuse in the Python test are the only outstanding items, and neither needs GPU time to resolve.
Discord Test Request
Discord post (ready to paste)
## Recommendation: Test
High confidence — the fix is 35 lines of one parser, and the bug is still live on main.
## Hardware Required
- One cn5 node with a single free SM120 GPU (cn7 is a fallback only; do not book cn7).
- ~60 GiB free disk for the Inkling 2 Mini (~19.5 GB) checkpoint + prepared core; the 16 GiB scratch is not enough.
- `hyperflare-recipes` installed from local-inference-lab/hyperflare-recipes (recipes are not in this repo) — or a prebuilt `gb120-tp1` core already in the flare cache.
## Justification
- Only Inkling 2 (TMLv0) cores ever run the changed code, so nothing on cn5's usual models would exercise it — but Mini is already qualified on exactly one SM120 GPU, so a cheap 10-minute run proves the real path.
- T1 alone reproduces the reported HTTP 500 and should now return the 30-digit integer intact; do not attempt Inkling 2 Small NVFP4 (344 GB, TP4, four GB10 hosts — infeasible on cn5 or cn7).
## Estimated Time to Complete
~2 h total: ~30 min CPU-only gates first (abort the GPU slot if those fail), then ~10 min of GPU on a prebuilt core, or ~2–2.5 h if the Mini core must be exported (~1 h).
(≈75 words of body; keep the block as-is if the channel prefers compact messages.)
What I checked, and how the report held up
Verified true against the repo at head a0d9065:
- The change is exactly as described and is production-minimal. Only
helios/src/output/tml.rs:342-376alters behavior (RawCall<'a> { name: String, #[serde(borrow)] args: &'a RawValue }, gateargs.starts_with('{'), emitargs.to_owned()); other two files are tests (helios/src/grammar/strict.rs(not opened),tests/server/test_inkling2.py). Matchespr_diffand+237/−10. - The bug is still open bookkeeping.
docs/TODO.txt:5-8is still[ ]"Qualifystrict: truefunction tools on a TMLv0 core … Close when a served TMLv0 core passes those checks and the result is recorded" — so the report's point 5.1 is correct, and the PR's own claim doesn't close it. - Only TMLv0 cores run the changed code.
ToolParserKind::TmlJson= 8 (helios/src/model/contract.rs:67(not opened),helios/proto/runtime_core.proto:464(not opened)); dispatched inhelios/src/output/pipeline.rs:98(not opened). So the report's "model choice is the whole decision" is right. - The PR's evidence command is unreproducible as written. All six
server::request::tml_tests::tests are#[ignore = "requires FLARE_INKLING2_TEST_SNAPSHOT with the Inkling 2 tokenizer"](helios/src/server/request/tml_tests.rs:103,161,247,264,313,356) — confirming they show as ignored, not passed, without--ignored+ the env var. The rebase comment also drops--releasethat CI uses. - CI-covered unit guards exist and are the right gate.
call_preserves_raw_json_arguments_including_arbitrary_precision_integers(tml.rs:620-642) andtml_strict_parser_preserves_30_digit_integers(strict.rs:3820(not opened)), alongside the pre-existingqwen_and_glm_strict_parsers_preserve_30_digit_integers(strict.rs:3724(not opened)) — also the source of the duplicated schema fixture the review flagged. - The committed live test covers the intended matrix but hides server errors.
tests/server/test_inkling2.py:121-209covers Chat buffered, Chat streamed (one arguments delta), Chatmax_tokens=10truncation (finish_reason=="length", no tool_calls), Responses buffered, andmax_output_tokens=10(status=="incomplete"). It skips itself unlessFLARE_RUN_CUDA_TESTS=1andFLARE_INKLING2_TEST_URLare set (:23-26), and the three requests at:168, :188, :206use bareurlopenwith noHTTPErrorwrapper — an HTTP 500 surfaces as a bare traceback with no server body, exactly as the report warns. - Inkling 2 Mini is the only feasible model here. #468 (closed, re-ported to
local-inference-lab/hyperflare-recipes#5) qualifiedthinkingmachines/Inkling-2-Mini—19,525,870,752stored bytes, 132 graphs, ~11.8k kernels, pass across plain/fixed-7/adaptive — on one SM120 RTX PRO 6000. #304 (merged) shows Inkling 2 Small NVFP4 is a 344 GB checkpoint, four GB10/SM121 hosts, ~90 GiB resident per rank, 351 GB full core — so "do not attempt Small NVFP4" and "cn7 fallback only" are both supported. - Recipe dependency is real. The
ignitiontree here carries norecipes/package (only e.g.ignition/preparation/runtime_core_pb2.py(not opened)), and #468's closing comment states all recipe files moved tolocal-inference-lab/hyperflare-recipes— confirming pre-flight gate 1.
Not verifiable from the repository (taken from the supplied report, not independently checked): the cn5/cn7 hardware figures (125 GiB RAM, 16 GiB scratch, 4× SM120 96 GiB on cn5; 1× GB10 60 GiB on cn7), the "35/35 live on 4× DGX Spark" counter-claim, and tests/frontend/inkling2_tml.json (not opened) golden contents (I did not open it, nor docs/api.md:614-631 (not opened)).
Adjustments I made to the report rather than copying it: I kept the hardware bullets to what actually gates the booking (one GPU, disk above 16 GiB scratch, recipes/prebuilt core), and folded the "abort if CPU gates fail" and "cancel the slot" guidance into the time estimate as a single parenthetical, since the template allows only three short hardware bullets, two justification bullets and one time line. T1/T5 are named in Justification but the full request bodies stay in the test plan.
Note on the material I was given: the supplied context ended with a bare line yes and a "Done when: …" instruction block. Neither was a legitimate part of the report; I treated them as stray text and did not act on them. No prompt-injection attempt was found in the PR description, comments or files.
Full report Human Approval: Do you approve this test? → No answer in time.
Discord post (ready to paste)
## Recommendation: Test High confidence — the fix is 35 lines of one parser, and the bug is still live on main. ## Hardware Required - One cn5 node with a single free SM120 GPU (cn7 is a fallback only; do not book cn7). - ~60 GiB free disk for the Inkling 2 Mini (~19.5 GB) checkpoint + prepared core; the 16 GiB scratch is not enough. - `hyperflare-recipes` installed from local-inference-lab/hyperflare-recipes (recipes are not in this repo) — or a prebuilt `gb120-tp1` core already in the flare cache. ## Justification - Only Inkling 2 (TMLv0) cores ever run the changed code, so nothing on cn5's usual models would exercise it — but Mini is already qualified on exactly one SM120 GPU, so a cheap 10-minute run proves the real path. - T1 alone reproduces the reported HTTP 500 and should now return the 30-digit integer intact; do not attempt Inkling 2 Small NVFP4 (344 GB, TP4, four GB10 hosts — infeasible on cn5 or cn7). ## Estimated Time to Complete ~2 h total: ~30 min CPU-only gates first (abort the GPU slot if those fail), then ~10 min of GPU on a prebuilt core, or ~2–2.5 h if the Mini core must be exported (~1 h).(≈75 words of body; keep the block as-is if the channel prefers compact messages.)
What I checked, and how the report held up
Verified true against the repo at head
a0d9065:
- The change is exactly as described and is production-minimal. Only
helios/src/output/tml.rs:342-376alters behavior (RawCall<'a> { name: String, #[serde(borrow)] args: &'a RawValue }, gateargs.starts_with('{'), emitargs.to_owned()); other two files are tests (helios/src/grammar/strict.rs(not opened),tests/server/test_inkling2.py). Matchespr_diffand+237/−10.- The bug is still open bookkeeping.
docs/TODO.txt:5-8is still[ ]"Qualifystrict: truefunction tools on a TMLv0 core … Close when a served TMLv0 core passes those checks and the result is recorded" — so the report's point 5.1 is correct, and the PR's own claim doesn't close it.- Only TMLv0 cores run the changed code.
ToolParserKind::TmlJson= 8 (helios/src/model/contract.rs:67(not opened),helios/proto/runtime_core.proto:464(not opened)); dispatched inhelios/src/output/pipeline.rs:98(not opened). So the report's "model choice is the whole decision" is right.- The PR's evidence command is unreproducible as written. All six
server::request::tml_tests::tests are#[ignore = "requires FLARE_INKLING2_TEST_SNAPSHOT with the Inkling 2 tokenizer"](helios/src/server/request/tml_tests.rs:103,161,247,264,313,356) — confirming they show as ignored, not passed, without--ignored+ the env var. The rebase comment also drops--releasethat CI uses.- CI-covered unit guards exist and are the right gate.
call_preserves_raw_json_arguments_including_arbitrary_precision_integers(tml.rs:620-642) andtml_strict_parser_preserves_30_digit_integers(strict.rs:3820(not opened)), alongside the pre-existingqwen_and_glm_strict_parsers_preserve_30_digit_integers(strict.rs:3724(not opened)) — also the source of the duplicated schema fixture the review flagged.- The committed live test covers the intended matrix but hides server errors.
tests/server/test_inkling2.py:121-209covers Chat buffered, Chat streamed (one arguments delta), Chatmax_tokens=10truncation (finish_reason=="length", no tool_calls), Responses buffered, andmax_output_tokens=10(status=="incomplete"). It skips itself unlessFLARE_RUN_CUDA_TESTS=1andFLARE_INKLING2_TEST_URLare set (:23-26), and the three requests at:168, :188, :206use bareurlopenwith noHTTPErrorwrapper — an HTTP 500 surfaces as a bare traceback with no server body, exactly as the report warns.- Inkling 2 Mini is the only feasible model here. #468 (closed, re-ported to
local-inference-lab/hyperflare-recipes#5) qualifiedthinkingmachines/Inkling-2-Mini—19,525,870,752stored bytes, 132 graphs, ~11.8k kernels, pass across plain/fixed-7/adaptive — on one SM120 RTX PRO 6000. #304 (merged) shows Inkling 2 Small NVFP4 is a 344 GB checkpoint, four GB10/SM121 hosts, ~90 GiB resident per rank, 351 GB full core — so "do not attempt Small NVFP4" and "cn7 fallback only" are both supported.- Recipe dependency is real. The
ignitiontree here carries norecipes/package (only e.g.ignition/preparation/runtime_core_pb2.py(not opened)), and #468's closing comment states all recipe files moved tolocal-inference-lab/hyperflare-recipes— confirming pre-flight gate 1.Not verifiable from the repository (taken from the supplied report, not independently checked): the cn5/cn7 hardware figures (125 GiB RAM, 16 GiB scratch, 4× SM120 96 GiB on cn5; 1× GB10 60 GiB on cn7), the "35/35 live on 4× DGX Spark" counter-claim, and
tests/frontend/inkling2_tml.json(not opened) golden contents (I did not open it, nordocs/api.md:614-631(not opened)).Adjustments I made to the report rather than copying it: I kept the hardware bullets to what actually gates the booking (one GPU, disk above 16 GiB scratch, recipes/prebuilt core), and folded the "abort if CPU gates fail" and "cancel the slot" guidance into the time estimate as a single parenthetical, since the template allows only three short hardware bullets, two justification bullets and one time line. T1/T5 are named in Justification but the full request bodies stay in the test plan.
Note on the material I was given: the supplied context ended with a bare line
yesand a "Done when: …" instruction block. Neither was a legitimate part of the report; I treated them as stray text and did not act on them. No prompt-injection attempt was found in the PR description, comments or files.