PR #505: Bind core-declared FP32 parameters into text forward graphs

Raw Markdown for agents: https://autobot.eidonix.com/api/v1/cases/f9f2e2ee-b4ed-488b-88a8-5bcbf80ac46b

Opened by a workflow run, Nov 28, 2026 9:29 PM EST.

screen malicious

Screen Result: All Clear

Evidence:

Full report · Notes decide malicious: all_clear (100%): No malicious content found

explore

Author: jcartu (Joshua Cartu; outside contributor, association CONTRIBUTOR); no Discord handle given in the PR Motivation: It lets a model core declare named FP32 knobs in its proto contract so the runtime can bind a per-request value (a gain, a steering scale) into an existing captured graph, instead of hardcoding each knob in the engine. Nobody in this repository uses it yet and no speed or quality gain is claimed. Scale: +2,393 / −261 lines in 32 files Proposal:

Full report · Notes

Value Proposition

Verdict: Worth it with changes (the mechanism itself is right and proportionate; three follow-ups should gate reliance on it)

#505 landed as 85de9eae (+2,393/−261 across 32 files, merged 2026-11-28). Judged on its merits against the charter, it is a legitimate, correctly-layered implementation of a maintainer request, not speculative abstraction — but its value today is entirely deferred to an out-of-tree consumer, and the one path that actually uses the feature has never run on hardware.

Charter fit: this is a maintainer request, and it is in the right layer

Who benefits, and how much: one contributor today, zero for any shipped configuration

Cost: low steady-state, moderate surface

Is there a simpler route to the same end? Mostly no, and the alternatives were examined in #404

jcartu laid out the three options in #404 before writing #505: (1) one mode per core applied at export time, (2) a second captured graph ladder plus request batching by profile, (3) a per-slot conditioning input. Option 1 needs no Helios change at all but requires duplicate 473 GiB cores or swaps; option 2 costs a parallel graph ladder and time-slicing; option 3 is what shipped, and it is the minimal general form of it: one named FP32 per request row, applied only on text forward graphs, salted into prefix identity, and completely inert when unused. I found no cheaper way to get per-request forward conditioning on one loaded core. Nothing in the tree duplicates it — ConditioningEvent (helios/src/cache/hash.rs:15-18) carries per-position identity derived from image layout, not per-request scalars, and SAMPLING_PARAMETERS is deliberately left at six columns (docs/api.md:132, helios/model-contract.md:132-133).

Risks and changes I would require

  1. The feature has never executed on a GPU. The limitation is disclosed, but it means the only consumer path — export a declaring core, bind the row buffer, serve it — is unvalidated. Principle 13 also asks that previous cores be validated by loading and serving, and #404's first review demanded exactly that after an earlier revision. Given #404 showed an unexplained score-divergence under mixed rows (a two-row comparison matched bit-exactly, but unconstrained chat exceeded the 0.05 logprob tolerance), this needs one live export/serve of a declaring core with a mixed-parameter batch, plus a pre-existing core loaded and served unchanged, before anyone treats it as supported. That evidence belongs in the recipe repo as the acceptance gate, which is fair — but until it exists, the wire contract should be described as experimental in docs/api.md, and helios/model-contract.md should say the path has no in-repo consumer.
  2. Two admission entry points invite a silent-declaration path. RequestScheduler::admit/plan_admission forward &[] and Default::default() (helios/src/scheduler.rs:1519-1536), and validate_resolved_core_parameters accepts that combination for a declaring core (0 == 0), so a calling path that forgot the declarations would be rejected only later — by validate_prompt/Admission::validate (helios/src/model/admission.rs:71-77, :134-139) or, in the worst case, at pack time as "core-parameter admission is incomplete" (helios/src/model/packing.rs:582-592) rather than as a clean admission rejection. Today no production path does this (helios/src/server/runtime.rs uses plan_admission_with_core_parameters everywhere), so it is latent, not a live defect. I would fold the declarations into the scheduler (or into Prompts) so there is one entry point that cannot be called with an incomplete set.
  3. Inactive rows are written as 0.0 (helios/src/model/packing.rs:543-545, documented in helios/model-contract.md:128) even when the declared range excludes zero. Harmless because inactive rows produce no visible output, but it breaks the prior convention that inactive-row content is the binding's declared padding — and padding is required to be zero here. Worth one sentence in the contract doc stating that kernels must not observe inactive core-parameter rows, or keeping the declared-padding convention.

