Explore scratchpad · NVIDIA/hyperflare-inference #461

Raw Markdown for agents: https://autobot.eidonix.com/p/21470fc3-9307-4fb9-b34a-3b753d6dca76.md

#1 [high] Change: what PR #461 actually changes (verified from diff)

PR #461 "Document strict tool selection and numeric range precision", author jcartu (CONTRIBUTOR), opened 2026-11-22, head e831b49, base branch main, +39/−14 across 2 files (pr_diff, result 2).

  1. docs/api.md (+27/−14):

    • Named selection paragraph (~line 522-530 at head): previously "adding no instructions or decoding constraints" → now "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."
    • Required mode paragraph (~line 541-552): drops "Sampling is unchanged;" and adds "Required mode by itself leaves sampling unconstrained; any active strict: true function still attaches the strict request grammar described below."
    • Strict schema section (~line 599-612): const/enum rule reworded ("must have magnitude strictly below 2^53"; drops the explicit integer literal interval [-9,007,199,254,740,991, 9,007,199,254,740,991] and the "larger exact identifiers...as strings" hint becomes "Use strings for identifiers or decimal values that must be represented exactly").
    • NEW paragraph on range bounds: minimum/maximum/exclusiveMinimum/exclusiveMaximum interpreted at binary64 precision; above 2^53 adjacent integers need not be distinct; integer minimum: 9007199254740993 can admit 9007199254740992; exclusiveMinimum: 9007199254740992 can admit the endpoint; inclusive maximum: 9007199254740992 does distinguish the next integer; recommends exact application-side validation before executing a tool.
  2. helios/src/grammar/strict.rs (+12, test-only): new test strict_integer_maxima_preserve_large_inclusive_endpoints (head lines ~3888-3900): for maximum in [1_000_000_000_000_000_000u64, i64::MAX as u64], validates strict schema, grammar.validate({"n": maximum}) ok and {"n": maximum+1} err.

Net: no production code change. Author states at e831b4966e "the net runtime diff against the PR base is empty" (PR comment 2026-11-23 15:29) — consistent with the diff.

An intermediate commit existed: a640a302 "Bound strict function-tool numeric range keywords below 2^53" (2026-11-22), later replaced by e831b496 "Preserve admission for large strict numeric bounds" (2026-11-23) after yatesdr's review. Current head therefore contains the documentation alternative, not the rejection.

Redundancy note: an older test strict_bounds_do_not_round_integers_or_fractional_multiples (strict.rs:3005-3025 at head) already covers maximum: 9007199254740992 accepted exactly and 9007199254740993 rejected; the new test extends that to 10^18 and i64::MAX.

#2 [high] Claims and evidence: the rounding limitation, verified in code on main

Verified in the repository at head (and on main, which is identical for this code):

Consequence: the docs paragraph in #461 describes observed behaviour of main, and "This does not fix llguidance's rounding" in the PR description is accurate as far as the code shows. The two rounding examples (exclusiveMinimum 2^53 admitting the endpoint; minimum 2^53+1 admitting 2^53) come from yatesdr's review table (result 1), described as run through validate_strict_tool_schema + TextGrammar::validate on aarch64 Linux at 6d6fe0c6; I did not execute them (no build/run tooling here) — treat as reviewer evidence, not my own verification.

#3 [high] Related work: #461 is the follow-up #418 promised for review items 1–2

Chain and provenance:

Superseded state: #461's first commit a640a302 "Bound strict function-tool numeric range keywords below 2^53" did exactly what item 1 asked (reject bounds ≥2^53). yatesdr's review of 2026-11-23 rejected that approach as over-restrictive and offered "leave admission as it is and document the limit, which docs/api.md now states"; the current head e831b49 reversed the code change (commit message "Preserve admission for large strict numeric bounds"). So #461 today delivers only half of the maintainer request from #418 (the docs qualification), and the numeric-bound rejection is explicitly not delivered.

Also relevant: docs/TODO.txt:25-28 still tracks "Qualify strict: true function tools on a TMLv0 core" — unrelated to this PR but part of the same #418 qualification debt.

#4 [high] Process and community: review state, CI, evidence per round

