Correctness report · NVIDIA/hyperflare-inference #502

Raw Markdown for agents: https://autobot.eidonix.com/p/832acac8-2de4-4988-bc8f-d6439660cd00.md

Correctness review — PR #502 "feat: add gb206 platform support", head 8e2ea68

Key findings

The change itself is small, correct and well-scoped: PLATFORMS grows to five, a nine-id GB206_DEVICES table is added and consulted before the gb202 fallback, and the two previously reported blockers are fixed at the current head (the flare catalog fixture now includes gb206, and the flare-cli Orbit arm that would have made GB206 cores unplaceable was dropped).

What remains is coherence, not breakage:

  1. One host, two platform names. flare run/download/hardware-revision now call a 5060 Ti gb206; Orbit calls the same card gb202 and still infers core requirements from compute capability alone, so the "clean separation" the PR claims is not enforced anywhere placement happens.
  2. docs/cli-design.md:901 — the -tp1 404-retry sentence, inside the very section this PR edits, still lists only gb10/gb202/gb300.
  3. Error-path regression on GB206 hosts — detection now succeeds and the failure moves to two Hub 404s, replacing the explicit "unsupported PCI ID … specify --revision" message.

Nits: stale three-platform enumerations in Orbit docs/comments, a missing semicolon, and a PR description whose change list and test command no longer match the head.

Nothing here fails a CI step (there is no rustfmt job in .github/workflows/native-serving.yml (not opened), and the flare catalog test is green again).


Scope reviewed

Diff vs main at 8e2ea68 — 5 files, +25/−7:

Both changed functions were read in context and every consumer of PLATFORMS and platform_from_pci was followed: flare detection, Hub acquisition, Orbit revision derivation, core export identity, deployment/cache-entry naming, and the runtime loader.

Resolved since the 2026-11-25 review (state explicitly so they are not re-raised):


Should fix

1. One GB206 host is gb206 in flare run and gb202 in Orbit; the claimed separation is enforced nowhere

flare-cli/src/orbit/gpu.rs:297-321, flare-cli/src/orbit/controller.rs:2293-2295, flare-cli/src/orbit/plan.rs:693-696, helios/src/core/naming.rs:41-59.

platform_from_pci now returns "gb206" for 0x2d04 (naming.rs:55-57), and the CLI's detection path is unchanged and shared: flare-cli/src/hardware.rs:2 → flare/src/hardware.rs:18-21 (platform() delegates to flare_helios::core::naming::platform_from_pci) → helios/src/core/naming.rs:41-59. So flare hardware-revision, flare download and flare run resolve a 5060 Ti to gb206 and issue gb206, then gb206-tp1 on 404 (flare/src/hub.rs:3111-3122).

Orbit does not. It uses its own table, revision() (flare-cli/src/orbit/gpu.rs:297-307) over platform() (:310-321), which has no gb206 arm; the match falls through to (12, 0) => "gb202" (:303). Consequences, all visible in code:

That last point is pre-existing rather than newly introduced, but this is the PR that gives GB206 a distinct identity and claims gb206 cores are "cleanly separated" from gb202, which no placement code implements.

Fix: have flare-cli/src/orbit/gpu.rs call flare_helios::core::naming::platform_from_pci instead of its private match — naming.rs:17-20 says "This table is the single source consumed by Flare's device detection and by core export naming; do not duplicate the identifiers elsewhere", and the private copy has already drifted (it lists 0x2bbc, absent from GB202_DEVICES at naming.rs:21-23, and has no ga102/gb300 arms) — and take CoreNeeds::revision from the core's signed hardware when that name is in PLATFORMS, keeping capability_revision for legacy cores with an empty identity. This is what open #469 does for gb203 (core_revision). A placement test with a gb206 host and a gb206 core would settle the placement half; the divergence in naming above is shown directly by the code today.

2. docs/cli-design.md:901 omits gb206 from the -tp1 retry rule

docs/cli-design.md:901-903: "For gb10, gb202, and gb300, the shared CLI and desktop downloader tries the corresponding -tp1 revision if the initial revision lookup returns HTTP 404."

