Code review summary scratchpad · NVIDIA/hyperflare-inference #505

Raw Markdown for agents: https://autobot.eidonix.com/p/844960b9-56d1-42c2-bbe0-b7851a8a34f9.md

#1 [high] PR #505 overview and verified core facts

PR NVIDIA/hyperflare-inference#505 "Bind core-declared FP32 parameters into text forward graphs". 32 files, +2393/-261. Adds ModelContract.core_parameters (proto field 8), ValueSource::CORE_PARAMETER = 43, ValueBinding.parameter = 7; salted prefix history; packing + Python direct-execution mirror. Only comment on PR is the autobot case-file notice.

Verified sound (do NOT report as findings):

Chatter to drop: no CI/runner failures appear in the PR thread at all; the only thread item is the autobot case file. Prose lens's "desktop pin" and "commit message body" open questions are unresolvable and low value.

#2 [high] SF1: parameterless admit/plan_admission admits declaring cores unsalted

MERGED (Architecture#1 + Conventions#2 + Correctness#1 + Simplicity#1). All four lenses call it should-fix, not blocking.

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(&parameter.name)
                .is_none_or(|&value| !parameter.validate_value(value))
        })
    {
        return Err("core_parameters does not match the model core's resolved parameters".into());
    }
    Ok(())
}

Consequence: on a declaring core, empty decls + empty map passes => unsalted PrefixHistory + empty AdmissionPlan map; failure only at pack time helios/src/model/packing.rs:588-592 ("core-parameter admission plan is incomplete"). Production is safe: all server paths call plan_admission_with_core_parameters (helios/src/server/runtime.rs:2755, 2781, 2806); .admit(/plan_admission( appear only in test modules (verified by grep: scheduler/tests.rs, policy_tests.rs, boundary_tests.rs, model/tests.rs, etc.). Declarations threaded by hand because scheduler does not hold them: runtime.rs:2741, 2777, 2796 plus call sites 1242/1383/1432/1458/1476/2861/2883. Precedent for holding model-declared config: SchedulerCapabilities (helios/src/scheduler.rs:96-110, incl. pub vision: crate::model::VisionCapabilities), constructed by model::scheduler_capabilities and taken by RequestScheduler::new(identity, limits, capabilities) (scheduler.rs:704-709). Subtractive preference: delete the parameterless wrapper/admit path entirely; hold Vec<CoreParameter> on the scheduler (or SchedulerCapabilities) so one entry point exists. Also covers Architecture nit #3 (docs/prefix-cache-offload.md:717-720 still documents plan_admission(&spec) as the worker path).

#3 [high] SF2: is_text_forward_graph duplicates GraphKind::samples()

MERGED (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
    )
}

Existing identical predicate, 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
        )
    }

(new helper lives in model::contract, i.e. away from GraphKind; samples() already used at manifest.rs:940 and server/runtime.rs:2969.) Other copies: helios/src/model/packing.rs:140; test fixtures helios/src/model/tests.rs:59-77 and server/runtime/phase_tests.rs:6637-6652; Python ignition/direct/scheduler.py:49 _TEXT_FORWARD_KINDS = ("prefill", "terminal_prefill", "scored_prefill", "resume", "decode", "speculative", "mixed") used at scheduler.py:160; tests/direct/test_scheduler.py local text_forward set. Only 2 production call sites of is_text_forward_graph (contract.rs:665, packing.rs:140), so deleting it is cheap: call kind.samples() or add GraphKind::forward() beside is_prefill/samples. Pre-existing copies (not in diff, context only): helios/src/engram.rs:926-936, server/runtime.rs:1681-1689.

#4 [high] SF3: third range type, fourth containment/clamp implementation

FROM Conventions#3 (+ Simplicity#7, Subtractive#4 partial). "Should fix" for Conventions; a size/judgment call otherwise.

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;
}

Existing identical shape, same file, helios/proto/runtime_core.proto:561-564

message SamplingFloatRange {
  optional float min = 1;
  optional float max = 2;
}

Rust analogue helios/src/model.rs:155-159 pub struct SamplingRange<T> { pub min: T, pub max: T }, used by SamplingRanges (model.rs:179-187); SamplingRanges::validate (model.rs:190-217) enforces "range must contain the default" by REJECTING, while CoreParameter::resolve_value (contract.rs:453-462) CLAMPS. So the same inclusive-bounded-float rule now has 4 implementations that disagree: contract.rs:438-470 (validate/resolve_value/validate_value), server/models.rs:77-82 (rebuild range only to canonicalize), ignition/direct/scheduler.py:135-152, scheduler.py:245-248 (min(max(...))).

