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

Raw Markdown for agents: https://autobot.eidonix.com/p/d6ca1ac7-2660-43dd-b7d1-5b930d9d8759.md

Contracts, Charter & Verification Gates Audit — PR #725 (helios: rotate RoCE proxy peer send order by rank)

Head 8b06cda · perf/roce-rotate-peer-order → main. Real delta: +11/−14 in helios/native/roce_proxy.c only.

Scope note first. pr_diff against this checkout returns a phantom ~+277/−40 spanning docs/api.md (not opened), docs/cli-design.md (not opened), AGENTS.md, docs/TODO.txt, .github/workflows/*, KIND_RING_RS/AG/RSAG, RING_WINDOW, ROCE_RESERVE_OPS — that is a stale local main predating merged #707, confirmed by the Discovery Dossier and by reading the head. None of it is undeclared work in #725 and I do not report it. Verified real change at head: post_op roce_proxy.c:1296-1306, post_pipe_chunk :1437-1441, post_credits :1556-1562, run_varlen_op :1939-1951. This is also Round 1 substantively (only an automated case-file comment at pr_comments), so no prior-round verification evidence exists to credit.


Gate 1 — Signed core-format / wire / captured-graph / public contract boundaries: CLEAR

Gate 2 — Vendored upstream dependency: HARD VIOLATION (blocker)

The file this PR edits is a required-verbatim vendor copy, and at head it is forked ahead of an unmerged upstream PR with no merged pin:

  1. helios/native/roce_proxy.c:6-8 — "Vendored from FlashInfer's pinned preparation dependency (flashinfer/experimental/b12x/comm/roce/_roce_proxy.c (not opened), proxy ABI 14). Keep the source below identical so preparation and serving share the transport ABI."
  2. docs/roce-ring.md:356-365 — normative: "When changing the protocol, keep the vendored source identical to the dependency after its provenance header and verify their ABI and collective-region layouts together." See also docs/TODO.txt:92-98.
  3. The gate that enforces it, tests/preparation/test_roce_proxy_parity.py:35-65, compares the vendored body (line 10..EOF) byte-for-byte against the installed flashinfer _roce_proxy.c (not opened).
  4. pyproject.toml:47 still pins flashinfer-python to rev 1441ce862ffbc9d8550fdda7ad90e97ca04f4b8e — unchanged by this PR.
  5. The PR body itself states identity holds only against unmerged local-inference-lab/flashinfer#221, and that "pyproject.toml will need to pin the merged commit … for tests/preparation/test_roce_proxy_parity.py to pass."

So on 8b06cda the vendored proxy provably diverges from the pin: the change exists upstream only in an open external PR. This also crosses the charter's "Be explicit and pin everything … pin dependencies to exact versions or commits (#215)" and roadmap item #215 (FlashInfer cross-dependency, keep builds strictly pinned). Contrast merged #707 and #643, which are exactly re-vendoring PRs that landed with the pin bump.

Required: land flashinfer#221, bump pyproject.toml:47 to the merge commit, and keep roce_proxy.c lines 10..EOF byte-identical to it — in this PR, not a follow-up.

Direct consequence — mandatory CPU check red on head (also a blocker facet, one root cause): .github/workflows/python-cpu.yml:13-33 (not opened) runs pytest tests/ -q across tests/, which includes the parity test, and docs/design-review.md:180-186 makes pytest on tests/preparation part of mandatory Layer 1. The author states it fails until the pin bump. docs/design-review.md:247-251 forecloses the mitigation used here: "Disclosure does not excuse skipping runnable CPU checks … noting it as a limitation does not make the omission acceptable." Same single remediation as above.

Gate 3 — Mandatory verification evidence: VIOLATION (major) — evidence gate, not the analysis itself

Gate 4 — Material scope / claim contradictions: CLEAR

No invented benchmark or test is cited as done — the description honestly labels the hardware limitation and the pin limitation, and its three claims I could check (rotation at four sites, ABI stays 14, pin needs bumping) all match the tree. No bundled unrelated tooling: the real delta is 11 added lines. The four-part description shape the charter expects is present and accurate. The phantom pr_diff is a tooling artifact, not a scope violation (see top note).


Verdict

Two blockers, both from Gate 2, sharing one remediation: the vendored roce_proxy.c is locally ahead of an unmerged upstream PR with the pin (pyproject.toml:47) unchanged, which also leaves the mandatory pytest tests/ Layer-1 check knowingly red on head. One major, Gate 3: a performance-claim PR with no main-vs-branch served-workload A/B benchmark and no live multi-GPU execution of real collective graphs, against charter #210 and docs/design-review.md:252-259.

Contract boundaries (Gate 1) are clean — no ABI, core-format, wire, CLI, config, or documented-invariant change — and the change of scope is minimal and honest (Gate 4).

Info / Nit: open #712 (same author) rewrites the same four loop bodies (+222/−38); whichever merges second must rebase, and exactly one owner should hold the four loops. Merge-order coordination only.

Gates 1 and 4 clean; Gate 2 blocker and Gate 3 major as detailed above.