State: open, "ready for review", opened 2026-11-22 09:19, last updated 2026-11-23 (answer at 15:29), head e831b49. Two files, +39/−14. No labels. Reviews: CHANGES_REQUESTED by yatesdr only. CI on head: "no checks" per orientation packet; the repo workflow .github/workflows/native-serving.yml runs cargo test --locked --release --manifest-path helios/Cargo.toml --features runtime-core,server on ubuntu-24.04 and windows-2022 on every pull_request (result 74), so CI would cover the new test if it ran — it has not run on this head.

Round 1 (2026-11-23 15:04, yatesdr, CHANGES_REQUESTED, result 1): accepted the docs/api.md changes as settling the two sentences #418 flagged. Objected that "the admission rule refuses more than the gap it closes", gave a measured table from main 6d6fe0c6 (aarch64 Linux, CPU only) showing exact inclusive endpoints that the ≥2^53 rule would have rejected (10^18, i64::MAX), and noted the PR had changed main's own test from maximum: 9007199254740992 to 9007199254740991 to make it pass. Two asks: refuse only the bounds llguidance rounds, or leave admission and document the limit; and state which requests now get HTTP 400. Nit: the commit message narrated #418's timing provenance and cited a commit not in this repository.

Round 2 (2026-11-23 15:29, jcartu): took the documentation alternative. States net runtime diff against the PR base is empty, the original inclusive 2^53 test is unchanged, the new regression accepts 10^18 and i64::MAX and rejects successors, strict grammar suite passed on x86_64 (28 passed, 1 ignored), docs identify the two rounding cases rather than claiming they are fixed, description no longer cites unrelated timing results.

Outstanding at head: yatesdr's review is still CHANGES_REQUESTED (no approval after the rewrite); nobody else has commented; no reactions recorded. The 28-test count: grammar::strict::tests:: filter — the file has 31 #[test] functions of which one is #[ignore] (requires FLARE_DEEPSEEK_TEST_SNAPSHOT, strict.rs:4355), so 28 passed + 1 ignored means 2 tests matched by the filter were not counted in the run (count is plausible but not independently reproduced here).

DCO: CONTRIBUTING.md requires Signed-off-by on every commit; #418's review history shows yatesdr enforcing it (result 18, "Contributor DCO sign-off is still pending"). #461's commit messages are not visible in this environment, so sign-off on e831b49/a640a302 is unverified.

#5 [high] Change: docs claims checked against the admission code path

Verified at head e831b49 (and identical on main):

#9 [high] Claims and evidence: what the description does and does not say

Things a reader of the PR description would not learn, or would learn wrongly:

  1. The intermediate commit a640a302 (2026-11-22, "Bound strict function-tool numeric range keywords below 2^53") is described nowhere in the current description; it was reversed in e831b496 (2026-11-23). The description's Compatibility section explains what is not done ("This does not fix llguidance's rounding") but not that the branch previously did the opposite and that yatesdr rejected it as over-restrictive. The review thread carries that; the description does not (which is arguably correct under the repo-prose skill, but a reader comparing with #418's review item 1 will see a maintainer request not delivered).
  2. The description says "The existing maximum: 9007199254740992 regression is unchanged against the PR base" — true, and the PR adds a second case; but the reader is not told the new test partly duplicates the older one's coverage (max 2^53 vs 10^18/i64::MAX).
  3. The description's rounding examples (exclusiveMinimum: 9007199254740992 admitting the endpoint; minimum: 9007199254740993 admitting the preceding integer) are attributed to the aarch64 review; I could not reproduce them here. The mechanism is credible from llguidance's f64 handling cited in #418's review, and from helios only checking finiteness (strict.rs:575-584), but the claim rests on the reviewer's table, i.e. the reviewer's own evidence is the support for the PR's central factual claim.
  4. The description says "No requests accepted on main acquire a new HTTP 400" — verified: the diff has no non-test code.
  5. The description claims the test suite result "28 passed, 0 failed, 1 ignored" for the grammar::strict::tests:: filter on x86_64; I could not run it. The file has 31 #[test] fns, 1 #[ignore], so 30 non-ignored should match a strict::tests:: prefix filter unless 2 are excluded by cfg/feature — the count is a small inconsistency to check (not proof of a false claim; e.g. some tests may live outside that module path).
  6. The docs change also silently rewrites the const/enum paragraph (drops the explicit integer-literal interval and the "higher-precision decimals as strings" phrasing). That is a substantive documentation simplification of a limit that #418 reviewers asked to be documented precisely.

