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
- No new wire kind, op kind, core-format enum, captured-graph op family, blob layout, proto field, CLI flag, config key, or default.
ROCE_ABI_VERSIONstays14(roce_proxy.c:160), so exported cores need no re-export;ROCE_RESERVE_OPS 48(:157) and the ring window (:223) are untouched. Rotation is a local posting-order policy, not negotiated, so mixed binaries stay wire-compatible — the correct side oforiginal-el8's own ABI rule from #577 (don't bump ABI to guard wire changes). - Normative docs not contradicted, so no doc-update obligation. All "rank order" statements in
docs/roce-ring.md(lines 4, 32-37, 80, 223, 229) describe ring topology / node ordering / relay direction, not proxy posting order; nothing there asserts peers are visited in ascending ordinal order.docs/scheduling-theory.md(not opened),docs/scheduling-runtime-design.md(not opened),docs/core-format-design.md(not opened) are not implicated by a posting-order change. AGENTS.md: no rule governsroce_proxy.cor vendoring;AGENTS.md:397-400("keep native … transport … shared", no per-model specialization) is satisfied. No owner-approval contract is triggered.
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:
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."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 alsodocs/TODO.txt:92-98.- 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). pyproject.toml:47still pinsflashinfer-pythonto rev1441ce862ffbc9d8550fdda7ad90e97ca04f4b8e— unchanged by this PR.- The PR body itself states identity holds only against unmerged
local-inference-lab/flashinfer#221, and that "pyproject.tomlwill need to pin the merged commit … fortests/preparation/test_roce_proxy_parity.pyto 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
- The one check quoted is not probative, and that is the only verification present.
cargo test --locked --release --manifest-path helios/Cargo.toml (not opened) --features roce --lib execution::roce(the PR's "35 passed") is real — the step exists at.github/workflows/native-serving.yml:114-115(not opened) — but it is exactly the right Layer-1 command, so no complaint there; the four rotated loops are unreachable without live verbs, so it says nothing about the change. - Performance PR without the required
main-vs-branch served-workload A/B. Charter: "Bring real evidence. Performance PRs need benchmarks showing an actual speedup overmainon a served workload (#210)." This PR is framed as a congestion fix ("eliminating synchronized(world-1):1incast") and supplies no benchmark at all, self-disclosing "Live switched-mesh multi-node benchmarking has not yet been run." Every sibling RoCE PR (#577, #649, #666, #712) carries a hardware A/B table.docs/design-review.md:171-178makes the affected layer mandatory and states serving benchmarks remain governed by principles 12 and 13. docs/design-review.md:252-259is also unmet on its evidence half: reordering cross-rank post paths in the transport requires "an explicit before/after cross-rank happens-before analysis and live multi-GPU execution of real collective graphs … not only independent per-rank synthetic graphs," and "disclosing busy or unavailable GPUs does not waive this requirement." Neither exists. I flag the absence of the mandatory evidence; the substance of the happens-before analysis belongs to the Code Correctness lens.- Not flagged: I make no finding about GitHub Actions check-run status on
8b06cda(unobservable here); the only red I report is the one the author states.
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.