#5 [high] SF4: _wire_fp32/_FP32_MAX duplicated in two Python modules

FROM Conventions#4 + Simplicity#2 (+ Subtractive#4). All three lenses: should fix.

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:53-65 is the same three rules with np.float32 and no label (bare raise ValueError). Removable cheaply: 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, so importing the helper adds no dependency. Second _FP32_MAX (scheduler.py:50) also goes. Note: numpy cast vs struct.pack is not required to agree (np emits a warning and can raise under -W error on overflow where struct silently yields inf). tests/direct exercises only the direct copy.

#6 [high] CANDIDATE BRIEF part 1: key findings, blockers, SF1-SF3

CANDIDATE BRIEF — PR #505 (part 1 of 2)

Repo: NVIDIA/hyperflare-inference, PR #505 head ef94d62, merged 2026-11-28, 32 files, +2393/-261.

Key findings

All six lenses agree there is no blocking defect: Architecture says "in scope, no blocking violation"; Conventions "No blocking issue"; 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"; Subtractive "make it smaller first" with "follow-up-sized removals". The mechanism is the sanctioned, generic one (maintainer request in #404 by 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 … described in the model proto"). What survives from the lenses is (a) one latent admission trap, (b) one export/load validation asymmetry, (c) a disclosed-but-unrecorded qualification gap, and (d) five subtraction/dedup opportunities, four of which are single-line-to-90-line deletions.

Verified sound, do not re-litigate: declaration-free cores keep the exact prefix root (PrefixHistory::new delegates 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 are additive and defaulted (contract.rs:110-111); retry/preemption carries the resolved map via refresh_admission_plan (scheduler.rs:1584-1590); HTTP decoding is one path for all four protocols and rejects with 400 (decode.rs:49-75); the Kani/CPU test evidence in the description is broad and honest.

Noise dropped by pre-filter: the PR thread contains only an autobot case-file notice (no CI/runner red checks to filter, and the one Rust failure the description names is on origin/main, in model::tests::packed_combined_budget_keeps_width_one_batches_without_a_useful_packed_shape, broken by #555 — outside this diff). Also dropped: Architecture nit #4 (direct /v1/models carrying only core_parameters, where code and docs already agree and the card is diagnostic-only); Conventions #5/#6 as standalone items (folded into SUB1/SUB2); Simplicity #3/#4 (dead tokens param in _cache_key, MappingProxyType property pair) kept only as sub-bullets of SUB1 since they are untouched-in-spirit helper polish in the same file.

Candidate Blockers

None. Recommend the adjudicator not add blockers: every lens reached the same verdict independently, two CPU test suites already exercise the changed paths (1,692 helios + 209 heliopause), and the only unrun check is GPU export/serving of a declaring core, which is disclosed. If the adjudicator disagrees, the only viable candidate is SF1, and only as a latent-trap argument, not a live defect: production never calls the affected entry point.

Candidate Should Fix

SF1. Parameterless admit/plan_admission admit a declaring core unsalted, and the declarations are hand-threaded instead of held (merge: Architecture#1, Conventions#2, Correctness#1, Simplicity#1, plus 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(&parameter.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 (scheduler.rs:1575-1579), copied to LiveRequest (scheduler.rs: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 (verified by grep for .admit( / plan_admission( in helios/src): every production path uses plan_admission_with_core_parameters (helios/src/server/runtime.rs:2755, 2781, 2806); RequestScheduler::admit and plan_admission(&spec) are called only from test modules (scheduler/tests.rs, policy_tests.rs, boundary_tests.rs, model/tests.rs, model/packed_round_tests.rs, runtime/phase_tests.rs:6181,6343,6790). So: latent trap + duplicated public surface, not a live defect. This contradicts design-review principle 2 (admission "rejects unsupported features and capacities explicitly", docs/design-review.md:36-39). Cost of the workaround: declarations are not stored on the scheduler, so four functions grow a core_parameter_defs: &[crate::model::contract::CoreParameter] parameter — helios/src/server/runtime.rs:2741, 2777, 2796 — and call sites pass &self.config.contract.core_parameters (e.g. runtime.rs:1453-1479, 2858-2864, 2880-2887):

            let admission = if let Some(store) =
                self.store.as_mut().filter(|_| incoming.host_lookup && !spec.prompt_logprobs)
            {
                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 instead: SchedulerCapabilities already carries vision (helios/src/scheduler.rs:95-110), built at helios/src/model.rs:308-341 and taken by RequestScheduler::new(identity, limits, capabilities) (scheduler.rs:704-709). Subtractive fix (preferred over adding validation): hold Vec<CoreParameter> on the scheduler (or in SchedulerCapabilities), keep one 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()). 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
        )
    }

is_text_forward_graph has exactly two production call sites (contract.rs:665, packing.rs:140), so the 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 could host once; Python ignition/direct/scheduler.py:49 _TEXT_FORWARD_KINDS (used at :160); tests/direct/test_scheduler.py:745 (local text_forward set). Pre-existing, out-of-diff neighbours: helios/src/engram.rs:926-936, helios/src/server/runtime.rs:1681-1689. Subtractive fix: delete the helper, call kind.samples() (or add GraphKind::forward() beside is_prefill/samples if the concepts must diverge), and collapse the two test fixtures into one builder in model/testing.rs.

SF3. CoreParameterRange re-declares SamplingFloatRange, and the bounded-float rule now has four implementations that disagree (merge: Conventions#3, Simplicity#7 partial)

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;
}

vs. the same file, helios/proto/runtime_core.proto:561-564

message SamplingFloatRange {
  optional float min = 1;
  optional float max = 2;
}

Rust has SamplingRange<T> + SamplingRanges::validate (helios/src/model.rs:155-168, 189-218), which rejects a range that does not contain the default:

                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());
                    }

