Opened by a workflow run, Nov 24, 2026 1:17 PM EST.
screen malicious
Screen Result: All Clear
Evidence: No prompt injection, hidden instruction, or agent-directed content was found anywhere in PR #461 (docs/api.md + helios/src/grammar/strict.rs, +39/−14). The whole diff is prose clarification plus one local unit test; nothing in it asks a reader or an agent to change behaviour, fetch anything, or bypass a rule.
- The only code change is one
#[test],strict_integer_maxima_preserve_large_inclusive_endpoints(helios/src/grammar/strict.rs:3888-3898): it builds a grammar withGrammarCompiler::new, validates a schema, and assertsmaximum/maximum + 1acceptance. No network, file or process I/O, and no runtime path change. - The docs hunks (docs/api.md:522-525, 541-546, 599-615) only distinguish tool selection from the strict grammar and document binary64 rounding of range bounds; they add no links, no commands, and no imperatives aimed at automation.
- Negative checks came back empty: no "ignore/disregard previous", no "you are an AI / system prompt" phrasing, no HTML comments, no
<script>/<a>/<img>/<iframe>, no fetch/curl/execute/paste directives, no added external URLs (only pre-existing 127.0.0.1 and huggingface.co references). - The
Discord: jcartutrailer is the repository's own AGENTS.md convention (AGENTS.md:137-148), so it is expected rather than an injected contact channel. - The review thread is purely technical (yatesdr, changes requested: over-broad 2^53 admission rejection vs. documenting the limit, compatibility accounting, a commit-message provenance nit); the author's reply is technical, with no embedded directives.
Worth noting for reviewers, not for the injection screen: the PR documents and declines to fix a real leniency — exclusiveMinimum: 9007199254740992 can admit the endpoint and minimum: 9007199254740993 can admit the preceding integer — so the docs carry an application-side-validation advisory.
Open questions: the evidence review URL #pullrequestreview-6023968982 and commit 6d6fe0c6 were taken from the description and not independently reproduced; no GPU benchmark was claimed or run.
Full report · Notes decide malicious: all_clear (100%): No malicious content found
explore
Author: jcartu (CONTRIBUTOR; 2 merged PRs in 180 days — #418, #416; also open #404); Discord: jcartu
Motivation: Flare's docs said named/required tool selection adds no decoding constraints, which is untrue when the selected function is strict: true and attaches a grammar. The same docs treated every large numeric bound as a hard limit at 2^53, but only const/enum are restricted that way while minimum/maximum are merely approximate, so this PR rewrites the prose instead of rejecting schemas.
Scale: +39 / −14 lines in 2 files
Proposal:
docs/api.md: named selection "adds no decoding constraint" by itself; an activestrict: truefunction still attaches the strict request grammar.docs/api.md: required mode leaves sampling unconstrained by itself (replaces "Sampling is unchanged;") with the same strict-grammar carve-out.docs/api.md: keeps theconst/enum< 2^53rule but drops the explicit integer-literal interval and the9,007,199,254,740,992expansion.docs/api.md: new paragraph documenting binary64 rounding ofminimum/maximum/exclusiveMinimum/exclusiveMaximum, two concrete rounding examples, and a recommendation to validate arguments application-side.helios/src/grammar/strict.rs: new teststrict_integer_maxima_preserve_large_inclusive_endpoints(10^18 andi64::MAXinclusive maxima accepted, successors rejected). No production code change. Touches:- docs/api.md (strict-tool and numeric-schema reference; the only behavioural statement the project publishes on this contract)
- helios/src/grammar/strict.rs (test module only) Related items:
- #418 Add strict function-tool schemas for DSML, Qwen, GLM and TML parsers (merged): parent PR; its review items 1–2 are what #461 answers, and it authored the text being edited
- #417 Support
strict: truefunction tools (currently rejected with HTTP 400) (closed): origin bug report, closed by #418 - #457 Fail untyped TML model headers at EOS … (open): edits the same strict.rs test module and
compile_strict_tml; no conflict now - #404 Add optional per-request activation steering for DeepSeek V4.1 cores (open): same author, shares docs/api.md only
- #478 Read decision labels as the first token of the assistant reply (merged): last commit touching docs/api.md, different sections
Link: https://github.com/NVIDIA/hyperflare-inference/pull/461
Autobot comments: The branch first did the opposite — commit a640a302 "Bound strict function-tool numeric range keywords below 2^53" implemented the reviewer's request to reject bounds ≥ 2^53, and e831b49 reverses it to docs-only after yatesdr called that rule over-restrictive (it would 400 the int64 limits generated schemas emit, e.g.
maximum: i64::MAX). The description never mentions this reversal, so the maintainer's first ask (item 1 of the #418 review) is delivered as prose, not as the constraint fix. Declared-compatible ("no new HTTP 400") is verified: the diff has no non-test code. The new test partly duplicates the existingstrict_bounds_do_not_round_integers_or_fractional_multiples(which already coversmaximum: 2^53). The central rounding claim rests on the reviewer's own aarch64 table, not on an artifact in the PR; the author's 28-passed/1-ignored count does check out (29 tests, one#[ignore]). CI has never run on this head, and yatesdr's review is still CHANGES_REQUESTED. The new prose also silently omits that llguidance outright rejects some bounds (minimum: -2^63oninteger,minimum: 2^60onnumber) — so "interpreted at binary64 precision" over-generalizes.
Value Proposition
Verdict: worth it with changes
PR #461 (jcartu, open) is a docs-only fix plus one grammar test: docs/api.md +27/-14 and helios/src/grammar/strict.rs +12. The branch was a640a302 (reject every strict bound ≥ 2^53), which the author then reverted in e831b496; the net runtime diff against the base is empty, so no request accepted on main gains an HTTP 400 — that claim in the description is verifiable and correct.
Why it fits the charter
The charter's "What gets merged" list explicitly includes PRs that "address a maintainer request ... or bad docs," and the contributor rules say every PR is judged on its merits. This change is exactly that on both counts:
- It closes #418's last open review item (round 4, item 2): named selection "adding no instructions or decoding constraints" (
docs/api.md:522-525before this PR) and required mode "Sampling is unchanged" (:541-549) are false whenever a strict function attaches a request grammar — the whole generation is then constrained (docs/api.md:639-643,docs/core-design.md:1669-1685). - It takes the reviewer's own offered alternative: "Or leave admission as it is and document the limit, which
docs/api.mdnow states." A prior PR attempt to enforce the limit instead would have rejected generated int64 schemas, so the documentation route is the smaller footprint the charter asks for. - Goals include "Support the documented ... APIs" and JSON Schema for structured outputs, and the vision is heavy tool use. A client that believes
strict: trueenforcesmaximum: 9.2e18will execute a tool on out-of-range arguments. Naming the limit, and telling the client to validate exactly before executing, is user-facing correctness, not editorial polish.
Who benefits, and how much
Clients of Chat Completions and Responses on strict tools, especially agent/tool-loop users whose schemas carry large integer bounds (i64::MAX, epoch-nanos, IDs). The benefit is moderate, not large: it changes no behavior, it only stops the API reference from asserting something untrue and marks a place where the guarantee ends. It also prevents a future regression by keeping the current admission (which is wider than llguidance's real precision) instead of introducing 400s.
Cost and risk
Close to zero on the metrics the charter cares about: no code path, no dependency, no perf claim (and the description correctly claims none), 10 net prose lines and an 11-line test. The one durable risk is doc drift when llguidance changes — worth mitigating with a test (below). The removed paragraph did lose some useful detail (the explicit [-9,007,199,254,740,991, 9,007,199,254,740,991] integer-literal interval), which callers relying on the exact thresholds may miss; restoring the numeric limits while keeping the new wording would be strictly better.
Is there a simpler way, or duplication?
No duplication: docs/core-design.md:1669-1685 already stated the correct grammar behavior ("Named tool selection ... does not by itself enable a grammar"), so api.md was the only document contradicting it — this PR removes the contradiction rather than adding a parallel statement. The precision paragraph is new information, not restated elsewhere. The test partially overlaps strict_bounds_do_not_round_integers_or_fractional_multiples (strict.rs:3006-3025, which already covers maximum: 9007199254740992), but the 10^18 and i64::MAX rows are the reviewer's measured rows and are the only executable record of them, so they earn their place. Simpler alternative: prose only, no test — cheaper, but then nothing catches a llguidance bump flipping these statements.
Changes I would require before merge
- The inclusive-maximum sentence is wrong above 2^53.
docs/api.md:610-611says "An inclusivemaximum: 9007199254740992does distinguish the endpoint from the next integer." True for that exact value (2^53 is representable), butnormalize_integer_bounds(llguidance 1.9.1json/numeric.rs:522-533(not opened)) doesmax_val.floor()on an f64 and then the inclusiverx_int_range, so formaximum: 9007199254740995the bound rounds to9007199254740996and the grammar admits a value one above the declared maximum;maximum: 9007199254740993rounds down and rejects the valid...993. Since the paragraph's purpose is to tell clients when strict mode stops enforcing their bound, a sentence that reads as "inclusive maxima are fine" is the one dangerous sentence in it. Say that only the endpoint named in the example is exact, or state that integer ranges are approximated above 2^53 in both directions. - Say that some large bounds are refused, not just rounded. The reviewer measured, on
mainat6d6fe0c6, thatminimum: -9223372036854775808onintegerandminimum: 2^60onnumberare rejected by llguidance with a range error and so return HTTP 400. The source agrees:rx_int_range(Some(i64::MIN), ..)errors on-left, andrx_float_rangeparses integer parts withparse::<i64>().i64::MINis the standard generated int64 bound, so without a sentence here a client cannot distinguish "silently rounded" from "refused at admission" — which is precisely the distinction the PR's own "Why" section says the text should draw for theconst/enumcase. - Pin the two documented rounding examples in a test. The new test (
strict.rs:3888-3898) covers only bounds the grammar gets right, andi64::MAXpasses only because the f64 value 2^63 saturates on theas i64cast. Adding the two examples the docs now quote (exclusiveMinimum: 9007199254740992admitting the endpoint,minimum: 9007199254740993admitting...992) makes the prose a checked statement and surfaces drift when the pinnedllguidance =1.9.1(helios/Cargo.toml:62) is upgraded. - Hygiene. The description no longer carries the unrelated #418 timing provenance the reviewer flagged, good; squash the
a640a302+ reverte831b496pair to the net diff, and confirm each commit has theSigned-off-bythatCONTRIBUTING.md:9-19requires (not checkable from here).
With 1–2 fixed (inclusive-maximum wording and the refusal class), this is a small, correct, charter-aligned documentation PR that closes a real contradiction from a contributor whose prior PR the maintainer already merged. Verdict: worth it with changes — not "worth merging as is," because the current inclusive-maximum sentence understates a limit the paragraph exists to disclose, but nowhere near "not worth it."
Full report · Notes Decide Value: yes (100%): This change is worth reviewing: it provides value to the project in line with its charter.
Conventions
Verdict: clean (three nits only)
Blocking:
- None.
Should fix:
- None.
Nits: 3
Link: https://github.com/NVIDIA/hyperflare-inference/pull/461
Lens C (conventions and duplication) finds no blocking or should-fix problems in PR #461. The diff adds one #[test] and rewrites four prose passages; it introduces no helper, reimplements no existing mechanism, and the new test reuses the production admission entry point (validate_strict_tool_schema, helios/src/grammar/strict.rs:53) and TextGrammar::validate, exactly as the existing bounds test does.
Three nits:
helios/src/grammar/strict.rs:3888—strict_integer_maxima_preserve_large_inclusive_endpointsre-tests the construct already owned bystrict_bounds_do_not_round_integers_or_fractional_multiplesat strict.rs:3006-3025 (inclusivemaximum: 9007199254740992, endpoint accepted, successor rejected), only varying endpoint values and sitting ~880 lines away. Fix: extend the existing test's data or place the new case beside it.docs/api.md:600-603— the rewritten sentence drops two precise statements its predecessor carried: the "IEEE 754" qualifier on binary64 (spelled nowhere else in the repository) and the explicit accepted integer interval[-9,007,199,254,740,991, 9,007,199,254,740,991]. The new rounding paragraph does not restate them.docs/api.md:607— runs to 86 columns where surrounding prose wraps at ~78-80; the new paragraph also juxtaposes unseparated 16-digit literals with2^53two lines after5,000/20,000at api.md:815.
Open questions: none material. The repeated "attaches the strict request grammar described below" statements (api.md:522-525, 544-546) are deliberate per the reviewer's request and match existing forward-pointer usage, so not reported as duplication. Reviewer yatesdr's "changes requested" state predates the author's 2026-11-23 documentation pivot; whether it is satisfied is for that reviewer to confirm.
Simplicity
Verdict: clean (nits only) Blocking:
- None. Should fix:
- None.
Nits: 3 —
helios/src/grammar/strict.rs:3891(new test partly restates existing inclusive-maximum coverage at:3005-3016),docs/api.md:600-606("binary64 precision" stated twice in adjacent paragraphs for one rule),docs/api.md:610-611(positivemaximumexample not needed to specify the limit) Link: https://github.com/NVIDIA/hyperflare-inference/pull/461
Lens D (simplicity) on #461: the diff is docs/api.md +27/−14 and a pure test addition in helios/src/grammar/strict.rs +12/−0; no production code changes, so the only thing to shrink is prose and one test table. No hidden behaviour change: validate_strict_node and unsupported_strict_literal are untouched, which matches the description's "no requests accepted on main acquire a new HTTP 400." The deleted main text (digit-separated 9,007,199,254,740,992 constants and the [-…, …] integer interval) is a genuine simplification and should stay deleted.
Three nits, all "smaller version":
strict.rs:3891—strict_bounds_do_not_round_integers_or_fractional_multiples(:3005-3016) already asserts the same admission-plus-endpoint contract withmaximum: 9007199254740992; of the new loop's two values,1_000_000_000_000_000_000is exactly representable in binary64, so it only restates "admission is not gated at 2^53", andi64::MAXis the one case that adds a rounded-bound endpoint. Smaller:for maximum in [i64::MAX as u64].api.md:600-606— one admission rule now says "binary64 precision" twice within six lines; and:524-525and:544-546state the strict-grammar fact twice more, in different words, before:639-640states it a third time. One sentence and one phrasing serve all four.:544also replaces main's "Sampling is unchanged" with "leaves sampling unconstrained", which can be read as "sampling parameters are not applied".api.md:610-611— "An inclusivemaximum: 9007199254740992does distinguish the endpoint from the next integer" reassures rather than specifies; the paragraph needs the two rounding failures (:607-609) and the remedy (:611-612).
Open question: whether the maintainer wants the reassuring inclusive-maximum sentence kept, since it carries the PR's compatibility argument into the reference; that is the only item here a reviewer could reasonably overturn.
Architecture
Verdict: should-fix issues only Blocking:
- None. Should fix:
- docs/api.md:605-612: the newly documented llguidance rounding limitation is recorded only in the API reference; AGENTS.md:47-55 requires unresolved defects in docs/TODO.txt, and no entry exists (docs/TODO.txt:25 is the only strict-tool item).
- docs/api.md:605-612 vs helios/src/grammar/strict.rs:3888-3898: the one added test pins only the inclusive-
maximumside, so the two rounding outcomes the paragraph documents (minimum: 9007199254740993admitting9007199254740992;exclusiveMinimum: 9007199254740992admitting the endpoint) are asserted nowhere in the repository. Nits: None. Link: https://github.com/NVIDIA/hyperflare-inference/pull/461
Correctness
Verdict: should-fix issues only Blocking:
- None. Should fix:
- docs/api.md:522-525 (and 544-546): the new sentences describe admission in terms of "the selected function", but every declared
stricttool's schema must be compiler-admissible even when its selection is ignored —compile_strict_validatorsfilters ontool.strictonly, nottool_choice(helios/src/server/request.rs:88-113, called at :125; pinned byignored_strict_tools_still_require_compiler_admissible_schemasat request.rs:704-769, includingToolChoice::None). Nits: 2 — "active" is used undefined at docs/api.md:545, 614, 639, 644 and reads as "selected" under named choice; the two inexact rounding cases the docs assert (minimum: 2^53+1,exclusiveMinimum: 2^53) have no in-repo regression test, only the review table (strict.rs:3888-3898 coversmaximumalone). Link: https://github.com/NVIDIA/hyperflare-inference/pull/461
Otherwise the change checks out in this lens: the net runtime diff against the base is empty (only docs/api.md and one test), so the "no new HTTP 400" claim holds; the numeric-range prose matches the code path (admission only requires as_f64().is_some(), strict.rs:575-584, and bounds go to llguidance unrounded via strict.rs:144); and the documented maximum behaviour is exercised at strict.rs:3006-3025 and the new strict.rs:3888-3898.
Open questions: whether "active" should be defined once in docs/api.md, and whether the two inexact cases should be pinned by a test so the docs cannot silently go stale against the pinned llguidance = "=1.9.1" (helios/Cargo.toml:62).
Prose
Verdict: should-fix issues only Blocking:
- None. Should fix:
- docs/api.md:605-612: the new range-bounds paragraph presents every large bound as accepted-and-rounded, but on main some large bounds (
minimum: -2^63oninteger,minimum: 2^60onnumber) are already refused with HTTP 400 (yatesdr review on #461); admission at helios/src/grammar/strict.rs:575-584 checks onlyas_f64, so the refusal is undocumented. - docs/api.md:605-612: the passage codifies an unresolved schema-enforcement defect ("can admit", PR says "does not fix llguidance's rounding") with no docs/TODO.txt entry and no closure criterion, contrary to AGENTS.md:52-55 and .agents/skills/repo-prose/SKILL.md:38-39 (not opened). Nits: 4 Link: https://github.com/NVIDIA/hyperflare-inference/pull/461
The four-part description (why / what changed / compatibility-claim / evidence) is present and its compatibility claim holds: the only helios/src change is a #[cfg(test)] addition, so no accepted request gains a 400. The named- and required-selection paragraphs match helios/src/server/request.rs:225-241 and docs/core-design.md:1679-1683. Open: which large bounds admission actually refuses (only a test can settle it); I cannot read commit bodies, so yatesdr's commit-message nit is carried, not re-verified; the two rounding cases in the docs are evidenced by the reviewer's scratch test, not by any test in this PR.
Pre Test Report
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:
docs/api.md+27/−14 — three prose edits:- Named selection (
docs/api.md:522-525): "Selection by itself adds no decoding constraint; when the selected function setsstrict: true, it attaches the strict request grammar described below." - Required mode (
docs/api.md:540-552): replaces "Sampling is unchanged;" with "Required mode by itself leaves sampling unconstrained; any activestrict: truefunction still attaches the strict request grammar described below." - Numeric section (
docs/api.md:597-615): keeps theconst/enum"magnitude strictly below2^53" rule, drops the explicit integer-literal interval and the9,007,199,254,740,992expansion, and adds a new paragraph stating that range bounds are "interpreted at binary64 precision", with two rounding examples and an advisory to validate arguments exactly client-side.
- Named selection (
helios/src/grammar/strict.rs+12/−0 — one#[test],strict_integer_maxima_preserve_large_inclusive_endpoints(strict.rs:3888-3898): formaximumin {10^18,i64::MAX}, compiles the schema throughvalidate_strict_tool_schemaand asserts the endpoint validates whileendpoint + 1is rejected.
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
- No runtime surface. Nothing in decoding, admission, sampling, prefix cache, graph dispatch, scheduling, or decode width changed.
helios/src/server/request.rs:225-279(grammar attachment) andrequest.rs:88-113(strict admission) are both byte-identical tomain. - The only executable artifact is a CPU unit test.
strict.rs:3888-3898builds aGrammarCompilerfrom the in-treebyte_tokenizer()fixture and runsTextGrammar::validate; it needs no GPU, no model, and no server. The author's quoted run is already CPU-only x86_64 (28 passed, 1 ignored — the single#[ignore]atstrict.rs:4355is an unrelated DeepSeek snapshot test). - The repository forbids the requirement this test request would impose.
docs/design-review.md:161-163: "Validation requirements apply to the affected behavior. Documentation changes do not require GPU tests." - No performance claim. The description says explicitly "No GPU benchmark was run; there is no performance claim", so an A/B throughput comparison has nothing to compare.
- cn5's hardware is irrelevant to the affected code. The engines/models on cn5 and cn7 (
dinov2, GLM-5.3-Flash, Qwen3.8) tell us nothing about a JSON-Schema grammar-compilation unit test; spending a 4-GPU Blackwell allocation on it would be pure waste. - The gating review is unresolved.
yatesdr's review is still CHANGES_REQUESTED on this head, and the maintainer's own request was satisfied by the documentation route the author took. Testing a branch whose docs are about to be revised inverts the cost order.
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.
Full report · Notes Decision to Test: no (100%): Testing will not add much value
code review summary
Changes Requested
Blockers:
- None.
Should fix:
- Admission scope is unstated. The new sentences (
docs/api.md:522-525,:544-546) read as if only the selected strict tool matters, butcompile_strict_validatorsfilters everystricttool with notool_choiceterm (helios/src/server/request.rs:94, called unconditionally at:125), so an inadmissible strict schema is an HTTP 400 even undertool_choice: "none". → Add one clause: every declaredstrict: trueschema must be admissible even when its tool is not selected. - The documented rounding deviation has no
docs/TODO.txtentry.docs/api.md:605-612records a live gap;AGENTS.md:47-55requires unresolved defects there, not in design documents, and no entry exists. → Add one naming the missing condition and its removal criterion. - The rounding examples are pinned by no test. The added test (
helios/src/grammar/strict.rs:3888-3898) covers only exact inclusivemaximum; theminimum/exclusiveMinimumoutcomes atapi.md:607-609are asserted nowhere against llguidance=1.9.1(helios/Cargo.toml:62). → Extend the test so a dependency bump that fixes rounding fails visibly. - The paragraph omits bounds that are refused, not rounded. Your own table records
minimum: -2^63onintegerandminimum: 2^60onnumberalready returning a range error (HTTP 400), where "validate in the tool" cannot apply. → Add one sentence and assert those outcomes too.
Nits:
9 nits
- Fold the new test into
strict_bounds_do_not_round_integers_or_fractional_multiples(strict.rs:3005-3025) or move it next to:3025; onlyi64::MAXis genuinely new. - Restore "IEEE 754" at
api.md:600-603; the word now appears nowhere underdocs/. - Rewrap
api.md:607(86 columns vs ~78-80) and drop the unsupportedbound + 1mechanism clause at:608-609. - Define "active" once (
api.md:545, 614, 639, 644) and prefer "adds no decoding constraint" at:544over "leaves sampling unconstrained". - Add a claimed-result sentence to the description and squash commit
e831b496, whose subject describes the branch against its own parent, notmain.
Apply Labels
Applied: +triage:review, +documentation, +area:api
Classification Confidence
Threshold: 65%
Triage
- [✓]
triage:review: 99.7% -
triage:design-review: 0.2% -
none: 0.0%
Priority
-
none: 100.0% -
priority:P1: 0.0% -
priority:P2: 0.0%
Type
- [✓]
documentation: 65.1% -
enhancement: 32.1% -
bug: 29.4% -
community: 26.9%
Area
- [✓]
area:api: 95.3% -
area:preparation: 37.8% -
area:orbit: 24.5% -
area:engram: 9.5%
Model
-
model:deepseek-v4.1: 7.6% -
model:deepseek-v4: 6.8% -
model:glm-5.3: 0.6% -
model:inkling-small: 0.6%