Prose review of PR #505 — "Bind core-declared FP32 parameters into text forward graphs"
Key findings
- Should fix (1):
docs/api.md,docs/direct-execution.md, andhelios/model-contract.mdnow describe cores with declared core parameters as ordinary served behavior, with no statement of qualification. The PR's own limitations say no core has ever been exported or served with a declaration on a GPU, anddocs/TODO.txtgains no entry. AGENTS.md lines 52–60 and the repo-prose skill lines 30–37 require present qualification plus a TODO entry for unrun checks — this is the one place where the repository prose and the evidence diverge. - Nit (1):
helios/model-contract.md:128-132says admission "rejects … out-of-range numeric encodings" in the same sentence where it correctly says finite values are clamped to declared ranges; the code clamps, it does not reject, in-range terms.docs/api.md:757-759states the behavior correctly, so the two documents disagree. - Everything else in the description, the commit/PR prose, and the new documentation was checked against the code and holds: the four required sections are present and in order, the Discord line is present, claims are explicitly scoped to "no throughput or output-quality improvement" and "no recipe in this repository binds a core parameter", the before/after transition is explicit, and every wire-visible statement in
docs/api.mdmatcheshelios/src/server/protocol/decode.rsandhelios/src/server/models.rs.
Should fix: documents present core parameters as supported without qualification, and docs/TODO.txt records no unrun check
Where (changed prose):
docs/api.md:749-765— newcore_parametersrequest section: "Every generation protocol accepts an optional top-levelcore_parametersJSON object … Prefix-cache identity hashes every declared effective parameter … into the prefix root."docs/direct-execution.md:84-88— "/v1/modelsreports the core's declaredcore_parametersunderflare. Chat requests accept the same top-levelcore_parametersobject as native serving…"docs/direct-execution.md:151-162— packing paragraph now lists "declared FP32 core parameters on text forward graphs" and "Direct prefix keys include the same canonical core-parameter identity as native serving when a core declares core parameters."helios/model-contract.md:116-133— newCORE_PARAMETERcontract paragraph;helios/model-contract.md:275-282— new prefix-history/admission paragraph.docs/TODO.txt— unchanged by this PR; a search for "core parameter" (any case) at the head commit returns no matches.
What is wrong. All three documents are present-state specifications: docs/api.md describes what a deployed Flare server accepts and returns, docs/direct-execution.md describes what ignition direct does, and helios/model-contract.md is the contract specification. They now describe declared core parameters as behavior a reader can rely on, and none of them says that this path has never been exercised end to end. The only place that statement exists is the PR description ("Live GPU export and serving of a core declaring core_parameters were not run on this rebased commit", and "No model recipe in this repository binds a core parameter"), which is not repository prose and disappears on merge.
Why it matters. AGENTS.md:52-60 is explicit: "State support as present qualification: what is implemented, the hardware and configurations on which it is qualified, and what is not qualified. Record unresolved defects, unrun checks, and pending measurements in docs/TODO.txt, not in design documents." .agents/skills/repo-prose/SKILL.md:30-34 (not opened) repeats it ("Distinguish implementation from qualification … An implementation or passing test suite does not establish support for untested workloads") and :35-37 requires disclosure of "missing hardware, inputs, and unrun checks"; :38-39 requires TODOs to name the missing condition. The CPU coverage is real and well described in the PR (tests/direct, --features runtime-core,server, heliopause, Kani), but no core has been exported or replayed on a GPU with a declaration attached, so the documents currently claim more than the evidence supports — precisely the failure mode the charter's review standard names ("Check … that existing … exported cores still load", and the qualification clause above).
Fix. Add one qualification sentence to each document (or to one place the other two reference) naming what is covered and what is not: the contract, HTTP validation, prefix hashing, and packing are covered by CPU tests; export and serving of a declaring core on GPU are not yet qualified and no in-repository recipe declares a core parameter. Then add a docs/TODO.txt entry for running that qualification with a declaring recipe, naming the criterion for removal (the GPU run passing on the supported SM matrix). Do not merely soften the wording — AGENTS.md requires the condition to be recorded.
Verified: PR limitations text; the three diffs contain no qualification sentence; docs/TODO.txt has no entry.
Nit: helios/model-contract.md conflates clamping with rejection
Where: helios/model-contract.md:128-132: "Shared admission fills omitted names from declared defaults, clamps finite FP32 request values to declared inclusive ranges, accepts any finite FP32 value when range is omitted, canonicalizes -0.0 to +0.0, and rejects unknown names or out-of-range numeric encodings."
What is wrong. "Out-of-range" in these documents means outside the declared inclusive range (docs/api.md:757-759 uses it that way). A finite request value outside a declared range is clamped, not rejected: CoreParameter::resolve_value at helios/src/model/contract.rs:453-462 applies value.clamp(range.min, range.max) and errors only on a non-finite value. The numeric inputs admission actually rejects are those that cannot become a finite nonzero f32 — magnitude above f32::MAX, or a nonzero value that underflows to f32 zero, enforced at helios/src/server/protocol/decode.rs:58-68; unknown names are rejected at helios/src/model/contract.rs:518-525.
Why it matters. The sentence contradicts itself (clamped in one clause, rejected in the next) and contradicts docs/api.md:757-759, which states the wire behavior correctly for the same feature. A model author reading the contract could believe an out-of-range request fails when it silently resolves to the bound — a wire-visible difference.
Fix: "… canonicalizes -0.0 to +0.0, and rejects unknown names and values that are not representable as finite nonzero FP32 values."
Verified against helios/src/model/contract.rs:453-470 and helios/src/server/protocol/decode.rs:49-75.
Checked and passing (no finding)
PR description (AGENTS.md:72-112). All four required parts are present, in order and under their own headings: Why (the multi-rank conditioning-strength workflow, why SAMPLING_PARAMETERS cannot carry it, why prefix-cache identity is affected), What Changed (component by component, with an explicit "Before this change … After this change" framing per AGENTS.md:88-92), Claimed Result (explicitly scoped: "No throughput or output-quality improvement is claimed", "No model recipe in this repository binds a core parameter"), and Supporting Evidence and Limitations (per-suite counts, the unrelated pre-existing failure on origin/main, the 130 s flare-cli test skipped as pre-existing, and the unrun GPU qualification). The Discord: jcartu line is present as AGENTS.md:142-153 requires. Compatibility detail that matters (version stays 3, cores without declarations encode identically, prefix root unchanged) is stated, not left to inference.
Claims verified against the code, not taken on trust:
- Text-forward-only restriction and completeness requirements:
helios/src/model/contract.rs:665-720(is_text_forward_graph, reject non-text graphs, FP32 width-one contiguous buffer of at least request capacity, zero offset/padding, emptytensor). - Resolution clamps and canonicalizes:
helios/src/model/contract.rs:453-470. - HTTP rejection classes named in
docs/api.md:753-755(non-object, empty/undeclared name, boolean, non-numeric, non-finite,>f32::MAX, underflow to zero):helios/src/server/protocol/decode.rs:49-75, exercised across all four protocols bydecode.rs:974-1012. /v1/modelsadvertises ordered declarations with canonicalized+0.0defaults and ranges:helios/src/server/models.rs:72-89,:123.- Protobuf additions and their comments (
core_parameters = 8,CORE_PARAMETER = 43,ValueBinding.parameter = 7) read as present-state invariants with no chronology or lifecycle labels:helios/proto/runtime_core.proto:273-283,:379-383,:397-400. - Regenerated Python bindings match the description's toolchain claim:
ignition/preparation/runtime_core_pb2.py:5("Protobuf Python Version: 7.36.1") and the runtime version check at:12-19. - The direct-execution statements are backed:
ignition/direct/server.py:111-118(top-level-only parsing,null→ defaults),:135-142(/v1/modelscard carryingflare.core_parameters). - Description's export-time validation claim corresponds to
serving_metadatainheliopause/src/export/binding.rs.
New prose style (repo-prose skill). The added paragraphs in docs/api.md, docs/direct-execution.md, helios/model-contract.md, and the .proto comments state behavior and invariants; they contain no lifecycle labels, no false definite references, no chronology or "previously/now" framing, and no progress notes. The PR description likewise avoids process assurances and does not attribute a combined result to this change.
Scoping to the charter. The change is generic and model-agnostic (named FP32 declarations in ModelContract), with no per-model branches in Helios, which matches the charter line "Keep the runtime small and model-agnostic" and its review standard on compatibility. It also follows the maintainer direction in #404 (asking for generic prototype-declared scalar arguments rather than a DeepSeek-specific steering field), which the description's Why section explains causally rather than narrating.
Open questions and what could not be verified
- Discoverability of the new API paragraph. The
core_parametersrequest section sits atdocs/api.md:749-765, under "Reasoning, sampling, and usage", after the sampling-range text. It opens with "Every generation protocol accepts …", so it is not wrong, but a reader looking under the Completions, Responses, or Messages sections will not find the field there. A cross-reference from those sections, or a placement note, would settle it. Not recorded as a finding because it is a structural preference, not a defect I can show from the text. protobufpin. The description claims the regenerated bindings are "verified clean underprotobuf>=7.36.2,<8", and the generated file enforces>= 7.36.1at import (runtime_core_pb2.py:12-19). A search ofignition/requirement files returned no pinnedprotobufspecifier, so the pin lives somewhere I did not locate within the review. This does not affect the prose finding; it would be settled by pointing at the file that carries the pin.- Commit message body of
85de9eae. Only the subject line ("Bind core-declared FP32 parameters into text forward graphs") was available; the body was not read, so commit-message prose is unreviewed beyond its subject. The subject is imperative, describes the change, and carries no chronology — nothing suggests a problem. - GPU qualification. No finding is asserted from the absence of a GPU run itself — the PR discloses it, as AGENTS.md requires. The finding above is that the disclosure exists only in the description and not in the repository prose or
docs/TODO.txt.