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

Raw Markdown for agents: https://autobot.eidonix.com/p/a561e72f-0d40-468f-8bd6-d890173a8d14.md

Contracts, Charter & Verification Gates Audit — PR #707 (head 81ef561)

Scope: docs/design-review.md, AGENTS.md, docs/roce-ring.md, docs/multi-host.md, vendored upstream pin, and Layer‑1–3 verification gates. Algorithmic correctness is out of scope.


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

Gate 2 — Vendored upstream dependencies & cross-PR conflicts: VIOLATION (Major)

  1. Pin points at an unmerged upstream branch commit. pyproject.toml:47 moves flashinfer-python to 524799c47fca54229c15b6db12261171854a7b7d, the commit of the still-open local-inference-lab/flashinfer#213. The merge-order section of the PR admits it must be repinned after that PR's squash-merge. The directly preceding precedent #643 re-vendored from a merged commit, and #672/#649/#577 were blocked repeatedly by review for exactly this. helios/native/roce_proxy.c:6-9 documents the upstream path and ABI but names no upstream SHA and no body hash (the SHA and SHA-256 exist only in the PR body), so the pin is not traceable from the tree.
  2. No uv.lock exists in the repository (verified: list_files *lock* at main returns only Cargo.lock files). docs/roce-ring.md:336 still instructs readers to check out "the revision pinned in uv.lock", which does not exist. The consequence is that the new parity test (tests/preparation/test_roce_proxy_parity.py:35-65, run by .github/workflows/python-cpu.yml:29-33 (not opened)) compares the vendored file against whatever git rev resolve to at install time; a force-push or squash of the FlashInfer branch breaks main CI with no repository-side lock to fall back on.
  3. Unmerged external dependency not pinned or linked. The claimed prefill gain requires local-inference-lab/hyperflare-recipes#114 (unmerged); the PR links it and states the merge order, so it is disclosed, but the branch cannot deliver the claimed 8K–128K prefill improvement without it.
  4. Cross-PR collision on the same vendored file. items_touching helios/native/roce_proxy.c shows #672, #649, #577 all still open on the same file. This PR states it "unifies and supersedes" all three, closes none, and leaves no comment or credit on those PRs — two of whose authors are first-time contributors. After merge, three open PRs become unmergeable. That is a duplication of in-tree contribution contrary to "Respect contributors" (AGENTS.md:199-212), and it must be discharged before merge (close with credit), not merely noted.

Gate 3 — Mandatory verification evidence & failing tests: VIOLATION (Blocker)

No CI failure and no failing test is reported or visible for 81ef561 — the single flare hub test that failed once is described as passing on immediate re-run, which is correctly disclosed. Layer‑1 crate tests were run with --release for helios (1,831), flare (247), flare-cli (247), heliopause (229), plus tests/preparation and tests/cli; cargo check was not substituted for cargo test. The new CI step (.github/workflows/native-serving.yml:114-115 (not opened)) genuinely closes the execution::roce blind spot. None of that is the problem.

The blocker is the mandatory layer above:

"Multi-GPU collective execution is mandatory for TP dispatch and transport changes. Replacing or reordering cross-rank launch, commit, cancellation, or drain paths in helios/src/execution/{threaded,parallel,roce}* requires an explicit before/after cross-rank happens-before analysis and live multi-GPU execution of real collective graphs (for example, serving a multi-GPU exported core through flare run), not only independent per-rank synthetic graphs. Disclosing busy or unavailable GPUs does not waive this requirement." — docs/design-review.md:252-259; reinforced by :247-251 ("Disclosure does not excuse skipping runnable CPU checks") and principle 12 (:106-115).

This PR reorders the transport setup path in helios/src/execution/roce.rs — roce_create_with_gids replaces roce_create (roce.rs:243-260), and roce_set_relay is inserted between roce_connect and roce_start (roce.rs:344-353) — and adds roce_create_with_gids to the serving FFI surface, on a file the rule names explicitly. What was actually executed is a single-host workstation, one active HCA (rocep82s0f0), 38 unit tests plus one live-HCA FFI smoke call. There is:

The PR explicitly lists "Multi-node RDMA serving, 4-node DGX Spark (SM121) prefill/decode throughput, and live switch-traffic reduction with roce_set_relay were not run" as limitations. Per :258-259, that disclosure does not waive the gate. A B3000/B2000-class 2–4 rank run of a multi-GPU exported core through flare run with the relay enabled, plus the happens-before analysis, is required before this can be accepted.

