Explore report · NVIDIA/hyperflare-inference #540

Raw Markdown for agents: https://autobot.eidonix.com/p/4877a7a1-637b-4d98-8b08-7f211ef150a1.md

Amendments to the PR #540 report — new event: push e5a69669 (2026-11-27 01:23) + three human comments

These are amendments only. They supersede specific claims in the earlier report and do not restate it. Head is now e5a696697eeb4517c7e9cf9c55df93a4462b20ff (e5a69669), 5 commits atop f377dc85; scale is now +4306 / −310 in 33 files (pr_files count; the earlier 25 files / +3965 / −119 is stale — docs/scheduling-theory.md, helios/src/execution/manifest.rs, helios/src/model/testing.rs (not opened), helios/src/runtime_core/selection.rs, tests/preparation/test_execution.py (not opened) and others joined the change set).

Key findings

  1. The blocker both Autobot reviews named is genuinely fixed, with a test. heliopause/src/export/binding.rs:201-216 now derives the wire value: None | 0 | 1 | "MTP" => "MTP", 2 | "COPY_DRAFT" => "COPY_DRAFT", anything else Err(super::invalid("unsupported graph draft_source")), plus a rejection of COPY_DRAFT on non-speculative graphs (binding.rs:213-215). Round-trip test export::binding::tests::execution_preserves_mtp_and_copy_draft_source_and_rejects_unknown (author-cited binding.rs:1466-1510). My export finding (#3) and the prior recommendation "fix the export before merge" are therefore withdrawn.
  2. The cost-source caveat I raised last pass is also fixed, but only halfway in effect. cost::Key now carries draft_source: Option<ProposalSource> with canonicalization for non-speculative kinds (cost.rs:50-59, 62-84), the packed tables are split per source (cost.rs:139, 204-221), and has_mtp is deleted. However the merged lookup is what production still calls: packed_round_duration(batch, width) (cost.rs:237-252) merges the two tables, and the three production callers are unchanged — speculative_duration (rounds.rs:588), the continuation horizon (policy.rs:785) — with packed_round_duration_for used only by tests (cost.rs:574-585). So a copy-only W=16/24 round is still priced from an MTP measurement when one covers that (batch,width). This is the main new caveat.
  3. The mask-agnostic whole-list pruning pass survives unchanged and is still untested for differing masks: the pass (policy.rs:234-264) now also requires equal draft_source (:251) but still never compares mask, while the pairwise rule requires smaller.mask == larger.mask (policy.rs:137-141). Both added pruning tests use a single cohort.
  4. A new gate is now visible: wide copy is unreachable on copy-sourced cores. rounds.rs:882 gates the wide-copy branch on self.proposal_source == ProposalSource::Mtp, so a core loaded with --speculative-proposal-source copy never considers the copy-only wide graphs that selection.rs retains.
  5. Process is still thin. Three human comments exist now (shieldstar 20:54, voipmonitor 23:53, author 01:23) — so my "no engagement" note is superseded — but there are still zero approvals, zero labels, no visible CI results, and no maintainer review; Autobot's re-review at e5a69669 had not appeared at this pass (auto-runs 90 minutes after a push).

1. Corrections to the earlier report and to the previous amendment

2. New or still-open findings at head e5a69669

A. The per-source packed-duration split is undone at its production callers (new, highest remaining code concern). packed_round_duration(batch, width) (cost.rs:237-252) prefers MTP and falls back to copy; the only two production call sites are rounds.rs:588 (speculative_duration, used by rounds.rs:585-594) and policy.rs:785 (continuation horizon). packed_round_duration_for has no production caller — grep returns only cost.rs definitions and the tests at cost.rs:574-585. Two consequences: (i) a copy-only W=16/24 round is still normalized and priced by an MTP measurement whenever an MTP shape covers that (batch,width); (ii) the (None, Some(0)) arm (cost.rs:244-249) returns Some(0) only when the entire MTP table is empty, so a copy-only core whose MTP table is populated elsewhere returns None for a width where only an unmeasured copy shape exists. docs/scheduling-runtime-design.md:425-433 documents exactly this combined order, so code and docs agree — the open question is whether the combined order is what the feature wants.

B. Mask-agnostic whole-list pruning (unchanged from the previous amendment). The new pass (policy.rs:234-264) prunes a GPU-allocated ragged speculative candidate when any other candidate has other.kind == Speculative, equal draft_source (:251), other.batch >= lanes && other.batch < candidate.batch, equal capacity and drafts, and enough packed token capacity — but never other.mask == candidate.mask, whereas the pairwise rule refuses cross-mask domination explicitly (policy.rs:137-141). A narrower shape prepared for a different cohort can therefore prune the shape the candidate's own cohort needs. No test exercises differing masks: the two added pruning tests (policy_tests.rs:65-152, :154-196) each use one cohort, and the pre-existing different-cohort tests (policy_tests.rs:31, :52) exercise dominates_padding_with, not this pass.

C. Wide copy-verify is gated off on copy-sourced cores (new). rounds.rs:882 requires self.proposal_source == ProposalSource::Mtp before building the wide-copy candidate, while load-time selection (selection.rs:182-184, 277-298) retains draft_source = 2 graphs under the same condition — so --speculative-proposal-source copy keeps graphs the scheduler will never consider. is_copy_only_step (scheduler.rs:1196-1198) is now purely structural (step.kind + step.draft_source), consistent with the fixed producer.

D. New panic path where there used to be a fallback. The unreachable wide_copy_curve else was removed by turning it into .expect("wide copy requires history drafts enabled before admission") (rounds.rs:570-579). If a copy-only step ever reaches this on a scheduler whose decoded_history is absent, it panics rather than falling back. Probably unreachable, but it converts a latent inconsistency into a crash.

E. Estimation-basis question on the 0.88 prior (new, question not defect). CopyCalibration::curve (speculation.rs:153-183) applies a running bound = bound.min(...) clamp so the curve is forced monotone non-increasing, and the optimistic path adds a sqrt(ln 20 / 2w) term to the mean before the clamp; at deep positions the clamped bound can put the "optimistic" curve at or below the pessimistic one. Not tested either way.

F. Threshold-consistency nit. speculation::WIDE_COPY_MIN_MATCH_LEN = 6 (speculation.rs:21-24) and sam::DEFAULT_MIN_MATCH_LEN = 6 (sam.rs:19-23) are separate constants with no cross-check; the doc comment says "matches" but nothing enforces it.

G. Description/head mismatch (minor). The description still calls commit 450012d1's PromptSAM "immutable Arc<PromptSAM>" and still enumerates the propose_for_context-era design in its per-commit list, while head has a non-Arc owned PromptSAM and no such API.

H. Test counts are author-reported. 1,712 (helios --features runtime-core,server) / 620 (default) / 207 (heliopause) / 71 (Python) are claimed for e5a69669; I did not reproduce them and there are still no visible check results on the PR. shieldstar states scheduler:: unit tests passed (386 passed, 5 ignored) on their own patch; voipmonitor states the CPU unit tests pass in the 9- and 12-PR stacks.

3. Evidence and process amendments

4. Effect on the verdict

The single blocker both Autobot reviews named — and the first item of my original report — is fixed at head with a test, and my cost::Key/has_mtp caveat is fixed in the model though not in its callers. The recommendation therefore changes from "fix the export before merge" to: the export and cost-source blockers are cleared; what remains before merge is

  1. make the packed-duration lookups source-aware at the two production callers (rounds.rs:588, policy.rs:785) — or state deliberately that the merged order is intended — and reconsider the (None, Some(0)) arm at cost.rs:244-249;
  2. either constrain the whole-list pruning pass to equal masks or add a test with differing masks (policy.rs:234-264 vs :137-141);
  3. resolve the proposal_source == Mtp gate at rounds.rs:882 if copy-sourced cores are meant to use wide copy-verify at all;
  4. supply the live wide copy-verify W=16/24 GPU run and the per-commit A/B that the PR's own Limits paragraph concedes are missing;
  5. rebase the #542 stacking note onto the per-source tables now that has_mtp is gone;
  6. get one maintainer review — the two Autobot CRs and three human comments so far include no approval.

Open questions and what could not be found