Explore report · NVIDIA/hyperflare-inference #727

Raw Markdown for agents: https://autobot.eidonix.com/p/6ab36703-a1bd-4f2a-a591-8bfa4c52c8c7.md

Amendments to the case file for PR #727 — new event: first review round and a new head

Scope note: this supersedes the report of run 3315 (head 224fb40). Only amendments are recorded below; everything not listed stands as written, except where the errata in §D explicitly void a prior claim.

Link: https://github.com/NVIDIA/hyperflare-inference/pull/727 · fixes #722 · branch fix-helios-p0s · head c9df77bd (was 224fb40) · 17 files, +2234 / −253 (was 16 files, +1973 / −221) · labels now present: bug, performance, priority:P1, triage:review · no human reviewers · reporter has not commented.

Key findings (new)

  1. The PR has now been formally reviewed, and the reviewed head is not the current head. flare-autobot posted Changes Requested at 224fb40 on 2026-12-04 18:15: 1 blocker, 2 should-fix, 3 simplify, 4 nits, merge risk "High" (pr_comments, autobot review). The author replied at 22:34 UTC: "Pushed c9df77bd addressing all review findings … plus all 3 simplifications and 4 nits … with regression tests and updated PR description." Auto re-review runs 90 minutes after a push, so no review artifact yet verifies c9df77bd; the three fixes below are verified by code reading only, not by the reviewer.
  2. All three substantive review findings are genuinely fixed at c9df77bd (code-verified; see §B), including the blocker — the unordered swap_remove that desynchronised inflight_io from the io_uring SQ FIFO.
  3. One real residual risk remains in the same area, and it is the one the watchdog cannot cover: GraphExecutor::close synchronises with no timeout after the last progress mark, so a driver-level hang there still ends in std::process::abort() at ~150 s (§B4).
  4. Two of my earlier caveats must be withdrawn. The .github/ workflow hunks in the raw diff were base drift, not part of the PR (pr_files at head lists 17 files, none under .github/; pr_diff for .github, native-serving.yml (not opened), yml returns no matching file). And the description now does state the watchdog's abort remedy, so the charter root-cause tension is a disclosed design choice rather than an omission (§D).
  5. The evidence base is unchanged and still the weak point. The live SM120 TP4 run is still not the #722 workload, there is no patched-vs-unpatched comparison, and the full-crate pass and live run remain dated 224fb403 while only the formal and targeted suites were re-run on c9df77bd. Detection correctness still rests on a pure-policy unit test plus that one run.
  6. New behaviour change not previously reported: a persistent EINTR storm now terminates the flush with ErrorCode::IoFailure instead of retrying forever, and all_nvlink_p2p now fails safe toward enabling the gate on one-way NVLink links.

A. The review round, in detail

B. Verified fixes and residue at c9df77bd

  1. Blocker fixed. complete_io now uses ordered removal with an explicit rationale comment: "Preserve submission order matching the kernel io_uring SQ FIFO so mark_io_flushed always marks the oldest unsubmitted reads" (helios/src/async_transfer/scheduler.rs:583-585). Regression test partial_flush_preserves_sq_fifo_order_across_completions (scheduler.rs:1128). complete_dma keeps swap_remove (scheduler.rs:747-748), which is correct because DMA order is not SQ-coupled.
  2. CloseStalled is now progress-aware. While closing, the watchdog compares thread_state.activity and only resets close_since when the counter advances; the wedge fires only after stall_timeout of no activity (helios/src/execution/threaded.rs:679-693, record_progress() at :590). record_progress() is threaded through every close stage (:1125, :1144, :1216, :1229, :1240, :1282, :1338).
  3. Round-robin peer drain. best_effort_drain_peers is now a loop over all live peers using non-blocking try_recv(), joining healthy peers in any order against one shared deadline, with a 1 ms sleep only when nothing moved (threaded.rs:1309-1357). New test best_effort_drain_peers_joins_healthy_peers_even_when_earlier_peer_is_wedged (threaded.rs:4175): peer 0 wedged, peer 1 pre-queued Drained, peer 2 async; asserts the wedged peer is not joined, both healthy peers are.
  4. Residual (new finding). After the record_progress() at threaded.rs:1240, self.local.close() runs with no further progress marks before the watchdog is dropped, and GraphExecutor::close (helios/src/execution/transport.rs:1354-1391) synchronises compute/copy/engram streams with no timeout. A driver-level hang there still ends in std::process::abort() after TIMEOUT + WATCHDOG_GRACE = 150 s (threaded.rs:23-25, spawned with that timeout at :1017-1028, std::process::abort() at :1026). So the review's should-fix is fixed for the stages, not for the final driver synchronisation.

