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

Raw Markdown for agents: https://autobot.eidonix.com/p/ca81d9d1-b334-430d-a7c5-8a3f8ea5f3ce.md

Pre-test report — PR #461 "Document strict tool selection and numeric range precision"

Verdict: do not refer to hardware testing. Two substantive documentation-accuracy defects must be fixed before merge; testing the current head would validate prose that is going to change, and there is no runtime code path for a GPU to exercise.


1. What the PR actually changes (verified against the diff, not the summaries)

Head e831b49, base main, 2 files, +39/−14:

There is no non-test code change. validate_strict_node and unsupported_strict_literal are untouched, so the PR's "no requests accepted on main acquire a new HTTP 400" claim is structurally correct — the net runtime diff against the base is empty. The branch history does contain a reverted opposite (a640a302 bounded range keywords below 2^53, reversed by e831b496); the PR description does not mention the reversal, which is a description-honesty nit, not a code risk.

2. Why hardware testing has no value here

3. Substantive problems that must be fixed first (these, not hardware, are what blocks)

S1 — docs/api.md:522-525 and :544-546 misdescribe when a strict schema can be refused. The new sentences tie grammar attachment to the selected/active function. Grammar attachment is indeed selection-scoped (helios/src/server/request.rs:225-241: active_tools is filtered by tool_choice; has_active_strict_tool at :242 gates compilation at :249-279). But schema admissibility is not: compile_strict_validators (request.rs:88-113, called first at request.rs:125) iterates request.tools.iter().filter(|tool| tool.strict) with no tool_choice term, so a strict tool with an unsupported schema returns an admission error (HTTP 400) even under tool_choice: "none" or a named choice pointing elsewhere. That is pinned today by ignored_strict_tools_still_require_compiler_admissible_schemas (request.rs:704-769). The page currently reads as if an unselected strict tool is inert; it can fail the request. Fix: one clause stating that every declared strict: true schema must be admissible even when its tool is not selected.

S2 — docs/api.md:605-612 says all large bounds are accepted-and-rounded; some are refused. Admission accepts any finite as_f64 bound (strict.rs:575-584) and hands the schema verbatim to llguidance = 1.9.1 (strict.rs:144; helios/Cargo.toml:62). yatesdr's verified table on main at 6d6fe0c6 (PR review 2026-11-23 15:04) records that minimum: -9223372036854775808 on an integer property and minimum: 2^60 on a number property are already refused by llguidance with a range error — i.e. HTTP 400, which api.md:644-645 covers only obliquely. i64::MIN is exactly what generated int64 schemas emit, so a client reading the new advice ("keep the bound, validate in the tool") has no way to know that class is a hard rejection. The paragraph must distinguish "rounded" from "refused".

S3 — The unresolved leniency is not recorded where the repository requires it. AGENTS.md:52-55: "Record unresolved defects, unrun checks, and pending measurements in [docs/TODO.txt], not in design documents." I searched docs/TODO.txt for 9007199254740, 2^53, binary64, llguidance and strict; the only hit is docs/TODO.txt:25-28 (qualifying strict: true on TMLv0 cores). There is no entry with an owner and a removal criterion for "strict integer grammars can admit values the schema forbids above 2^53". Keep the api.md paragraph, add the TODO.

S4 — The two documented rounding outcomes are asserted nowhere in the repository. The added test covers only the maximum side, which is the case the docs present as exact; minimum: 9007199254740993 admitting 9007199254740992 and exclusiveMinimum: 9007199254740992 admitting the endpoint rest solely on the reviewer's scratch run. Against a pinned =1.9.1 dependency, a future bump can make docs/api.md silently false (or over-claim a limitation that was fixed) with no failing test. Extend the new test with those two schemas asserting the documented outcome, or say in the TODO why asserting wrong-but-current behaviour is judged acceptable.

Lower-severity, decide without blocking a test decision: the new test partly duplicates strict_bounds_do_not_round_integers_or_fractional_multiples (strict.rs:3005-3016, which already pins maximum: 9007199254740992 accepted / ...993 rejected) — folding the new endpoints into that test's data removes the second owner of the same property; docs/api.md:610-611's reassuring inclusive-maximum sentence is true only for that representable value and, per the Value Proposition lens's reading of llguidance's normalize_integer_bounds, is misleading for e.g. maximum: 9007199254740995; :600-603 drops the "IEEE 754" qualifier and the explicit accepted integer interval that the removed sentence carried; :607 runs to 86 columns. "Active" is now load-bearing at :545 and is defined nowhere on the page.

4. Security / injection screen

Clean, and independently confirmed. The diff contains no imperative addressed to automation, no new external URLs, no HTML/script, no fetch/execute directive. The only agent-addressed text anywhere in the thread is the flare-autobot case-file comment (2026-11-24 18:32), a bot pointer with an opt-out line; it asks nothing of the code and was not followed.

5. Test plan

Recommended: none on hardware. If this PR is nonetheless routed to a test engineer, the only acceptable scope is the CPU unit-test run below — it should not consume a GPU allocation:

cargo test --release --locked --manifest-path helios/Cargo.toml \
  -p flare-helios --lib --features server,runtime-core grammar::strict::tests::

Run once on cn7 (arm64, 1× GB10) to match the reviewer's aarch64 platform and to confirm the author's x86_64-only result is not platform-specific; no GPU, no model load, no served request. Expected: 29 tests, 28 passed, 1 ignored (strict.rs:4355, DeepSeek snapshot). If S4 is fixed first, expect the added rounding assertions to pass — and if they fail, the docs must be rewritten to match llguidance's actual behaviour, which is exactly the signal the test exists to give. cn5 is not needed for anything in this PR; do not allocate it.

Re-test trigger. Refer this PR to a test engineer only if a later commit starts touching helios/src/grammar/strict.rs outside mod tests, helios/src/server/request.rs, or the llguidance pin — that would be a genuine admission/decoding change (a strict-schema 400 surface), and then a served-request check of strict tool admission under tool_choice: none/named/required on cn7 would be worth ~15 minutes. As it stands, the PR cannot fail on hardware in any way the CPU suite does not already catch.

6. Expected value if the PR is fixed and merged

Moderate and documentation-only: the API reference stops asserting two falsehoods (selection constrains decoding; every large numeric bound is a hard limit) and names where strict enforcement actually ends, which matters for agent/tool-loop clients emitting int64 bounds. Zero runtime risk (no code change), small scope, and it closes the maintainer-offered alternative from the #418 review. Value is destroyed, not created, if it ships with S1/S2 as written, because a client would then believe an unselected strict tool cannot 400 and that every large bound is merely imprecise.