#1 [high] Change: what PR #704 actually changes (docs/api.md +17 only)
PR #704 by jcartu, open, ready for review, opened & last updated 2026-12-03, head 77941c4, base main, branched at cc0a49d. pr_files: 1 file, +17/−0, docs/api.md.
The real change is a single new paragraph inserted after the "For conversational JSON output..." paragraph, at docs/api.md:927-942 (PR head; main equivalent insertion point is main's docs/api.md:922):
- names the four wire locations:
response_formattype json_schema (Chat Completions + Completions),text.format(Responses),output_config.format(Messages); - lists 29 "structural and constraint" keywords + 13 "metadata and annotation" keywords;
- says any other keyword (
deprecated,nullable,uniqueItems,x-guidance), external$reftargets, and schemas over 262,144 bytes / depth 64 / 8,192 nodes return HTTP 400.
IMPORTANT: pr_diff also renders a second, unrelated docs/api.md hunk at docs/api.md:254-262 (typed HTTP 400 error.code enumeration: context_length_exceeded / unsupported_feature / invalid_grammar / invalid_image) plus hunks in AGENTS.md, docs/TODO.txt, docs/cli-design.md, docs/core-design.md, docs/model-preparation.md, docs/scheduling-runtime-design.md, flare-cli/src/cli.rs, flare-cli/src/orbit/agent.rs, flare-cli/src/orbit/control... That is base-branch drift: the local copy of main is older than the PR's merge base (cc0a49d). Verified: text "typed HTTP 400 rejections" is absent from local main (search_code no match) yet present in pr/704 and in already-merged work; likewise "The only environment variables Flare inspects" (AGENTS.md:461 at pr/704) is absent from local main (AGENTS.md:461 at main still says "CUDA_VISIBLE_DEVICES is the only variable Flare interprets") and is attributable to the merged #690/#687 CLI series. So pr_files' 1 file/+17 is the authoritative size — do not attribute the extra hunks to this PR.
Citations: pr_files, pr_diff (path=docs/api.md shows both hunks), read_file docs/api.md pr/704:927-942, main:915-924; search_code on main for "typed HTTP 400 rejections" (no match); read_file AGENTS.md main:461-469 vs pr/704:461.
#2 [high] Claims/evidence: verified 42-keyword parity against grammar.rs
I verified the PR's headline parity claim myself rather than taking it on trust.
Code: validate_schema_nodes at helios/src/grammar.rs:877-958. Arms:
- grammar.rs:902
$ref(requires value starts_with('#')) - grammar.rs:913
$defs|definitions|properties|patternProperties(recurse into object values) - grammar.rs:924
anyOf|oneOf|allOf|prefixItems(recurse into array) - grammar.rs:935
itemswhen the value is an array (draft-7 tuple form); grammar.rs:940items|additionalItems|additionalProperties(recurse into the single subschema) - grammar.rs:943-948 pass-through arm, 30 keywords:
$anchor$schema$idid$commenttitledescriptiondefaultreadOnlywriteOnlyexamplescontentMediaTypecontentEncodingconstenumtypeminItemsmaxItemsrequiredminPropertiesmaxPropertiesminLengthmaxLengthpatternformatminimummaximumexclusiveMinimumexclusiveMaximummultipleOf - grammar.rs:949-954 fallback: "unsupported JSON-schema keyword {child}" as AdmissionError::Grammar.
Count: 12 distinct keys in the recursion arms ($ref,$defs,definitions,properties,patternProperties,anyOf,oneOf,allOf,prefixItems,items,additionalItems,additionalProperties) + 30 pass-through = 42. Docs list 29 structural + 13 metadata = 42. Zero missing, zero extra, zero duplicates. PR's claim holds.
Bounds: helios/src/grammar.rs:23-25 MAX_GRAMMAR_BYTES = 262_144, MAX_SCHEMA_NODES = 8_192, MAX_SCHEMA_DEPTH = 64. Byte check at grammar.rs:209 uses schema.to_string().len() (re-serialized size, not raw request bytes) and returns AdmissionError::Grammar at :210-214; node/depth check at :884 rejects depth > 64 || *nodes > 8_192. All three match the doc's numbers.
Nuances a reviewer may want (none contradict the text, which is carefully scoped to the allowlist/"before grammar compilation"):
- Allowlist acceptance is not total acceptance. Cases that pass the keyword allowlist but still 400 later: grammar.rs:1624
{"type":"string","format":"not-a-format"}, :1629{"$ref":"#/$defs/missing"}, :1625 overlappingoneOfinteger/number, :1630minimum:5, maximum:1, :1631 the boolean schemafalse. Listingformatas "accepted" is true only at the allowlist layer. - grammar.rs:890-892 returns Ok for boolean schemas, so
falseis allowlist-clean; the doc's "closed keyword allowlist" framing doesn't cover it. Boolean schemas are still rejected upstream of the allowlist (test :1631). $refsame-document rule: code only checks the string starts with '#' (grammar.rs:903-911); so it rejectshttps://andfile://as documented, and also rejects a bare non-#target. Tests covering the rejections: helios/src/grammar.rs:1616-1644unsupported_invalid_and_external_schemas_fail_before_admission(includesuniqueItems,nullable,x-guidance, external$ref) and :1646-1672bounded_compilation_and_thread_ownership(DEPTH loop toMAX_SCHEMA_DEPTH).
#3 [high] Why: #449 is the linked motivation, and only its doc half is addressed
PR body says "Refs #449"; related_items confirms #704's only in/out link is #449 (open, issue, area:api, by shieldstar, opened 2026-11-21 18:26, updated 2026-12-03 11:40 — i.e. updated the same day this PR was opened).
#449 in brief: validate_schema_nodes accepts the annotation keywords readOnly, writeOnly, examples, contentMediaType, contentEncoding but not deprecated, so a schema with "deprecated": true fails with unsupported JSON-schema keyword $/properties/old/deprecated. deprecated is standard JSON Schema 2020-12 Validation §9.3 and carries no instance-validation semantics. Reporter gave a reproducible no-GPU unit-test recipe (added helios/src/schema_keywords.rs, ran --exact grammar::schema_keywords::deprecated_keyword_is_outside_the_allowlist) with rc 0 on upstream 25b4951, plus a readOnly control test.
#449's "Expected" section contains two branches, and this is the key connection: accept deprecated, OR — "If the keyword set is meant to stay narrow, docs/api.md should list the accepted keywords so callers can see deprecated is unsupported." #704 implements exactly the second branch and nothing else.
The conversation that set this up: yatesdr, 2026-11-21 18:38, on #449: the allowlist is "closed on purpose" (citing grammar.rs:876-887, doc comment :194-195, test :1648-1675), its annotation list "matches llguidance's", so deprecated "like nullable or uniqueItems, gets HTTP 400 by design, and no document lists the accepted keywords. Accepting more annotation keywords would be a change to that rule, not a fix." jcartu, 2026-12-03 11:40 on #449: "Proposing a docs-only PR enumerating the accepted response_format JSON Schema keywords per @yatesdr's note; no behavior change." That comment is the direct provenance of #704.
So: #704 closes the "no document lists the accepted keywords" gap yatesdr named; it does not resolve the reporter's actual request, and #449 remains open (the PR says "Refs", not "Fixes"). Note the citation drift: yatesdr cited grammar.rs:876-887 / 1648-1675 for the allowlist and repo doc comment :194-195; at PR head these are grammar.rs:877-958, tests :1616-1644 and :1646-1672, doc comment :198-199 — consistent with ordinary line drift since 25b4951/21a40f05, not a contradiction. Citations: read_item 449; related_items 704; issue #449 comments 2026-11-21T18:38 (yatesdr), 2026-12-03T11:40 (jcartu).
#4 [high] Change gaps: strict-tool subset not reconciled; no doc-vs-code drift test
The PR adds the enumerate-only paragraph in docs/api.md:927-942, inside ## Conversation and tool semantics (heading at docs/api.md:488), directly after the existing output-constraint paragraph (docs/api.md:918-925). It does not touch the adjacent strict-tool keyword list.
Adjacent but NOT reconciled — the strict function-tool subset at docs/api.md:717-734 already documented "supported bounded JSON-schema keywords (properties, required, additionalProperties, items, prefixItems, minItems, maxItems, enum, const, anyOf, local $ref to #, #/$defs/<name>, or #/definitions/<name>, numeric bounds, multipleOf, minLength, maxLength, and pattern)" and at :767-769 "invalid strict schemas return HTTP 400". The new paragraph says "closed keyword allowlist", which is the validate_schema_nodes walk, while strict tools go through compile_text_grammar -> "invalid strict tool JSON schema" (helios/src/grammar.rs:535-540, :562-582) with their own tightness rules. Nothing in #704 says the two lists relate (the new paragraph is silent on whether the strict list is a subset of the output-constraint list). A reader comparing docs/api.md:724's "$ref to #, #/$defs/, or #/definitions/" with the new "$ref (same-document # references only)" sees two different phrasings of the same restriction in one document.
Coverage gaps in the new paragraph (factual, not defects):
- Covers only
type: "json_schema".json_object(Constraint::JsonObject) uses a fixed{"type":"object"}schema (helios/src/request.rs:287-290 in pr/704: helios/src/server/request.rs:287-290) so no user schema is walked; the doc's parenthetical restricts itself correctly but does not say so. - Does not say the keyword walk is twice-applied:
compile_json_schema_inat helios/src/server/request.rs:291-293 for the final-answer envelope, and the same allowlist indirectly for strict tool schemas. - Byte bound is measured on the re-serialized schema (
schema.to_string().len(), helios/src/grammar.rs:209) and is checked before the keyword walk (grammar.rs:209 then :215); the doc lists it alongside the keyword rule without the ordering. docs/TODO.txthas no entry about the allowlist or thedeprecatedgap (search_code for keyword|schema|allowlist|deprecated in docs/TODO.txt: no matches); AGENTS.md:57-58 says unresolved defects and pending work go in docs/TODO.txt, not design docs. #704 is present-state documentation so it arguably needs none, but that is the convention to check against.docs/TODO.txt:348has a separate, unrelated entry referencing docs/api.md wording.- docs/README/AGENTS reference: AGENTS.md:230 requires "the relevant API sections" for CLI/API/config changes — met by editing docs/api.md itself. helios/README.md:130 links to docs/api.md as "the API reference".
No doc-vs-code pinning test exists: search_code for
docs/apiin helios/ returns only helios/README.md:130, and there is noinclude_str!of docs/ (search_codeinclude_str!.*docs/: no matches). The keyword list is therefore not guarded against drift; precedent for the opposite is flare-cli/src/cli.rs'sdebian_man_page_documents_every_visible_subcommandtest, which asserts a man page lists every subcommand (from the base-branch diff of flare-cli/src/cli.rs).
#6 [high] Related work: author's merged #418 already documents a narrower "closed" keyword subset at docs/api.md:717-734
Closest existing list is the strict function-tool subset at docs/api.md:717-734, introduced by the author's own merged #418 (jcartu, merged 2026-11-22, +6048/−128). It enumerates "supported bounded JSON-schema keywords (properties, required, additionalProperties, items, prefixItems, minItems, maxItems, enum, const, anyOf, local $ref to #, #/$defs/<name>, or #/definitions/<name>, numeric bounds, multipleOf, minLength, maxLength, and pattern)" — a narrower set (no $anchor, $id, id, $comment, title, description, default, readOnly, writeOnly, examples, contentMediaType, contentEncoding, allOf, patternProperties, additionalItems, minProperties, maxProperties, oneOf). #418's PR body states it "admit[s] the closed object subset", so "closed" is used for both sets in the repository's own prose: docs/api.md:929 (this PR, output constraints) and #418's description (strict tools). #704 does not say how the two relate. It also does not touch docs/api.md:717-734. Consequence a reader has to resolve unaided: whether the output-constraint list is a superset of the strict-tool list (it appears to be, except that strict tools have extra structural requirements — root object type, additionalProperties: false, all properties required — which are not keyword-allowlist rules).
Was the gap previously documented anywhere? No: search_code for uniqueItems|nullable|x-guidance|deprecated across the repo at PR head finds them only at docs/api.md:940-941 (this PR) and in helios/src/grammar.rs:1620-1626 tests; docs/core-design.md has no mention of validate_schema_nodes, the allowlist, or json_schema (its only "allowlist" hits at docs/core-design.md:307, :322 are about cache/page geometry, unrelated).
So #704 is the first place in docs/ that names the accepted keyword set. That matches yatesdr's #449 statement that "no document lists the accepted keywords".
#9 [high] Claims/evidence: parity claim holds but cites 3d1614cc (not head 77941c4); error-code hunk is not this PR's
Two claims in the PR body, plus the unrun checks, and what backs each.
- "Verified programmatic 1:1 set parity between
validate_schema_nodesinhelios/src/grammar.rsat3d1614ccand the documented keyword lists indocs/api.md(42 == 42: 29 structural + 13 metadata; zero missing, zero extra, zero duplicates)." The commit3d1614cccited is not the PR head (head is 77941c4 per the packet), so the claim is stated against an earlier revision ofhelios/src/grammar.rs; the allowlist at head is unchanged in substance (I re-checked all arms at grammar.rs:902-948 and the count holds), so the claim survives, but the citation does not point at head. The script itself is not identified. Nopr_filesentry shows any code change, consistent with a docs-only diff. - "Verified
MAX_GRAMMAR_BYTES(262,144),MAX_SCHEMA_DEPTH(64),MAX_SCHEMA_NODES(8,192), and protocol field mapping inhelios/src/grammar.rsandhelios/src/server/protocol/decode.rs." True: grammar.rs:23-25 (values), :884 (depth/node check), :209 (byte check). Protocol mapping also true:text.formatat helios/src/server/protocol/decode.rs:466-504 (responses_text_format),output_config.formatat :561 andresponse_formatat :562, with"json_schema"schema read fromformat["json_schema"]["schema"](Chat) orformat["schema"](:568-576). The two read paths explain why docs/api.md:927-929 names both spellings. New: thetext.formatecho behavior isdecode.rs:493-502(echoesname,description, andstrict), which the new paragraph does not mention. - "Ran
git diff --check(zero whitespace issues) and verifiedgit diff --stattouches onlydocs/api.md." The second half is consistent with pr_files (1 file). Note however that pr_diff against the local base renders ~10 files; if that stale base is what the author rangit diff --statagainst, the observation would not hold, so the claim presumably refers to the PR's own commit. I could not re-run git locally. - "Unrun checks: no Rust, Python, simulator, formal, or GPU test suites were run because this PR modifies documentation only." Honest and complete for a prose change; the repo has no doc-lint/test job that would cover it. The only CI workflow that would even run on this PR is Native serving (.github/workflows/native-serving.yml:1-22 — triggers on
pull_request, matrix ubuntu-24.04 + windows-2022), and it reported no checks on the head commit. - Implicit claim "no behavior, runtime, or core-compatibility changes": confirmed — pr_files lists docs/api.md only, and docs/api.md is pure prose (no code-generated include: search_code for
include_str!.*docs/finds nothing). - Absent: any statement that the documented keyword set is guarded by a test, and any statement about how the strict-tool list at docs/api.md:717-734 relates to the new one.
#14 [high] Research summary
Case file for PR #704 (docs/api: enumerate accepted response_format JSON Schema keywords) is complete; 13 scratchpad entries cover all eight angles.
What it is: one 17-line paragraph added at docs/api.md:927-942, inside "Conversation and tool semantics", enumerating 29 structural/constraint plus 13 metadata/annotation JSON Schema keywords accepted by validate_schema_nodes, plus the rejection rules (any other keyword, external $ref, and schemas over 262,144 bytes / depth 64 / 8,192 nodes → HTTP 400). pr_files confirms 1 file, +17/−0.
Most important findings, all outside the description:
- The rendered
pr_diffshows ~10 files, including adocs/api.mdhunk about typed HTTP 400error.codevalues. I traced that noise to merged #689 (PreparationErrorexists at pr/704 helios/src/server/http.rs:119-130 (not opened) but not on local main), plus #690/#687: the local base is older than the PR's merge base, so none of it belongs to #704. A reviewer reading the diff panel could mistakenly think this PR rewrites the error-code docs. - I re-derived the keyword parity by hand from helios/src/grammar.rs:902-948: 42 in code == 42 documented, zero missing/extra/duplicate. Bounds match grammar.rs:23-25, :884, :209. The PR's claim holds, but it cites commit
3d1614ccwhile head is77941c4. - #704 implements only the fallback ask of #449 ("if the keyword set is meant to stay narrow, docs/api.md should list the accepted keywords"); #449's reporter wants
deprecatedaccepted, and the issue stays open. The yatesdr comment on #449 is the direct provenance. - The author's own merged #418 already documents a narrower set at docs/api.md:717-734 also described as "closed"; #704 neither reconciles the two lists nor changes that paragraph, and nothing pins the new list to code (no doc-vs-code test anywhere, unlike flare-cli's man-page test).
- Zero reviews, zero comments, no labels, no CI checks on head, no Autobot case file — in contrast to the author's siblings #461/#686/#689. Charter line 33 ("documented subset of … JSON Schema for structured outputs") and line 35 ("bad docs") support it; no roadmap item applies.
Details, citations and the value/limit nuances of the keyword list (a floor, not a guarantee — format, dangling $ref, minimum>maximum, boolean schemas still 400 later) are in the scratchpad.
#5 [medium] Process: ready-for-review but zero reviews, zero CI, no labels, hours old
Process facts as of the orientation packet (2026-12-03):
- State: open, ready for review, not draft. No labels (no
area:api, nodocumentation, notriage:review— note the author's sibling docs PR #461 carries all three). - Head commit 77941c4, base main, branched at cc0a49d. Size 1 file, +17/−0.
- CI on head commit: no checks — so the only verification is author-local, and the PR body says so ("Unrun checks: no Rust, Python, simulator, formal, or GPU test suites were run because this PR modifies documentation only"). The stated local checks are
git diff --check("zero whitespace issues") andgit diff --stat("touches only docs/api.md") plus the parity script. - The parity claim ("Verified programmatic 1:1 set parity ... zero missing, zero extra, zero duplicates") is asserted without naming the script or where it ran; I re-derived the counts by hand and they hold (see the claims/evidence entry), so the absence of the script is not a correctness gap.
- Reviews: none. pr_comments: "No comments" — zero human engagement so far, and no reactions.
- Age: opened the same day it was last updated (2026-12-03), so effectively hours old at review time.
- The PR body is complete against AGENTS.md's four-part description standard (why / what changed / result / evidence) and ends with "Discord: jcartu", the repo's usual attribution convention. Contrast: the charter (line ~"PR descriptions") expects why, what changed, claimed result, and evidence — met. Charter line 35 lists "bad docs" among what gets merged.
- Branch base is stale versus the local copy of main, which is why pr_diff renders ~10 extra files; verified the extra hunks are merged work, not this PR (see the other note). A rebase would shrink the rendered diff to the single hunk.
- Timing/provenance link: the PR was opened the same day (2026-12-03 11:40) as jcartu's comment on #449 announcing it, and #449's own updated timestamp (2026-12-03 11:40) is that comment. #704 also follows the merged #689 (merged 2026-12-03 01:22), the same author's docs+code change in the same file. Citations: orientation packet; pr_comments (no comments); pr_files; read_item 449; read_item 461; read_item 689; read_charter.
#7 [medium] People: jcartu authored the strict-tool machinery (#418) and the sibling docs PR #461
jcartu is a CONTRIBUTOR (not one of the charter's priority contributors @voipmonitor/@original-el8/@lukealonso). Last 180 days: 6 merged PRs, 3 closed, 9 open. Merged areas: docs (5), helios/src (4), root (1), flare-cli/src (1), heliopause/src (1). Recent merged while this was in flight: #690 "Preserve inherited CUDA_HOME in ignition.cli.environment" (2026-12-02), #689 "helios/server: preserve typed error codes on HTTP request preparation failures" (2026-12-03 01:22), #687 "flare-cli, debian: sync flare.1 subcommands and fix 'an orbit' wording" (2026-12-02). Open siblings: #692, #691, #686, #688, #693, #642, #621, #461, plus issue #703.
Track record in this exact area: #418 "Add strict function-tool schemas for DSML, Qwen, GLM and TML parsers" (merged 2026-11-22, +6048/−128, 16 files) is the author's and is what created the strict keyword subset in docs/api.md and the compile_strict_validators/helios/src/grammar/strict.rs machinery; #704's subject matter is its neighbourhood. #461 "Document strict tool selection and numeric range precision" (open, +88/−26) is the same author's ongoing docs work on strict schemas and has had two Autobot review rounds plus a yatesdr CHANGES_REQUESTED, with the yatesdr review noting "Or leave admission as it is and document the limit, which docs/api.md now states" — i.e. maintainers on this PR family are receptive to the "document it rather than change behavior" resolution, which is exactly #704's approach.
Who contests/decides this area: yatesdr is the maintainer voice on the #449 allowlist question (his 2026-11-21 comment defines the closed-allowlist position and is the direct cause of #704) and is also the reviewer who requested changes on #461. lukealonso and voipmonitor also touch helios/src/grammar.rs per items_touching (from merged #626, #670 / open #500, #228, #94, #167). shieldstar authored #449 and is not a priority contributor; the issue's reporter's preferred fix (accept deprecated) is not what this PR does.
Authorship pattern relevant to process: the author's docs PRs in this window routinely carry area:api, documentation, triage:review labels (#461, #686) and go through flare-autobot review; #704 has no labels, no review request, and no Autobot case file/comment yet, unlike #461, #686 and #689, which each got an Autobot case file within ~30 minutes of opening.
#8 [medium] Project fit: charter line 33 pledges documented JSON Schema subset; line 35 "bad docs"; no roadmap item
Charter (read_charter):
- Line 33 (Standards & Contributions): "We target the documented subset of the OpenAI API, the Anthropic Messages API (including token counting and streaming), and JSON Schema for structured outputs." #704 documents exactly the JSON Schema part of that pledge — squarely in scope. Note the charter says "documented subset", which is what makes a caller-facing enumeration of the subset the charter's own framing rather than an extra.
- Line 35 (what gets merged): "PRs that address a maintainer request, a roadmap item, a reproducible bug, a measured performance/memory issue, or bad docs." #704's trigger is a maintainer request (yatesdr on #449: "no document lists the accepted keywords") and the "bad docs" criterion. Both apply.
- Line 42 (supported matrix & compatibility): asks for checks across models/caches/parallel layouts/hardware and CUDA-graph transitions "and verify that existing data, artifacts, and exported cores still load". A docs-only change has no matrix surface; the PR explicitly claims "no behavior, runtime, or core-compatibility changes." The charter's matrix duty therefore reduces to the 4-API coverage the paragraph itself asserts.
- "Be explicit and pin everything. No magic defaults" and "Don't silently ignore API fields... either implement it according to the spec or reject it" — #704 documents a reject-not-ignore policy (HTTP 400 for anything off the allowlist), which is the charter-compliant side of that rule. It makes the rejection discoverable, consistent with "Be explicit".
- "PR descriptions: Expect four parts: why the change is needed, what changed, the claimed result, and the evidence backing it." Met (see the process note).
- "Solve the right problem in the right place... a way to solve it without new code at all" — #704 is the no-new-code resolution that yatesdr's #449 comment steered toward ("Accepting more annotation keywords would be a change to that rule, not a fix").
- "Bring real evidence. Performance PRs need benchmarks... Bug fixes need to address the root cause" — not applicable to docs; the evidence bar is the parity check, which holds.
- Roadmap: no roadmap item concerns JSON Schema keywords or structured-output docs. The #6 in-process Rust SDK, Engram tables (#267) and the FlashInfer pin (#215) are the listed roadmap items; #704 touches none.
- Where it does not line up: the charter's "Respect contributors / priority contributors" rule names @voipmonitor, @original-el8, @lukealonso — not jcartu — so #704 gets no priority weight, and the reporter of #449 (shieldstar) is not a priority contributor either, meaning the "closed allowlist by design" position on #449 need not be softened for contributor-relations reasons. Related documentation guidance (AGENTS.md, not charter): :52-58 requires present-state statements for what is implemented (which #704 does: it states the present allowlist, not a design ambition), forbids defect reports/progress notes in docs (AGENTS.md:57-60), and :230 requires the relevant API section be read for API-behavior changes.
#10 [medium] Reach: callers on all 4 protocols; no runtime/config/dependency surface; #530 asks for an adjacent note
Reach — who and what is touched (all documentation-only; no runtime, wire, config, default, dependency, or core-format surface):
- Affected users: any caller sending a structured-output JSON Schema on Chat Completions (
response_format), Completions (response_format), Responses (text.format), or Messages (output_config.format) — i.e. SDK users writing against docs/api.md as "the API reference" (helios/README.md:130, docs/api.md:1087-1093). Before this PR a caller could not learn the accepted set without reading helios/src/grammar.rs (matches yatesdr on #449: "no document lists the accepted keywords"). - Operators: no configuration or default changes; nothing to re-tune. docs/api.md:243-253's
max_body_bytesis separate and untouched — the 262,144-byte schema bound is the Schema's re-serialized JSON length, not the request body, so operators seeing a 400 for a large schema are not hittingmax_body_bytes(default 32 MiB, helios/src/server.rs:141, configurable up to 256 MiB at :275-276). The new paragraph does not distinguish the two; a reader could conflate them. - Compatibility: no wire, protocol, or client-SDK change; no core/serialized-artifact change; no dependency or pin change (so no interaction with the charter's pinning rule). No migration effect and no per-model branching, which keeps it inside the charter's "keep the runtime small and model-agnostic" boundary (it adds no code at all).
- Cost surface a caller already pays and the new paragraph does not mention: constrained decoding on MTP packages is measurably slower — issue #530 (devinkuhn, 2026-11-25, area:scheduling/bug/performance) measures json_schema decode at ~55 tok/s vs 176 tok/s unconstrained (and 57 for json_object) on DeepSeek-V4.1-Flash-1017 gb202 TP4, a ~3× penalty, with production impact 54.8 s median vs vLLM's 21.5 s and 85/450 client timeouts vs 1/203; #530's ask 3 is explicitly "a note in the model card or
docs/api.mdwould help operators plan: structured output costs roughly 3× decode time on MTP packages." #704 does not add such a note. Related merged PRs #626 "Allow speculative reasoning for grammar-constrained requests" and #619 changed the speculation rules for constrained requests, so the numbers may have moved since #530. - Documentation reach is limited to docs/api.md; docs/core-design.md has nothing about the allowlist (see the related-work note), and no sibling doc restates the bounds, so nothing goes stale from this change.
- Second-order reader effect: having a concrete present-state list makes it cheap to check the closed-allowlist stance; it also makes any future keyword acceptance (e.g. adding
deprecatedper #449) a visible doc change rather than silent divergence.
#11 [medium] Community: no engagement on #704; the topic has an active thread (#449) and a loud cost report (#530)
Community interest in #704 itself: zero. pr_comments returns "No comments"; no reviews; no labels; no reactions; no flare-autobot case file (contrast #461, #686, #689, which each got an Autobot case file within minutes of opening, e.g. #686 at 2026-12-02 20:50 for a 20:47 open). Age at review: hours (opened and last updated 2026-12-03).
Interest in the underlying topic, by contrast, is real:
- #449 (the linked issue) has 2 comments and a concrete reproduction, and is labelled area:api. It stayed open from 2026-11-21 to at least 2026-12-03 and is still open after this PR, because #704 only delivers the issue's fallback ask.
- #530 (structured-output decode cost) drew a detailed production report from devinkuhn (2026-11-25) and is labelled area:scheduling/bug/performance/triage:investigate; it references #515/#522 and is referenced by merged #619/#626. That is a different concern (cost) than #704's (admission keywords), but it is the loudest structured-output complaint in the tracker.
- #417 (closed issue, "Support
strict: truefunction tools (currently rejected with HTTP 400)") and its merge #418 show maintainers already treat schema-admission documentation as a deliverable ("bad docs" criterion). - #461 (same author, open, +88/−26) has 5 comments, a yatesdr CHANGES_REQUESTED review, and two Autobot reviews — the review bandwidth in exactly this docs area is being spent there, and #461's yatesdr review point 1 offered "Or leave admission as it is and document the limit, which
docs/api.mdnow states" as an acceptable resolution pattern, which is the pattern #704 follows. - Related but unlinked: nothing else in the tracker asks for a keyword allowlist enumeration; searches for "unsupported JSON-schema keyword allowlist validate_schema_nodes", "schema rejected 400 keyword unsupported response_format", "structured output schema documentation gap" and "closed allowlist grammar schema llguidance strict" return no other candidate PRs or issues at PR head.
#12 [medium] Recent activity: docs/api.md is high-churn; local base is stale by merged #689/#690/#687
Environment limitation first: the local copy's git history is unreadable at the PR's base ("Could not read c513e46a79f3b6ac510235aaf09bcf055b841958", search_history and the packet's "docs: not available" both fail), so per-commit recent activity in docs/ cannot be listed directly. What is established instead:
- The local copy of
mainis older than #704's merge base (cc0a49d). Evidence: pr_diff renders hunks in AGENTS.md, docs/TODO.txt, docs/api.md, docs/cli-design.md, docs/core-design.md, docs/model-preparation.md, docs/scheduling-runtime-design.md, flare-cli/src/cli.rs, flare-cli/src/orbit/agent.rs, while pr_files says 1 file. Those hunks are already-merged work visible at PR head but absent from local main, not part of this PR:PreparationError/preparation_errorexists at pr/704 (helios/src/server/http.rs:119-130, :213-288) and not at local main (search_code forPreparationErrorin helios/ on main: no matches) — that is merged #689 (jcartu, merged 2026-12-03 01:22, +440/−26, docs/api.md +6/−3), whose docs sentence is exactly the "typed HTTP 400 rejections seterror.code..." hunk at docs/api.md:257-262. Likewise the AGENTS.md/docs/cli-design.md/docs/model-preparation.md CUDA_HOME/TRITON_PTXAS_PATH/CPATH hunks are merged #690 ("Preserve inherited CUDA_HOME in ignition.cli.environment"), and the flare-cli man-page test + "an orbit's" fix is merged #687. Net: nothing in the rendered diff outside the one docs/api.md paragraph is attributable to #704. - The packet's own note: "Commits on the default branch since this pull request branched (cc0a49d), touching its changed files: none" — so #704 does not build on or conflict with a commit landed after its branch point.
- docs/api.md is a high-churn file: items_touching(docs/api.md) lists 15 merged and 14 open PRs in the last 180 days, e.g. merged #689, #670, #657, #638 ("Echo Responses tools and text.format"), #626, #620, #615, #578, #573, #568, #505, #478, #170, #102; open #694, #692, #686, #685, #677, #674, #621, #560, #554, #549, #548, #453, #461, #172. So a trivial textual rebase is likely regardless of intent. The nearest known overlaps are #461 and #686, which both edit the required/named-tool-choice paragraph around docs/api.md:562-575 / :666-681 (per #686's Autobot review and #461's description) — 250+ lines above #704's insertion point at docs/api.md:924-942, so overlap with #704's own lines is unlikely.
- Same-day cluster worth noting: merged #689 (2026-12-03 01:22), the #449 comment announcing this PR (2026-12-03 11:40), and #704 itself (2026-12-03). The author is landing a coherent docs pass over docs/api.md: #689 (error codes), #704 (schema keywords), and the still-open #686 (tool_choice required) and #461 (strict selection/numeric precision).
- Missed cross-reference from #704 to #689: #704 says keyword rejections "return HTTP 400" (docs/api.md:939-942) without naming the typed
error.code: invalid_grammarthat #689 landed 670 lines earlier at docs/api.md:257-262. The two are the same rejection path (AdmissionError::Grammar -> "invalid_grammar", helios/src/server.rs:749 -> 400 at :738).
#15 [medium] Cross-reference: #689's typed-code sentence excludes Messages; #704 says bare HTTP 400 for all four
Detail the report should state about the typed-400 docs interaction (beyond my earlier notes):
Merged #689 (jcartu, merged 2026-12-03 01:22, docs/api.md +6/−3) added the sentence at docs/api.md:257-262: "On Chat Completions, Completions, and Responses, typed HTTP 400 rejections set error.code to context_length_exceeded, unsupported_feature, invalid_grammar, or invalid_image while keeping error.type as invalid_request_error." Messages is deliberately excluded from that sentence, because /v1/messages keeps the Anthropic {"type":"error","error":{"type":...,"message":...}} envelope with no code field (stated in #689's description and its Autobot review).
#704's new paragraph (docs/api.md:939-942) says schemas off the allowlist "return HTTP 400" for all four protocols including output_config.format on Messages, and does not mention error.code: invalid_grammar at all. Both statements are true and non-contradictory (status vs envelope), but they are 680 lines apart in the same file and were written by the same author the same day; nobody connects them. Code backing: AdmissionError::Grammar maps to HTTP 400 at helios/src/server.rs:738 and to error_code "invalid_grammar" at helios/src/server.rs:749. End-to-end proof that an invalid output schema yields 400 + invalid_grammar on all four routes (including Messages output_config.format): helios/src/server/runtime/phase_tests.rs:8871-8926 (test http_preparation_failures_preserve_typed_error_codes_and_protocol_envelopes, landed by #689).
Also: #704's authority for AdmissionError::Grammar -> invalid_grammar exists in the tree it renders only because #689 merged first; on local main the PreparationError plumbing is absent (search on main: no match), so the rendered diff shows both changes together even though only one is #704's.
#13 [low] Correction: "before grammar compilation" qualifier weakens the strictness nuance
Correction/qualification to my own nuance list (entry: "Claims/evidence: verified 42-keyword parity"): the doc's opening clause is "validate every schema node against a closed keyword allowlist before grammar compilation" (docs/api.md:929-930). The "before grammar compilation" qualifier does acknowledge that compilation happens afterwards and can fail, so the doc does not literally claim that an allowlist-clean schema compiles. The residual risk is only that a caller reads the enumerated list as "what my schema may contain" and still meets a 400 for e.g. {"type":"string","format":"not-a-format"} (grammar.rs:1624), a dangling #/$defs/missing $ref (grammar.rs:1629), minimum > maximum (grammar.rs:1630), overlapping oneOf (grammar.rs:1625), a boolean false schema (grammar.rs:1631), or an unknown type value (helios/src/server/runtime/phase_tests.rs:8873-8903, which asserts HTTP 400 + error.code: invalid_grammar for exactly such a schema on all four routes). So: the doc is accurate; the enumeration is a floor on what's accepted, not a guarantee. Also note grammar.rs:890-892 returns Ok for boolean schemas, so true/false are allowlist-clean and the "keyword allowlist" framing does not describe them at all; true is admissible and false is rejected later. Fair statement for the report: parity holds exactly; the list describes the keyword layer, and other admission rules still apply.
Also: the doc's per-node error path is HTTP 400 for all four protocols. Verified for Messages too: phase_tests :8896-8903 sends output_config.format json_schema with the invalid schema and asserts BAD_REQUEST + invalid_grammar, so the doc's "on Chat Completions and Completions ... Responses ... and Messages ... return HTTP 400" holds on every route it names.
#16 [low] Nuance: 262,144 bytes is the shared MAX_GRAMMAR_BYTES (also Lark/regex), measured after re-serialization
Accuracy nuance worth one line in the report's change/claims section: the 262,144-byte ceiling documented for JSON schemas is the same MAX_GRAMMAR_BYTES constant that bounds two other request grammars, but #704 presents it only in the JSON-Schema context.
- helios/src/grammar.rs:23
const MAX_GRAMMAR_BYTES: usize = 262_144; - JSON schema use: grammar.rs:209-214 (
schema.to_string().len() > MAX_GRAMMAR_BYTES-> AdmissionError::Grammar "JSON schema exceeds ... bytes"), checked before the keyword walk at :215. - Lark use: grammar.rs:618-621 ("Lark grammar must contain 1..={MAX_GRAMMAR_BYTES} bytes").
- Custom-tool regex use: grammar.rs:549 (
"regex" if !source.is_empty() && source.len() <= MAX_GRAMMAR_BYTES). docs/api.md already documents the Lark/regex side separately ("bounded Lark or regex grammar" at :767-769 and the custom-tool grammar text at :684-688), so no contradiction; the new paragraph simply does not say the number is shared. Not a defect — a reader shouldn't infer that 262,144 is special to JSON Schema.
Second nuance of the same kind: the JSON schema bound is measured on the re-serialized schema (schema.to_string().len()), not on the request body, so it is independent of max_body_bytes (default 32 MiB at helios/src/server.rs:141, permitted 1..=256 MiB at helios/src/server.rs:275-276, documented at docs/api.md:243-253). The new paragraph does not distinguish the two, and both produce 400 vs 413 respectively (413 request_too_large for body, docs/api.md:253; 400 for schema size, docs/api.md:939-942). A caller with a large schema sees 400, not 413 — worth stating because it is the one place the new text could be misread operationally.