Final review report · NVIDIA/hyperflare-inference #608

Raw Markdown for agents: https://autobot.eidonix.com/p/1a0ff92d-2b8b-434b-82eb-32aa96a0da2f.md

Recommendation: Changes Requested

All four runtime/library bug fixes (helios/src/model/catalog.rs, helios/src/runtime_core/selection.rs, helios/src/scheduler/cost.rs, ignition/direct/scheduler.py) and the native-serving.yml / Python test-double updates are technically sound, metadata-driven, and well-targeted root-cause repairs with no verified correctness blockers. Before this lands cleanly, two operational gaps need attention: (1) .github/workflows/python-cpu.yml (not opened) introduces an always-on CI job that runs unpinned uv sync --extra prepare --extra test against flashinfer-python branch = "main" (plus full CUDA 13.2 wheels and three separate Cargo builds on ubuntu-24.04 without disk/target-dir guards), and the head commit (3343f13) has an unexplained failing CI check; and (2) renaming [project.scripts] ignition → ignition-core leaves core-only setup and signing docs pointing at a nonexistent .venv/bin/ignition without mentioning ignition-core.

Merge Risk

Level: Medium

Walkthrough

Pre-merge Checks

Blockers

None.

Should Fix

  1. Unpinned moving git dependency, unguarded runner footprint, and unexplained CI failure in .github/workflows/python-cpu.yml:1-33 (not opened):

    • Verified behavior/impact: python-cpu.yml:29 runs uv sync --extra prepare --extra test without --locked (core Flare removed uv.lock in 17bb3c4a, moving lock ownership to hyperflare-recipes per AGENTS.md:254-256) while pyproject.toml:47 tracks flashinfer-python on branch = "main". Every PR and push to main (no paths filter) now resolves a moving git dependency—contrary to the charter's pinning rule (#215)—and downloads full CUDA 13.2 wheels (torch==2.14.1+cu132, torchvision, flashinfer-python[b12x]), builds flare-heliopause via maturin (heliopause/pyproject.toml:1-3), and then runs tests/preparation/test_core_protection.py:30,367, which executes two additional Rust builds into separate target directories (helios/target/debug and flare-cli/target/release). On standard ubuntu-24.04 runners (where PR #215 previously hit disk exhaustion from FlashInfer alone), this creates a high-cost, fragile check on unrelated PRs. Additionally, the head commit (3343f13) shows a failing CI check that is not explained in the PR description.
    • Concrete fix: Inspect and resolve the failing CI check on 3343f13, pin or explicitly bound the CI environment (e.g., pin FlashInfer or use a lockfile / constrain python-cpu.yml with paths filters and shared CARGO_TARGET_DIR + runner disk cleanup, or separate lightweight pure-Python tests from the heavy --extra prepare + Cargo-building tests like test_core_protection.py).
  2. Undocumented ignition → ignition-core rename in core-only CLI and signing docs (pyproject.toml:15):

    • Verified behavior/impact: pyproject.toml:15 changes the core console script from ignition to ignition-core (the right way to avoid clobbering hyperflare-recipes's .venv/bin/ignition without adding plugin discovery; do not add an ignition shim in pyproject.toml, which would reintroduce hyperflare-recipes#20). While recipe-specific doc examples (export qwen3.8-flash, debug-serve glm-5.3-flash, etc.) still run under hyperflare-recipes's .venv/bin/ignition, core-only documentation is now stale:
      • docs/cli-design.md:57-62 explicitly describes installing core ignition (uv sync --locked --extra prepare --extra test) and running .venv/bin/ignition / uv run --locked --extra prepare ignition ... (neither uv.lock nor .venv/bin/ignition exists in a core-only venv).
      • docs/signing.md:45,80,103 instructs .venv/bin/ignition keygen, .venv/bin/ignition key-password, and .venv/bin/ignition sign (recipe-free core commands that fail in a core-only venv).
      • AGENTS.md:253-261 and docs/ contain zero mentions of ignition-core.
    • Concrete fix: Update docs/cli-design.md:57-62, docs/signing.md:45,80,103, and AGENTS.md:253-261 to document that core ignition installs .venv/bin/ignition-core (with python -m ignition working everywhere) while .venv/bin/ignition is provided by hyperflare-recipes.

Subtract / Simplify

  1. Deduplicate the covering-batch fold in helios/src/runtime_core/selection.rs:175-181 and :283-289: Both sites run the identical .iter().filter(|g| g.kind == kind && g.batch_capacity >= active as u64).map(|g| g.batch_capacity).min().unwrap_or(active as u64) query ("speculative" at :175, generation_kind at :283). Extracting one private covering_batch(&execution.graphs, kind, active as u64) -> u64 helper removes the duplication and makes alignment between eligible_widths and the retention pass structural.
  2. Collapse the two speculative .any() scans in helios/src/model/catalog.rs:212-237: The width-1 (:215-219) and width>1 (:227-231) checks differ only by graph.token_capacity == 1 vs > 1. A single local closure let has_speculative = |batch: usize, width_one: bool| ... cuts ~10 lines while keeping any semantics (intentionally not select, which rejects multiple draft_tokens variants for the same batch).
  3. Remove orphaned tests/components/causal_prefix_oracle.py: Deleting tests/components/test_vocabulary_commit_cuda.py removed the sole importer of tests/components/causal_prefix_oracle.py (verified 0 references across the repository at 3343f13). Delete the 41-line file unless it is wired into a live test here.

Nits

Dropped on verification