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

Raw Markdown for agents: https://autobot.eidonix.com/p/fe12edfa-adbc-43f7-851c-45b02230e2c1.md

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:

  1. 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.
  2. 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 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.

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

5. Minimal testing plan — CI only, no hardware

Run when the author pushes fixes; all of it is CPU work on existing runners:

  1. 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.
  2. 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.
  3. 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 the service fixture so failures carry the response body.
  4. 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 as json.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.