The implemented condition is flare/src/hub.rs:3111-3122: on StatusCode(404) it retries {revision}-tp1 when revision.starts_with("gb") && flare_helios::core::naming::PLATFORMS.contains(&revision). gb206 is in PLATFORMS (naming.rs:15) and starts with gb, so GB206 does get the retry, and the sentence is wrong in exactly the respect this PR adds. The PR edited :887, :890 and :923 of this same section and left :901 alone. (Separately, ga102 never gets the retry because of the starts_with("gb") guard, so the enumeration is structurally fragile.)

Fix: add gb206 to the list, or restate the rule as "for a detected platform name that begins with gb", which also fixes the ga102 omission.

3. GB206 hosts lose the actionable error and get two Hub 404s instead; the merge/publication order is undisclosed

flare/src/hardware.rs:95-99, flare/src/hub.rs:3111-3122, docs/cli-design.md:891-892.

Before this PR, a 5060 Ti failed detection with GPU {entry} has unsupported PCI ID {:#010x}; specify --revision (flare/src/hardware.rs:95-99; export had the sibling message at heliopause/src/export/capture.rs:2079-2085), and docs/cli-design.md:891-892 documents that behaviour: "An unknown identifier or a driver unable to report it requires an explicit revision."

After this PR the identifier is known, so flare run ORG/MODEL on a GB206 host requests revision gb206, gets 404, then gb206-tp1, gets 404, and propagates the Hub error. The PR description says the purpose is to export locally built cores under gb206; unless and until a gb206 (or gb206-tp1) branch exists on the Hub, every GB206 user with a Hub model hits a failure that no longer mentions --revision gb202, even though gb202 cores are what load on that silicon today (see finding 1: the loader only checks compute capability).

Fix: either state the publication/merge ordering in the description (and, if gb206 builds will not exist at merge, keep the message actionable — e.g. mention --revision gb202 in the 404 path or in the docs sentence at :891-892), or accept the 404 knowingly and document it. Only the maintainers can confirm whether a gb206 branch is or will be published; that cannot be seen from this repository.


Nits

  1. Stale three-platform enumerations — docs/orbit.md:321 ("gb10, gb202, gb300 from the PCI device id or compute capability"), flare-cli/src/orbit/gpu.rs:38 and :222-223 (same list on Gpu::revision and capability_revision), flare-cli/src/orbit/plan.rs:38-39 (same list on Needs::revision). The fix commit updated docs/cli-design.md:887/890/923, docs/core-format-design.md:754 and flare-cli/src/cli.rs:175 but not these. They are accurate for Orbit's current behaviour (its table has no gb206), which is exactly why they will read as a contradiction next to the CLI docs unless finding 1 is fixed; then they must add gb206. Prefer pointing at PLATFORMS over enumerating names. (docs/core-format-design.md:105 is an example-only mention and fine as is.)
  2. helios/src/core/naming.rs:55-57 — return Some("gb206") lacks the trailing ; its neighbours have (:47, :50, :53), and the block is not rustfmt-normalised. No rustfmt job exists in .github/workflows/native-serving.yml (not opened), so it will not fail CI.
  3. PR description is stale relative to the head and miscites its test command — the "What exactly did this PR change" bullet still describes a flare-cli/src/orbit/gpu.rs hunk that 8e2ea68 deleted, and omits flare/src/catalog.rs, flare-cli/src/cli.rs and both doc files that are in the diff; "Prevents crashes" describes an actual pre-PR behaviour that is a clean error (flare/src/hardware.rs:95-99, heliopause/src/export/capture.rs:2081-2084); and cargo test --manifest-path helios/Cargo.toml cannot run the cited test, because helios defaults to no features (helios/Cargo.toml:17) while core/naming.rs sits behind runtime-core (helios/src/lib.rs:22-23) — CI uses --features runtime-core,server. AGENTS.md:88-94 requires the change list to match the diff and AGENTS.md:103-112 requires evidence commands and results to be accurate and reproducible.

Verified and found sound (basis for "no other findings")

Open questions / not answerable from this repository

Note on process

Nothing in the PR body or comments asked me to do anything other than review; no prompt-injection attempt was found.