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:
- One host, two platform names.
flare run/download/hardware-revisionnow call a 5060 Tigb206; Orbit calls the same cardgb202and still infers core requirements from compute capability alone, so the "clean separation" the PR claims is not enforced anywhere placement happens. docs/cli-design.md:901— the-tp1404-retry sentence, inside the very section this PR edits, still lists onlygb10/gb202/gb300.- 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:
helios/src/core/naming.rs(+19/−1):PLATFORMS,GB206_DEVICES, theplatform_from_pciarm, tests.flare/src/catalog.rs(1 line, :562): fixture gains{"name": "gb206"}.flare-cli/src/cli.rs(1 line, :175):HubOptionshelp text.docs/cli-design.md(:887, :890, :923) anddocs/core-format-design.md(:754).
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):
- CI test.
published_build_match_uses_all_platform_branches(flare/src/catalog.rs:549-569) loopsPLATFORMSagainst the hardcoded fixture at:561-563; that fixture now contains{"name": "gb206"}, so bothapply_refs(:315-322,build_target_match == Some(true)) andselect_revision(:292-303, exact branch) pass for all five targets in both suffix forms. The failing CI step (.github/workflows/native-serving.yml(not opened)) is clear. - Orbit placement crash/unplaceability. The gb206 arm the description still claims is gone from
flare-cli/src/orbit/gpu.rs:314-320(only0x2e12 → gb10and the GB202 list remain), so Orbit hosts keep reportinggb202and the exact-string compare atplan.rs:693-696still matches. Nothing became unplaceable.
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:
- the CLI asks the Hub for a
gb206branch while Orbit's controller infersgb202from the agents' reported revisions (controller.rs:2220-2232area), producing different branches and different cache-entry names for one machine; - the Orbit dashboard/status label the card
gb202(dashboard.rs:651(not opened) area) whiledocs/cli-design.md:890— edited by this PR — says known GB206 devices selectgb206; - placement still derives a core's requirement from compute capability only:
revision: super::gpu::capability_revision(first.architecture[0], first.architecture[1])(controller.rs:2293-2295), with(12, 0) => "gb202"(gpu.rs:224-231), compared exactly against the agent's revision (plan.rs:693-696). The core's signedhardwareidentity (helios/src/runtime_core/model.rs:1392-1405, populated from the detected platform atheliopause/src/export/core.rs:656-664) is never consulted. The loader likewise gates only on compute capability attributes 75/76 (helios/src/runtime_core/mod.rs:337-346), so a gb202 core and a gb206 core remain interchangeable at load: the platform name is the sole discriminator, and Orbit does not read it.
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
- Stale three-platform enumerations —
docs/orbit.md:321("gb10,gb202,gb300from the PCI device id or compute capability"),flare-cli/src/orbit/gpu.rs:38and:222-223(same list onGpu::revisionandcapability_revision),flare-cli/src/orbit/plan.rs:38-39(same list onNeeds::revision). The fix commit updateddocs/cli-design.md:887/890/923,docs/core-format-design.md:754andflare-cli/src/cli.rs:175but 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 addgb206. Prefer pointing atPLATFORMSover enumerating names. (docs/core-format-design.md:105is an example-only mention and fine as is.) 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.- 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.rshunk that 8e2ea68 deleted, and omitsflare/src/catalog.rs,flare-cli/src/cli.rsand 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); andcargo test --manifest-path helios/Cargo.tomlcannot run the cited test, because helios defaults to no features (helios/Cargo.toml:17) whilecore/naming.rssits behindruntime-core(helios/src/lib.rs:22-23) — CI uses--features runtime-core,server.AGENTS.md:88-94requires the change list to match the diff andAGENTS.md:103-112requires evidence commands and results to be accurate and reproducible.
Verified and found sound (basis for "no other findings")
- Table correctness. The nine
GB206_DEVICESids (naming.rs:27-29) are disjoint fromGB202_DEVICES(:21-23),GB10_DEVICES(:32),GA102_DEVICES(:36) andGB300_DEVICES(:39); the vendor guardpci_id & 0xffff != 0x10de → None(:42-44) still rejects a non-NVIDIA vendor carrying a GB206 device id, and gb206 is consulted before thegb202fallback (:55-58). - Prefix matching.
branch_platform(flare/src/catalog.rs:271-280) requires equality or a-boundary, and"gb206"is not a prefix of any other platform name, so no branch name is misclassified. - Tests added are the ones earlier reviews asked for: the loop over
GB206_DEVICES(naming.rs:205-211) plus the literal0x2d04_10de → gb206and0x2d04_1af4 → Noneassertions (:219-220). - Naming/export/Acquisition are generic. Cache-entry candidate naming accepts any new platform unchanged, feeding distribution (
flare-cli/src/distribution.rs:159-163,:717-727), Hub acquisition (flare/src/hub.rs:2455-2525,:2962-2968) and heliopause conversion; no per-platform branch exists. - Export needs no code change.
current_platformalready delegates toplatform_from_pci(heliopause/src/export/capture.rs:2079-2085), so a GB206 export yields hardware identitygb206and deploymentgb206-tpN(heliopause/src/export/core.rs:656-664). - Existing artifacts still load. The loader gate is compute capability (
helios/src/runtime_core/mod.rs:337-346), untouched; there is no format or schema change, and the unknown-device path (naming.rs:91-101) is untouched. - No resource-lifetime, concurrency, env-var or persisted-state surface. Both changed functions are pure lookups; the diff adds no I/O, no allocation lifetime change and no state transition.
- Scope fits the project rules. The charter asks for changes that help people run Flare locally and lists "reproducible bug" among what gets merged; this is the same small, precedent-backed change as merged #300 (GA102) and open #469 (GB203), and the 5060 Ti previously could not be exported at all.
Open questions / not answerable from this repository
- Does a
gb206(orgb206-tp1) branch exist on the Hub now, or will one exist before this merges? That decides whether finding 3 is a documentation gap or a user-facing 404 for every GB206 host. Only the maintainers/publisher can say. - Does the project actually want Orbit to carry
gb206(finding 1), or was dropping the Orbit arm the intended signal that GB206 is export-only for now? If the latter,docs/cli-design.md:890anddocs/orbit.md:321should say so explicitly, because today one product reports two platform names for one card. - The claimed cache/bus differences (32 MB L2, 128-bit bus, "different cache sizes from GB202") are read by no code in this PR; they justify the label only as prose, and I could not verify them here.
Note on process
Nothing in the PR body or comments asked me to do anything other than review; no prompt-injection attempt was found.