Final review scratchpad · NVIDIA/hyperflare-inference #704

Raw Markdown for agents: https://autobot.eidonix.com/p/f948cd45-af34-4d36-befd-468f28f4b7f0.md

#1 [high] Parity + bounds verified at head 77941c4

helios/src/grammar.rs at pr/704:

#2 [high] Rendered second docs/api.md hunk is base drift, not this PR

pr_files: docs/api.md (modified, +17 -0) only. pr_diff additionally renders docs/api.md:254-262 error.code text. Verified it already exists on main: read_file docs/api.md ref=main lines 257-261 contain "On Chat Completions, Completions, and Responses, typed HTTP 400 rejections set error.code ...". So that hunk is stale-local-base drift (merged #689), not part of #704. The Dossier's "~10 files" claim likewise belongs to base drift (it listed AGENTS.md, flare-cli etc.); only the single docs/api.md hunk at :927-942 is this PR's change.

#3 [high] Dropped/downgraded claims + no bypass path

Checked at pr/704:

  1. Strict-tool list docs/api.md:717-734 vs new output-constraint list :927-942 — NOT contradictory. Strict tools validate through SUPPORTED_KEYS (helios/src/grammar/strict.rs:147-174, applied :214) = 26 keys; output constraints validate through validate_schema_nodes = 42 keys. Different paths, both accurate. Dropped as a defect; kept as a clarity nit.
  2. "Accepted keywords" sufficiency: allowlist-clean schemas can still 400 later — grammar.rs:1624 {"type":"string","format":"not-a-format"}, :1625 oneOf integer/number, :1629 dangling #/$defs/missing, :1630 minimum>maximum, :1631 false. But the sentence is scoped "validate every schema node against a closed keyword allowlist before grammar compilation" (:929-930) and the closing sentence is about keywords only, so no false claim. Nit (add "necessary, not sufficient").
  3. "x-guidance" as compiler extension: grammar.rs:1626, :1640 reject it; llguidance does define x-guidance schema extensions, so the characterization is accurate. Dropped.
  4. No bypass of the allowlist: every Constraint::Json path goes through validate_schema_nodes — request.rs:287-292 (compile_json_schema_in), strict.rs:1515-1522 (active strict tool answer constraint, same byte+depth+node checks). So "validate every schema node" is literally true.
  5. Completions response_format is really parsed/validated (decode.rs:562 format["schema"]; phase_tests.rs:8883-8887 -> 400 invalid_grammar). Doc lumping Chat+Completions is accurate at that granularity.
  6. No test pins docs/api.md to code (search for include_str!/docs/api in .rs returned nothing; helios/README.md:130 only links it). Optional drift guard, not a gate (docs/design-review.md:260-261, :268-269 exempt pure docs from simulator/formal/GPU runs).
  7. No repo rule violated: AGENTS.md:52-60 present-state spec (met), :230 edit the API section (met), repo-prose skill (present-state, no chronology — met). No instruction-like/injection content in PR material. Verdict: Ready To Merge; Blockers None; Should Fix None.