while 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, and ignition/direct/scheduler.py:140-152 re-implements shape/order/containment with its own error string, plus a hand-rolled min(max(...)) clamp at scheduler.py:245-248. Fix: reuse SamplingFloatRange on the wire (or at minimum reuse SamplingRange<f32> plus one contains_or_clamp helper); have models.rs call the canonicalizer inline instead of rebuilding the struct.

#7 [high] CANDIDATE BRIEF part 2: SF4-SF7, SUB1-SUB4, nits, dedup

CANDIDATE BRIEF — PR #505 (part 2 of 2)

SF4. _wire_fp32/_FP32_MAX implemented twice in Python (merge: Conventions#4, Simplicity#2, Subtractive#4 partial)

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 is the same three rules (bool rejection, finite and |v| <= f32::MAX, nonzero-underflow rejection), differing only in mechanism and in having no label:

_FP32_MAX = float(np.finfo(np.float32).max)


def _wire_fp32(value):
    ...
    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), and tests/direct exercises only the direct copy. Do NOT extend this to the Rust pair (server/protocol/decode.rs:49-75 vs model/contract.rs:453-462) — those sit on opposite sides of a process boundary and each must be independently correct; Subtractive#4's "written four times" framing over-reaches there.

SF5. Export validates declarations only, so an invalid binding exports clean and fails at load (merge: Correctness#2, Subtractive#1 framed as duplication)

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());
                }
            }
            if text_forward && graph_parameters.len() != self.core_parameters.len() {
                return Err(
                    "every selected text forward graph must bind every declared core parameter"
                        .into(),
                );
            }

That check runs at load (packing.rs:67 → contract.rs:67, and again via catalog::validate, catalog.rs:31), not at export. The only export-side hook that could run it is validate_prepared_contract (heliopause/src/python.rs:161-169), which is behind the qualification feature and has no Python caller — ignition/preparation/core_proto.py:12 calls only export_serving. So a recipe can write a multi-GB archive with a CORE_PARAMETER binding on a VISION graph, or a parameter bound in only one of two selected prefill graphs, and the export succeeds. Severity caveat: the failure is loud and early-ish (load, or Inputs::new), not silent corruption, and ignition.parent's export-time structural validation rejects most malformed binding shapes — this is a cost/feedback-location issue, and the description's claim "validate … during Heliopause export" is true of declarations only. Fix: run PreparedContract::validate (or a binding-only validator extracted from it) from serving_metadata, or make export_serving accept and validate the prepared contract JSON.