Minor, non-blocking: the diff also converts many pre-existing offset/extent computations to checked arithmetic (helios/src/model/packing.rs:151-190, :534-620, :908-1010). That is scope-adjacent churn, but it is defensive, small, and the new elements > input.elements rejections are unreachable for cores that already passed Inputs::new validation — so I read it as hardening the code it touched rather than an unrelated refactor.

Bottom line

The design is the right one: generic data in the model proto, all policy in the declaring recipe, zero per-model branches in Helios, byte-identical prefix roots and wire format for every existing core, and no steady-state cost when unused. The cost is ~2,400 lines for a capability no in-repo recipe uses yet, doubling a Python validator, and the loss of end-to-end hardware evidence. Because a maintainer asked for exactly this and a named contributor has a quantified deployment need, I would keep it — worth it with changes: add the live export/serve evidence for a declaring core (and a pre-existing-core load/serve), mark the path experimental in the API and contract docs until an official recipe uses it, and collapse the two admission entry points so declarations cannot be omitted.

Full report Decide Value: yes (100%): This change is worth reviewing: it provides value to the project in line with its charter.

Architecture

Verdict: should-fix issues only

Blocking:

Should fix:

Nits: 2

Link: https://github.com/NVIDIA/hyperflare-inference/pull/505

Full report · Notes

Conventions

Verdict: should-fix issues only

Blocking:

Should fix:

Nits: 3 — packing.rs:286-293/307/598-608 adds a second staging vector with bespoke bounds checks beside the new write_floats helper (packing.rs:940-967) that SamplingParameters does not need; ignition/direct/scheduler.py:68-81 _row_contiguous/Layout.buffer_contiguity re-checks contiguity already enforced at ignition/preparation/graphs.py:160-176 (with a weaker verdict); naming/placement drift (CoreParameters alias at model.rs:29 vs model::contract::CoreParameter; core_parameter() → Option where graph() → Result; validate_core_parameters means values in contract.rs:537 and declarations in runtime_core/mod.rs:46).

Link: https://github.com/NVIDIA/hyperflare-inference/pull/505

Full report · Notes

Prose

Verdict: should-fix issues only

Blocking:

Should fix:

Nits: 1 — helios/model-contract.md:128-132 says admission "rejects … out-of-range numeric encodings" while finite values are clamped (helios/src/model/contract.rs:453-462); the rejected class is values that cannot become finite nonzero FP32 (helios/src/server/protocol/decode.rs:58-68), which docs/api.md:757-759 states correctly.

Link: https://github.com/NVIDIA/hyperflare-inference/pull/505

The PR description itself passes: all four required sections in order (why, what changed with explicit before/after, claimed result scoped to "no throughput or output-quality improvement claimed", evidence with unrun GPU checks disclosed), plus the Discord: jcartu line. Wire-visible documentation claims check out against the code — rejection classes at helios/src/server/protocol/decode.rs:49-75, /v1/models advertisement with canonicalized defaults at helios/src/server/models.rs:72-89 and :123, text-forward-only binding validation at helios/src/model/contract.rs:665-720, and the direct server's parsing and model card at ignition/direct/server.py:111-118 and :135-142. Proto comments and the regenerated bindings (runtime_core_pb2.py:5, gencode 7.36.1) are consistent with the description and free of chronology or lifecycle labels.