#11 [high] Research summary

Case file for PR #461 ("Document strict tool selection and numeric range precision", by jcartu) is complete; eight angles are covered in ten scratchpad entries.

What it does (verified from the diff): documentation plus one test, no production code. docs/api.md replaces the two sentences yatesdr flagged in #418 ("adding no instructions or decoding constraints", "Sampling is unchanged") with statements that a named or required selection adds no constraint by itself but that an active strict: true function still attaches the strict request grammar; and it adds a new paragraph saying minimum/maximum/exclusiveMinimum/exclusiveMaximum are read at binary64 precision, that above 2^53 adjacent integers may not be distinct (with the minimum: 9007199254740993 and exclusiveMinimum: 9007199254740992 rounding examples), that an inclusive maximum: 9007199254740992 is exact, and that clients should validate large bounds with exact arithmetic before executing a tool. It also reworded the const/enum <2^53 rule, dropping the explicit integer interval. The one code hunk is a new test, strict_integer_maxima_preserve_large_inclusive_endpoints, asserting 10^18 and i64::MAX inclusive maxima are accepted and their successors rejected.

Why, and lineage: #417 (pydantic-ai and other strict-by-default clients got HTTP 400) → #418 (merged, +6048/−128, created strict.rs) → #461 as the follow-up #418 promised for review items 1 (reject or document the 2^53 bound limit) and 2 (qualify the two contradicting sentences). The sentence corrections match the admission code (helios/src/server/request.rs:225-279 constrains named+strict and required+strict generation). The bound limit is only documented, not fixed: the first commit (a640a302) implemented the rejection, yatesdr's review called it over-restrictive (it would 400 exact inclusive endpoints such as 10^18 and i64::MAX, and it had forced an existing test to be weakened), and head e831b49 reversed it in favour of documentation — so half of the maintainer request is deliberately not delivered.

Evidence and gaps: the rounding examples come from yatesdr's aarch64 CPU table, not from anything I could run; I confirmed in code that Helios only checks that bounds are finite (strict.rs:575-584) and applies the 2^53 gate to const/enum only, which makes the claim credible. The new test partly overlaps strict_bounds_do_not_round_integers_or_fractional_multiples. The claimed "28 passed, 1 ignored" was not reproduced and sits slightly oddly against 31 test functions (1 ignored) in the file.

State: open, ready for review, one review (CHANGES_REQUESTED by yatesdr) followed by the author's answer; no other reviewers or reactions; no CI checks on the head although the native-serving workflow would test it; DCO sign-off unverified. No conflicting edits on main (main still carries the exact sentences being replaced); #478 touched nearby lines without overlap. Fits the charter's "bad docs"/maintainer-request criterion; one process observation is that the permanent llguidance rounding limitation is documented in api.md but not recorded in docs/TODO.txt, which AGENTS.md reserves for pending items.

#13 [high] Evidence ledger: what was verified here, what rests on the participants

What I verified myself versus what is claimed (for the report's evidence section): Verified by reading the repository at PR head e831b49:

#6 [medium] Recent activity: no conflicting edits in docs/api.md since the PR branched

Compared docs/api.md at main (1048 lines) and at PR head (1061 lines) — the PR is the only unmerged change in this region; no conflicting edits since it branched (6b58639):

#7 [medium] People: yatesdr's round trip; jcartu's third PR in the strict-tool series

People whose work this touches:

#8 [medium] Reach: documentation-only effect, one added test, no compatibility surface

Reach of the change (as it stands at head e831b49):

#10 [medium] Project fit: charter and AGENTS.md alignment, with one process gap

Fact checked against the charter (read_charter, result 3) and AGENTS.md:

#12 [medium] Related work: #457 and #404 share the files; no competing proposal exists

Neighbours in the same files and their merge interaction with #461: