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)
- The PR has now been formally reviewed, and the reviewed head is not the current head. flare-autobot posted Changes Requested at
224fb40on 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: "Pushedc9df77bdaddressing 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 verifiesc9df77bd; the three fixes below are verified by code reading only, not by the reviewer. - All three substantive review findings are genuinely fixed at
c9df77bd(code-verified; see §B), including the blocker — the unorderedswap_removethat desynchronisedinflight_iofrom the io_uring SQ FIFO. - One real residual risk remains in the same area, and it is the one the watchdog cannot cover:
GraphExecutor::closesynchronises with no timeout after the last progress mark, so a driver-level hang there still ends instd::process::abort()at ~150 s (§B4). - 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_filesat head lists 17 files, none under.github/;pr_difffor.github,native-serving.yml(not opened),ymlreturns 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). - 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
224fb403while only the formal and targeted suites were re-run onc9df77bd. Detection correctness still rests on a pure-policy unit test plus that one run. - New behaviour change not previously reported: a persistent
EINTRstorm now terminates the flush withErrorCode::IoFailureinstead of retrying forever, andall_nvlink_p2pnow fails safe toward enabling the gate on one-way NVLink links.
A. The review round, in detail
- Autobot's blocker:
swap_removeincomplete_iodesynchronisesinflight_iofrom io_uring SQ FIFO order after a partial submit, somark_io_flushedmarks the wrong op andcomplete_io"silently drop[s] a live kernel CQE and permanently hang[s] GPU demand waits and leak[s] pinned pools intoFailedDrain." - Should-fix (a):
RankWedgeWatchdog::CloseStalled"aborting progressing/multi-stage teardowns" — it abortedclose()on a fixed 150 s wall clock without tracking teardown progress. - Should-fix (b):
best_effort_drain_peers"can drop unjoinedJoinHandles for healthy peers that already sentReply::Drainedwhen an earlier peer consumes the shared 120 s timeout." - Pre-merge checks: security ✅, charter/value fit ✅ ("Directly addresses reproducible P1 release bug #722 on target SM120 PCIe hardware using topology-derived gating with no per-model branches"), ⚠️ related/duplicate (serialise with #726/#723), ⚠️ tests/verification ("the live run used a different core/workload than #722 and existing
AsyncTransfertests did not catch theswap_remove/partial-flush ordering bug"). - This is the first outside assessment of the PR that exists at all; previously there were zero reviews and zero comments. It is an automated review, so human review independence is still absent.
B. Verified fixes and residue at c9df77bd
- Blocker fixed.
complete_ionow uses ordered removal with an explicit rationale comment: "Preserve submission order matching the kernel io_uring SQ FIFO somark_io_flushedalways marks the oldest unsubmitted reads" (helios/src/async_transfer/scheduler.rs:583-585). Regression testpartial_flush_preserves_sq_fifo_order_across_completions(scheduler.rs:1128).complete_dmakeepsswap_remove(scheduler.rs:747-748), which is correct because DMA order is not SQ-coupled. CloseStalledis now progress-aware. Whileclosing, the watchdog comparesthread_state.activityand only resetsclose_sincewhen the counter advances; the wedge fires only afterstall_timeoutof 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).- Round-robin peer drain.
best_effort_drain_peersis now a loop over all live peers using non-blockingtry_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 testbest_effort_drain_peers_joins_healthy_peers_even_when_earlier_peer_is_wedged(threaded.rs:4175): peer 0 wedged, peer 1 pre-queuedDrained, peer 2 async; asserts the wedged peer is not joined, both healthy peers are. - Residual (new finding). After the
record_progress()atthreaded.rs:1240,self.local.close()runs with no further progress marks before the watchdog is dropped, andGraphExecutor::close(helios/src/execution/transport.rs:1354-1391) synchronises compute/copy/engram streams with no timeout. A driver-level hang there still ends instd::process::abort()afterTIMEOUT + 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
EINTRretry is now bounded.MAX_EINTR_RETRIES: usize = 16consecutive attempts, reset on any success, then theEINTRis returned as an error (helios/src/async_transfer/io_backend.rs:146-170); the test asserts exactly 16 calls then an error withqueuedunchanged (io_backend.rs:463-470). Consequence: a persistentEINTRstorm surfaces as a flush error recorded asheader.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.all_nvlink_p2prequires 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_policyitself 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).- Peer closure cached once.
NativeResourcesgainedpeer_refs: Option<(HashSet<String>, Vec<(u64,u64)>)>(runtime_core/mod.rs:127-130), computed inprepare_kernelsand consumed viatake().unwrap_or_else(...)inprepare_graphs(mod.rs:1119-1125). A simplification, not a semantic change. - The
async_transfers+Node::Copy(Memory::Peer)rejection moved to load time only in this push. At224fb40the prepare-time guard still existed; it is now gone fromprepare_async_transfers, and the check lives solely invalidate_async_transfer_peer_copy_compatibility(has_peer_copy_nodes, &cores)(model.rs:191-207). BecauseNativeResources::load_prepared(mod.rs:510-532) never calls it, the policy is enforced only on theNativeModel::loadpath — worth flagging for any other construction path. AsyncTransferRuntime::rank()public accessor removed (no in-tree caller remained) — a small API-surface reduction for anyone out-of-tree.docs/api.md:403-405now says theflare_async_transfer_*series are "labeled bychanneland the globalrankID". The semantics are documented, but the doc still does not say the label previously meant a flat per-process channel index, so dashboards keyed onrankstill shift silently. The code side is the fix to #721's.enumerate():let rank = s.rank;(helios/src/server/metrics.rs:1567).- Description rewritten in before/after form per cluster, and now states the
std::process::abort()remedy explicitly ("terminating the process viastd::process::abort()if a rank remains wedged pastTIMEOUT + 30 sgrace"), the 16-retryEINTRbound, and themax_total_io <= 32rationale. Evidence section: formal + targeted runs re-run onc9df77bd; full-crate pass and live TP4 serving run remain on224fb403; 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
- Size/file count: now 17 files, +2234/−253, not 16 files/+1973/−221 (
pr_files). - CI-workflow caveat: void. No
.github/file is changed;pr_difffor.github,native-serving.yml(not opened) andymlall report no matching file. The two workflow hunks seen earlier were base drift from the stale localmain. abi/"now rejected at load rather than at prepare": only true fromc9df77bdonward (see C4).- "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.
- "
EINTRretry" described as unbounded retry: it is bounded at 16 (see C1). - "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
- The live run is still not the #722 reproduction. #722 hung at 32,768-token inputs, concurrency 4,
--prefix-cache-memory 256G,--scheduler-policy balanced, on a 177-graph/rank core where 145 graphs were ungated (issue #722, "Code-level findings"; environment: 4× RTX 6000D SM120, driver 580.178.04, flare 0.5.39cd0cfad). The PR's live run uses ~13k-token requests, 20 concurrent, 4G prefix cache, 135 graphs/rank. Same deadlock class plausibly; the workload is not. - No patched-vs-unpatched comparison, and the reporter's own control (
--prefix-cache-memory 0, completed 21 cases/105 rounds, 0 failures) additionally differed in--scheduler-policy throughputvsbalanced. - Detection correctness is untested for the real case.
copy_gate_policy_*tests exercise a pure function of synthetic booleans (model.rs:1662-1677); no test loads a core that combinesExecution.async_transferswithNode::Copy(Memory::Peer), and no test asserts that a DeepSeek-V4.1-Flash-class core gates more than 32/177 graphs. - Watchdog remedy is process death, not recovery (
threaded.rs:1026), still a mitigation above #722's root cause — but now disclosed. - Reporter
egtoken-aihas still not engaged; issue #722 has 0 comments ("Discussion (0)"), so "fixes #722" remains unacknowledged by the person who filed it. - Review independence is still zero. The author wrote #628, #711 and #721 (the code being fixed and refined) and is the only recent contributor in these files; the sole review is automated, and its verdict on the new head is not yet published.
- Chartership/fit, people, community and the lead-by-lead disposition of related items are unchanged from the earlier report.