Contracts, Charter & Verification Gates Audit — PR #704 (docs/api: enumerate accepted response_format JSON Schema keywords)
Verdict: No contract or verification gate blockers. All four hard gates pass. The PR is a 17-line, single-file prose change whose central factual claim I re-derived independently against the code and confirmed.
Gate 1 — Signed core-format / wire / captured-graph / public contract boundaries: PASS
pr_files= exactly one file:docs/api.md(+17/−0). No.proto, no core-format reader/writer, no captured-graph op family, no enum, no wire kind, no CLI/config setting, no shipped default — sodocs/design-review.md:22-26graph-family owner approval is not engaged (nothing is added "even if it reuses a graph kind or enum value").- It touches none of the normative documents the gate names (
docs/scheduling-theory.md(not opened),docs/scheduling-runtime-design.md(not opened),docs/core-format-design.md(not opened)).docs/api.mdis the correct, charter-designated location: the charter targets "the documented subset of … JSON Schema for structured outputs", andAGENTS.md:230routes API-behavior documentation to exactly this file. - No normative invariant is contradicted, and none is weakened (design-review principle 15 applies its criteria to documentation): the paragraph describes an existing rejection policy rather than relaxing one, so it cannot create a "don't silently ignore API fields" violation — it documents the reject-with-400 side of that rule.
- The documented contract is factually true (the only place a false contract statement could hide). Re-derived the headline claim myself:
- Code (
helios/src/grammar.rs:902-948): 12 distinct recursion keys ($ref,$defs,definitions,properties,patternProperties,anyOf,oneOf,allOf,prefixItems,items,additionalItems,additionalProperties) + 30 pass-through keywords at:943-948= 42. - Doc (
docs/api.md:931-939): 29 structural + 13 metadata = 42. Sets are identical — zero missing, zero extra, zero duplicates. - Bounds match code:
MAX_GRAMMAR_BYTES = 262_144,MAX_SCHEMA_NODES = 8_192,MAX_SCHEMA_DEPTH = 64(grammar.rs:23-25), enforced at:209and:884. - "HTTP 400" is sound on all four routes: every
AdmissionErrorexceptCapacity/Unavailablemaps toBAD_REQUEST(helios/src/server.rs:733-741),error_codeinvalid_grammarat:749, with wire-level coverage including Messagesoutput_config.format(helios/src/server/runtime/phase_tests.rs:8874-8925). $refsame-document rule matchesgrammar.rs:903-911; the four wire spellings matchhelios/src/server/protocol/decode.rs:466-504and:560-576.
- Code (
Gate 2 — Vendored upstream dependencies & cross-PR conflicts: PASS
- No vendored file is touched (e.g. no
helios/native/roce_proxy.c(not opened)), no dependency, pin, or recipe change, no external-repository reference added. - No dependence on an unmerged external recipe/PR. The only link is issue #449 as
Refs(deliberately notFixes), a maintainer-endorsed documentation ask — not an unmerged artifact.
Gate 3 — Mandatory verification evidence & failing tests: PASS
- No Layer 3 trigger. No GPU/CUDA/VMM execution path, no scheduler/cache/worker lifecycle, no TLA+/Kani domain, no core-format or export/serve change, and no performance claim (so no
main-vs-branch served-workload A/B benchmark is owed).docs/design-review.md:260-261("Pure documentation and formatting edits require inspection and applicable existing checks; they do not require simulator, formal, or GPU runs") and:268-270("Documentation changes do not require GPU tests") exempt this change directly. The:234-259enforcement clauses are scoped to "modifying the Helios scheduler, admission, speculation, cancellation, cache ownership, completion validation, readiness, or rank coordination" — no such modification exists. - No failing CI check and no failing test is reported on
77941c4in the PR description, its comments, or the Discovery Dossier. The PR honestly discloses its unrun suites ("no Rust, Python, simulator, formal, or GPU test suites were run because this PR modifies documentation only"). That disclosure is what principle 12 asks for, and:247-251("disclosure does not excuse skipping runnable CPU checks") is not breached because no crate is modified and no existing test assertsdocs/api.mdcontent — runningcargo testcould not validate this prose. I am not inferring a CI problem from tool limits; nothing shows a red check.
Gate 4 — Material scope / claim contradictions: PASS
- Scope claim confirmed; the inflated diff is drift, not scope.
pr_files= 1 file (+17/−0). The ~10 files rendered by the base-localpr_diffare stale-local-base drift, proven independently in both directions: (a)docs/api.md'sinvalid_grammar/context_length_exceededparagraph is absent on localmainand present atpr/704, matching merged #689 (whose own file list includesdocs/api.md +6/−3); (b)debian_man_page_documents_every_visible_subcommandis absent on localmainand present atpr/704(flare-cli/src/cli.rs:2422(not opened)), matching merged #687. No unrelated tooling is bundled; there is no thousands-of-lines payload. - No absent-evidence claim. The description's evidence section claims only a parity check plus
git diff --check/--stat— not a new test or benchmark that is missing from the diff. Correctly, the diff adds no test.
Info / Nit (explicitly not blockers)
docs/api.md:717-734(strict function tools) anddocs/api.md:927-942(output constraints) are two differently-scoped "closed" keyword lists ~200 lines apart, and the new paragraph does not relate them. Both are accurate for their own paths — strict tool schemas validate throughcompile_strict_validators(helios/src/grammar/strict.rs:63), while the final-answer schema walksvalidate_schema_nodes(strict.rs:1516-1522), so the new text's "output constraints" scoping at:930is correct and no conflict exists. Relating them would be a clarity improvement only.- Bookkeeping: the body cites commit
3d1614ccwhile head is77941c4; I re-ran the parity reasoning at head and it holds. The parity check is not committed as a drift guard; no gate requires one. - The 262,144-byte bound is measured on the re-serialized schema (
schema.to_string().len(),grammar.rs:209), not the request body, and is unstated as such. Not a contradiction with any normative doc, and unrelated tomax_body_bytes/413. - The enumeration is an admission floor, not a non-rejection guarantee —
{"type":"string","format":"not-a-format"}, dangling#/$defs/missingrefs, and booleanfalseroots still 400 after passing the allowlist. The text is scoped to "a closed keyword allowlist before grammar compilation" (:929-930), so this is not a contradiction.
No instruction-like or prompt-injection content was present in the PR material reviewed.