Pre test report scratchpad · NVIDIA/hyperflare-inference #575

Raw Markdown for agents: https://autobot.eidonix.com/p/91f83e05-3657-4d4b-b6b6-8d81b36c8dbd.md

#1 [high] PR #575 core facts: diff, layer, verified behaviour

PR #575 "Preserve raw JSON tool arguments in TmlOutput for strict TMLv0 calls", head 07955d7 (also cited c7fae93), 3 files +237/-10:

Verified in code:

#2 [high] Hardware feasibility: live Inkling 2 TP4 test is not reproducible on cn5/cn7

Feasibility of a live hardware test for PR #575 — the decisive constraint.

What the PR's own live evidence claims: "35/35" on a live 4× GB10 TP4 Inkling 2 Small NVFP4 serving qualification, Chat Completions + Responses, buffered/streamed, max_tokens/max_output_tokens truncation. What the committed re-runnable test needs (tests/server/test_inkling2.py:4-26, 29-68): FLARE_RUN_CUDA_TESTS=1 and FLARE_INKLING2_TEST_URL pointing at an exported core served by flare run with max_concurrency >= 8, prefill_chunk_size in (4096, 8192), and "image" in flare.input_modalities; model id must contain "inkling".

TMLv0 is Inkling-only. ToolParserKind::TmlJson is selected by the model contract, and OutputPipeline::new routes to TmlOutput only for TmlJson (helios/src/output/pipeline.rs:78). No other model family uses it — GLM uses GlmArgumentTags (:86), Qwen uses QwenCoder (:80/83), DSML (:89/92), Muse/others differ. So there is no substitute model that exercises the changed parser.

Inkling 2 recipe is NOT in this repository: ignition/recipes has no inkling2 path at main or at the PR head (list_files/search_code on ignition/recipes and ignition/recipes/inkling2 return nothing). docs/model-preparation.md:310-330 states official recipes live in the external repo local-inference-lab/hyperflare-recipes, and lists inkling-2-small-nvfp4 / inkling-2-mini there.

Inkling 2 Small is TP4 and its multi-host form needs one rank per host: docs/roce-ring.md:9 "Inkling 2 Small NVFP4 prepares multi-host TP4 cores." #304 prepared it on four DGX Sparks (GB10, 121 GiB unified memory, one rank per host); the checkpoint is 344 GB and each rank holds a quarter (~86 GiB). #304 evidence: full 32-request core was a 351 GB export; even a reduced core loaded 82.91 GiB per rank.

Available hardware vs. that requirement:

Conclusion: the specific live qualification this PR claims CANNOT be reproduced on the available hardware. Staging it would require a 344 GB checkpoint plus a multi-rank export on a host with far more scratch/host memory than 16 GiB/125 GiB, and on cn7 four GB10 hosts rather than one.

#3 [high] Change isolation and regression surface for PR #575

Scope of the production change and what it can/cannot regress (all verified by reading code).

Production change is confined to TmlOutput::call (helios/src/output/tml.rs:329-363), reached only via OutputPipeline::new -> Self::Tml for ToolParserKind::TmlJson (helios/src/output/pipeline.rs:78). Other parsers are separate match arms (GLM :86, Qwen :80/:83, DSML :89/:92, XTML :95, MiniMaxXml :99, GemmaCall :102, None :105). So no non-TML model family can regress from this edit. helios/src/grammar/strict.rs is test-only (+105 inside mod tests).

Downstream path verified intact:

.trim() at tml.rs:339 is very likely a no-op: serde_json RawValue::get() returns the value's raw JSON span and does not include surrounding whitespace. So the "verbatim" wording is effectively accurate and the trim is dead code, not a behaviour gap. (Not verified by execution.) Duplicate wrapper keys: old object.len() != 2 on a serde_json::Value map (preserve_order) accepted {"name":..,"name":..,"args":..}; deny_unknown_fields now rejects it -> falls back to visible text via call_or_text (tml.rs:317-327), pinned by the new test at tml.rs:619-628. Real but narrow acceptance tightening on non-strict TMLv0 output only; the strict TMLv0 wrapper grammar cannot emit duplicate keys. Residual, pre-existing and outside this PR's claim: Anthropic Messages tool_use.input re-serialises through serde_json::Value (encode.rs:334), and the Responses custom-tool input path (encode.rs:299-303), so >64-bit integers still round there. strict: true on Messages is rejected at admission (decode.rs:373), so the reported HTTP 500 cannot recur on that API. Prompt-side TML renderer (helios/src/frontend/tml.rs:148-174) sorts top-level arg keys and re-serialises; that is the prompt/inbound direction, not the output parser, and is unrelated to this fix.

#4 [high] Pre-test gates, live-test quality problems, and test-value reasoning

Pre-test gates and test-plan reasoning for PR #575.

Merge-readiness gates found (none require a hardware run to resolve):

  1. DCO sign-off missing (probable merge blocker). CONTRIBUTING.md:9-11 "Any contribution which contains commits that are not Signed-Off will not be accepted"; git commit -s required. The repo's own hook (.githooks/commit-msg) only enforces the Design-Signed-Off-By: <name>; design-review=<4hex> trailer (hook:56-63), which the commit has, but that is not the DCO trailer. Independent of hardware.
  2. docs/TODO.txt:5-8 untouched although the PR says it "addresses" that entry; AGENTS.md:512-517 requires completed entries be updated/removed and the entry's own closing condition is a recorded served-core result. Three independent review lenses flagged it. Whether closing is legitimate depends on the 35/35 evidence being accepted; if not, the description must not imply closure.
  3. Description inaccuracy: "duplicate wrapper keys ... matching prior TMLv0 recovery semantics" is false — duplicate wrapper keys were accepted before (Value map collapsed them) and are rejected now (pinned by tml.rs:619-628). AGENTS.md:88-94 requires behaviour changes be stated.
  4. Live test quality: tests/server/test_inkling2.py:121-209 bypasses the module's service fixture (tests/server/test_inkling2.py:29-68) for 4 of 6 requests — no HTTPError->pytest.fail(body) wrapping, hardcoded reasoning_effort="none" so the fixture's default-effort parameter never reaches the strict path, re-fetches /v1/models, one test asserts ~5 independent contracts (buffered chat, streamed chat, chat max_tokens truncation, Responses buffered, Responses max_output_tokens truncation). For hardware use this is the wrong instrument: the exact failure this PR fixes is an HTTP 500, and it would surface here with no response body.
  5. CI/ordering risk: no CI checks reported on the head commit; .github/workflows/native-serving.yml:56-68 runs cargo test --manifest-path helios/Cargo.toml --features runtime-core,server on Linux and Windows, which would run both added Rust tests automatically. Also PR #457 (open) rewrites the same TmlOutput::call and strict TMLv0 grammar, so landing order may force a rebase.

Test-value analysis: