Explore scratchpad · NVIDIA/hyperflare-inference #608

Raw Markdown for agents: https://autobot.eidonix.com/p/ae9c76e7-c6a3-472d-a2cb-7b176bef7bd8.md

#1 [high] The change: size, scope, and headline fixes

PR #608 by lukealonso (COLLABORATOR), branch post-split-ci-blackout-lock-drift-an -> main, opened 2026-11-29 17:00, merged 2026-11-29 17:23 (23 minutes, 0 reviews, 0 comments). Head 3343f135. Size: 13 files, +226/-304.

Five independent fixes bundled:

  1. Helios catalog validation per-batch parity — helios/src/model/catalog.rs:130-238 (+81/-29).
  2. Helios speculative eligible_widths vs next_power_of_two — helios/src/runtime_core/selection.rs:175-181 + new test at :1899-1945 (+54/-1).
  3. Helios fresh_duration hardcoded batch 1 — helios/src/scheduler/cost.rs:264-266 + new test at :415-446 (+35/-1).
  4. Console-script rename ignition -> ignition-core — pyproject.toml:15 and tests/preparation/test_packaging.py:25.
  5. Request.deepcopy for MappingProxyType — ignition/direct/scheduler.py:449-459 (+12).
  6. CI: .github/workflows/native-serving.yml:31 adds --recipe minimax_m3; new .github/workflows/python-cpu.yml (+33).
  7. Test-double drift fixes in tests/preparation/{test_capture_roce_wait,test_transient_retention,test_core_protection,test_packaging}.py; deletion of tests/components/test_draft_block_broadcast_cuda.py (22 lines) and tests/components/test_vocabulary_commit_cuda.py (244 lines).

Deleted files account for -266 of the -304; deleted tests are the bulk of the removal. Description matches the diff file-for-file (no undeclared code changes found at file level).

#2 [high] Related work: #555 (intermediate batch capacities) is the direct cause of regressions 1 and part of 3

#555 "feat(capacity): add intermediate batch capacities 6, 12, and 24" by voipmonitor (COLLABORATOR), opened 2026-11-27 17:18, merged 2026-11-27 18:57, +456/-242, 31 files. Split from #542 (review comment 7221902720).

It touched exactly the three Helios files #608 fixes: helios/src/execution.rs, helios/src/execution/manifest.rs, helios/src/model/catalog.rs (+25/-23), helios/src/runtime_core/selection.rs (+48/-13), helios/src/scheduler/cost.rs (+37/-6), plus scheduler/*.rs, and Python ignition/components/capacity.py.

#555 kept REQUIRED_BATCH_CAPACITIES = [1,2,4,8,16,32,64] separate from BATCH_CAPACITIES = [1,2,4,6,8,12,16,24,32,64], and it is the commit that replaced the hardcoded batch lists in catalog.rs with the manifest-wide .any(...) checks that #608 says left validation incomplete. search_history on helios/src/model/catalog.rs confirms c9693765 (2026-11-27, "feat(capacity): add intermediate batch capacities 6, 12, and 24 (#555)") is the only change between #608 and the older e091689b.

So #608 is repair work for #555 — not a competing change but a follow-up from a different author (lukealonso) to voipmonitor's merged change. #555's own Autobot review (see item #555 discussion, 2026-11-27 18:50) was "Changes Requested" with 2 blockers; it merged anyway 7 minutes later. Neither review nor #555 mentions the batch-1 fresh_duration assumption or the next_power_of_two mismatch that #608 fixes, i.e. those were latent and only surfaced later.

#3 [high] Reach: docs still document .venv/bin/ignition, which this PR renames

The PR renames the console script at pyproject.toml:15 from ignition to ignition-core, but no documentation file is touched in the diff (13 files, all listed in the description; no *.md changed). References that still tell users/agents to run .venv/bin/ignition:

python -m ignition remains valid, so the docs' alternative invocation still works, and recipe repositories supply .venv/bin/ignition. But in a core-only venv (uv sync --extra prepare --extra test on this repo), .venv/bin/ignition no longer exists, so the documented command at docs/cli-design.md:59 and every example using it will fail for anyone following the docs in this repository. Description says only "python -m ignition is unchanged" and does not mention documentation. This is the clearest undeclared consequence of the change.

#4 [high] The why: a CI blackout the branch name admits ("post-split-ci-blackout")

PR #608's head branch is named post-split-ci-blackout-lock-drift-an — the author's own framing that this is post-CI-blackout repair, with an (apparently truncated) "lock drift" component too.

Facts:

Note the drift risk this creates: uv sync is used WITHOUT --locked, while the repo documents uv sync --locked --extra prepare --extra test (docs/cli-design.md:58) and the charter says "Be explicit and pin everything … pin dependencies to exact versions or commits" (charter "How We Work"). There is no uv.lock at the PR head (list_files uv.lock returns nothing), so uv sync resolves the prepare extras — including flashinfer-python from a moving branch = "main" git source (pyproject.toml:47) and torch==2.14.1+cu132 — on every PR. This is the same "uv.lock along FlashInfer main" area as commit 2925c555 (2026-11-20, "Automatically advance uv.lock along FlashInfer main in GitHub Actions").

#5 [high] The change: what the code actually does, verified at head

Verified at PR head:

  1. catalog.rs:130-191 — lifecycle_batches collects batch_capacity of Init/Restore/Snapshot/Resume graphs that also have token_capacity==1, prefill_capacity==0, sampling_mode==General (:133-140); empty -> "prepared model lacks lifecycle graphs" (:143-145). generation_batches is Decode (only when speculative_widths empty) or any Speculative graph (:146-160); empty -> "prepared model lacks Decode/speculative graph" (:161-168). required_batches = union (:169-170). For each batch it calls select(...) for the four lifecycle kinds and, when non-speculative, Decode (:171-191). Note the asymmetry a reader should know: required_batches is the union of declared lifecycle and generation batches, so it validates parity only over batches that appear in at least one of the two sets — it does not reach for batch buckets declared only by other graph kinds (e.g. Mixed/Prefill/Vision).
  2. catalog.rs:212-238 — for speculative cores it now requires, per batch in required_batches, a width-one Speculative graph in the raw manifest (.any, not select), and additionally a token_capacity > 1 Speculative graph whenever batch * 2 <= config.speculative_token_capacity (:225-232). Old code checked this only manifest-wide (:212-238 before).
  3. selection.rs:175-181 — speculative_max_batch = min batch_capacity over kind=="speculative" graphs with batch_capacity >= active, falling back to active. Used at :182-187 in the eligible_widths filter instead of active.next_power_of_two(). This now matches the max_batch retention pass at selection.rs:283-289 (same filter, same min() shape, over generation_kind = "speculative" when speculation is enabled) — so the two passes can no longer disagree.
  4. cost.rs:264-269 — fresh_duration uses self.batches(kind).first().copied()? (smallest declared batch for the kind, since batches is sorted+deduped at cost.rs:179-186) instead of a literal batch: 1. None when the kind declares no batches (hence the new test's first assertion of None). Downstream effect: fresh_duration(Snapshot, 1) gates prefix checkpointing at scheduler/checkpoints.rs:411-413, :727, :788 — each returns early (no checkpointing / no cost-based refresh) when it is None.
  5. selection.rs:1899-1945 new test eligible_widths_follow_covering_max_batch_instead_of_next_power_of_two: sets max_active=8, adds lifecycle+width-one speculative graphs for batches 6 and 8, puts wider width 8 only on batch 8, selects max_concurrency: Some(5), and asserts the error contains "no captured speculative width fits" — i.e. the width present only on the dropped batch must not be eligible.
  6. cost.rs:415-446 new test fresh_duration_uses_smallest_declared_batch_when_batch_one_is_absent: a Snapshot graph at batch 2 only; fresh_duration(Snapshot,1) is None before set_measured and the measured value after.
  7. ignition/direct/scheduler.py:449-459 — Request.__deepcopy__ memoizes self, re-wraps any MappingProxyType attribute in a fresh MappingProxyType(deepcopy(dict(value), memo)), and deep-copies everything else. The proxy is installed at scheduler.py:556 by Scheduler.validate (request._core_parameters = MappingProxyType(layout.resolve_core_parameters(...))), introduced by #505 (jcartu, merged 2026-11-28). Callers that hit it: ignition/bench/runner.py:424 and :435 (deepcopy(baseline, {id(layout): layout})) and tests/bench/test_runner.py:55,57.
  8. tests/preparation/test_core_protection.py:452-453 now asserts 'unknown core publisher' (matches helios/src/runtime_core/protection.rs:995 "unknown core publisher; supply a matching publisher verification profile") and drops the old assertion on the huggingface URL; :733 asserts 'safetensors data length differs from model core' (matches helios/src/runtime_core/archive.rs:134). The old strings ("publish the key in publisher.json", "payload length") are gone from the tree — search_code finds no "publish the key in".
  9. tests/preparation/test_capture_roce_wait.py:27-28,38-40 adds forward.capture_allocation_sizes = (), forward.retire_after_capture = lambda: None, group=None on the coordinator namespace, and monkeypatches capture.torch.distributed.all_gather_object; test_transient_retention.py:119 adds forward.capture_allocation_sizes = ().
  10. python-cpu.yml:31 runs the whole of tests/ (pytest tests/ -q), not a subset.

#6 [high] Related work: lineage and blame for each regression #608 repairs

Lineage of each of the five disciplines in #608, from search_history on the touched files:

#7 [high] Related work: the web of PRs around #608

#8 [high] Charter fit, process, community, evidence base, and reach

CHARTER (read_charter, cited by section/quote):

PROCESS:

COMMUNITY: zero engagement — no review, comment, reaction, or linked discussion besides #490/#574 mentions. Contrast: #555 drew an Autobot Changes-Requested review (2 blockers) and still merged 7 min later; #505 drew an Autobot review and a follow-up issue #599.

REACH / USERS: