#1 [high] Parity + bounds verified at head 77941c4
helios/src/grammar.rs at pr/704:
- Recursion arms: :902
$ref; :913$defs|definitions|properties|patternProperties(4); :924anyOf|oneOf|allOf|prefixItems(4); :935/:940items|additionalItems|additionalProperties(3); :943-948 pass-through = exactly 30 ($anchor,$schema,$id,id,$comment,title,description,default,readOnly,writeOnly,examples,contentMediaType,contentEncoding,const,enum,type,minItems,maxItems,required,minProperties,maxProperties,minLength,maxLength,pattern,format,minimum,maximum,exclusiveMinimum,exclusiveMaximum,multipleOf). Total 1+4+4+3+30 = 42. - docs/api.md:930-939 at head lists 29 structural + 13 metadata = 42. I recounted both lists element by element: exact 1:1, zero missing/extra/duplicate.
- Bounds grammar.rs:23-25 MAX_GRAMMAR_BYTES=262_144, MAX_SCHEMA_NODES=8_192, MAX_SCHEMA_DEPTH=64; enforced :209 (
schema.to_string().len() >bytes), :884 (depth > 64 || *nodes > 8_192). Doc phrasing "exceeding 262,144 bytes, depth 64, or 8,192 nodes" matches the strict->boundaries exactly (no off-by-one). - HTTP 400 on all four routes: server.rs:733-741 (AdmissionError -> BAD_REQUEST), :749 error_code invalid_grammar; phase_tests.rs:8874-8926 covers chat/completions/responses/messages
output_config.format. - Wire surfaces: decode.rs:466-506 Responses
text.format; :560-575 Messagesoutput_config.format+ Chatresponse_format.json_schema.schemaand Completionsresponse_format.schema. Matches doc :927-929. $refsame-document: grammar.rs:902-911starts_with('#').- Rejected keywords: fallback :949-954; test grammar.rs:1616-1644 covers uniqueItems, nullable, x-guidance, external $ref. Conclusion: the PR's central parity claim holds at head; the cited commit 3d1614cc is not the head (bookkeeping only).
#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:
- 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.
- "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, :1631false. 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"). - "x-guidance" as compiler extension: grammar.rs:1626, :1640 reject it; llguidance does define
x-guidanceschema extensions, so the characterization is accurate. Dropped. - 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.
- 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. - 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).
- 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.