CANDIDATE BRIEF — PR #505 "Bind core-declared FP32 parameters into text forward graphs"
Repo: NVIDIA/hyperflare-inference · head ef94d62 · merged 2026-11-28 · 32 files, +2393/−261
Six upstream lenses (Architecture, Conventions, Simplicity, Correctness, Prose, Subtractive) deduplicated and pre-filtered. 13 surviving candidates: 0 blockers, 7 should-fix, 4 subtract/simplify, 2 nits.
Key findings
All six lenses independently found no blocking defect. Architecture: "in scope, no blocking violation". Conventions: "No blocking issue: the change is carefully validated and every finding is a smaller-footprint alternative". Correctness: "could not find a path that produces a wrong value, a wrong prefix-cache identity, or a bad row layout". Simplicity: "No blocking findings … the mechanism itself is the small version of the problem". Subtractive: "make it smaller first" with "follow-up-sized removals". The mechanism is the sanctioned, generic one, matching the maintainer request in #404 (lukealonso, 2026-11-21): a "generic system by which model cores can expose scalar arguments … provided on a per-request basis and bound dynamically into the graphs … All of this would be described in the model proto."
What survives is (a) one latent admission trap plus a hand-threaded declarations argument, (b) an export-vs-load validation asymmetry, (c) a disclosed-but-unrecorded GPU qualification gap and one wrong doc sentence, and (d) five dedup/subtraction opportunities (four of them single-line-to-90-line deletions).
Verified sound — do not re-litigate: declaration-free cores keep the exact prefix root, PrefixHistory::new delegating with an empty iterator (helios/src/cache/hash.rs:37-39); ModelContract.version stays 3 and serving_contract accepts 1..=3 (helios/src/runtime_core/protobuf.rs:82-85); new proto fields additive and defaulted (helios/src/model/contract.rs:110-111); retry/preemption carries the resolved map via refresh_admission_plan (helios/src/scheduler.rs:1584-1590); HTTP decoding is one path for all four protocols, 400 on rejection (helios/src/server/protocol/decode.rs:49-75). Simplicity's dropped list is honoured: do not delete the pack_step bit-equality check (it is the only assertion the packed value matches the hashed value) and do not delete the multi-layer revalidation or the Kani harness.
Noise dropped by pre-filter: the PR thread contains exactly one comment (autobot case-file notice, 2026-11-29) — there are no CI/runner red-check claims to filter, and the one Rust failure the description names is pre-existing on origin/main (model::tests::packed_combined_budget_keeps_width_one_batches_without_a_useful_packed_shape, broken by #555), outside this diff. Also dropped: Architecture#4 (direct /v1/models card carrying only core_parameters — code and docs/direct-execution.md:84-88 agree, additive diagnostic-only metadata), Conventions#5/#6 as standalone items (folded into SUB1/SUB3), Simplicity#3/#4 as standalone items (folded into SUB1), Prose's unresolvable "protobuf pin location" and "commit body of 85de9eae" questions, and Subtractive#2 (two clones of the resolved map + bit guard) — rejected because the guard is load-bearing (see above). Mechanical PR-description/prose formatting was checked and passes; no item raised.
Candidate Blockers
None. Recommend the adjudicator add none: every lens reached that verdict independently, and two CPU suites exercise the changed paths (1,692 helios + 209 heliopause per the description). The only unrun check is GPU export/serving of a declaring core, which the description discloses. If the adjudicator disagrees, the sole viable candidate is SF1, and only as a latent-trap argument — production never calls the affected entry point.
Candidate Should Fix
SF1. Parameterless admit/plan_admission admit a declaring core unsalted; declarations hand-threaded instead of held
Merge: Architecture#1, Conventions#2, Correctness#1, Simplicity#1, + Architecture#3 (doc drift).
helios/src/scheduler.rs:1519-1528
pub fn admit(&mut self, spec: RequestSpec) -> Result<RequestHandle> {
let plan = self.plan_admission(&spec)?;
Ok(self.admit_planned(spec, plan, None)?.handle)
}
/// Validates the request, builds its prefix history, and looks up the GPU
/// cache without reserving anything.
pub fn plan_admission(&mut self, spec: &RequestSpec) -> Result<AdmissionPlan> {
self.plan_admission_with_core_parameters(spec, &[], &Default::default())
}
helios/src/model/contract.rs:484-498
pub fn validate_resolved_core_parameters(
parameters: &[CoreParameter],
values: &crate::model::CoreParameters,
) -> Result<()> {
if values.len() != parameters.len()
|| parameters.iter().any(|parameter| {
values
.get(¶meter.name)
.is_none_or(|&value| !parameter.validate_value(value))
})
{
return Err("core_parameters does not match the model core's resolved parameters".into());
}
Ok(())
}
Empty declarations + empty map passes, so on a declaring core the plan is built with an unsalted PrefixHistory and an empty map (helios/src/scheduler.rs:1575-1579), copied to LiveRequest (:1827), and the failure appears per forward launch at pack time — helios/src/model/packing.rs:588-592:
let planned = live
.core_parameters()
.get(&binding.parameter)
.copied()
.ok_or("core-parameter admission plan is incomplete")?;
Reachability (grep-verified over helios/src): every production path uses plan_admission_with_core_parameters (helios/src/server/runtime.rs:2755, 2781, 2806); admit/plan_admission(&spec) appear only in test modules (scheduler/tests.rs (not opened), policy_tests.rs (not opened), boundary_tests.rs (not opened), model/tests.rs, model/packed_round_tests.rs (not opened), runtime/phase_tests.rs:6181/6343/6790). So: latent trap and duplicated public surface, not a live defect — but it contradicts design-review principle 2 (admission "rejects unsupported features and capacities explicitly", docs/design-review.md:36-39 (not opened)).
Cost of the workaround: because the scheduler does not hold the declarations, four functions grow a core_parameter_defs: &[crate::model::contract::CoreParameter] parameter — helios/src/server/runtime.rs:2741, 2777, 2796 plus the retry path :2861, 2883 — with call sites passing &self.config.contract.core_parameters (runtime.rs:1242, 1383, 1432, 1458, 1476, 2858-2864, 2880-2887):
admit_with_host_store(
&mut self.scheduler,
store.as_mut(),
incoming.pool_lookup.as_ref(),
spec,
&self.config.contract.core_parameters,
&incoming.prompt.core_parameters,
Precedent for holding model-declared config: SchedulerCapabilities already carries pub vision: crate::model::VisionCapabilities alongside vocabulary/page_tokens/completion_inputs (helios/src/scheduler.rs:95-110), built by model::scheduler_capabilities (helios/src/model.rs:308-341) and taken by RequestScheduler::new(identity, limits, capabilities) (scheduler.rs:704-709).
Subtractive fix (preferred over adding a rejection check): hold Vec<CoreParameter> on the scheduler (or in SchedulerCapabilities), keep a single plan_admission(&spec, &CoreParameters), delete the parameterless wrapper and admit's unsalted path, and drop the three core_parameter_defs parameters. Tests then call plan_admission(&spec, &Default::default()). One deletion achieves both the early-rejection and the footprint goal.
Same item closes the doc drift: docs/prefix-cache-offload.md:717-720 still says "plan_admission(&spec) validates the request … admit(spec) is the composition with no inbound" while the worker calls the parameterized form (AGENTS.md:52-60 requires docs to describe implemented behavior).
SF2. is_text_forward_graph duplicates GraphKind::samples() and is written out five times
Merge: Conventions#1, Simplicity#5, Subtractive#3.
helios/src/model/contract.rs:424-435
pub(crate) fn is_text_forward_graph(kind: GraphKind) -> bool {
matches!(
kind,
GraphKind::Prefill
| GraphKind::TerminalPrefill
| GraphKind::ScoredPrefill
| GraphKind::Resume
| GraphKind::Decode
| GraphKind::Speculative
| GraphKind::Mixed
)
}
Already published on the type it belongs to, helios/src/execution/manifest.rs:85-100
pub fn is_prefill(self) -> bool {
matches!(self, Self::Prefill | Self::TerminalPrefill | Self::ScoredPrefill)
}
pub fn samples(self) -> bool {
matches!(
self,
Self::Prefill
| Self::TerminalPrefill
| Self::ScoredPrefill
| Self::Decode
| Self::Speculative
| Self::Mixed
| Self::Resume
)
}
Set-identical (verified both lists). is_text_forward_graph has exactly two production call sites — contract.rs:665 and packing.rs:140 — so deletion is cheap. Other copies of the same seven-kind list: helios/src/model/tests.rs:64-76 (fixture bind_text_forward_core_parameters) and helios/src/server/runtime/phase_tests.rs:6638-6650 (fixture enable_core_parameter) — near-verbatim ~35-line duplicates of one setup helper that helios/src/model/testing.rs (not opened) could host once; Python ignition/direct/scheduler.py:49 _TEXT_FORWARD_KINDS (used at :160); tests/direct/test_scheduler.py:745. Pre-existing out-of-diff neighbours, context only: helios/src/engram.rs:926-936 (not opened), helios/src/server/runtime.rs:1681-1689.
Fix: delete the helper and call kind.samples(); or if the concepts must be allowed to diverge, add GraphKind::forward() beside is_prefill/samples with a comment saying why. Collapse the two test fixtures into one builder in model/testing.rs (not opened).
SF3. CoreParameterRange re-declares SamplingFloatRange; the bounded-float rule now has four divergent implementations
Merge: Conventions#3, Simplicity#7 (range bullets).
helios/proto/runtime_core.proto:276-284
message CoreParameter {
string name = 1;
optional float default_value = 2;
CoreParameterRange range = 3;
}
message CoreParameterRange {
optional float min = 1;
optional float max = 2;
}
Same file, helios/proto/runtime_core.proto:561-564
message SamplingFloatRange {
optional float min = 1;
optional float max = 2;
}
Rust already has SamplingRange<T> + SamplingRanges::validate (helios/src/model.rs:155-168, 189-218), which rejects a default outside its range:
if let Some(range) = self.$field {
if !(range.min <= defaults.$field && defaults.$field <= range.max) {
return Err(concat!("sampling range must contain the default: ", stringify!($field)).into());
}
whereas the new CoreParameter::resolve_value clamps, helios/src/model/contract.rs:453-462:
pub fn resolve_value(&self, requested: Option<f32>) -> Result<f32> {
let mut value = requested.unwrap_or(self.default_value);
if !value.is_finite() {
return Err("core_parameters values must be finite FP32 numbers".into());
}
if let Some(range) = self.range {
value = value.clamp(range.min, range.max);
}
Ok(canonical_core_parameter(value))
}
Third and fourth copies: helios/src/server/models.rs:77-82 rebuilds a CoreParameterRange purely to canonicalize both bounds for /v1/models:
let range = parameter.range.map(|range| {
crate::model::contract::CoreParameterRange {
min: crate::model::contract::canonical_core_parameter(range.min),
max: crate::model::contract::canonical_core_parameter(range.max),
}
});
and ignition/direct/scheduler.py:140-152 re-implements shape/order/containment with its own error string, plus a hand-rolled clamp at scheduler.py:245-248.
Fix: reuse SamplingFloatRange on the wire (or at minimum SamplingRange<f32> plus one contains_or_clamp helper); have models.rs canonicalize inline instead of rebuilding the struct.
SF4. _wire_fp32/_FP32_MAX implemented twice in Python
Merge: Conventions#4, Simplicity#2, Python half of Subtractive#4.
ignition/preparation/contract.py:12-27
_FP32_MAX = 3.4028234663852886e38
def _wire_fp32(value, label):
if isinstance(value, bool) or not isinstance(value, (int, float)):
raise ValueError(f"{label} must be a finite FP32 number")
try:
wide = float(value)
except (OverflowError, TypeError, ValueError) as error:
raise ValueError(f"{label} must be a finite FP32 number") from error
if not math.isfinite(wide) or abs(wide) > _FP32_MAX:
raise ValueError(f"{label} must be a finite FP32 number")
narrowed = struct.unpack("<f", struct.pack("<f", wide))[0]
if not math.isfinite(narrowed) or (wide != 0.0 and narrowed == 0.0):
raise ValueError(f"{label} is outside the finite FP32 range")
return 0.0 if narrowed == 0.0 else narrowed
ignition/direct/scheduler.py:50-65 — same three rules, np.float32 instead of struct, and no label, so its errors lose the field name:
_FP32_MAX = float(np.finfo(np.float32).max)
def _wire_fp32(value):
if isinstance(value, bool) or not isinstance(value, (int, float)):
raise ValueError
try:
wide = float(value)
except (OverflowError, TypeError, ValueError) as error:
raise ValueError from error
if not math.isfinite(wide) or abs(wide) > _FP32_MAX:
raise ValueError
narrowed = float(np.float32(wide))
if not math.isfinite(narrowed) or (wide != 0.0 and narrowed == 0.0):
raise ValueError
return 0.0 if narrowed == 0.0 else narrowed
Import is free: ignition/direct/scheduler.py:43 already does from ignition.preparation import runtime_core_pb2 as wire, and ignition/direct/packing.py:8 imports from the same package. Fix: promote _wire_fp32 in contract.py (or a shared private module) and delete the direct copy plus its _FP32_MAX. Risk if left: struct.pack and numpy's cast are not required to agree (numpy warns and can raise under -W error on overflow where struct yields inf), and tests/direct exercises only the direct copy.
Explicitly NOT in scope: the Rust pair helios/src/server/protocol/decode.rs:49-75 vs helios/src/model/contract.rs:453-462 — opposite sides of a process boundary, each must be independently correct. Subtractive#4's "written four times" framing over-reaches there.
SF5. Export validates declarations but not bindings, so an invalid binding exports clean and fails at load
From Correctness#2; the reverse of Subtractive#1's framing (both survive — different copies).
heliopause/src/export/binding.rs:1044-1047
let contract: super::wire::ServingContract = message("ServingContract", &server.into())?;
if let Some(model_contract) = contract.model_contract.as_ref() {
helios_core::runtime_core::validate_core_parameters(model_contract)?;
}
index.contract = Some(contract);
validate_core_parameters (helios/src/runtime_core/protobuf.rs:54-73, re-exported at mod.rs:46-48) only checks names, finiteness and min <= default <= max. Every binding invariant this PR adds lives in PreparedContract::validate, helios/src/model/contract.rs:697-728:
if core_parameter {
if !text_forward {
return Err(
"core-parameter bindings belong only to text forward graphs".into(),
);
}
if self.core_parameter(&input.parameter).is_none()
|| buffer.dtype != crate::execution::Dtype::Float32
|| buffer.shape.is_empty()
|| buffer.shape[0] < manifest.request_capacity()
|| buffer.shape[1..].iter().any(|&extent| extent != 1)
|| !matches!(
input.indexing,
InputIndexing::SubmissionRow
| InputIndexing::RequestRow
| InputIndexing::ActiveRow
)
|| input.value_offset != 0
|| input.padding != 0
|| !input.tensor.is_empty()
{
return Err("invalid core-parameter graph binding".into());
}
graph_parameters.insert(input.parameter.as_str());
Because ExportRequest.input_bindings carry only buffer_name/host_offset/nbytes (heliopause/src/python.rs:206-240), the export path structurally cannot run these; the only export-side full-contract validator is validate_prepared_contract behind #[cfg(feature = "qualification")] (heliopause/src/python.rs:159-169) with no Python caller (ignition/preparation/core_proto.py:12 (not opened) calls export_serving only). Result: a recipe can export a core archive whose PreparedContract violates the new rules (e.g. a CORE_PARAMETER binding on a VISION graph) and it fails only at load via catalog::validate (helios/src/model/catalog.rs:31). This partially contradicts the description's "Validate core-parameter declarations both on core load … and during Heliopause export" — declarations only.
Fix: run PreparedContract::validate (or a shared binding-only validator extracted from it) from serving_metadata, or make export_serving require the prepared contract JSON and validate it. A rejected export beats a rejected multi-GB artifact.
If only one of SF5/SUB1 is funded, fund SF5 — SUB1's "direct consumes an already-validated model" premise is weakened (see SUB1 caveat).
SF6. Nothing records the unrun GPU qualification, and three docs present core parameters as ordinary served behavior
From Prose#1; overlaps Architecture#2.
AGENTS.md:52-60: "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 description says: "Live GPU export and serving of a core declaring core_parameters were not run on this rebased commit … GPU end-to-end qualification remains to be executed with a declaring recipe," and "No model recipe in this repository binds a core parameter." That disclosure lives only in the description and disappears on merge. Meanwhile these changed docs state present behavior with no qualification sentence:
docs/api.md:749-765— "Every generation protocol accepts an optional top-levelcore_parametersJSON object whose keys name FP32 parameters declared by the loaded model core …" / "Prefix-cache identity hashes every declared effective parameter in declaration order … 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; omitting it or passingnulluses declared defaults, and the direct scheduler resolves defaults and ranges before prefix lookup."docs/direct-execution.md:151-159— 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— the newCORE_PARAMETERcontract paragraph.
Verified: docs/TODO.txt (case-insensitive search for "core") returns no match for any core-parameter / declaring-recipe entry at head. Architecture#2 reaches the same gap from principle 13 (docs/design-review.md:116-123 (not opened)): the compatibility evidence is a wire-level unit test (helios/src/runtime_core/protobuf.rs:963-966, decoding b"\x08\x03"), and no previously exported core is loaded or served.
Fix: one qualification sentence naming what CPU tests cover (contract, HTTP validation, prefix hashing, packing, direct mirror) and what is not qualified (GPU export and serving of a declaring core; no in-repo recipe declares one), plus a docs/TODO.txt entry naming the removal criterion (the GPU run passing on the supported SM matrix). Do not merely soften the wording — AGENTS.md requires the condition to be recorded. Cheap partial closure for Architecture#2: a CPU test loading a recorded existing core's ServingContract through serving_contract + PreparedContract::validate.
SF7. helios/model-contract.md conflates clamping with rejection
From Prose#2.
helios/model-contract.md:128-132
"Inactive rows of a
SUBMISSION_ROWcore-parameter binding receive0.0. Shared admission fills omitted names from declared defaults, clamps finite FP32 request values to declared inclusive ranges, accepts any finite FP32 value whenrangeis omitted, canonicalizes-0.0to+0.0, and rejects unknown names or out-of-range numeric encodings."
"Out-of-range" means outside the declared inclusive range elsewhere in these docs (docs/api.md:757-759 uses it that way). A finite request value outside a declared range is clamped, not rejected — CoreParameter::resolve_value (helios/src/model/contract.rs:453-462, quoted in SF3) errors only on non-finite input. What admission actually rejects is values that cannot become finite nonzero f32 (helios/src/server/protocol/decode.rs:58-68) plus unknown names (contract.rs:518-525). The sentence contradicts itself and docs/api.md:757-759, which states the wire behavior correctly for the same feature — a model author could believe an out-of-range request fails when it silently resolves to the bound.
Fix: "… canonicalizes -0.0 to +0.0, and rejects unknown names and values that are not representable as finite nonzero FP32 values."
Candidate Subtract / Simplify
SUB1. Delete ignition/direct's re-implementation of the core-parameter contract (~90 product + ~110 test lines)
From Subtractive#1, overlapping Conventions#6; absorbs Simplicity#3/#4 as sub-bullets.
ignition/direct/scheduler.py:121-185 (Layout.__post_init__) re-validates, for every loaded run: distinct nonempty names (:131-134); finite default via _wire_fp32 (:136-139); range key set {"min","max"}, finite bounds, min <= default <= max (:140-152); CORE_PARAMETER bindings only on text forward graphs, every text forward graph binding every declared parameter, at least one text forward graph (:155-184); indexing ∈ {SUBMISSION_ROW, REQUEST_ROW, ACTIVE_ROW}, zero value_offset, zero padding, empty tensor (:171-174); FP32 dtype, row count ≥ capacity, row contiguity of the destination buffer (:175-178):
if (binding.get("parameter") not in name_set
or binding["indexing"] not in (wire.SUBMISSION_ROW, wire.REQUEST_ROW, wire.ACTIVE_ROW)
or binding.get("value_offset", 0) != 0 or binding.get("padding", 0) != 0
or binding.get("tensor", "")
or binding["buffer"] not in self.buffer_specs
or self.buffer_specs[binding["buffer"]][0] != np.dtype("float32")
or _core_parameter_rows(self.buffer_specs[binding["buffer"]][1]) < self.capacity
or self.buffer_contiguity.get(binding["buffer"]) is not True):
raise ValueError("direct core-parameter bindings require one named FP32 value per request row")
Every rule already exists in helios/src/model/contract.rs:473-482 and :665-728 and runs at load (packing.rs:67 and catalog.rs:31 both call contract.validate(manifest)) and at export (heliopause/src/export/binding.rs:1044-1047). What goes with the block: Layout.buffer_contiguity (scheduler.py:117-118, populated :213-216), _row_contiguous (scheduler.py:68-74), _core_parameter_rows (:77-81) — both with no other caller — and the dense private bookkeeping. Tests that go with it: tests/direct/test_scheduler.py _core_parameter_layout rejection knobs (:726-800) and layout-invalidation cases (:840-847, :910-940).
Caveat the adjudicator must weigh (recorded, not resolved): the "already validated" premise is weaker than Subtractive claims — ignition/direct prepares from the checkpoint in-process (docs/direct-execution.md:23-24: "Every run prepares from the checkpoint; there is no core"), so the Helios load path is not what validates a --direct run. Also, the contiguity probe is the weakest part on its own terms: ignition/preparation/graphs.py:166-167 already rejects every non-contiguous registered buffer, and _row_contiguous returns None for tensors reporting neither .flags.c_contiguous nor .is_contiguous() (scheduler.py:68-74), and None fails at :178 — i.e. it rejects types the upstream check accepted. Decide one way; do not ship both checks. This is the one finding whose answer could legitimately be "keep it", but no such requirement is written in the PR, charter, docs/direct-execution.md, or helios/model-contract.md.
Sub-bullets (same file, mechanical, low risk): _cache_key's dead tokens parameter — scheduler.py:881-885; only call sites are :608 and :891, neither passes it, while Checkpoint.cache_key (:418-424) reproduces the same two-shape rule by hand; and the MappingProxyType property pair — scheduler.py:445-447 written from outside the class at :544.
SUB2. Delete pack-time re-validation of what load already rejected (~12 lines) plus one unreachable extent check
From Subtractive#3/#5, Simplicity#6.
helios/src/model/packing.rs:139-146
CoreParameter => {
is_text_forward_graph(graph.kind)
&& matches!(
binding.indexing,
SubmissionRow | RequestRow | ActiveRow
)
}
_ => matches!(binding.indexing, SubmissionRow | RequestRow | ActiveRow),
The arm duplicates the _ => fallthrough on the next line: contract.rs:697-719 already rejected every other kind and indexing before Inputs::new runs. Same for CoreParameter in the dtype group at packing.rs:236-239 (contract.rs:704 requires Float32) and the extent comparison at packing.rs:540 (contract.rs:706 requires buffer.shape[0] >= request_capacity(), so elements > input.elements is unreachable):
let elements = frame
.config
.limits
.request_capacity()
.checked_mul(input.width)
.ok_or("submission-row input extent overflow")?;
if elements > input.elements {
return Err("packed values exceed prepared input storage".into());
}
Caveat that keeps this a judgment call: deleting the arms removes a defence-in-depth layer that costs 12 lines, so "simplify" and "harden" both have a case. Keep the per-write checked_add/checked_mul hardening — that is real arithmetic-safety work, not duplication.
SUB3. packing.rs grows a second staging vector with hand-written bounds checks beside the new write_floats
From Conventions#5.
helios/src/model/packing.rs:286-293 adds a bespoke core_parameter_capacity (request_capacity() when any SubmissionRow core-parameter binding exists, else 0), stored at :307 while every other staging vector is sized from the shared maximum (:294-300, :306, :308). The write then bypasses write_floats and re-checks bounds by hand (packing.rs:604-616):
if binding.indexing == InputIndexing::SubmissionRow {
*self
.core_parameters
.get_mut(destination)
.ok_or("packed values exceed core-parameter staging storage")? = value;
} else {
write_floats(
&mut self.staging,
input,
destination,
std::slice::from_ref(&value),
)?;
}
whereas SamplingParameters needs no per-source vector at all and writes rows straight through write_floats (packing.rs:577-580) despite sharing the identical SubmissionRow shape. The PR also widens write_raw's signature with a count argument for one caller (packing.rs:994-1000). The offset+len vs input.elements check is then done three times (extent at :540, hand-written at :598-603, and inside write_floats).
Fix: size the float staging from maximum, or write every active row through write_floats with 0.0 padding for inactive rows. Counter-argument to preserve: the pre-allocated vector is the PR's zero-steady-state-allocation claim, so whichever form is chosen must keep that property.
SUB4. /v1/models emits "range": null where the metadata path strips nulls
From Correctness#5.
helios/src/server/models.rs:76-88 builds "range": range from an Option<CoreParameterRange>, so an unbounded parameter serializes as JSON null (pinned by the PR's own assertion, models.rs:365: {"name":"residual_gain","default":0.25,"range":null}), while the serving-metadata path deliberately strips nulls (helios/src/runtime_core/protobuf.rs:87: retain(|_, v| !v.is_null())). Clients must handle both absent and null. Either omit the field or state in docs/api.md which is normative. Low risk, wire-visible.
Candidate Nits
N1 (combine — misleading error messages, one item). helios/src/model/packing.rs:162-168 includes CoreParameter in the nonzero-offset guard but keeps the message "value offset requires an integer value source", which is now wrong for CoreParameter, SamplingParameters and ImageTensor — all float sources:
if matches!(
binding.source,
SamplingParameters | CoreParameter | ImageTensor | PageTable
) && binding.value_offset != 0
{
return Err("value offset requires an integer value source".into());
}
Generalize to "this value source does not support a nonzero value offset". Likewise validate_resolved_core_parameters' single error string "core_parameters does not match the model core's resolved parameters" (helios/src/model/contract.rs:495) reads as contract/version skew rather than "you omitted required parameters" for an embedder (helios/src/model/admission.rs:74-76, :137-139); name the missing parameters.
N2 (naming/placement — Conventions#7). pub type CoreParameters = BTreeMap<String, f32>; sits in helios/src/model.rs:29 while its key type CoreParameter stays under model::contract (contract.rs:137-141), so call sites mix crate::model::CoreParameters with crate::model::contract::CoreParameter; PreparedContract::core_parameter returns Option (contract.rs:508-512) where sibling graph() returns Result (contract.rs:501-505), and the Option is folded into a generic "invalid core-parameter graph binding" error (contract.rs:703), discarding which parameter was missing; and validate_core_parameters names two different checks — values in contract.rs:534-536, wire declarations in helios/src/runtime_core/mod.rs:46-48 — while the real declaration implementation is a third name, validate_core_parameter_declarations (contract.rs:473-482).
Dedup decisions the adjudicator should honour
- SF1 subsumes Architecture#1 and Architecture nit #3 and is satisfied by the same edit as Conventions#2/Simplicity#1 — do not split into "add rejection" plus "delete wrapper"; the deletion achieves both, and it is the preferred (subtractive) option.
- SF2 absorbs Simplicity#5 and Subtractive#3; the test-fixture consolidation (
model/tests.rs:59-84vsphase_tests.rs:6629-6660, ~35 near-identical lines) rides along rather than becoming its own item. - SF3 absorbs Conventions#3 and Simplicity#7's range bullets; "reuse
SamplingFloatRange" is the primary form, "one clamp helper" the fallback. - SF4 absorbs Conventions#4, Simplicity#2 and the Python half of Subtractive#4; the Rust half (decode.rs vs contract.rs) is rejected above as a process-boundary pair.
- SF5 (Correctness, add export validation) and SUB1 (Subtractive, delete the direct-path copy) are not duplicates — they concern different copies. If only one is funded, prefer SF5.
- Simplicity#6 (unreachable extent check) is folded into SUB2, not standalone.
- Do not resurrect: Architecture#4 (direct card asymmetry), Conventions#6 as its own item (folded into SUB1), Simplicity#3/#4 as own items (folded into SUB1), Subtractive#2 (map clones + bit guard), any CI/infra red-check claim.
Open questions / could not be settled
- Does any caller outside this repo rely on
admit()'s parameterless form for a declaring core? Settled by making SF1's rejection/deletion; no in-tree caller does (grep-verified: test modules only). - Can a previously exported core be loaded and served unchanged (principle 13)? Needs a CPU core fixture for the partial check and a GPU run for full closure. Unrun, as the description discloses; this is SF6/Architecture#2.
- Should
ignition/directvalidate independently of Helios (SUB1)? No such requirement appears in the PR, charter,docs/direct-execution.mdorhelios/model-contract.md;--directprepares in-process from the checkpoint, which is why the adjudicator, not this brief, must settle it. - Which packing form keeps the zero-steady-state-allocation claim while removing the bespoke staging vector (SUB3)?
- Where the
protobuf>=7.36.2,<8pin lives — not located in the requirement files searched; the generated bindings enforce>= 7.36.1at import (ignition/preparation/runtime_core_pb2.py:12-19(not opened)). Low value, not a finding. - No suite was executed for this brief — all claims were read from files at head
ef94d62. Concurrency/GPU behavior (that the packed value reaches the kernel) is outside what code reading settles; the PR itself flags it unrun. - PR is already merged and the thread has one comment (autobot case-file notice), so no upstream finding was "resolved in a later commit"; nothing was dropped as stale.