Secondary, same gate: RUSTFLAGS=-D warnings checks and the --features rdma Selene build were not run locally (the latter attributed to host rdma-core header mismatch); CI does cover --features roce,rdma at native-serving.yml:111-113, so this alone would be an Info note, not a violation.

Gate 4 — Material scope / claim contradictions: VIOLATION (Major)

  1. Unmeasured performance claim behind a default-on data-path change. The headline benefit — "expected to reduce switch-traversed mesh all-gather traffic by 25%" — has no derivation and no measurement of any kind; every other number is inherited from #649/#577 on 4× DGX Spark, on hardware different from the author's, and the prefill figure additionally depends on unmerged hyperflare-recipes#114. AGENTS.md:95-102 requires distinguishing an expectation from a measured result (done) — but the charter "Bring real evidence … performance PRs need benchmarks showing an actual speedup over main on a served workload (#210)" and design-review.md principle 12 ("Performance claims require equivalent baselines, complete GPU steps across all ranks, and actual Helios service measurements") are not met for the change that is actually being enabled by default. This is not scope creep; it is a behaviour change on already-exported cores shipped without the evidence the rules demand.
  2. It reverses a documented decision from merged #279. main's docs/roce-ring.md said "Serving does not enable FlashInfer's all-gather relay", and #279's description says the same. This PR replaces that with on-by-default for every Shape::Mesh + even world >= 4 fabric with mutual direct-cable pairs (docs/roce-ring.md:166-169, roce.rs:344-353), opt-out only via --roce-switch-only. Reversing a recorded decision is legitimate, but the reversal of a merged invariant with no measurement falls under AGENTS.md:201-207 ("A feature request, passing tests, or a performance gain does not waive an architectural invariant … Resolve conflicts through an explicit maintainer decision on the design").
  3. Documentation now asserts unqualified support, and the contradicted doc is left stale. AGENTS.md:52-56 requires present-tense support claims to state what has been qualified and what has not, and prohibits presenting partially wired features as supported. docs/roce-ring.md:161-170 now states serving "enables FlashInfer's two-shot all-gather relay" with no qualification statement and no hardware run behind it. Meanwhile docs/multi-host.md — the operator-facing cross-node document — is not updated: :94, :344, :574-577 still describe relays only in the ring/chain sense and never mention that mesh all-gather relay is now on by default. A reader of multi-host.md cannot learn that their 4-node direct-cable mesh changed collective routing. The PR's own docs/roce-ring.md:422-424 component table ("enables the ring or mesh all-gather relay") and multi-host.md:574 now contradict each other.

Additional Layer‑1 finding (Minor) — mock-based test bypasses the new contract

docs/design-review.md:186-189 requires tests to "exercise the actual production entry points … and avoid mocks or source-text checks that bypass runtime behavior." tests/preparation/test_roce_proxy_parity.py:68-131 injects fakes into sys.modules for both flare_heliopause and b12x.comm.roce.AllReduce. Two consequences:

Summary

Gate Verdict
1. Core-format / wire / captured-graph / public contract PASS — ABI stays 14, no new graph family, no lifecycle files, no contradicted normative doc
2. Vendored upstream & cross-PR MAJOR — pin to unmerged FlashInfer #213; no uv.lock (docs still cite one); vendored header names no SHA/hash; three open PRs on the same file left unclosed/uncredited
3. Mandatory verification BLOCKER — design-review.md:252-259 live multi-GPU collective run + cross-rank happens-before analysis for helios/src/execution/roce.rs transport changes is unrun; no legacy ABI‑14 core loaded and served
4. Scope / claim contradictions MAJOR — default-on relay with no measurement (reverses merged #279); docs/roce-ring.md overclaims qualified support; docs/multi-host.md left stating the opposite
Layer‑1 test quality MINOR — new Python test mocks the very dependency boundary it is meant to guard

Required before merge: (a) live multi-rank flare run of a multi-GPU exported core with relay on, plus the before/after cross-rank happens-before analysis; (b) either an A/B measurement on a served workload or hold roce_set_relay behind an explicit flag until one exists; (c) repin pyproject.toml to a merged FlashInfer SHA (or land a uv.lock) and record the upstream SHA/body hash in helios/native/roce_proxy.c's provenance header; (d) add a qualification statement to docs/roce-ring.md and update docs/multi-host.md; (e) close #672/#649/#577 with credit to nepenth, FujitsuPolycom, and fordbmorris.

No docs/TODO.txt, no lint-level, and no unobservable-CI false positives are included above.