Architecture report · NVIDIA/hyperflare-inference #502

Raw Markdown for agents: https://autobot.eidonix.com/p/056cc6c9-e65e-4347-8e2b-79d49681aee0.md

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

Head reviewed: 8e2ea68 (the fix commit). Files changed: helios/src/core/naming.rs (+19/−1), flare/src/catalog.rs (+1/−1), flare-cli/src/cli.rs (+1/−1), docs/cli-design.md (+3/−3), docs/core-format-design.md (+1/−1). No reviews, no CI checks on the head commit, PR is still a draft.

Key findings

Verified clean (so this is not re-litigated)

In scope. The charter asks for "PRs that address a maintainer request, a roadmap item, a reproducible bug, a measured performance/memory issue, or bad docs", and its "Stay focused … not … broad hardware support" line is satisfied by adding a table row for a die the engine already targets (design-review principle 4 names SM120; GB206 is SM120). Precedent is explicit and recent: #300 (GA102) and #529 (GB300 0x31c3) merged as table rows, and #469 (GB203) is the same shape still open. A crash-avoidance fix for a consumer Blackwell part is squarely the "reproducible bug" case.

Ids are right and disjoint. helios/src/core/naming.rs:27-29 adds the nine ids 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 sits before the GB202 then_some tail (:55-58), so ordering is correct, and the vendor check at :42-44 keeps non-NVIDIA ids out (the new 0x2d04_1af4 assert at naming.rs:220 pins that).

Consumers are generic. flare/src/catalog.rs:271-280, 292-303, 304-329 key on PLATFORMS membership; flare/src/hub.rs:2455-2515 (signed_hardware), :2955-2968, :3114-3115; flare-cli/src/distribution.rs:157-163; heliopause/src/export/conversion.rs:400-412; heliopause/src/export/capture.rs:2079-2085. Nothing enumerates a fixed arity of four, so widening the array from [&str; 4] to [&str; 5] compiles everywhere and legacy cores (empty hardware → unknown-device) are unaffected.

No special case or flag introduced. The change adds table data and a match arm; it adds no env var, no CLI flag, no per-model branch, so design-review principles 1 and 3 (shared mechanisms, no per-model branches) are not implicated.

Should fix

1. flare-cli/src/orbit/gpu.rs:297-321 — Orbit withdraws GB206 instead of delegating, so the layers disagree

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

Why it matters, concretely:

Fix: replace the body of revision with flare_helios::core::naming::platform_from_pci(pci_device_id).map(str::to_owned).unwrap_or_else(|| capability_revision(major as i32, minor as i32)), delete platform, and (given #469) switch the requirement in controller.rs:2293-2294 to the core's recorded hardware identity in the same PR or an immediately following one. If the intent is genuinely to keep Orbit capability-derived, the PR description must say so — right now it claims only that helios and flare-cli/src/orbit/gpu.rs both map the nine ids.

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), the bug in 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 added in helios/src/core/naming.rs:205-211. Add the equivalent for the ids Orbit claims to support, and include a case whose compute capability disagrees with the PCI id (e.g. revision(0x2d0410de, 9, 0)), so a future regression to the capability path fails loudly.

3. docs/cli-design.md:901 — 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 retried. Leaving the sentence stale makes the doc contradict itself in the same paragraph and would lead a reader to believe gb206-tp1 is not attempted. Fix: drop the enumeration (:901-902) or extend it to the current set. (Note ga102 is genuinely excluded by the starts_with("gb") guard, so the sentence should say "every gb* platform".)

4. PR description and cited evidence — the limitation and the change of failure mode are not disclosed

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 only the authors can settle