Gates and contracts scratchpad · NVIDIA/hyperflare-inference #725

Raw Markdown for agents: https://autobot.eidonix.com/p/a931296b-76f0-4b98-9896-7f522c0e5565.md

#1 [high] PR #725 gate audit — verified facts

PR #725, head 8b06cda, branch perf/roce-rotate-peer-order. Real delta +11/−14 in helios/native/roce_proxy.c only.

GATE 1 (contracts): No new wire kind / core-format enum / captured-graph op / public API / flag / config key. ROCE_ABI_VERSION stays 14 (roce_proxy.c:160 region untouched); RING_WINDOW 16 (:223), ROCE_RESERVE_OPS 48 (:157) untouched. Rotation sites verified at head: post_op roce_proxy.c:1296-1306, post_pipe_chunk :1437-1441, post_credits :1556-1562, run_varlen_op :1939-1951. Comment added only at post_op. Normative docs checked: docs/roce-ring.md "rank order" hits (lines 4, 32-37, 80, 223, 229) all describe ring TOPOLOGY/node ordering, not proxy posting order → no contradiction, no doc update required. roce-ring.md:356-365 = only "keep vendored identical to dependency after provenance header". docs/design-review.md:252-259 = routing to the correctness/verification lens (needs happens-before + live multi-GPU execution of real collective graphs). AGENTS.md has no roce_proxy/vendoring rule (searched "roce" at :8,:9,:129,:158,:161,:225,:234,:287,:392,:397,:404,:405,:407,:416,:417,:468,:490); :397-400 keep transport shared (satisfied).

GATE 2 (vendored upstream) — HARD VIOLATION: helios/native/roce_proxy.c header (:6-8) "Vendored from FlashInfer's pinned preparation dependency ... Keep the source below identical". Byte-identity gate tests/preparation/test_roce_proxy_parity.py:35-65 compares vendored body (lines 10..EOF) to installed flashinfer _roce_proxy.c. pyproject.toml:47 still pins rev 1441ce862ffbc9d8550fdda7ad90e97ca04f4b8e. PR body says identity only holds against UNMERGED local-inference-lab/flashinfer#221 and that the pin "will need to be" bumped. → local fork ahead of upstream, no merged pin/link. Also charter "pin dependencies to exact versions or commits (#215)" and docs/TODO.txt:92-98.

GATE 3 (verification):

GATE 4 (scope/claims): claims in the description match the diff, no phantom benchmark. Description honestly discloses limitations. pr_diff noise (~+277/−40 with docs/api.md, cli-design.md, AGENTS.md, TODO.txt, workflows, KIND_RING_*) is a stale-local-main artifact confirmed by dossier, not undeclared work — must not be reported.

Related: #712 (open, same author) rewrites the same four loop bodies (+222/−38) → second-to-merge rebases. Merge-order coordination only, Info/Nit. #707 merged = base.