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

Raw Markdown for agents: https://autobot.eidonix.com/p/b642290a-d48f-4be6-8a7f-b9570062bc40.md

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

Head da7abad · perf/roce-rotate-peer-order → main · pr_files: helios/native/roce_proxy.c (+227/−46), pyproject.toml (+1/−1).

Scope note. pr_diff against this checkout returns a phantom ~2 MB diff (KIND_RING_RS/AG/RSAG, ring_window, roce_create_with_gids, ROCE_RESERVE_OPS, RING_WINDOW 16, .github/workflows/*, docs/*, AGENTS.md). That is a stale local main predating merged #707, not #725: search_code ref=main finds no KIND_RING_RS/roce_create_with_gids and shows RING_WINDOW 8, while head has KIND_RING_RS 7 (:194) and RING_WINDOW 16. I attribute none of it to this PR. Real content: four rotated loops + absorbed hairpin pacing + pin bump.

Round-2 handling. The 14:19 Autobot review raised two blockers at 8b06cda; the 19:07 author response and the rewritten description claim both resolved. I re-verified each in the tree rather than restating them.


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

Gate 2 — Vendored upstream dependency & cross-PR conflicts: CLEAR (prior blocker genuinely resolved)

Gate 3 — Mandatory verification evidence & failing tests: CLEAR (both prior blockers resolved)

Gate 4 — Material scope / claim contradictions: CLEAR on contradictions; one genuine scope finding

No contradiction: every checkable claim matches the tree. Rotations at exactly :1460, :1602, :1729, :2115 (each for (int step = 1; step < c->world; step++) / int p = (c->rank + step) % c->world;); ROCE_ABI_VERSION still 14; pin bumped; 9-line header satisfies the parity test. The absorbed pacing is disclosed in the description ("also includes the roce_set_hairpin_peers pacing path, which is inactive unless called by a hairpin topology") and the A/B arm caveat resting on it is correct. No nonexistent test/benchmark claimed; no bundled standalone tooling.

Should Fix (non-blocking) — ~150 lines of unreachable C bundled into a byte-parity-pinned file, against docs/design-review.md:135-146 (principle 15, "Reject scope expansion"). The rotation is 11 lines; alongside it this PR lands HAIRPIN_SEG_BYTES/HAIRPIN_MAX_INFLIGHT_SEGS + static assert (:206-213), two ctx fields (:354-357), roce_set_hairpin_peers (:870-892), peer_outstanding (:1299-1305), post_striped_paced (:1307-1420), and the two-pass passes/want_paced splits (:1599-1609, :2112-2130) — with no in-repo caller, in a file required to stay byte-identical to a moving external dependency, maintained in two repositories.

  1. Duplication with #712 (open, same author): #712 owns the only call site (helios/src/execution/roce.rs:64,240-241, hairpin_transit_mask:377, test :632-653) but keeps the un-rotated loops at :1458, :1602, :1728, :2116. #725 is thus a strict superset of #712's proxy delta minus the rotation, while #712 holds the wiring and the hardware evidence. The pacing belongs where it has a consumer.
  2. Untested interaction to name: if #712 lands, hairpin_pacing goes live on Shape::HairpinRing/Chain and the want_paced filters (:1607, :2117) interleave with the rotation. Neither PR tests rotation × pacing (#725 measured Shape::Mesh with pacing dead; #712 measured pacing with un-rotated loops). Post-merge follow-up risk, not a defect.

Resolution (either suffices): reduce #725 to the four rotated loops + pin bump (justified as satisfying the parity gate), leaving pacing to #712; or record that #725 is now a two-feature PR with a stated merge order vs #712 and #731.


Verdict

No contract or verification gate blockers.

One Should Fix, non-blocking: ~150 lines of unreachable hairpin-pacing C in a byte-parity-pinned file, duplicating open #712 where the sole call site lives (docs/design-review.md:135-146); resolve by deferring it to #712 or by documenting the two-feature scope, the #712/#731 merge order, and the untested rotation × pacing combination.