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
- Helios & Ignition runtime paths (Low risk):
catalog.rsrestores per-batch parity validation broken two days earlier by #555 while preserving both power-of-two cores and single-batch test manifests (helios/src/model/tests.rs:2127-2134);selection.rsalignseligible_widthswith the existingmax_batchretention pass;cost.rs:265is a no-op on every standard core (whose smallest declaredSnapshotbatch is1) and fixes silent checkpointing disablement on non-batch-1 cores;scheduler.py:449-459fixescopy.deepcopyonRequestwhile preserving read-only_core_parameters. No concurrency, locking, or hot-path overhead hazards were introduced. - CI reliability & dependency drift (Medium risk):
.github/workflows/python-cpu.yml(not opened) runs on everypushtomainand everypull_requestwith no path filter, resolves floatingflashinfer-pythonbranch = "main"(pyproject.toml:47) without a lockfile, installs full CUDA 13.2 PyTorch + FlashInfer + buildsflare-heliopause, and triggers two additional Cargo builds (helios/target/debugandflare-cli/target/release) insidetests/preparation/test_core_protection.py:30,367—creating runner disk-pressure, build-time, and upstream-drift risk on unrelated PRs. - Core-only CLI documentation drift (Low–Medium risk): Renaming
.venv/bin/ignitionto.venv/bin/ignition-coreinpyproject.toml:15is the right fix forhyperflare-recipes#20and leaveshyperflare-recipesinstalls owning.venv/bin/ignition(andpython -m ignitionworking everywhere), but core-only setup and signing docs (docs/cli-design.md:57-62,docs/signing.md:45,80,103,AGENTS.md:253-261) still instruct.venv/bin/ignition.
Walkthrough
helios/src/model/catalog.rs:130-238: Replaces manifest-wide.any(...)existence checks with per-batch parity acrossrequired_batches = lifecycle_batches ∪ generation_batches, enforcingInit/Restore/Snapshot/Resume(andDecodewhen non-speculative), width-1Speculative, and widerSpeculativewhenbatch * 2 <= config.speculative_token_capacityper batch—restoringpacked_round_tests.rs:106.helios/src/runtime_core/selection.rs:175-187, 1899-1943: Replacesactive.next_power_of_two()withspeculative_max_batch(smallest declared speculative batch>= active) when computingeligible_widths, matching the retention pass at:283-289, and adds regression testeligible_widths_follow_covering_max_batch_instead_of_next_power_of_two.helios/src/scheduler/cost.rs:264-269, 417-447: ChangesActionCosts::fresh_durationfrom hardcodedbatch: 1toself.batches(kind).first().copied()?(smallest declared batch, sorted/deduped at:179-186) socheckpoints.rs:411,727,788work when batch1is absent, with a unit test.ignition/direct/scheduler.py:449-459: AddsRequest.__deepcopy__to memoizeselfand deep-copyMappingProxyTypeattributes into fresh read-only proxies, fixingcopy.deepcopycrashes inignition/bench/runner.py:424,435andtests/bench/test_runner.py:55,57.pyproject.toml:15&tests/preparation/test_packaging.py:25: Renames core's console script fromignitiontoignition-coreto prevent warm-cacheuv synccollisions withhyperflare-recipes..github/workflows/native-serving.yml:31(not opened),.github/workflows/python-cpu.yml:1-33(not opened), andtests/: Adds--recipe minimax_m3tonative-serving.yml(matching all 7 recipes inhelios/src/frontend/jinja/tests.rs:814-824), adds a new CPUpytestworkflow, updates capture test doubles (test_capture_roce_wait.py,test_transient_retention.py) and protection error assertions (test_core_protection.pymatchingprotection.rs:995andarchive.rs:134), and deletes two uncollectable post-split CUDA test files (test_draft_block_broadcast_cuda.py,test_vocabulary_commit_cuda.py).
Pre-merge Checks
- [PASS] Security / malicious screen: No credential/exfiltration paths, unsafe shell expansions, or privilege escalations;
python-cpu.ymlusespermissions: contents: readandtest_core_protection.pyassertions match verified Rust error messages (protection.rs:995,archive.rs:134). - [WARN] Charter & value fit: The four Helios/Ignition fixes are strongly charter-aligned (model-agnostic, metadata-driven root-cause fixes with regression tests), but
.github/workflows/python-cpu.yml:29(not opened) introduces unpinnedflashinfer-pythonbranch = "main"resolution into every PR's CI (tension with Charter #215: "pin dependencies to exact versions or commits"). - [PASS] Related / duplicate / conflict check: Cleanly repairs regressions from #555 and #505; disjoint from open #540 (
helios/src/scheduler/cost.rsaddsobserved_compute_duration_ns, non-overlapping withfresh_duration) and sibling #613. - [WARN] Tests & verification evidence: Thorough local Rust, TLA+, and CPU Python test evidence was collected against
f7256584and an earlier pre-rebase base rather than head3343f13, and the failing CI check on3343f13is unexplained in the PR description.
Blockers
None.
Should Fix
-
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:29runsuv sync --extra prepare --extra testwithout--locked(core Flare removeduv.lockin17bb3c4a, moving lock ownership tohyperflare-recipesperAGENTS.md:254-256) whilepyproject.toml:47tracksflashinfer-pythononbranch = "main". Every PR and push tomain(nopathsfilter) 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]), buildsflare-heliopauseviamaturin(heliopause/pyproject.toml:1-3), and then runstests/preparation/test_core_protection.py:30,367, which executes two additional Rust builds into separate target directories (helios/target/debugandflare-cli/target/release). On standardubuntu-24.04runners (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 / constrainpython-cpu.ymlwithpathsfilters and sharedCARGO_TARGET_DIR+ runner disk cleanup, or separate lightweight pure-Python tests from the heavy--extra prepare+ Cargo-building tests liketest_core_protection.py).
- Verified behavior/impact:
-
Undocumented
ignition→ignition-corerename in core-only CLI and signing docs (pyproject.toml:15):- Verified behavior/impact:
pyproject.toml:15changes the core console script fromignitiontoignition-core(the right way to avoid clobberinghyperflare-recipes's.venv/bin/ignitionwithout adding plugin discovery; do not add anignitionshim inpyproject.toml, which would reintroducehyperflare-recipes#20). While recipe-specific doc examples (export qwen3.8-flash,debug-serve glm-5.3-flash, etc.) still run underhyperflare-recipes's.venv/bin/ignition, core-only documentation is now stale:docs/cli-design.md:57-62explicitly describes installing coreignition(uv sync --locked --extra prepare --extra test) and running.venv/bin/ignition/uv run --locked --extra prepare ignition ...(neitheruv.locknor.venv/bin/ignitionexists in a core-only venv).docs/signing.md:45,80,103instructs.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-261anddocs/contain zero mentions ofignition-core.
- Concrete fix: Update
docs/cli-design.md:57-62,docs/signing.md:45,80,103, andAGENTS.md:253-261to document that coreignitioninstalls.venv/bin/ignition-core(withpython -m ignitionworking everywhere) while.venv/bin/ignitionis provided byhyperflare-recipes.
- Verified behavior/impact:
Subtract / Simplify
- Deduplicate the covering-batch fold in
helios/src/runtime_core/selection.rs:175-181and: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_kindat:283). Extracting one privatecovering_batch(&execution.graphs, kind, active as u64) -> u64helper removes the duplication and makes alignment betweeneligible_widthsand the retention pass structural. - Collapse the two speculative
.any()scans inhelios/src/model/catalog.rs:212-237: The width-1 (:215-219) and width>1 (:227-231) checks differ only bygraph.token_capacity == 1vs> 1. A single local closurelet has_speculative = |batch: usize, width_one: bool| ...cuts ~10 lines while keepinganysemantics (intentionally notselect, which rejects multipledraft_tokensvariants for the same batch). - Remove orphaned
tests/components/causal_prefix_oracle.py: Deletingtests/components/test_vocabulary_commit_cuda.pyremoved the sole importer oftests/components/causal_prefix_oracle.py(verified 0 references across the repository at3343f13). Delete the 41-line file unless it is wired into a live test here.
Nits
ignition/direct/scheduler.py:450:from copy import deepcopyis imported insideRequest.__deepcopy__, whereas all other stdlib imports in the file are module-level (scheduler.py:34-38).- Because
.github/workflows/native-serving.yml(not opened) remains disabled until re-enabled separately, note clearly in merge/follow-up tracking that Rust CI is not yet active from this PR alone.
Dropped on verification
- Correctness Lens §1.1 (
cost.rs:265"globally switches prefix/terminal checkpointing back on with no opt-in/measurement"): Dropped.ignition/components/capacity.py:66-68(BATCH_CAPACITIESstarts at1) guarantees every first-party exported core includes batch1, soself.batches(kind).first()returns1—unchanged on all standard cores. It only fixes synthetic/custom cores without batch1(such aspolicy_tests.rs:3069), where hardcodedbatch: 1silently disabling checkpointing was a bug left over from #555. - Correctness Lens §1.2 (
cost.rs:265"metric/pricing span shrink — under-prices larger planned Snapshot batches"): Dropped as false/inverted. On cores declaring batch1,first()is still1(zero change vsmain); on batch-2-only cores like the citedpolicy_tests.rs:3069-3085,first()is2, which matches the exact single-lane snapshot batch the planner runs (whereas previouslyfresh_durationreturnedNone). Furthermore,checkpoints.rs:411,788prices an individual request's prospective copy before co-batching is known, so the smallest declared Snapshot batch is the correct single-lane baseline. - Correctness Lens §3.1 (
catalog.rs:146-170"generation_batchesover-broad forSpeculativegraphs; stricter contract without ABI bump"): Dropped. Including allGraphKind::Speculativegraphs ingeneration_batchesis desirable because a malformed manifest with an orphaned wide speculative graph at batchN(missing lifecycle or width-1 speculative graphs at batchN) should be rejected rather than silently accepted. Per-batch parity restores the pre-#555 contract (broken for two days by #555) and preserves single-batch subsets (helios/src/model/tests.rs:2127-2134) as well as all valid power-of-two and intermediate-batch cores. - Correctness Lens §3.2 (
selection.rs:175"filter ongeneration_kindinstead of\"speculative\""): Dropped as impossible.generation_kind(selection.rs:282) depends onenabled(:192), which depends onfixed(:188-191), which is computed fromeligible_widths(:190). Filtering"speculative"at:175is required andeligible_widthsis only consulted on speculative paths. - Correctness Lens §3.3 (sub-claims: "all ~35
.venv/bin/ignitioninvocations break" and "ship a transitionalignitionshim"): Partially dropped. Most of those ~35 invocations are recipe commands (export qwen3.8-flash,debug-serve glm-5.3-flash, etc.) that already requirehyperflare-recipes, which still owns.venv/bin/ignition; only the core-only setup and signing docs are affected (retained above). Shipping anignitionshim inpyproject.tomlwould directly reintroduce the warm-cacheuv syncclobber (hyperflare-recipes#20) this PR fixes. - Subtraction Lens S2 (
ignition/direct/scheduler.py:449-459"deleteMappingProxyTypeat:556and deleteRequest.__deepcopy__"): Dropped.Scheduler.validate(scheduler.py:556) wraps_core_parametersinMappingProxyTypespecifically so caller code holding aRequestreference cannot mutate resolved parameters after submission and breakcore_parameter_identitycheckpoint isolation (explicitly asserted bytests/direct/test_scheduler.py:867-868). KeepingRequest.__deepcopy__preserves that invariant cleanly. - Discovery Dossier / Correctness Lens ("deleted CUDA test coverage cannot be verified in this repo"): Dropped as low-signal. Both deleted files imported support modules (
draft_block_broadcast_support,vocabulary_commit_support,test_generation_logprobs_cuda) already removed in the prior repo split, making them uncollectable bypytest; deleting uncollectable leftovers is necessary to restore CPUpytestcollection.