C. New deltas in c9df77bd that the earlier report did not have

  1. EINTR retry is now bounded. MAX_EINTR_RETRIES: usize = 16 consecutive attempts, reset on any success, then the EINTR is returned as an error (helios/src/async_transfer/io_backend.rs:146-170); the test asserts exactly 16 calls then an error with queued unchanged (io_backend.rs:463-470). Consequence: a persistent EINTR storm surfaces as a flush error recorded as header.last_error = ErrorCode::IoFailure (helios/src/async_transfer/worker.rs:1245-1249) instead of retrying forever — a user-visible failure mode, and the description now states the bound.
  2. all_nvlink_p2p requires NVLink P2P status in both directions and treats a one-way-only link as not-all-NVLink (helios/src/runtime_core/model.rs:152-172), i.e. it fails safe toward gating more graphs. copy_gate_policy itself is unchanged: gate_peer_access = local_ranks > 1 && !all_nvlink, enable_gate = has_peer_copy_nodes || (gate_peer_access && has_peer_access_graphs) (model.rs:176-185).
  3. Peer closure cached once. NativeResources gained peer_refs: Option<(HashSet<String>, Vec<(u64,u64)>)> (runtime_core/mod.rs:127-130), computed in prepare_kernels and consumed via take().unwrap_or_else(...) in prepare_graphs (mod.rs:1119-1125). A simplification, not a semantic change.
  4. The async_transfers + Node::Copy(Memory::Peer) rejection moved to load time only in this push. At 224fb40 the prepare-time guard still existed; it is now gone from prepare_async_transfers, and the check lives solely in validate_async_transfer_peer_copy_compatibility(has_peer_copy_nodes, &cores) (model.rs:191-207). Because NativeResources::load_prepared (mod.rs:510-532) never calls it, the policy is enforced only on the NativeModel::load path — worth flagging for any other construction path.
  5. AsyncTransferRuntime::rank() public accessor removed (no in-tree caller remained) — a small API-surface reduction for anyone out-of-tree.
  6. docs/api.md:403-405 now says the flare_async_transfer_* series are "labeled by channel and the global rank ID". The semantics are documented, but the doc still does not say the label previously meant a flat per-process channel index, so dashboards keyed on rank still shift silently. The code side is the fix to #721's .enumerate(): let rank = s.rank; (helios/src/server/metrics.rs:1567).
  7. Description rewritten in before/after form per cluster, and now states the std::process::abort() remedy explicitly ("terminating the process via std::process::abort() if a rank remains wedged past TIMEOUT + 30 s grace"), the 16-retry EINTR bound, and the max_total_io <= 32 rationale. Evidence section: formal + targeted runs re-run on c9df77bd; full-crate pass and live TP4 serving run remain on 224fb403; CI (lifecycle, kani, pytest) reported green — the author's claim, not an artifact that can be read from the PR; unrun list unchanged (SM103/SM121 hardware, multi-host RoCE, local Kani, 6 template tests blocked on HF 403).

D. Errata — stale claims from the earlier report

  1. Size/file count: now 17 files, +2234/−253, not 16 files/+1973/−221 (pr_files).
  2. CI-workflow caveat: void. No .github/ file is changed; pr_diff for .github, native-serving.yml (not opened) and yml all report no matching file. The two workflow hunks seen earlier were base drift from the stale local main.
  3. abi/"now rejected at load rather than at prepare": only true from c9df77bd onward (see C4).
  4. "Description does not disclose the abort": no longer true (see C7). The charter tension ("don't just swallow, skip, or retry an unexplained error") remains as a design question, not an omission.
  5. "EINTR retry" described as unbounded retry: it is bounded at 16 (see C1).
  6. "No labels / no CI result / no reviews": labels are now present, the description reports CI green (unverifiable from the PR page), and one automated review exists — still no human reviewer.

E. Unchanged and still open