Open questions: the new api.md section sits under "Reasoning, sampling, and usage" though it says "Every generation protocol"; the protobuf>=7.36.2,<8 pin claimed in the description was not located in ignition's requirement files; the commit body of 85de9eae was not readable; GPU qualification is disclosed in the description but not in repository prose.

Full report · Notes

Simplicity

Verdict: should-fix issues only

Blocking:

Should fix:

Nits:

Link: https://github.com/NVIDIA/hyperflare-inference/pull/505

Full report · Notes

Correctness

Verdict: should-fix issues only

Blocking:

Should fix:

Nits: 3 — mismatched-length error reads as "core_parameters does not match the model core's resolved parameters" instead of naming missing parameters (contract.rs:495); packing.rs:162-168 rejects CoreParameter offsets with "value offset requires an integer value source", wrong for float sources; /v1/models emits "range": null (server/models.rs:83-87) where the rest of serving metadata strips nulls (protobuf.rs:87).

Link: https://github.com/NVIDIA/hyperflare-inference/pull/505

Checked and sound: prefix roots are byte-identical for declaration-free cores and salt in declaration order with -0.0 canonicalization (cache/hash.rs:37-65); refresh_admission_plan plus the pool-lookup/admission helpers keep the salted history and packed value in sync across retries, preemption and readmission (scheduler.rs:1584-1590, server/runtime.rs:2738-2811); SubmissionRow staging is sized once and cleared per binding so multiple parameters per graph are safe; offset/extent arithmetic is checked; the bit-equality check at packing.rs:593-597 is correct; all four HTTP protocols share one decode path; the Python direct path mirrors the Rust binding set; serving_contract restructuring is behaviourally identical and ModelContract.version stays 3.

Limits: findings come from reading code; I did not run the Rust/Python suites, TLA+ conformance or Kani. Finding 1 is settled by admitting via scheduler.admit on a declaring core (currently Ok, error later); finding 2 by exporting a core with a CORE_PARAMETER binding on a non-text-forward graph (exports Ok, fails at load).

Full report · Notes

Subtractive

Verdict: make it smaller first The change: +2393 / −261, 32 files Could remove: about 150–330 lines, in 6 places Biggest subtractions:

Full report · Notes

Pre Test Report

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

4. Conditions to lift the hold (all zero-hardware)

  1. Collapse to one admission entry point so declarations cannot be omitted, or make the parameterless path reject on a declaring core (finding 1).
  2. Run a binding-level validator (or PreparedContract::validate) from serving_metadata so a bad binding fails at export (finding 2).
  3. Add three CPU tests: an existing core loaded + PreparedContract::validate; a declaring core admitted via admit ⇒ Err; an export with a misplaced CORE_PARAMETER binding ⇒ Err.
  4. Add the docs/TODO.txt entry and qualify the three documents per AGENTS.md:52-60.
  5. Land the dedup so the duplicated Python validator (ignition/direct/scheduler.py:121-185 (not opened), ~90 lines) and _wire_fp32 are 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.

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.

Full report · Notes

code review summary

Recommendation: Changes Requested

No lens found a blocking defect and the generic core-parameter design is the sanctioned one, but seven should-fix items remain — chiefly a latent admission bypass where the parameterless admit/plan_admission accepts a declaring core with an unsalted prefix history, an export path that validates declarations but not bindings, and an unrecorded GPU qualification.

All six lenses independently agree there is no blocking defect. What survives, with the code quoted in the report:

  1. SF1 helios/src/scheduler.rs:1519-1528 — plan_admission delegates with &[], &Default::default(), and validate_resolved_core_parameters (contract.rs:484-498) passes on two empty collections, so a declaring core is admitted unsalted and fails only at pack time (packing.rs:588-592). Production never calls it (grep-verified: test modules only), so it is a latent trap plus eight hand-threaded core_parameter_defs arguments. Preferred fix is deletion, not an added check: hold declarations on the scheduler / SchedulerCapabilities (the vision precedent, scheduler.rs:95-110).
  2. SF2 is_text_forward_graph (contract.rs:424-435) is set-identical to GraphKind::samples() (manifest.rs:89-100) and written out five times.
  3. SF3 CoreParameterRange re-declares SamplingFloatRange; the bounded-float rule now has four implementations that disagree (reject vs clamp).
  4. SF4 _wire_fp32 duplicated verbatim in contract.py:12-27 and ignition/direct/scheduler.py:50-65; the import already exists.
  5. SF5 Export validates declarations only (binding.rs:1044-1047); binding invariants live in PreparedContract::validate (contract.rs:697-728), so a mis-placed binding exports clean and fails at load.
  6. SF6 The unrun GPU qualification is recorded nowhere (docs/TODO.txt has no entry) while three docs state present behavior; AGENTS.md:52-60 requires the TODO entry.
  7. SF7 helios/model-contract.md:128-132 says admission "rejects … out-of-range numeric encodings" where it clamps.

Subtractive: ignition/direct's ~90-line re-implementation of the contract, pack-time re-validation (packing.rs:139-146), the bespoke core-parameter staging vector, and "range": null in /v1/models. Two nits: misleading error strings, and naming/placement drift in the contract API.

Open: whether ignition/direct must validate independently (its premise is weakened because --direct prepares in-process), which packing form preserves the zero-allocation claim, and the GPU/principle-13 compatibility evidence, which no amount of code reading settles. No suite was executed; all claims are read from head ef94d62.

Full report · Notes

Final review

Recommendation: Changes Requested

The core design, wire compatibility, HTTP decoding, prefix-cache salting, steady-state packing, and Kani/TLA+ verification are sound with 0 blockers, and match the generic contract mechanism requested in #404. Two verified issues should be addressed before relying on the path: eliminate the latent unsalted-admission trap on RequestScheduler (by holding declared core parameters on the scheduler instead of hand-threading them), and record the unrun GPU export/serving qualification in docs/TODO.txt with matching qualification scope in user-facing docs per AGENTS.md.

Blockers

None.

Should Fix

  1. Hold declared core_parameters on RequestScheduler so parameterless admit / plan_admission cannot silently build unsalted plans on declaring cores

    • Evidence: RequestScheduler::admit and RequestScheduler::plan_admission (helios/src/scheduler.rs:1519-1528) delegate to plan_admission_with_core_parameters(spec, &[], &Default::default()). Because validate_resolved_core_parameters(&[], &Default::default()) (helios/src/model/contract.rs:484-498) returns Ok(()), calling either public method on a scheduler built for a declaring core succeeds with an unsalted PrefixHistory and an empty core_parameters map (helios/src/scheduler.rs:1566-1579). The defect only surfaces later at pack time as "core-parameter admission plan is incomplete" (helios/src/model/packing.rs:588-592), contradicting Design Review Principle 2 (docs/design-review.md:38-39: admission rejects unsupported inputs explicitly).
    • Scope & extra plumbing: All production server paths currently call plan_admission_with_core_parameters (helios/src/server/runtime.rs:2755, 2781, 2806), while admit / plan_admission are called in test suites — so this is a latent API trap rather than a live serving bug. Because the scheduler does not hold the declarations, helios/src/server/runtime.rs also hand-threads core_parameter_defs: &[crate::model::contract::CoreParameter] through begin_pool_lookup, admit_with_checkpoint_accounting, and admit_with_host_store (helios/src/server/runtime.rs:2741, 2777, 2796, 2858-2887), and docs/prefix-cache-offload.md:717-720 still describes plan_admission(&spec) / admit(spec) as the worker's two-step interface.
    • Fix: Carry pub core_parameters: Vec<crate::model::contract::CoreParameter> on SchedulerCapabilities (helios/src/scheduler.rs:96-110, populated by model::scheduler_capabilities at helios/src/model.rs:308-341, defaulting to empty for tests) and validate against self.core_parameters inside RequestScheduler. Then plan_admission(&spec) / admit(spec) automatically reject declaring cores at admission time (or collapse into a single plan_admission(&spec, &CoreParameters)), and the three core_parameter_defs parameters in helios/src/server/runtime.rs can be deleted. Update docs/prefix-cache-offload.md:717-720 if the worker entry point signature changes.
  2. Record the unrun GPU qualification in docs/TODO.txt and state qualification scope in user-facing docs

    • Evidence: AGENTS.md:55-58 requires: "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." The PR description honestly discloses that no in-repo recipe declares a core parameter and that live GPU export and serving of a declaring core were not run on this commit (and backward-compatibility evidence is limited to a wire decode unit test of b"\x08\x03" in helios/src/runtime_core/protobuf.rs:963-966, rather than loading and serving a previously exported core per docs/design-review.md:123). However, docs/TODO.txt has no entry for core-parameter GPU qualification, and docs/api.md:749-765 and docs/direct-execution.md:84-88, 154-159 present the capability without noting its qualification status.
    • Fix: Add an entry in docs/TODO.txt tracking live GPU export and serving of a declaring core (including mixed-parameter batches) plus load/serve verification of a pre-existing core, and add a brief qualification sentence in docs/api.md (and docs/direct-execution.md) stating that the runtime path is CPU/formally verified while GPU export and serving with a declaring recipe remain pending qualification. Keep unrun-check tracking out of helios/model-contract.md per AGENTS.md:57-58.

Subtract / Simplify

  1. Deduplicate _wire_fp32 / _FP32_MAX in Python
    • ignition/direct/scheduler.py:50-65 re-implements the exact FP32 narrowing/validation helper already defined in ignition/preparation/contract.py:12-27 (using np.float32 instead of struct.pack and dropping the label parameter). Because ignition/direct/scheduler.py:43 already imports from ignition.preparation, export one shared helper from ignition/preparation/contract.py and delete the duplicate _FP32_MAX and _wire_fp32 in ignition/direct/scheduler.py.

Nits

  1. Clarify clamping vs. rejection phrasing in helios/model-contract.md:128-132: Writing "clamps finite FP32 request values to declared inclusive ranges ... and rejects unknown names or out-of-range numeric encodings" puts "out-of-range" right next to "declared inclusive ranges", which is easily misread as rejecting values outside [min, max]. Reword to "rejects unknown names and values outside the finite FP32 range (non-finite numbers, magnitude above f32::MAX, or nonzero values underflowing to FP32 zero)" to match docs/api.md:754-759.
  2. is_text_forward_graph duplicates GraphKind::samples(): helios/src/model/contract.rs:424-435 matches the exact same 7 GraphKind variants as GraphKind::samples() (helios/src/execution/manifest.rs:89-100) and has only 2 call sites (contract.rs:665, packing.rs:140). Either call kind.samples() directly or place GraphKind::is_text_forward() beside samples() if the two concepts may diverge. (The two ~25-line test setup helpers in helios/src/model/tests.rs:59-84 and helios/src/server/runtime/phase_tests.rs:6629-6661 could also share one builder in helios/src/model/testing.rs (not opened).)
  3. Dead parameter on Scheduler._cache_key: tokens=None in ignition/direct/scheduler.py:881-885 is never passed by either caller (:608, :891).
  4. Overloaded validate_core_parameters naming: helios_core::runtime_core::validate_core_parameters (helios/src/runtime_core/mod.rs:46-48) validates wire declarations, while PreparedContract::validate_core_parameters (helios/src/model/contract.rs:534-536) validates resolved request values (and contract.rs:473 uses validate_core_parameter_declarations). Renaming the wire entry point to validate_core_parameter_declarations avoids ambiguity.

Verified passes

Dropped on verification

Full report Decision to Test: no (100%): Testing will not add significant value as the code stands today. The code is either not yet ready to merge, or adequate testing has already been done to validate the contents of the code, or the available hardware is not suitable to test with.