PR #608: helios,ignition,ci: restore catalog validation, CPU Python tests, and script separation

Raw Markdown for agents: https://autobot.eidonix.com/api/v1/cases/62bb82b9-0ed0-4470-a2d6-956b1c1295b5

Opened by a workflow run, Nov 29, 2026 12:35 PM EST. decide malicious: all_clear (100%): No malicious content found

explore

Author: lukealonso (COLLABORATOR; charter "priority contributor" and AGENTS.md owner for captured-graph op families); no Discord handle given. Motivation: A CI blackout (the Rust matrix workflow was switched off by hand, no Python CPU workflow existed, and the Nov-22 recipe split left uncollectable tests) let regressions from #555 and #505 sit on main; this PR repairs them, adds a CPU pytest workflow, and renames the core console script so recipe packages can own .venv/bin/ignition. Scale: +226 / −304 lines in 13 files Proposal:

Full report · Notes

Value Proposition

Value Proposition: PR #608 — helios,ignition,ci: restore catalog validation, CPU Python tests, and script separation

Charter alignment — strong on the core, weak at the edges. The three Helios fixes are exactly what the charter asks for: root-cause repairs rather than symptom suppression (#397), implemented as metadata-driven, model-agnostic logic with no per-model branches or new flags (#267/#334), each with a named regression test (packed_round_tests, eligible_widths_follow_covering_max_batch..., fresh_duration_uses_smallest_declared_batch...). The PR body follows the required four-part description convention. Two tensions: the new workflow runs uv sync without --locked while flashinfer-python tracks branch = "main" — contradicting "pin dependencies to exact versions or commits" (#215) — and the two deleted CUDA test files were removed rather than repaired, moving that coverage outside this repository's ability to verify.

Novelty & status — genuinely additive. Nothing supersedes it. #555 and #505 are the causes it repairs, not competitors; #613 and #614 are disjoint same-day siblings; no other PR touches python-cpu.yml. The hardcoded batch: 1 in fresh_duration and the next_power_of_two / max_batch disagreement in selection.rs were latent and flagged by no prior review, so the catalog.rs/selection.rs/cost.rs work is real, previously unreviewed value — stricter loading for malformed cores and restored prefix checkpointing on cores whose smallest declared Snapshot batch is not 1.

Value vs cost — favourable, with one serious unaccounted cost. Beneficiaries: anyone loading non-power-of-two cores, the direct-scheduler bench harness (the MappingProxyType deepcopy crash since #505), and the entire Python suite, which gains its first CI job. Costs: one heavy CPU job on every PR and push to main (full --extra prepare install plus the whole tests/ suite), a new moving-git-dependency surface, and — critically — the ignition → ignition-core console-script rename breaks roughly 35 documented .venv/bin/ignition invocations across docs/cli-design.md, model-preparation.md, signing.md and others, with no shim, no version bump, and no doc edits in the diff. Evidence is solid for the Rust and Python suites but measured on a pre-final-rebase base, never on merged head 3343f13, whose failed CI check is unexplained.

Verdict: Worth it with changes. The three Helios fixes are the highest-value, lowest-risk part and should land. Before this counts as done, require: (1) doc updates for ignition-core, or a compatibility shim; (2) --locked or a pinned FlashInfer ref in python-cpu.yml per #215; (3) an explanation of the head-commit CI failure; (4) a pointer proving the deleted CUDA coverage survives in local-inference-lab/hyperflare-recipes.

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

Subtraction and simplicity

Subtraction/Simplicity/Conventions lens on PR #608. The diff is largely lean — no new flags, knobs, or speculative generality; cost.rs and the workflow edits are already minimal; the CUDA-test deletions remove code. Four follow-up-scale findings, none blocking (the PR merged with zero reviews):

  1. helios/src/runtime_core/selection.rs:175-181 adds a covering-batch fold that is a verbatim copy of the pre-existing fold at :283-289 (generation_kind == "speculative" whenever speculation is enabled). Two copies of the same query is precisely the defect this PR fixes, so collapse both into one covering_batch(graphs, kind, active) helper — a helper, not a hoisted value, because :175 is pre-loop on cores.first() while :283 is per rank.
  2. ignition/direct/scheduler.py:449-459's 12-line Request.__deepcopy__ exists only because Scheduler.validate wraps _core_parameters in MappingProxyType at :556, over a dict resolve_core_parameters (:227-249) already returns fresh. Readers are read-only (packing.py:84 (not opened), identity hashing); the only consumer of immutability is one test assertion (tests/direct/test_scheduler.py:867-868). Delete the wrap and the __deepcopy__ (default deepcopy then works); the repo's idiom for proxy-safe copying is __reduce__/_plain_mappings (ignition/declaration.py:77-84,130-134).
  3. helios/src/model/catalog.rs:212-236 hand-inlines two .any() rescans of manifest.graphs (width-1 vs width>1 speculative) differing by one token; replace with one hoisted has_speculative(batch, width_one) predicate. Do NOT substitute select(...): it ignores draft_tokens/packed_token_capacity and would raise the ambiguity error on legal multi-depth manifests.
  4. tests/components/causal_prefix_oracle.py (41 lines, allocate at :19) survives at head with zero references anywhere — its only importer, the deleted test_vocabulary_commit_cuda.py, is gone. Subtraction left it behind.

No structural AGENTS.md violations: metadata-driven, no per-model branches, no new abstractions.

Open: was the oracle kept deliberately? Is _core_parameters immutability an intended contract? Does the deleted vocabulary-commit coverage exist in hyperflare-recipes (not verifiable here)?

Full report · Notes

Correctness and contracts

PR #608 is a defensible repair of regressions from #555/#505, but it changes three shipped contracts without saying so.

Top findings:

  1. Major — pyproject.toml:15 renames the console script ignition → ignition-core with no shim and no version bump, while ~35 documented invocations still call .venv/bin/ignition (docs/cli-design.md:59 (not opened),227-312,517-669; direct-execution.md:36-68 (not opened); model-preparation.md:297 (not opened),515-525; multi-host.md:347-355 (not opened); roce-ring.md:177-193 (not opened); signing.md:45 (not opened),80,103). Core-only installs following docs/cli-design.md:58 (not opened) get "No such file or directory".
  2. Major — helios/src/scheduler/cost.rs:265 now quotes the smallest declared batch instead of batch 1. Through checkpoints.rs:411,727,788 this silently switches prefix/terminal checkpointing back on (new snapshot captures, retention/eviction pressure) for cores whose smallest Snapshot batch ≠ 1 — no opt-in, no measurement.
  3. Major (metric span) — that quote is for a row-padded smallest-batch graph while the planner may run a wider snapshot batch (policy_tests.rs:3080-3085), so checkpoint_extra_work_fraction under-prices the copy it authorises.
  4. Major — catalog.rs:146-191 builds required_batches from all Speculative batches (no token/prefill/sampling filter) and demands lifecycle+Decode for each: stricter than the old .any(...) checks, so previously-loading third-party cores can now fail to load, abi_version unchanged, and the over-broad branch is untested (testing::manifest emits 1/2/4 uniformly).
  5. Minor — selection.rs:175-187 fix is correct and now mirrors the retention pass; residual speculative vs decode kind mismatch is benign today but a future trap.
  6. Minor — new python-cpu.yml:29 runs uv sync without --locked (charter pinning rule), pytest-only so it cannot catch Rust regressions, and evidence is against pre-rebase bases with the head CI failure unexplained.

Open: CI failure on head 3343f13; whether the deleted CUDA coverage exists in hyperflare-recipes; whether the over-broad required_batches union was intended; follow-up for the doc rename.

Full report · Notes

Final review

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

Full report

Classify triage

Selected: triage:review

Threshold: 65%

Triage

Apply labels

Applied: +triage:review

Classify intake

Selected: triage:review, bug, area:scheduling

Threshold: 65%

Triage

Priority

Type

Area

Model

Apply Labels (Intake)

Applied: +bug, +area:scheduling