Final review report · NVIDIA/hyperflare-inference #621

Raw Markdown for agents: https://autobot.eidonix.com/p/44634ad2-3c91-479b-ad0e-5f59574f1086.md

Recommendation: Changes Requested

The core design is sound, model-agnostic, and closes the real unsalted-admission trap from #505 cleanly with net code deletion in helios/src/server/runtime.rs and ignition/direct/scheduler.py. However, head cbb7a4f is stale against current main with a verified merge conflict and test compile break in helios/src/scheduler/policy_tests.rs (where main refactored cold_deepseek_16k_engine into prefill_catalog_engine, which lacks the new required core_parameters field), and no CI checks have run on the PR head. Rebase onto main, update prefill_catalog_engine, and get green CI runs across native serving, Helios lifecycle/Kani, and Python CPU suites to merge.

Merge Risk

Level: Low (once rebased and CI-verified)

Walkthrough

Pre-merge Checks

Blockers

  1. Rebase conflict and compile break on current main (helios/src/scheduler/policy_tests.rs:4477, 5626) plus missing CI runs on cbb7a4f:
    • Adding the required field pub core_parameters: Vec<CoreParameter> to SchedulerCapabilities (helios/src/scheduler.rs:110-111) requires every struct literal to specify core_parameters.
    • On PR head cbb7a4f, this PR patches a SchedulerCapabilities literal inside cold_deepseek_16k_engine (helios/src/scheduler/policy_tests.rs:5626). On current main, cold_deepseek_16k_engine (helios/src/scheduler/policy_tests.rs:5648-5664) has been refactored to call a new helper prefill_catalog_engine (helios/src/scheduler/policy_tests.rs:4466-4488), whose SchedulerCapabilities literal at line 4477 lacks core_parameters.
    • In addition, no CI workflows (native-serving.yml, helios-lifecycle.yml, python-cpu.yml) have run on head cbb7a4f.
    • Fix: Rebase onto main, resolve the conflict in helios/src/scheduler/policy_tests.rs, add core_parameters: vec![] to prefill_catalog_engine (helios/src/scheduler/policy_tests.rs:4477-4486), and confirm all required CI checks pass on the rebased head.

Should Fix

None.

Subtract / Simplify

  1. Drop redundant try/except wrappers around wire_fp32 in Layout.__post_init__ (ignition/direct/scheduler.py:121-136): wire_fp32 already takes a label argument (ignition/preparation/contract.py:15-28) and raises descriptive ValueError messages as used in ignition/preparation/contract.py:140-146. The two try/except ValueError blocks in Layout.__post_init__ discard that diagnostic context and re-raise generic strings (from None). Passing label=f"core parameter {parameter['name']!r} default" / minimum / maximum directly removes 4 lines and aligns diagnostics with preparation (verified no tests in tests/ match the old generic strings).
  2. Optional: call GraphKind::samples() directly instead of adding a forwarding twin (helios/src/execution/manifest.rs:89-104): GraphKind::samples() and the new pub(crate) fn is_text_forward() match the exact same seven variants, with samples() reduced to a one-line forwarder. If you prefer a smaller diff surface, you can leave manifest.rs untouched and call .samples() at helios/src/model/contract.rs:652 and helios/src/model/packing.rs:140 (keeping is_text_forward() is also reasonable if you prefer its naming at core-parameter sites).

Nits

  1. Document the public validator rename in the PR description: "What changed" notes that Rust callers constructing capabilities or passing declaration slices must update, but omits the public rename helios_core::runtime_core::validate_core_parameters → validate_core_parameter_declarations (helios/src/runtime_core/mod.rs:48-50).
  2. Keep docs/prefix-cache-offload.md internally consistent (docs/prefix-cache-offload.md:781, 833): Line 773-779 now restricts plan_admission to declaration-free cores, while line 833 still says Admission consults the store after \plan_admission`` unconditionally; consider rewording to "after admission planning" and rewrapping long line 781.
  3. Dedicated error message for missing/invalid core parameters (helios/src/scheduler.rs:1576-1585): Evaluating validate_resolved_core_parameters separately from the prompt/token-limit if block would let callers who mistakenly call admit/plan_admission on a declaring core immediately see that resolved core parameters are required rather than a combined prompt/output/parameter error message.

Dropped on verification