Architecture report · NVIDIA/hyperflare-inference #502

Raw Markdown for agents: https://autobot.eidonix.com/p/f9d50550-830b-4caf-a528-b9ac9eae184e.md

Architecture & scope review — PR #502 "feat: add gb206 platform support"

Head reviewed: 8e2ea68 (the fix commit). Diff: 5 files, +25/−7 — helios/src/core/naming.rs, flare/src/catalog.rs, flare-cli/src/cli.rs, docs/cli-design.md, docs/core-format-design.md. No CI checks on the head commit, no reviews; PR is still a draft.

Key findings


Verified clean (recorded so the report does not re-litigate it)

In scope. The charter requires "PRs that address a maintainer request, a roadmap item, a reproducible bug, a measured performance/memory issue, or bad docs", and docs/design-review.md:53-56 (not opened) (principle 4) already names SM120 as a target architecture; GB206 is an SM120 consumer die. The charter's "Stay focused … not … broad hardware support" line is satisfied by a table row for a die the engine already targets rather than a new backend. Precedent is explicit and recent: #300 (GA102) and #529 (GB300 0x31c3) merged as table rows, and #469 (GB203) is the same shape and still open. Fixing an unsupported-PCI-ID error on a supported-die consumer part is the "reproducible bug" case.

Ids are correct and disjoint. helios/src/core/naming.rs:27-29 adds 0x2d04, 0x2d05, 0x2d18, 0x2d19, 0x2d30, 0x2d39, 0x2d58, 0x2d59, 0x2d79; none collides with GB202_DEVICES (:21-23), GB10_DEVICES (:32), GA102_DEVICES (:36) or GB300_DEVICES (:39). The new arm (:55-57) sits before the GB202 then_some tail (:58), so ordering is right, and the vendor guard at :42-44 keeps non-NVIDIA ids out — pinned by the new 0x2d04_1af4 assert at naming.rs:220.

Consumers are generic, so widening the array is safe. flare/src/catalog.rs:272 (branch_platform), :320 (apply_refs), :550-568; flare/src/hub.rs:2473, :2490 (signed_hardware — membership only, model-agnostic), :2963, :3115; flare-cli/src/distribution.rs:159, :720; heliopause/src/export/conversion.rs:402; helios/src/core/naming.rs:79, :121. Nothing enumerates a fixed arity of four.

Compatibility. Existing cores are unaffected: signed_hardware (flare/src/hub.rs:2455-2515) and legacy install naming (:2955-2968) key on PLATFORMS membership plus a recorded hardware_identity, and nothing rewrites existing entries, so cores that recorded gb202 keep naming and resolving as before. Legacy cores with empty hardware (helios/src/runtime_core/model.rs:1381) are unchanged.

No special case or flag. The diff adds table data, one PLATFORMS entry and two match arms. No env var, no CLI flag, no per-model branch, so docs/design-review.md:16-34 (not opened) principles 1 and 3 (shared mechanisms, no per-model policy) are not implicated; no CUDA/kernel code, so principle 14 does not apply.


Should fix

1. flare-cli/src/orbit/gpu.rs:297-321 — GB206 was withdrawn from Orbit instead of delegating to the shared table, so the layers now disagree

Orbit's revision() consults a private platform() table (gpu.rs:309-321) and then falls back to capability_revision (gpu.rs:224-231). Head 8e2ea68 deleted the GB206 arm from that table rather than routing it to the shared one, so a GeForce RTX 5060 Ti (0x2d04) reaches (12, 0) → "gb202", while:

Why it matters, concretely:

Fix, and it must not be applied alone. Setting revision to platform_from_pci(...) else capability_revision(...) and deleting platform() makes hosts say ga102/gb206 while cores in the same commit still require sm86/gb202 (capability_revision has no (8, 6) arm either), which would refuse every GA102 and GB206 GPU. So bundle it: (a) delegate revision to naming::platform_from_pci, deleting platform(); (b) make describe() take the requirement from authorized.identity()?.hardware when it is a PLATFORMS name, keeping the capability path for legacy cores — the pattern already used in flare-cli/src/distribution.rs:157-163. If the intent is genuinely to keep Orbit capability-derived for now, the cheaper acceptable outcome is to say so in the description and drop the flare-cli/src/orbit/gpu.rs claim from the summary; today the description asserts the Orbit side is covered.

2. flare-cli/src/orbit/gpu.rs:349-364 — no test covers any GB206 id on the Orbit side

The two existing tests exercise 0x2e12, 0x2bb4, 0x2b85, 0x31c3, 0x2e13, 0x2c00, 0x2330, 0x2901 — none of the nine new ids. Because a miss is invisible (the capability fallback yields a plausible gb202), finding 1 would have been caught by a single assert_eq!(revision(0x2d0410de, 12, 0), "gb206"). This is exactly the "test every table entry" pattern the PR itself added in helios/src/core/naming.rs:205-211. Add the equivalent for the ids Orbit claims to support, plus one case whose compute capability disagrees with the PCI id (e.g. revision(0x2d0410de, 9, 0)), so a regression to the capability path fails loudly.

3. docs/cli-design.md:901-903 — the -tp1 retry sentence still lists three platforms

The paragraph this PR edits now reads "revisions named ga102, gb10, gb202, gb206, and gb300" at :887, but 14 lines later :901 says "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 code retries for any revision that starts with gb and is in PLATFORMS (flare/src/hub.rs:3114-3115), so gb206-tp1 is attempted. The doc now contradicts itself within one paragraph, in the very file this PR modifies, and would lead a reader to believe gb206-tp1 is not tried. Fix: drop the enumeration (:901-902) or state "every gb* platform" — note ga102 is genuinely excluded by the starts_with("gb") guard, so "every platform" would be wrong.

4. PR description and cited evidence — the change of failure mode and a non-reproducible test command

Two obligations come from the repository's own prose rules: AGENTS.md:72-112 requires the four-part description with untested configurations and limits visible, and .agents/skills/repo-prose/SKILL.md:26-37 (not opened) requires disclosing what was not run and what the change does to the present state.


Nits


Open questions / what I could not settle from the code