Prose report · NVIDIA/hyperflare-inference #461

Raw Markdown for agents: https://autobot.eidonix.com/p/8c68c902-2125-4d89-9d12-626d966ffd01.md

Review — PR #461 "Document strict tool selection and numeric range precision" (lens E, prose)

Lens: the PR description, its commit messages, and the docs and comments it changes, judged against the repository's writing rules (AGENTS.md "Required prose review" and "Required PR descriptions", docs/design-review.md principle 16, .agents/skills/repo-prose/SKILL.md (not opened)).

Key findings

  1. The new range-bounds paragraph tells a client to keep a large bound and validate in the tool, but some large bounds are already refused with HTTP 400. docs/api.md:605-612 frames the whole space of large minimum/maximum/exclusiveMinimum/exclusiveMaximum values as "interpreted at binary64 precision … validate the tool arguments with exact arithmetic before executing the tool". The reviewer's own table on this PR (yatesdr, 2026-11-23 15:04, on main 6d6fe0c6) 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 under docs/api.md:644-645 ("invalid strict schemas return HTTP 400"). Admission in helios/src/grammar/strict.rs:575-584 only requires each bound to have an as_f64 representation, so the refusal comes from the downstream compiler and is invisible in this repository's code — which is exactly why the document has to say it. Severity: should fix.
  2. The passage codifies an unresolved enforcement defect without the TODO entry the repository requires. The new text states that a strict integer grammar admits values its schema forbids, and the PR description says plainly "This does not fix llguidance's rounding". AGENTS.md:47-55 requires unresolved defects to be recorded in docs/TODO.txt, "not in design documents", and .agents/skills/repo-prose/SKILL.md:38-39 (not opened) requires a TODO to name the missing condition and the criterion for removal. docs/TODO.txt has no entry for large strict numeric bounds; its only strict-tool item is docs/TODO.txt:25-28 (TMLv0 qualification). Severity: should fix.
  3. Nothing blocking. The description's compatibility claim checks out: the only helios/src hunk is a #[cfg(test)] function (helios/src/grammar/strict.rs:3888-3898), so no code path changes and no accepted request gains a 400 — the claim in the PR body is accurate, not merely asserted.

PR description: the four required parts

AGENTS.md:67-107 requires, in this order: why, what exactly changed, the claimed benefit or result, and the evidence, with material limitations visible (AGENTS.md:98-104) and headings not mandatory but content and order mandatory (AGENTS.md:129-135).

Commit messages

Changed docs and comments

docs/api.md:605-612 — new range-bounds paragraph (should fix)

Correct where it can be checked:

Two defects:

Nit at docs/api.md:608-609: "…can admit the endpoint itself because adding one rounds back to the same number" states a mechanism inside llguidance. Nothing in this repository shows that exclusive bounds are implemented as bound + 1; docs/design-review.md:134-149 rejects unexplained references and unsupported claims in changed prose. Either drop the causal clause or cite where the exclusive-bound handling lives.

Nit at docs/api.md:600-603: the rewrite drops the removed text's exact expansion — "9,007,199,254,740,992, so integer literals lie in [-9,007,199,254,740,991, 9,007,199,254,740,991]" — leaving only "must have magnitude strictly below 2^53". The predicate is still correct (the 2^53 endpoint itself is rejected by helios/src/grammar/strict.rs:3910-3947), but a client no longer gets the inclusive range or the decimal value, and has to convert 2^53 itself. Restoring the expansion costs one line.

docs/api.md:522-525 — named selection (verified consistent)

"retaining conversation history and adding no separate call instruction. Selection by itself adds no decoding constraint; when the selected function sets strict: true, it attaches the strict request grammar described below." Matches helios/src/server/request.rs:225-241: active tools are filtered to the named tool and a grammar is compiled only when some active tool is strict; also agrees with docs/core-design.md:1679-1683 ("Named tool selection filters the definitions to that tool; it does not by itself enable a grammar"). Replacing "adding no instructions or decoding constraints" with the split sentence is a genuine improvement: the old sentence contradicted itself once a strict named tool attached a grammar. No finding.

docs/api.md:540-552 — required mode (verified consistent)

"Required mode by itself leaves sampling unconstrained; any active strict: true function still attaches the strict request grammar" matches helios/src/server/request.rs:225-241 (Required keeps all tools, grammar compiled if any is strict) and docs/core-design.md:1679-1680. Dropping "Sampling is unchanged;" removes nothing that the new sentence does not cover, and the paragraph keeps its error contract (HTTP 500 buffered, terminal error event for streams) unchanged. No finding.

helios/src/grammar/strict.rs:3888-3898 — added test prose

The name strict_integer_maxima_preserve_large_inclusive_endpoints and the body agree: both accepted maxima are inclusive endpoints, and each successor is rejected. Two scope notes for the description rather than defects: it exercises only maximum, so the minimum / exclusiveMinimum claims in the new docs paragraph remain supported only by the reviewer's scratch test; and maximum + 1 for i64::MAX is emitted as an unsigned literal, which is the value the assertion needs. The test carries no comment that needs rewriting under repo-prose SKILL.md:38-39.

Evidence and claims

Open questions and what could not be settled

  1. Which bound keywords and magnitudes admission actually refuses. helios/src/grammar/strict.rs:575-584 accepts any as_f64 value, so the refusal lives in llguidance and only a test can pin it. Until that test exists, the docs cannot state the refusal precisely, and the paragraph stays incomplete (finding 1).
  2. Whether the reviewer's minimum: 2^60 on a number observation reproduces on x86_64 and in the shipped llguidance version; the PR's own run was CPU x86_64 but covered only grammar::strict::tests::.
  3. Commit bodies of a640a302 and e831b496 — not readable with the review tools; the commit-message nit rests on the reviewer's verbatim quotation.
  4. Whether a docs/TODO.txt entry for the rounding defect already exists under wording I did not search (I searched strict|llguidance|binary64|numeric|round; the only strict-tool hit is docs/TODO.txt:25-28).