Correctness review — PR #502 "feat: add gb206 platform support"
Head: 8e2ea68 · base main · 5 files, +25/−7 · no CI checks · no reviews.
Verdict: should-fix issues only. Nothing here blocks merge on correctness grounds; three documentation/consistency gaps should be closed first.
Key findings
- One GB206 card now has two platform names inside one product. Detection (
helios/src/core/naming.rs:55-57) returnsgb206for0x2d04, andflare run/flare downloadact on it, but Orbit's private copy of the table has no gb206 arm, so an Orbit agent reportsgb202for the same card.docs/cli-design.md:890, edited by this PR, states that GB206 selectsgb206. - The
-tp1fallback sentence atdocs/cli-design.md:901is now incomplete in a section this PR edits: it lists onlygb10,gb202,gb300, while the implementation (flare/src/hub.rs:3114-3115) covers anygb*name inPLATFORMS— including the newgb206. - GB206 hosts trade a clear error for a Hub 404 (
flare/src/hardware.rs:95-100→flare/src/hub.rs:3111-3122), and the PR neither says so nor states whether agb206branch will exist when it merges.
Two blockers from earlier review rounds are resolved at this head and are not re-raised (see "Resolved" below).
Should fix
S1. Orbit and flare run report different platforms for the same GB206 host
flare-cli/src/orbit/gpu.rs:297-321; helios/src/core/naming.rs:41-59; flare-cli/src/orbit/controller.rs:2293-2295; flare-cli/src/orbit/plan.rs:693-696; docs/cli-design.md:890; docs/orbit.md:321.
Detection is shared and now yields gb206: flare-cli/src/hardware.rs:2 → flare/src/hardware.rs:18-21 → naming.rs:55-57, consumed by flare hardware-revision (flare-cli/src/main.rs:112 (not opened)), flare download/run (flare-cli/src/hub.rs:41, and flare/src/hub.rs:314-316 when no origin revision is recorded). Orbit does not share it: orbit/gpu.rs:310-321 matches only 0x2e12 and the ten GB202 ids, so revision() (:297-307) falls through to (12, 0) => "gb202" (:303) for a GB206 card.
Why it matters, all visible in code:
flare runrequests Hub revisiongb206(thengb206-tp1,flare/src/hub.rs:3118); Orbit requestsgb202throughrepository_revision(controller.rs:2220-2232, which reads the agent'sgpu.revision).- A core exported on that machine records hardware identity
gb206and deploymentgb206-tpN(heliopause/src/export/core.rs:656-664), while Orbit's requirement for the same core isgb202. - They currently interoperate only by accident: Orbit derives its requirement from compute capability alone (
controller.rs:2294→capability_revision,orbit/gpu.rs:224-231), and the loader gates only on CUDA attributes 75/76 (helios/src/runtime_core/mod.rs:337-346), so agb202core handed to a GB206 host passes the architecture check and fails only if it does not fit VRAM. - The docs disagree with each other:
docs/cli-design.md:890(this PR) says known GB206 devices selectgb206;docs/orbit.md:321says Orbit derives the revision from the PCI id, which reads asgb206but yieldsgb202.
This divergence is pre-existing, not introduced here — but this is the PR that creates gb206 identities, and the coupled fix belongs to open #469 (delegate orbit/gpu.rs:310-321 to platform_from_pci and take the requirement from AuthorizedCore::identity()?.hardware when it is a PLATFORMS name, keeping capability_revision for legacy cores with empty hardware, helios/src/runtime_core/model.rs:1392-1409). Adding the Orbit arm alone in this PR would refuse every GB206 GPU at plan.rs:695 (gpu.revision != revision) and would also break GA102, whose hosts report sm86 through the capability fallback (orbit/gpu.rs:224-231 has no (8,6) arm) and whose cores require sm86.
Fix (documentation only, for this PR): one sentence in docs/cli-design.md or the description stating that Orbit keeps the capability-derived gb202 identity for GB206 until #469 lands. Do not add the Orbit arm here.
S2. docs/cli-design.md:901 omits gb206 from the retry rule the PR's own paragraph changes
docs/cli-design.md:899-903 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 condition is revision.starts_with("gb") && flare_helios::core::naming::PLATFORMS.contains(&revision) (flare/src/hub.rs:3114-3115), so gb206 gets the gb206-tp1 retry and ga102 does not. This PR edited :887, :890 and :923 of the same section and left :901.
Fix: state the rule ("any detected platform revision beginning gb"), or add gb206 while keeping ga102 out.
S3. GB206 hosts lose the actionable error and get two Hub 404s; merge order undisclosed
flare/src/hardware.rs:95-100; flare/src/hub.rs:3111-3122; docs/cli-design.md:891-892; PR description §4.
Before: a 0x2d04 card produced GPU {entry} has unsupported PCI ID {:#010x}; specify --revision (sibling on the export path: heliopause/src/export/capture.rs:2081-2084, "NVML reports unsupported GPU PCI id"). After: detection succeeds, flare run ORG/MODEL requests gb206, then gb206-tp1, and propagates the Hub error, which no longer mentions --revision gb202. docs/cli-design.md:891-892 ("An unknown identifier … requires an explicit revision") still documents the old path. Open #469's author disclosed exactly this consequence for gb203; #502 does not.
Fix: one sentence in the description/docs: --revision gb202 is the explicit override until a gb206 build is published. Do not add a silent fallback — the charter and AGENTS.md forbid silently substituted paths. Whether a gb206 branch exists now or at merge is not answerable from this repository (see open questions).
Nits
- Stale three-name enumerations of the revision space —
docs/orbit.md:321,flare-cli/src/orbit/gpu.rs:38and:222-223,flare-cli/src/orbit/plan.rs:38-39. Accurate for Orbit's current behaviour, but they will contradict the CLI docs until S1 is settled; prefer pointing atPLATFORMS. helios/src/core/naming.rs:56—return Some("gb206")lacks the;its neighbours carry (:47,:50,:53). Compiles as a tail expression and no rustfmt job runs in CI, so it is cosmetic rather than a defect.- The "single source" comment does not match reality —
naming.rs:17-20says "This table is the single source … do not duplicate the identifiers elsewhere", but it is attached toGB202_DEVICESrather thanplatform_from_pci(:41), andorbit/gpu.rs:310-321does duplicate it: that copy lists0x2bbc, which is absent fromGB202_DEVICES:21-23, and omitsga102,gb300and four of the five GB10 ids. Belongs with #469. - Nine ids, one verified —
naming.rs:25-26attributes nine ids to "GeForce RTX 5060 Ti, 5060, and mobile/workstation variants", but only0x2d04has a literal assertion (:219, plus the vendor-guard assert at:220) and cited hardware. The loop at:205-211iteratesGB206_DEVICESitself, so it cannot catch a wrong id. Would be settled by citing pci.ids, as merged #300 did for GA102. - Doc reflow —
docs/cli-design.md:887(~110 cols),:890(~150 cols) anddocs/core-format-design.md:754(~105 cols) break paragraphs wrapped at ~80. - PR description is stale and one evidence command cannot run the cited test — §2 still advertises the
flare-cli/src/orbit/gpu.rsmapping that8e2ea68deleted, omitsflare/src/catalog.rs,flare-cli/src/cli.rsand both doc files, and describes "prevents crashes" where the code returns a clean error; the 5060 Ti run names no command or result.cargo test --manifest-path helios/Cargo.tomlcannot run the cited test (helios/Cargo.toml:17 default = [],helios/src/lib.rs:22-23gatescorebehindruntime-core); it needs--features runtime-core,server. AGENTS.md:88-94 (change list must match the diff) and :103-112 (evidence commands accurate and reproducible).
Resolved at this head — do not re-raise
flarecrate test used to fail whenPLATFORMSgrew.flare/src/catalog.rs:549-569now contains{"name": "gb206"}in the fixture at:561-563. The inner loop at:551-560assertsbuild_target_match == Some(target == published)for every (target, published) pair in both suffix forms,:566assertsSome(true), and:567assertsbranch_platform(select_revision(..)) == Some(target). Passes for all five platforms.- GB206 cores used to be described as needing
gb202in a way that blocked placement. At8e2ea68Orbit'srevision()still returnsgb202for0x2d04(orbit/gpu.rs:303), which equals thecapability_revision(12,0)requirement Orbit derives (controller.rs:2294,orbit/gpu.rs:224-231), andplan.rs:693-696compares those two strings — so they match and placement works. The residual issue is the identity mismatch captured in S1, not a refusal.
Verified sound — basis for no other findings
- Table integrity. 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 guard (:42-44) still rejects non-NVIDIA ids;gb206is consulted before the gb202 fallback (:55-58). No other table in the repo contains a0x2d**id (repo-wide search). - Ordering in
PLATFORMSis immaterial. No name is a prefix of another, andbranch_platform(flare/src/catalog.rs:271-280) requires equality or a-boundary, so no branch is misclassified;[&str; 5]is not serialized anywhere. - Every
PLATFORMSconsumer accepts a fifth name generically.flare/src/catalog.rs:320and:550-551;flare/src/hub.rs:2473,:2490,:2963,:3115;heliopause/src/export/conversion.rs:402;flare-cli/src/distribution.rs:159,:720;naming.rs:79,:121. No exhaustive match on platform names exists anywhere (ga102appears only in naming.rs and the CLI help). - Export needs no code change.
current_platformalready delegates (heliopause/src/export/capture.rs:2079), so a GB206 export yields identitygb206and deploymentgb206-tpN(core.rs:656-664). - Distribution is cross-version safe. Controller and receiver each compute their own entry name from their own
SystemTime::now()(distribution.rs:159-163,:717-727,:807), and warm reuse keys onplan.export(:745), not on the platform string. - Mixed-platform machines.
flare/src/hardware.rs:101-106now rejects a GB202+GB206 selection with "selected GPUs span multiple platforms"; before, a GB206 card errored outright, so no regression. - Catalog behaviour on GB206 hosts.
detect(1).ok()atflare/src/controller.rs:1429now yieldsSome("gb206"), so a repo with only gb202 branches reportsbuild_target_match = Some(false)instead ofNone— intended, and consumed by the loop verified above. - Existing artifacts still load. No format or schema change; loader untouched (
helios/src/runtime_core/mod.rs:337-346); unknown-device path untouched (naming.rs:91-103). - No lifetime, concurrency, cancellation, env-var or persisted-state surface is added: both changed functions are pure lookups.
Open questions
- Does a
gb206(orgb206-tp1) branch exist on the Hub now, and will one exist at merge? This decides whether S3 is a documentation gap or a 404 for every GB206 host.flare/src/hub.rs:3111-3122requests both; nothing in the repo publishes either. Settle with the maintainers/publisher. - Does the project want Orbit to carry
gb206in this PR, 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:321must say so. - Are all nine
GB206_DEVICESids correct? Only0x2d04is asserted literally and tested on hardware. A pci.ids citation would settle it. - The claimed cache/bus differences (32 MB L2, 128-bit bus, "different cache sizes from GB202") are read by no code and uncited — not verifiable in this repository.
Rules cited
Charter: "Check interactions across every supported model, cache scheme, parallel layout, multi-host setup, and hardware target named in the docs"; "verify that existing data, artifacts, and exported cores still load"; do not silently swallow or substitute; "reproducible bug" among what gets merged. AGENTS.md:88-94 and :103-112 for change-list and evidence accuracy. Scope matches merged #300 (GA102) and open #469 (GB203); the 5060 Ti previously could not be exported at all, so this change removes a real limitation.
Process note
The PR carries an automated flare-autobot comment (2026-11-26) with directional advice ("do not add a GB206 arm to orbit/gpu.rs", "please don't add a silent fallback"). Its technical claims were checked independently in the code and hold (plan.rs:695 would refuse a gb206 host; orbit/gpu.rs:224-231 has no (8,6) arm, so GA102 hosts stay on sm86), but it was treated as review material, not instruction. No prompt-injection attempt was found in the PR body or its comments.