Correctness report · NVIDIA/hyperflare-inference #469

Raw Markdown for agents: https://autobot.eidonix.com/p/d677ed49-2cb3-428d-9b97-b7ffc9ba51f4.md

Review of PR #469 — Give GB203 (RTX PRO 4500 Blackwell) its own platform identifier

Lens A: correctness and consequences. Head d07e149, base main, 5 files, +28/−22.

Key findings

  1. Blocking — the Orbit controller still derives a core's revision from compute capability, so a GB203 core can never be placed. flare-cli/src/orbit/controller.rs:2293-2298 builds CoreNeeds.revision as super::gpu::capability_revision(first.architecture[0], first.architecture[1]), and capability_revision (flare-cli/src/orbit/gpu.rs:224-231) maps (12,0) -> "gb202" and has no path to "gb203". Placement compares revisions as exact strings (flare-cli/src/orbit/plan.rs:693-708). Before this PR the two sides agreed by accident (both said gb202); after it they disagree on exactly the hardware the PR is about. The PR changed flare-cli/src/orbit/gpu.rs, so Orbit is in scope, but the evidence covers only flare run, which never builds CoreNeeds.

  2. Blocking — the "no other device changes label" claim is false: six GA102 identifiers move from sm86 to ga102 in Orbit, breaking GA102 placement. The removed CLI-local table (diff, flare-cli/src/orbit/gpu.rs) listed only 0x2e12 and the GB202 family, so GA102 ids fell through to the capability fallback and reported sm86. platform_from_pci has GA102_DEVICES and returns "ga102" (helios/src/core/naming.rs:35-37,56-58). Cores still need sm86, since capability_revision(8,6) hits the _ => format!("sm{major}{minor}") arm. This is a real regression in a previously working configuration, not a documentation gap.

  3. Should fix / document — GB203 now auto-selects a revision that no repository publishes, with no fallback. flare/src/hub.rs:241-246 uses hardware::detect(gpu_count) verbatim; the PR itself says no gb203 revision exists on any published repository yet.

Positive result of the review: the table work itself is sound. 0x2c31 is not in any other table (naming.rs:21-23,30,33,37,40), so there is no aliasing; PLATFORMS (naming.rs:15) gates candidate (naming.rs:79-80), deployment_candidate (naming.rs:122), conversion naming (heliopause/src/export/conversion.rs:401-412), distribution (flare-cli/src/distribution.rs:159,720) and hub verification (flare/src/hub.rs:2010,2027,2318), and all of them now accept gb203. Export naming and the heliopause/src/export/capture.rs:2079-2085 error both improve as described.

Every caller

Finding 1 (blocking) — describe() cannot return gb203, so flare orbit run fails after downloading a gb203 core

Finding 2 (blocking) — GA102 revisions change from sm86 to ga102 in Orbit

Nit 0a — the fallback in revision() is a second copy of capability_revision

flare-cli/src/orbit/gpu.rs:301-306 reproduces capability_revision (gpu.rs:224-231) arm for arm. The PR's stated goal is one table; the table is shared now but the capability mapping is still duplicated in two places inside the same file, so the next capability→revision change must be made twice. Call capability_revision(major, minor) from revision() instead.

Configurations the project supports

Finding 3 (should fix) — no gb203 branch fallback in acquisition; every ORG/MODEL on GB203 needs an explicit --revision until publishers add branches

Hardware targets and other identifiers

0x2c31 does not collide with any other table, so no currently-labelled device changes because of the new entry itself (naming.rs:15-40). The five GB10 identifiers, GB300 0x31c3, the GA102 set and the GB202 set all resolve as before through the shared function. The PR's description of the drift it removed (four missing GB10 ids, the extra 0x2bbc) matches the diff.

Resource lifetimes, inactive and edge-case paths, state and graph transitions

Nothing found. naming.rs:42-60 is a pure function over u32; GB203_DEVICES is a const with no allocation or handle; the new contains check adds no failure path (it returns early only when a match exists, and no match is possible for a device id already handled by a later table since the sets are disjoint). The NVML paths touched (flare/src/hardware.rs:18-21, heliopause/src/export/capture.rs:2079-2088, flare-cli/src/orbit/gpu.rs:297-307) keep their existing init/shutdown pairing and error propagation; detect()'s result.and_then(|revision| closed.map(|| revision)) at hardware.rs:111-113 is unchanged.

Do existing artifacts, exported cores and prepared entries still load?

Nothing broken found. Existing gb202/gb10/ga102/gb300 entries keep their names and remain valid PLATFORMS members (naming.rs:15); the new value only widens the accepted set (naming.rs:79-80,122), so no previously rejected name becomes ambiguous and no previously accepted name is refused. Legacy cores without a signed hardware identity are unaffected on the export/load path (model.rs:1308-1340). The one place where an existing artifact stops working is Finding 1, and that is a core-to-GPU matching problem in Orbit rather than a load failure.

Nits

  1. flare-cli/src/orbit/gpu.rs:38 (Gpu::revision doc) and :222-223 (capability_revision doc) still say "gb10, gb202, gb300, or sm{major}{minor}"; flare-cli/src/orbit/plan.rs:38-40 (Needs::revision doc) likewise; flare-cli/src/cli.rs:173 still says "detects ga102, gb10, gb202, or gb300". docs/orbit.md:321 was updated but these four were not, and AGENTS.md:47-55 asks docs to state implemented support. (Note cli.rs:173 also already omits sm{major}{minor}, so it was stale before.)
  2. helios/src/core/naming.rs:17-23: the doc comment "This table is the single source consumed by Flare's device detection and by core export naming; do not duplicate the identifiers elsewhere" now sits above GB202_DEVICES instead of above platform_from_pci, the function that actually dispatches over all five tables — it reads as documenting one table, and it is the sentence this PR relies on. Move it to platform_from_pci at line 42.
  3. docs/cli-design.md:885-890: the reflow leaves "Automatic" ending line 885 and "selection" alone on line 886.
  4. The naming test now iterates GB203_DEVICES (naming.rs:206-212) as it does the other constants, but GB10_DEVICES is still hardcoded in the same test (naming.rs:191); not introduced here, worth folding in.

Open questions and what could not be confirmed