Pre-Test Report — PR #505 "Bind core-declared FP32 parameters into text forward graphs"
Recommendation: DO NOT REFER TO HARDWARE TESTING YET. The change is architecturally sound and in-charter, but a hardware run now would spend GPU time on code that is already scheduled to change in the same files, would not exercise the feature it is meant to validate (no core in any repository declares a core parameter, and no consumer forward exists), and would leave the two substantive defects untouched because neither is visible on a GPU.
1. What the PR is, and its state
Merged as ef94d621 (2026-11-28), 32 files, +2393/−261, external contributor (jcartu). Zero human reviews and no CI on the head — the only thread entry is the case-file bot (pr_comments).
Mechanism: ModelContract.core_parameters = 8, ValueSource::CORE_PARAMETER = 43, ValueBinding.parameter = 7 (helios/proto/runtime_core.proto:270-284,379-403). Declarations are validated at load and export; request values are resolved and clamped at the HTTP boundary in all four protocols (helios/src/server/protocol/decode.rs:49-75); the prefix-cache root is salted in declaration order while non-declaring cores keep byte-identical roots (helios/src/cache/hash.rs:37-56); resolved values are packed into a text-forward graph row buffer (helios/src/model/packing.rs:582-611). ModelContract.version stays 3.
Charter fit is genuine, and I want to be clear that this is not a "wrong place" objection: the declaration is generic contract data with no per-model branch, no supports_* flag, no new graph kind, and no steady-state cost when unused. The owner did ask for it (lukealonso, #404, 2026-11-21: a generic way for cores to expose "scalar arguments … described in the model proto").
2. Findings that must be resolved before hardware time
| # | Severity | Finding | Evidence (verified directly in the merged code) |
|---|---|---|---|
| 1 | Should fix | plan_admission/admit admit an unsalted request on a declaring core. They delegate with &[]/Default::default(), and validate_resolved_core_parameters accepts 0 == 0, so admission succeeds with an empty map; the failure appears mid-serving at pack time on every forward launch instead of as one clean admission rejection. Violates design-review principle 2 ("Admission … rejects unsupported features … explicitly"). Latent, not live — all production call sites use the parameterized entry. |
helios/src/scheduler.rs:1519-1528; helios/src/model/contract.rs:484-498; helios/src/model/packing.rs:582-597; production callers helios/src/server/runtime.rs:2755,2781,2806,2861,2883; every .admit( in helios/src is a test |
| 2 | Should fix | Export validates declarations only (names/defaults/ranges), not the new binding invariants. A CORE_PARAMETER binding on a VISION/INIT graph, or a declared parameter missing from one selected prefill graph, exports successfully and fails at load — contradicting the PR's own claim of export-time validation, and costing a multi-GB re-export instead of a cheap error. Declaring cores only. |
heliopause/src/export/binding.rs:1041-1047 vs the binding rules in helios/src/model/contract.rs:693-728 |
| 3 | Should fix (prose/process) | No core has ever been exported or served with a declaration, yet docs/TODO.txt records no entry for that unrun check while docs/api.md (not opened), docs/direct-execution.md (not opened) and helios/model-contract.md (not opened) describe the path as supported behavior. Contradicts AGENTS.md:52-60. |
docs/TODO.txt (no match for any core-parameter spelling); PR limitations field |
| 4 | Should fix (duplication/churn) | Text-forward graph-kind set re-written 5×; CoreParameterRange re-declares SamplingFloatRange; _wire_fp32 duplicated verbatim in ignition/preparation/contract.py:15-27 and ignition/direct/scheduler.py:53-65 (not opened); declarations hand-threaded through four runtime functions instead of SchedulerCapabilities (the vision precedent). |
confirmed at those paths |
| 5 | Nits | -0.0→+0.0 canonicalization threaded through five sites for an invariant that only fragments the cache; packing re-checks what load already enforced; /v1/models emits "range": null; misleading error strings; docs/prefix-cache-offload.md:717-720 (not opened) still documents the pre-PR admission entry point. |
— |
Governance note worth recording: the owner's approval (#404, closing comment 2026-11-28) names the interface ModelContract.scalar_arguments / SCALAR_ARGUMENT; the shipped names are core_parameters / CORE_PARAMETER. AGENTS.md:373-378 requires explicit approval for a new operation contract "even if it reuses an existing graph kind or enum value." One maintainer line should confirm the merged names are the approved contract.
Findings 1 and 2 are functional defects in the exact modules a hardware run would touch, and finding 4 plus the honest state of GPU evidence guarantee those files get edited again. Testing them now wastes time.
3. Expected value of a hardware run now: low
- No consumer exists.
ignition/recipes/does not exist in this repository (recipes live inlocal-inference-lab/hyperflare-recipes;AGENTS.md:379-384), andCORE_PARAMETERappears only in the proto, docs,ignition/direct, andtests/direct. Any declaring core would have to be authored for the test and then rewritten once the rework lands. - The prerequisite artifact does not exist. The cheapest in-repo GPU fixture,
helios/tests/runtime_core_fixture.py, passesserver=server_config(root), andhelios/tests/fixture_frontend.py:10-20writes nomodel_contractat all. The only in-repo fixtures that build a realPreparedContractarecollective_core_fixture.py:116-136(a 4-GPU TP4 collective fixture) andlegacy_cluster_fixture.py:30(not opened) (an emptyModelContract()). A lightweight declaring core must be authored — roughly half a day of contributor work, not a test-engineer task. - A declaring core has no observable effect by itself. A
CORE_PARAMETERbinding is only read by a captured forward that a recipe binds it into. With fixture fixtures the best a GPU run can show is "the contract loads, the row buffer uploads, the value lands at the bound slot" — plumbing assertions the CPU suites (--features runtime-core,server,tests/direct, heliopause, Kani) already cover. - The genuinely device-coupled risk is regression, not the feature. The packing hot path changed for every request (the
write_floats/write_rawrefactor, checked arithmetic, a second staging vector —packing.rs:286-307,531-611), so a non-declaring core could in principle regress. That is a small targeted check, not the sweep a full referral implies. - The most-cited mitigation is cheaper on CPU. The principle-13 "existing cores still load and serve" gap closes for a fraction of the cost by loading a recorded existing
ServingContractthroughserving_contract+PreparedContract::validate— precisely where the new validation runs. That is a test to add, not hardware to book. - The claimed result explicitly states "No throughput or output-quality improvement is claimed," so there is no A/B benchmark worth running.
4. Conditions to lift the hold (all zero-hardware)
- Collapse to one admission entry point so declarations cannot be omitted, or make the parameterless path reject on a declaring core (finding 1).
- Run a binding-level validator (or
PreparedContract::validate) fromserving_metadataso a bad binding fails at export (finding 2). - Add three CPU tests: an existing core loaded +
PreparedContract::validate; a declaring core admitted viaadmit⇒Err; an export with a misplacedCORE_PARAMETERbinding ⇒Err. - Add the
docs/TODO.txtentry and qualify the three documents perAGENTS.md:52-60. - Land the dedup so the duplicated Python validator (
ignition/direct/scheduler.py:121-185(not opened), ~90 lines) and_wire_fp32are single-sourced; otherwise a hardware result validates a copy that is about to change.
5. Proposed minimal test plan — only after §4 lands
One 1-GPU job on cn5 (4× RTX PRO 6000 Blackwell, amd64/SM120 — the charter's primary target), ~45–60 min total. Do not book the 4-GPU TP job. cn7 (GB10, arm64) is excluded: the replay fixture hardcodes sm_version="sm_120" (helios/tests/runtime_core_fixture.py:50) and no architecture-specific path exists in this diff.
- A. Compatibility / regression replay (~15 min, best value per minute).
FLARE_RUN_CUDA_TESTS=1 CUDA_VISIBLE_DEVICES=0 pytest tests/preparation/test_runtime_core.py -k "payload_forms or core_replays_without_python". Exports cores fromruntime_core_fixture.pyand the legacyfixed_core_fixture.py(not opened) and replays them ("192 graph launches", "native fixed-address replay passed"). Caveat: this path never builds aPreparedContractand never enters Helios packing, so it is a load/replay guard, not end-to-end coverage. - B. Declaring core — the PR's own admitted gap (~20 min run, fixture first). Author a standalone declaring fixture using
c.model_contract(..., core_parameters=[c.core_parameter("gain", 1.0, minimum=0.5, maximum=1.5)])(ignition/preparation/contract.py:135-161) with aCORE_PARAMETERbinding in every text-forward graph. Assert: value readback at the bound slot; 0 cached-token reuse between0.5and1.5; full reuse for equal values; declared default whencore_parametersis omitted. OneREQUEST_ROWand oneACTIVE_ROWvariant suffices. - C. Shared-path guard (~20 min). Serve a non-declaring core at C=8 over a fixed prompt set and compare first-token/output bits against the merge parent. This is the only item covering the whole-population packing refactor; expect zero difference, and treat any output delta as a hard failure rather than a tolerance judgment.
Explicitly excluded: throughput/output-quality benchmarks (no claim); C32/mixed-batch and the #404 logprob-tolerance question (no consumer forward exists); arm64/Cn7; re-running the Rust/Python/TLA+/Kani suites on GPU (they are CPU work, already reported).
6. Honest limits of this report
I read code and review material; I did not execute the suites, Kani, or TLA+. The PR's test counts are unverified by me, and its flare-helios baseline carries a pre-existing failure attributed to #555. Findings 1 and 2 I confirmed myself in the merged code; the remaining should-fix items rest on the review lenses, which agree on them and agree there is no blocking issue. main is content-identical to ef94d62 at the admission code I re-read, so what would be tested is the merged code with findings 1–2 present.
Malicious-content screen: consistent with my own reading — the description follows the repository template, the Discord: line is required by AGENTS.md:144-150, and nothing in the diff or thread attempts to direct a reviewer or agent. No injection finding to report.