SF6. Nothing records the unrun GPU qualification, and the three edited docs present core parameters as ordinary served behavior (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 PR 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; a case-insensitive search of docs/TODO.txt at the head returns no matches, and the three edited docs state present behavior: docs/api.md:749-751

Every generation protocol accepts an optional top-level `core_parameters` JSON
object whose keys name FP32 parameters declared by the loaded model core
(and advertised under `flare.core_parameters` in `/v1/models`).

docs/direct-execution.md:84-87

`/v1/models` reports the core's declared `core_parameters` under `flare`. Chat
requests accept the same top-level `core_parameters` object as native serving;
omitting it or passing `null` uses declared defaults, and the direct scheduler
resolves defaults and ranges before prefix lookup.

helios/model-contract.md:116-121 likewise specifies CORE_PARAMETER requirements as present-tense contract terms. 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. Do not merely soften wording — AGENTS.md requires the unrun check to be recorded.

SF7. helios/model-contract.md conflates clamping with rejection (Prose#2)

helios/model-contract.md:128-132

Inactive rows of a `SUBMISSION_ROW` core-parameter binding receive `0.0`. 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.

An out-of-range value is clamped, not rejected (contract.rs:458-460 above); the values admission rejects are those that cannot become a finite nonzero f32 (decode.rs:58-68: wide.abs() <= f32::MAX as f64 then !narrowed.is_finite() || (wide != 0. && narrowed == 0.)). docs/api.md:757-759 states it correctly ("clamps finite FP32 request values to [min, max]"), so the two documents disagree. Fix: "…and rejects unknown names and values that are not representable as finite nonzero FP32 values."

Candidate Subtract / Simplify (cheap deletions; keep these over any lens that asks to add validation here)

SUB1. Delete ignition/direct's re-implementation of the core-parameter contract (~90 product lines + ~110 test lines) — Subtractive#1, overlapping Conventions#6

ignition/direct/scheduler.py:131-184 re-validates distinct nonempty names, finite defaults, range key set/finiteness/containment, text-forward-only bindings, bind-vs-declare completeness, indexing/offset/padding/tensor, dtype, row count and row contiguity — all of which Helios already enforces on the same prepared contract at load (contract.rs:473-482, 697-728) and export. The direct path is documented as diagnostic-only (docs/direct-execution.md:3-16: "It is not for actual serving"). Only the packing case (ignition/direct/packing.py:84) and request-side resolution (scheduler.py:227-249) are genuinely needed. Field/methods that go with it: Layout.buffer_contiguity (scheduler.py:117-118, populated :213-216) and _row_contiguous (scheduler.py:68-74). Worth noting for the adjudicator: 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 "already validated" premise is weaker than Subtractive claims — the validation does run in Helios at load, but not on a path that --direct exercises. If kept, the contiguity probe is the weakest part: ignition/preparation/graphs.py:166-167 already rejects every non-contiguous registered buffer ("must be contiguous; register its contiguous backing tensor"), and _row_contiguous returns None for tensors reporting neither .flags.c_contiguous nor .is_contiguous(), and None fails at scheduler.py:178 — i.e. it rejects types the upstream check accepted. Decide one way; do not ship both checks. Also in this family (mechanical, same file, low risk): _cache_key's dead tokens parameter — ignition/direct/scheduler.py:881-885, only call sites are :608 and :891 and neither passes tokens — 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 redundant extent check — Subtractive#3/#5, Simplicity#6

helios/src/model/packing.rs:139-145

                            CoreParameter => {
                                is_text_forward_graph(graph.kind)
                                    && matches!(
                                        binding.indexing,
                                        SubmissionRow | RequestRow | ActiveRow
                                    )
                            }
                            _ => matches!(binding.indexing, SubmissionRow | RequestRow | ActiveRow),

The arm is a duplicate of 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 — 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) even though it shares the identical SubmissionRow shape. The PR also widens write_raw's signature with a count argument for one caller (packing.rs:994-1000). 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 the alternative must keep that property — adjudicator should decide which of the two forms keeps it.

SUB4. /v1/models emits "range": null where the metadata path strips nulls — 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 which is normative in docs/api.md. Low-risk, wire-visible.

Candidate Nits (at most one item each; do not expand)

Dedup / subtraction decisions the adjudicator should honour

#8 [high] Research summary

Produced a deduplicated, code-grounded candidate brief for PR #505, saved as scratchpad entries 6 and 7 (13 surviving candidates: 0 blockers, 7 should-fix, 4 subtract/simplify, 2 nits), each with the exact 5–15 quoted lines and file:line citations fetched from the head commit ef94d62.

All six lenses independently found no blocking defect. The seven should-fix items are: SF1 the parameterless admit/plan_admission accepting a declaring core with empty declarations (unsalted prefix history, failure deferred to pack time) plus the hand-threaded core_parameter_defs arguments — resolved in favour of deleting the wrapper and holding declarations on the scheduler rather than adding null checks; SF2 is_text_forward_graph duplicating the existing GraphKind::samples() plus two near-identical 35-line test fixtures; SF3 CoreParameterRange re-declaring SamplingFloatRange with a fourth clamp/reject implementation that disagrees with SamplingRanges::validate; SF4 _wire_fp32 duplicated verbatim in two Python modules; SF5 export validating declarations but not bindings; SF6 the unrun GPU qualification recorded nowhere (docs/TODO.txt has no entry) while three docs state present behavior; SF7 helios/model-contract.md conflating clamping with rejection.

Pre-filtering dropped: Architecture's direct-card asymmetry nit, standalone Conventions #5/#6, Simplicity #3/#4 (folded into the subtractive item), and any CI/infra claim — the PR thread contains only an autobot case-file notice, and the one Rust failure the description names is pre-existing on origin/main via #555. I flagged one upstream conflict for the adjudicator rather than silently resolving it: Subtractive and Correctness point opposite directions on the Python direct path, and Subtractive's "already validated" premise is weakened because --direct prepares from the checkpoint in-process with no core.

#9 [high] Ledger: per-lens disposition + verification trail

Disposition ledger (use this to state dropped material without re-reading lenses)

Final shape: 0 Candidate Blockers, 7 Candidate Should Fix (SF1-SF7), 4 Candidate Subtract/Simplify (SUB1-SUB4), 2 Candidate Nits (N1, N2). Brief lives in entries 6 (part 1: key findings, blockers, SF1-SF3) and 7 (part 2: SF4-SF7, SUB1-SUB4, nits, dedup).

Lens -> disposition

Architecture: #1 -> SF1; #2 -> SF6 (overlaps); #3 (prefix-cache-offload.md:717-720 doc drift) -> folded into SF1; #4 (direct /v1/models carries only core_parameters) -> DROPPED (code and docs/execution doc agree, additive diagnostic-only metadata, no Helios client effect). Its "verified sound" list is preserved in entry 6. Conventions: #1 -> SF2; #2 -> SF1; #3 -> SF3; #4 -> SF4; #5 -> SUB3; #6 -> folded into SUB1 (contiguity probe is the weakest part, kept as a sub-point rather than its own item); #7 -> N2. Simplicity: #1 -> SF1; #2 -> SF4; #3 (dead tokens param in _cache_key) -> folded into SUB1 sub-bullets; #4 (MappingProxyType property pair) -> folded into SUB1 sub-bullets; #5 -> SF2; #6 (unreachable extent check) -> folded into SUB2; #7 -> SF3 + N2. Its "checked and dropped" list (multi-layer revalidation including the pack_step bit check; the Kani harness that restates validate()) is honoured: nothing there is re-raised. Correctness: #1 -> SF1; #2 -> SF5; #3 (mismatched-length error message) -> N1; #4 (offset guard error says "integer value source" for float sources) -> N1; #5 ("range": null) -> SUB4. Prose: #1 -> SF6; #2 -> SF7. Its unverifiable open questions (protobuf pin location; commit-message body of 85de9eae) are not carried forward. Subtractive: #1 -> SUB1 (with an explicit caveat recorded in entry 7); #2 (two clones of the resolved map + bit-equality guard) -> NOT carried as a deletion: the lens itself notes the guard is the only assertion that the packed value matches the hashed value, and Simplicity's dropped-list agrees. Recorded as a deliberate rejection, not an omission; #3 -> SF2; #4 -> SF4 (Python half only; Rust half rejected as a process-boundary pair); #5 -> SUB2; #6 -> N1/SUB4/N2 fragments.

Checks actually run at head ef94d62 (so the report can state them as verified, not assumed)

Every claim above was read from the files at the PR head; no suite was executed (out of scope for a review brief). Quoted code blocks are in entries 6 and 7.