#1 [high] PR #707 subtraction audit findings
- DEAD: roce_gid_index pyfunction (heliopause/src/python.rs:669,693-706) + Fabric::gid_index() (roce_fabric.rs:1094-1100) unreachable from collectives.py:97 (
distinct[0] if distinct else ...); discover_in errors when no device (roce_fabric.rs:429-431) so distinct is never empty. - SPECULATIVE: collectives.py:81-97
import inspect+ signature probe forgid_indices; dep pinned exactly pyproject.toml:47 so else-branch (90-97) + RuntimeError + test_roce_proxy_parity.py:83-85,110-131 are unreachable. - DUPLICATE VALIDATION: validate_relay_plan (roce.rs:102-133) repeats roce_proxy.c:838-849 predicate byte-for-byte in intent; error strings differ; 3 test cases roce.rs:536-561.
- UNREPRESENTABLE STATE: Topology.hcas: Vec + gid_indices: Vec parallel vectors (roce_fabric.rs:309-310) guarded by 3 separate length checks: roce_fabric.rs:1119-1125, roce.rs:214-220, and python.rs:717-719 zip truncation. Pair them.
- RECOMPUTE: Fabric::topology computes routes at roce_fabric.rs:1127 then relay_plan() at :1129 -> partners() (:988) builds a second Planner and re-calls planner.peer for every rank x peer, while sibling direct_peers (:957) takes routes as a param.
- UNREACHABLE ARM: format_gid_indices spark.rs:261
[] => "index (none)"— both call sites (:190 guarded !ready.is_empty(), :246 discovery-nonempty). - Interface.gid_index field spark.rs:277 used only to be recollected at :189 into a Vec.
- Convoluted cluster.rs:105-113 nested if/else inside format!.
- Mesh gate lives in caller roce_fabric.rs:1128-1132 while relay_plan() has no shape param -> validate_relay_plan shape arm + roce.rs test case 11 redundant.