Full review — PR #502 "feat: add gb206 platform support"
Head 820abdb, base main, 2 files, +18/−1: helios/src/core/naming.rs (+15/−1) and flare-cli/src/orbit/gpu.rs (+3/−0). No CI checks were reported on the head commit.
Key findings
- The ids and the scope are right.
0x2d04/05/18/19/30/39/58/59/79are the GB206 block of pci.ids and collide with nothing inGB202_DEVICES,GB10_DEVICES,GA102_DEVICESorGB300_DEVICES. Adding a platform row is the same move as merged #300 (ga102) and open #469 (gb203), and it fixes a realNVML reports unsupported GPU PCI idfailure. No flag, env switch, per-model branch or new abstraction is introduced. - The change is unfinished in two structural ways. (1) The
flarecrate's test suite iteratesPLATFORMSagainst a hardcoded four-platform fixture, so the fifth name makes CI red. (2) Theflare-clihunk makes hosts reportgb206while a core's requirement is still derived from compute capability (gb202), and placement compares the two strings exactly — so Orbit rejects every GPU on GB206 hardware, including the card in the description. - The
flare-clihunk is also duplication.helios/src/core/naming.rs:17-20declares its table single-source and says "do not duplicate the identifiers elsewhere"; the PR extends a private copy that has already drifted. - The description and the present-state docs are stale or unsupported in five places (see Should Fix S2–S4).
- Both
flare-cliproblems (#469 converged on the same fix) mean these two PRs must be coordinated: #469 rewrites the same two files.
Everything below was verified in the tree at the PR head, not taken from the description.
Blockers
B1. The flare crate test suite goes red, so CI fails — flare/src/catalog.rs:548-569, triggered by helios/src/core/naming.rs:15
Finding. published_build_match_uses_all_platform_branches iterates the shared table and, for every target, applies one hardcoded fixture:
550 for target in flare_helios::core::naming::PLATFORMS {
561 let refs = serde_json::from_value(json!({"branches": [
562 {"name": "ga102-tp1"}, {"name": "gb10-tp1"}, {"name": "gb202"}, {"name": "gb300-tp8"}
563 ]})).unwrap();
565 let branches = apply_refs(&mut entry, refs, Some(target));
566 assert_eq!(entry.build_target_match, Some(true));
567 assert_eq!(branch_platform(select_revision(&branches, Some(target)).unwrap()), Some(target));
With target = "gb206", apply_refs (catalog.rs:304-329, expression at :319-322) computes build_target_match = Some(false) because the fixture's platform set lacks gb206, so :566 fails. select_revision (:292-303) finds no matching branch and falls back to branches.iter().next() = ga102-tp1, so :567 fails too. flare/Cargo.toml:23 path-depends on flare-helios, so the new fifth entry is exercised without any test change.
Request. Run cargo test --locked --release --manifest-path flare/Cargo.toml (.github/workflows/native-serving.yml:77 (not opened) runs exactly this; AGENTS.md:318 lists it as a required suite) and fix the fixture. Preferred: build it from PLATFORMS inside the loop — json!({"name": format!("{platform}")}) or the -tp1 form — so the fixture stops being a second hand-maintained platform list. Minimum: add {"name": "gb206-tp1"} at :561-563.
Why. The branch cannot merge green; the PR's stated evidence runs only helios and flare-cli, which is why this was missed. The literal fixture has already needed a hand edit for ga102 (#300, merged) and gb203 (#469's review raised the identical defect).
B2. Orbit cannot place a GB206 core, and GB206 hosts stop matching existing gb202 cores — flare-cli/src/orbit/gpu.rs:319-321 vs orbit/controller.rs:2293-2295 and orbit/plan.rs:693-696
Finding. The new arm makes revision() (orbit/gpu.rs:297-307) return "gb206" for the nine ids, because it consults the private platform() table first; the value is stored on Gpu.revision, published in node STATUS (orbit/agent.rs:1650) and used by repository_revision (orbit/controller.rs:2209-2233) to infer the Hub revision. The requirement side is unchanged:
// flare-cli/src/orbit/controller.rs:2293-2295
let needs = CoreNeeds {
revision: super::gpu::capability_revision(first.architecture[0], first.architecture[1]),
and capability_revision (orbit/gpu.rs:224-231) maps (12,1)→gb10, (12,0)→gb202, (10,3)→gb300, else sm{major}{minor} — no gb206 arm. GB206 is SM120 like GB202, so a core exported on this hardware (signed hardware_identity: "gb206", heliopause/src/export/core.rs:656-664 (not opened)) requires "gb202", and unfit rejects on exact inequality (orbit/plan.rs:693-696) with gpu 0 … is gb206, not gb202. Every candidate GPU is refused.
Both directions fail: the PR's own tested card (RTX 5060 Ti, 0x2d04) cannot have its core placed, and a pre-existing gb202 core no longer matches a GB206 host — before this diff both sides said gb202 via the (12,0) fallback and placement worked. A fleet mixing GB202 and GB206 nodes also now errors "candidate GPUs do not identify one hardware revision" (controller.rs:2229-2231). Load-time validation will not catch it either: the arch gate at helios/src/runtime_core/mod.rs:337-346 (not opened) compares only compute capability, so the label is the sole discriminator. The coupling was invisible until now because every existing table name happened to equal what capability_revision returns (gb10=(12,1), gb202=(12,0), gb300=(10,3); ga102 is absent from Orbit's table).
Request. Take a core's required revision from its signed identity — AuthorizedCore::identity()?.hardware (helios/src/runtime_core/model.rs:1392-1405; legacy cores carry an empty hardware, :1352-1390) when it is a naming::PLATFORMS name — keeping capability_revision only for legacy cores, and add a unit test that a gb206 core places on a gb206 host (needs no GPU). This is the shape #469 converged on (core_revision, review blocker 1, fix commit 1ee15641). If you would rather not change placement here, drop the flare-cli hunk: the ignition/detection fix is delivered by the helios change alone. Do not instead map (12,0) → "gb206" in capability_revision — that would break gb202 placement.
Why. As written, the PR regresses Orbit placement on exactly the hardware it adds, and its stated benefit ("cleanly separating GB206 cores from gb202 cores") is not delivered by any code path.
Should Fix
S1. The flare-cli hunk duplicates the table its own source declares single-source — flare-cli/src/orbit/gpu.rs:309-324, new arm :319-321
Finding. helios/src/core/naming.rs:17-20 says, over this very table: "This table is the single source consumed by Flare's device detection and by core export naming; do not duplicate the identifiers elsewhere." The PR adds a third copy of nine ids to a private match. The copy has already drifted: Orbit's gb202 arm lists 0x2bbc, which GB202_DEVICES (naming.rs:21-23) does not; the gb10 arm lists only 0x2e12 of the five GB10_DEVICES (naming.rs:30); there is no ga102 or gb300 arm, so a 3090-class card is reported as sm86 by Orbit while platform_from_pci says ga102 — and plan.rs:695 compares those strings exactly. revision() (gpu.rs:301-306) also re-implements capability_revision (:224-231) arm for arm.
The delegating shape already exists at flare/src/hardware.rs:18-21 ("Single mapping table shared with core export naming"), and flare-cli already depends on flare-helios with runtime-core,server (flare-cli/Cargo.toml:27) and already calls naming (distribution.rs:159, :720), so there is no dependency obstacle.
Request. Delete fn platform and make revision = naming::platform_from_pci(pci_id).map(str::to_owned).unwrap_or_else(|| capability_revision(major, minor)). State the coupling in the PR: this moves GA102 hosts from sm86 to ga102, so it must land together with B2's identity-based requirement (#469 bundles exactly this and had to add (8,6)→ga102 to capability_revision for the same reason).
Why. Two tables now have to be edited in lockstep and they already disagree, in a repository whose own text forbids that. The fix removes ~16 lines and one source of divergence.
S2. Every user-facing enumeration of the platform set still lists four names
Finding. Still saying four (or already omitting ga102):
flare-cli/src/cli.rs:175—--revisionhelp: "otherwise detects ga102, gb10, gb202, or gb300", printed byflare run --help.docs/cli-design.md:887— "revisions namedga102,gb10,gb202, andgb300".docs/cli-design.md:889-890— the automatic-selection rule lists GB10/GB202/GB300/GA102 only, so it now contradictsplatform_from_pci. This one is stale in behaviour, not wording.docs/cli-design.md:901-903— "Forgb10,gb202, andgb300, … tries the corresponding-tp1revision"; the retry is driven byPLATFORMS(flare/src/hub.rs:3114-3121), so gb206 gets it too.docs/cli-design.md:923—--revisiondefault row.docs/core-format-design.md:753-754— "the device identifier recorded by preparation (ga102,gb10,gb202, orgb300)" — gb206 names will now be produced.docs/core-format-design.md:105,docs/orbit.md:321(also missing ga102),flare-cli/src/distribution.rs:66.- Rustdoc:
flare-cli/src/orbit/gpu.rs:38(in a file this PR edits) and:222-223;flare-cli/src/orbit/plan.rs:38-39.
Request. Add gb206 (and ga102 where missing) at each site — or, better, replace the enumeration with a pointer to the shared PLATFORMS table so the next platform PR does not repeat this. Note #469 touches the same lines; coordinate ownership.
Why. Documentation is a present-state specification (repo-prose skill; AGENTS.md:52-60), and docs/cli-design.md is the specification a user consults for --revision. #469 updated exactly these files for gb203, so this is the established expectation.
S3. The description omits that flare run / flare download now request a revision nothing publishes
Finding. Before this change platform_from_pci returned None for 0x2d04, so detection failed with the actionable "GPU 0 has unsupported PCI ID 0x…; specify --revision" (flare/src/hardware.rs:95-100). Now detection returns "gb206", so flare run ORG/MODEL and flare download ORG/MODEL request the Hub revision gb206; on 404 flare/src/hub.rs:3104-3122 retries only gb206-tp1, and no repository publishes either. Orbit inherits the same behaviour through repository_revision (orbit/controller.rs:2209-2233). This is not a code defect — do not add a silent gb202 fallback (#469 was told the same) — it is a disclosure defect.
Request. Add one sentence: until a gb206 build is published, download/run on GB206 hardware needs --revision gb202 (or the org's own revision); cores can already be exported as gb206. Optionally mirror it in the platform-detection paragraph at docs/cli-design.md:885-892, which promises that an unknown identifier "requires an explicit revision" — now false for GB206.
Why. The first-run experience gets worse for exactly the hardware being added, and the consequence cannot be inferred from the stated benefit. AGENTS.md:103-112 and design-review principle 16 require material limitations to stay visible; #469's author was required to state the identical merge-order caveat.
S4. The description's evidence and rationale do not support its claims
Finding.
- "Prevents crashes … during ignition" misdescribes a clean, actionable error:
heliopause/src/export/capture.rs:2079-2085returnsinvalid("NVML reports unsupported GPU PCI id {:#010x}"), andflare/src/hardware.rs:95-100refuses the same card with "specify --revision". It also never names the workflow (ignition export, at the "Materialize weight payloads" phase) or the command a user runs. cargo test --manifest-path helios/Cargo.tomlcannot have run the test it cites:helios/src/core/naming.rslives behind#[cfg(feature = "runtime-core")] pub mod core;(helios/src/lib.rs:22-23). Correct form:cargo test --locked --release --manifest-path helios/Cargo.toml --features runtime-core,server(heliostests also needFLARE_TEST_TEMPLATE_DIRand a raised memlock limit per AGENTS.md:322-327). Both quoted commands also omit--locked.- The
flare-clicommand is credited with verifyingplatform_from_pciacross all nine ids, but that loop lives only inhelios/src/core/naming.rs:203-209, and Orbit calls its own privateplatform, notplatform_from_pci. - "Validated local core preparation/serving on a GeForce RTX 5060 Ti 16GB (
0x2d04)" reports no command, no resulting entry/deployment name and no serving result, so it cannot be assessed. - "128-bit memory bus, 32 MB L2, up to 16 GB VRAM" and "GB206 also has different cache sizes from GB202" are unsourced and unused: nothing in the tree reads a per-platform L2 size, bus width or VRAM figure.
PLATFORMSis used only for name acceptance (naming.rs:76-131;flare/src/hub.rs:2473,2490,2963,3115;flare/src/catalog.rs:271-280,320;flare-cli/src/distribution.rs:159,720). The real reason a distinct name is needed is selection plus signed identity (docs/cli-design.md:884-905;docs/core-format-design.md:104-110).
Request. Quote the actual errors and name the commands that produce them; fix the helios command (add --features runtime-core,server and --locked); add the flare suite (B1); state what the 5060 Ti run produced (entry name and flare run outcome) or say plainly that only the naming path was exercised; and replace the cache-size framing with the selection/identity argument, or drop it.
Why. AGENTS.md:72-112 requires each material claim to be tied to a check and material limitations to stay visible; two of the four evidence lines do not currently establish what they are credited with, and --locked/feature omissions mean the cited commands were not the ones CI runs. (The four-part structure and the Discord: wektor line are present and correct.)
S5. No automated test covers the Orbit half, which is why B2 slipped through
Finding. The only revision tests are pci_ids_select_the_revision_before_compute_capability (orbit/gpu.rs:352-357) and unknown_pci_ids_fall_back_to_compute_capability (:359-367); neither exercises a 0x2d0x id, so deleting or mistyping the new arm fails nothing. Elsewhere the convention is the opposite: sibling tests assert literal ids per platform. In helios, naming.rs:203-209 only loops over GB206_DEVICES, so it would still pass if the loop were pointed at the wrong constant or an entry were mistyped — naming.rs:195 shows the literal-assertion style for gb300.
Request. Add assert_eq!(revision(0x2d0410de, 12, 0), "gb206"); beside the existing tests (this also pins table-before-capability precedence, which is the property at risk given GB206 is SM120 like GB202), a placement-level test for B2, and assert_eq!(platform_from_pci(0x2d04_10de), Some("gb206")); in the naming test.
Why. AGENTS.md:194-199 rejects tests that cannot establish the contract; the literal-assertion ask was made verbatim in the #221 and #469 reviews.
Nits (5)
helios/src/core/naming.rs:25-27—GB206_DEVICESis the only device table without a doc comment.GB10_DEVICES(:29-30),GB202_DEVICES(:21-23),GA102_DEVICES(:32-34, with product names) andGB300_DEVICES(:36-37) all state their coverage. It matters because six of the nine ids are GL/GLM/M workstation variants the author never ran. One line naming GB206/SM120 and the RTX 5060 Ti / 5060 / workstation variants fixes it.helios/src/core/naming.rs:17-20— the "single source … do not duplicate the identifiers elsewhere" paragraph is now mis-scoped. It sits on the gb202 table and, withGB206_DEVICESinserted after it, reads as scoped to GB202 alone — while the same PR violates it inorbit/gpu.rs(S1). Move it ontoplatform_from_pci(:39), as #469's review asked.helios/src/core/naming.rs:15, :54— formatting."gb202","gb206"is missing the space after the comma, andreturn Some("gb206")lacks the;every sibling arm has (:45,:48,:51). Nocargo fmt --checkruns in CI (.github/workflows/native-serving.yml(not opened) only builds and tests), so this is cosmetic; runcargo fmt.helios/src/core/naming.rs:186-224— four near-identical 7-line test loops, and five consts + four if-arms at:21-57. One loop over[(&GB202_DEVICES[..], "gb202"), (&GB206_DEVICES[..], "gb206"), (&GA102_DEVICES[..], "ga102"), …], or one(platform, ids)table with a single generic lookup and test loop, makes each future platform a one-line addition. Structural and optional, not a merge condition — but note #469 (gb203) and #221 (gb300) are both paying this cost right now.helios/src/core/naming.rs:15—PLATFORMS: [&str; 5]forces a length-literal edit per platform;&'static [&'static str]would avoid it at the cost of small edits atflare/src/catalog.rs:271-279and:550-551. Not worth doing in this PR; recorded so the next platform PR can decide.
Checked and clean (recorded so it is not re-litigated)
- The ids. The nine ids are identical in both places they appear, are GB206 ids per pci.ids, and are disjoint from
GB202_DEVICES,GB10_DEVICES,GA102_DEVICES,GB300_DEVICESand Orbit's table, so the early-return order inplatform_from_pci(naming.rs:39-57) is harmless. The vendor guard (:40-43) still rejects non-NVIDIA ids. - Name acceptance.
candidate/deployment_candidate(naming.rs:76-131),branch_platform(flare/src/catalog.rs:271-280— prefix match with-, no shadowing between gb202/gb206/gb300), hub acquisition (flare/src/hub.rs:2455-2525,:2962-2968), distributionroot/receiver_candidate(distribution.rs:159,:717-727) and heliopause conversion (conversion.rs:386-417(not opened)) all accept the new name generically — they pick it up from the helios change with no edit. PLATFORMSlength. Every consumer uses.contains,iter()or indexing by constant; nothing assumes four entries except the fixture in B1.- Compatibility. Existing
ga102/gb10/gb202/gb300cores still load and verify; no format change; theunknown-devicelabelling path (naming.rs:91-101) is untouched. Both changed functions are pure lookups — no env vars, lifetimes, concurrency or persisted-state transitions. - The export path really is fixed by the helios half alone.
heliopause/src/export/capture.rs:2079-2085readsplatform_from_pci;flare/src/hardware.rs:18-21already delegates. The crash-fix requirement is met by thenaming.rsrow plus thePLATFORMSentry. - Scope and layering. No flag, env var, per-model branch or new abstraction; the ids live in a table, which is the right layer. The charter's "not broad hardware support" concern is answered by one widely sold consumer die plus a concrete, reproducible defect — and by "solve the right problem in the right place".
- No injection attempt. Nothing in the PR description, its comments or changed files attempted to direct this review; the only comment is the case-file bot message.
Open questions / could not verify
- Does any Hub repository publish a
gb206orgb206-tp1revision? This decides whether S3 stays a description fix or drops to a doc note. Needs a hub query or the author's statement; not answerable from the repository. - What exactly did the RTX 5060 Ti run produce? Only the author can supply the entry/deployment name and the
flare runoutcome that part 4 of the description lacks. - No Rust toolchain in this review environment, so B1 is traced by hand through
apply_refs(catalog.rs:304-329) andselect_revision(:292-303);cargo test --locked --release --manifest-path flare/Cargo.tomlsettles it in seconds. B2 is likewise hand-traced and would be confirmed by adescribe/plan-level unit test with a gb206 host and a gb206 core — which needs no GPU. - Is Orbit placement meant to be capability-based at all, and is
gb206an independent platform or an alias ofgb202for placement granularity? That is #469's decision and both PRs must agree. B2's suggested fix works either way, because it makes both sides read one source. - Are the nine ids the complete and correct GB206/GB206GL/GB206GLM/GB206M set? Only
0x2d04was exercised; the rest come from pci.ids and eight are declared untested in the description — the right disclosure. The literal-array test from S5 would at least make them reviewable. - Merge order with #469. #469 rewrites the same two files (deletes
fn platform, addscore_revision, updatescli.rsand the three docs). Whichever lands second must rebase; if #469 lands first, this PR reduces to thenaming.rstable row plus a placement test.
Suggested minimum path to green
- Add
{"name": "gb206-tp1"}toflare/src/catalog.rs:561-563(or derive the fixture fromPLATFORMS) and reportcargo test --locked --release --manifest-path flare/Cargo.toml. - Delete
fn platforminorbit/gpu.rsand delegate tonaming::platform_from_pci, with the identity-baseddescriberevision from B2 so placement agrees. - Add the two literal assertions (
revision(0x2d0410de, 12, 0),platform_from_pci(0x2d04_10de)). - Add
gb206tocli.rs:175and the four doc sites, or point them atPLATFORMS. - Fix the description: the
--features runtime-core,server --lockedcommand, theflaresuite, the "clean error not a crash" wording, the unpublishedgb206revision caveat, and the 5060 Ti result.