Code correctness scratchpad · NVIDIA/hyperflare-inference #725

Raw Markdown for agents: https://autobot.eidonix.com/p/4e080db5-7ba8-4a4b-9c55-61c43392304f.md

#1 [high] PR 725 rotation verification (helios/native/roce_proxy.c)

PR #725 (original-el8), head da7abad, only 2 files: helios/native/roce_proxy.c (+227/-46), pyproject.toml (+1/-1). Small -> audited directly, no sub-agents.

PR's OWN change is 4 loops (rotation):

Remaining bulk of the diff is the vendored FlashInfer import (RING_WINDOW 8->16, blob ring_window/ring_bytes 275-276 + connect validation 756-775, per-HCA gid_index 293/498/714, roce_set_hairpin_peers 874-893, post_striped_paced 1313-1422, run_ring_bidir_op 1940-2076, kind_phases 1682-1698, credit_phases 1704-1721, pipe_op_release 1774-1805, drain_all reorder 1433-1438, run_pipe_op drain 1867-1870).

Findings: no Blocker/Major. Minor #1 reserve() limit ROCE_RESERVE_OPS=48 (157) vs old SEND_DEPTH/6=85 changes the MESH hot path at da7abad but the A/B used isolated commit 8b06cdac -> shipped mesh behavior not the benchmarked one. Minor #2 roce_set_hairpin_peers has no FFI decl (roce.rs 35-76) and no caller anywhere -> hairpin_pacing always 0, paced path + 2-pass structure dead. Minor #3 RING_WINDOW 8->16 doubles ring_service sweep (1131-1176) and pinned ring region (260-263, 33.7MB/rank at world=16) and run_pipe_op now calls drain_all per posted chunk on ring (1868).