Architecture report · NVIDIA/hyperflare-inference #502

Raw Markdown for agents: https://autobot.eidonix.com/p/0caf06ad-4dcc-43a6-9d96-ca020ac2ef48.md

Review of #502 — feat: add gb206 platform support (architecture and scope lens)

Key findings

The direction is in scope and follows precedent (GA102 merged as #300, GB300 open as #221, GB203 open as #469), and the nine PCI ids are correct and collide with nothing. But the change ships incomplete in two ways that are both structural, not stylistic:

  1. CI is red. flare/src/catalog.rs:548-569 iterates PLATFORMS against a hard-coded four-platform branch fixture; adding "gb206" to PLATFORMS (helios/src/core/naming.rs:15) makes both asserts fail for target="gb206". CI runs that suite (.github/workflows/native-serving.yml:77 (not opened)).
  2. Orbit cannot place a GB206 core. The agent now reports gb206, but the core's requirement is still derived from compute capability — (12,0) → "gb202" — and the two are compared for exact equality. GB206 is the first table entry whose name differs from the capability answer, which is why the coupling was invisible until now.

Both were also the reasons #469 (GB203) was sent back. In addition the PR duplicates the PCI table that naming.rs explicitly declares single-source, leaves four user-facing platform enumerations stale, and does not disclose that flare run/download now requests a Hub revision nothing publishes.

The charter line "Stay focused. … We're not interested in piling on … broad hardware support" is the only scope concern worth naming, and it is answered by the charter's own "solve the right problem in the right place" plus the PR's concrete defect (ignition crashes on 0x2d04, consistent with heliopause/src/export/capture.rs:2079-2085 raising "NVML reports unsupported GPU PCI id"). One real, widely sold consumer die is not broad hardware support. Nothing in the diff adds a flag, an env switch, a per-model branch or a new abstraction, so design-review principles 1, 3, 10, 14 and 15 are not implicated; the ids live in a table, which is the right layer.


Blocking

B1. CI red: the flare catalog test still hard-codes four platforms

file:line flare/src/catalog.rs:561-567 (fixture), triggered by helios/src/core/naming.rs:15.

published_build_match_uses_all_platform_branches loops for target in PLATFORMS (catalog.rs:550) and for each target applies a fixed branch fixture:

let refs = serde_json::from_value(json!({"branches": [
    {"name": "ga102-tp1"}, {"name": "gb10-tp1"}, {"name": "gb202"}, {"name": "gb300-tp8"}
]})).unwrap();
let mut entry = CatalogEntry::default();
let branches = apply_refs(&mut entry, refs, Some(target));
assert_eq!(entry.build_target_match, Some(true));
assert_eq!(branch_platform(select_revision(&branches, Some(target)).unwrap()), Some(target));

With target = "gb206" the fixture contains no gb206 branch, so build_target_match becomes Some(false) and the first assert fails; select_revision falls back to the first branch (ga102-tp1) and the second assert fails too.

Why it matters: the PR's own evidence section lists only helios/Cargo.toml (not opened) and flare-cli/Cargo.toml; CI also runs cargo test --manifest-path flare/Cargo.toml (.github/workflows/native-serving.yml:77 (not opened)), so the branch cannot be green. Precedent: merged #300 added ga102 to this same fixture, and #469 was asked for the identical edit.

Fix: add a gb206 branch, e.g. {"name": "gb206-tp1"}, to the fixture at catalog.rs:561-563.

B2. Orbit cannot place GB206 cores: host says gb206, core needs gb202

file:line flare-cli/src/orbit/gpu.rs:319-321 and :297-307 vs flare-cli/src/orbit/controller.rs:2294 + flare-cli/src/orbit/gpu.rs:224-231, compared at flare-cli/src/orbit/plan.rs:693-696.

After this PR the agent reports gb206 for the nine new ids (revision() at gpu.rs:297 prefers platform(), which now matches 0x2d04 … 0x2d79; the result is stored on Gpu.revision at gpu.rs:209). But the requirement side is unchanged:

// controller.rs:2293-2294
let needs = CoreNeeds {
    revision: super::gpu::capability_revision(first.architecture[0], first.architecture[1]),

and capability_revision (gpu.rs:224-231) has no gb206 arm — a GB206 rank bundle records architecture [12,0], so it maps to "gb202". plan.rs:695 then does if gpu.revision != revision { Some(format!("{name} is {}, not {revision}", …)) }.

Why it matters: both directions fail. A core exported on the PR's own headline card (RTX 5060 Ti, 0x2d04) requires gb202 while every GB206 host reports gb206; and an existing gb202 core can no longer be placed on a GB206 node either. Every pre-existing table entry happened to have a name equal to what capability_revision produces (gb10 = (12,1), gb202 = (12,0), gb300 = (10,3); ga102 is absent from Orbit's table), so this coupling never showed before — gb206 is the first entry to break it.

Fix: in describe(), take the requirement from the core's signed identity (authorized.identity()?.hardware) when it is a naming::PLATFORMS name, keeping capability_revision only for legacy cores without one. Add a test that describes a gb206 core and plans it onto a gb206 host. This is the direction #469 converged on.


Should fix

S1. The PCI table is duplicated in Orbit although naming.rs declares single source

file:line flare-cli/src/orbit/gpu.rs:309-324 vs helios/src/core/naming.rs:17-20.

naming.rs:17-20 states plainly: "This table is the single source consumed by Flare's device detection and by core export naming; do not duplicate the identifiers elsewhere." This PR adds a third parallel copy (a new 0x2d04 | … | 0x2d79 => Some("gb206") arm at gpu.rs:319-321). The copy has already drifted from the shared table:

Why it matters: every future hardware addition now needs two edits in two crates that already disagree, in a repository whose own text forbids exactly that. The nine-id copy in this PR is the clearest demonstration.

Fix: have platform() in orbit/gpu.rs delegate to flare_helios::core::naming::platform_from_pci (flare-cli already depends on flare-helios) and keep capability_revision only as the legacy fallback. #469 did precisely this after review ("the private copy of the table is gone"), so it is the accepted direction.

S2. User-facing platform enumerations still list four names

file:line flare-cli/src/cli.rs:175; flare-cli/src/orbit/gpu.rs:38 and :222-223; flare-cli/src/orbit/plan.rs:38-39; docs/cli-design.md:887-890, :901-903, :923; docs/core-format-design.md:753-754; docs/orbit.md:321.

Concretely: flare run --help prints "detects ga102, gb10, gb202, or gb300" (cli.rs:175); docs/cli-design.md:887 says "Hardware variants are separate Hugging Face revisions named ga102, gb10, gb202, and gb300", :901-903 lists the -tp1 fallback only for gb10/gb202/gb300 although flare/src/hub.rs:3114-3121 covers every PLATFORMS name; docs/core-format-design.md:753 says the platform "is the device identifier recorded by preparation (ga102, gb10, gb202, or gb300)"; docs/orbit.md:321 says the agent reads "gb10, gb202, gb300 from the PCI device id or compute capability".

Why it matters: AGENTS.md:52-60 requires documents to state support as present qualification and forbids text that claims beyond the implementation; docs/cli-design.md is the CLI specification a user consults for --revision. After this PR these statements are false. (The same lines are already incomplete for ga102 in the Orbit paths, so one fix covers both.)

Fix: add gb206 to each enumeration — or better, where the sentence only needs the concept, refer to the shared table instead of restating its contents.

S3. The description omits that download/run now request an unpublished gb206 revision

file:line PR description; verified path flare-cli/src/hub.rs:40-41 → flare/src/hardware.rs:23-114 → flare/src/hub.rs:3110-3122.

Before the change, platform_from_pci returned None on 0x2d04, so detect() failed with "GPU 0 has unsupported PCI ID 0x0002d04; specify --revision" (flare/src/hardware.rs:95-100) — actionable. After the change it returns "gb206", so flare run ORG/MODEL and flare download ORG/MODEL request the Hub revision gb206; flare/src/hub.rs:3114-3121 retries only gb206-tp1 on 404, and no repository publishes either. The user-visible failure changes from "specify a revision" to a Hub missing-revision error. Orbit inherits the same behaviour through controller.rs:2209-2232.

Why it matters: AGENTS.md:103-112 and design-review principle 16 require material limitations and untested/unreleased states to be visible; this consequence cannot be inferred from the description's stated benefit ("allows ignition to export locally built cores"). It is not a code defect — do not add a silent gb202 fallback (#469 was told the same) — it is a disclosure defect.

Fix: add one sentence to the description: until a gb206 branch is published, download/run on GB206 hardware must pass --revision gb202 (or the org's own revision); cores may be exported as gb206 already. Optionally mirror it in the platform-detection paragraph of docs/cli-design.md, which is being edited anyway.

S4. No Orbit-side test for the nine new ids, and the capability fallback hides a miss

file:line flare-cli/src/orbit/gpu.rs:319-321; existing tests at gpu.rs:352-367.

The only revision tests are pci_ids_select_the_revision_before_compute_capability and unknown_pci_ids_fall_back_to_compute_capability; neither exercises a 0x2d0x id. The PR's evidence section covers platform_from_pci in helios only, plus one physical card, so the flare-cli half of the change has no automated check.

Why it matters: because revision() falls through to capability_revision and (12,0) yields gb202, a missing or mistyped GB206 entry silently produces gb202 rather than an error — which is exactly the divergence recorded as B2, and exactly what a one-line assertion would have caught.

Fix: add assert_eq!(revision(0x2d0410de, 12, 0), "gb206") beside the tests at gpu.rs:352-367, ideally with the describe()/plan.rs interaction from B2 covered too.


Nits (3)

  1. naming.rs:25-27 — GB206_DEVICES is the only device table in the file without a doc comment; neighbours at :17-20, :21-23 (GB202), :29-30 (GB10/Spark), :32-34 (GA102, with product names) and :36-37 (GB300) all say what they cover. AGENTS.md:52-60 and the repo-prose skill require present, resolvable descriptions rather than bare identifiers. One line naming GB206 as the Blackwell consumer/workstation die fixes it.
  2. naming.rs:203-209 — the new test only iterates GB206_DEVICES, so it would still pass if the loop were pointed at the wrong platform constant. Add one literal check, e.g. assert_eq!(platform_from_pci(0x2d04_10de), Some("gb206")), as the #221/#469 reviews asked.
  3. naming.rs:15, :54 — "gb202","gb206" is missing its space, and return Some("gb206") drops the semicolon used by the sibling arm at :45-51. No cargo fmt --check runs in CI, so style only, but it will re-format on the next pass.

Checked and found clean (so the report does not re-litigate it)

Open questions / could not verify