Review of PR #502 — feat: add gb206 platform support (conventions and duplication lens)
Head reviewed: 8e2ea68 ("fix: update catalog test, docs, and scope for gb206 platform"), 5 files, +25/−7, draft, no CI checks, author wektorz. Files read in context: helios/src/core/naming.rs, flare/src/catalog.rs, docs/cli-design.md, docs/core-format-design.md, flare-cli/src/cli.rs, plus the callers of the shared PCI table (flare/src/hardware.rs, flare/src/hub.rs, flare-cli/src/orbit/gpu.rs) and the rules in AGENTS.md, docs/design-review.md, the charter and the repo-prose skill. Benchmarks were read against the earlier head; both blocking findings from the 2026-11-24 review are now resolved in the code.
Key findings
The change itself is now conformant: the new platform is added at the single source of truth, the loop-over-PLATFORMS test in flare/src/catalog.rs was extended with a matching branch, and the docs/help enumerations were updated in five of six places. One stale present-state sentence remains (docs/cli-design.md:901), the PR description still describes a diff that no longer exists, and the long-standing duplicate PCI table in flare-cli/src/orbit/gpu.rs is now visibly divergent for the newly supported hardware. No blocking issues remain at this head.
Resolved since the previous review (verified at 8e2ea68)
- Catalog test no longer breaks CI.
flare/src/catalog.rs:561-563adds{"name": "gb206"}to the branch fixture, so the loop overPLATFORMS(catalog.rs:550-567) now exercises all five targets:apply_refs(:304-329) setsSome(true)andselect_revision(:292-303) hits the exact branch. Previously the fixture had four branches and"gb206"failed both asserts. - Orbit placement is no longer broken. The
0x2d04|…|0x2d79 => Some("gb206")arm was removed fromflare-cli/src/orbit/gpu.rs;platform()there (gpu.rs:309-321) maps only gb10 and gb202, so GB206 hosts still reportgb202through the capability fallback (gpu.rs:303,(12, 0) => "gb202") and the core requirement derived from the same capability still matches. This is the reviewer-suggested "drop the flare-cli hunk entirely" route. - Enumerations mostly updated:
docs/cli-design.md:887,:923,docs/core-format-design.md:753-754,flare-cli/src/cli.rs:175. - Naming nits taken: space in
naming.rs:15, doc comment onGB206_DEVICES(naming.rs:25-26, matching the GA102/GB10/GB300 precedent), a literal assertionplatform_from_pci(0x2d04_10de) == Some("gb206")plus a vendor check atnaming.rs:219-220.
Should fix
1. docs/cli-design.md:901 — the -tp1 fallback still enumerates three platforms, but is driven by PLATFORMS
The paragraph (lines 899-903) says:
For
gb10,gb202, andgb300, the shared CLI and desktop downloader tries the corresponding-tp1revision if the initial revision lookup returns HTTP 404.
The behaviour is general, not a hand-written list: flare/src/hub.rs:3113-3121 triggers the fallback on revision.starts_with("gb") && flare_helios::core::naming::PLATFORMS.contains(&revision). With PLATFORMS now five entries (naming.rs:15), a detected gb206 revision gets the gb206-tp1 fallback as well, so this sentence understates the code and would be the only platform-doc line that omits gb206's acquisition behaviour.
Why it matters: docs/ is the present-state specification of the product (.agents/skills/repo-prose/SKILL.md:26 (not opened), cited through docs/design-review.md:137-152); a sentence that contradicts the code at the head commit is a documentation defect even when no runtime behaviour changes. The same paragraph was updated for gb203 in #469 and for ga102 in #300, so the established pattern is to keep it in sync.
Fix: add gb206 to the list, or better, delete the enumeration and point at naming::PLATFORMS so the sentence cannot drift again (§Nits 3 argues the same for the other copies).
2. PR description no longer describes the diff
Section 2 still claims:
Updated
platform(pci_id)to map the same 9 GB206 PCI device IDs toSome("gb206")during NVML device discovery.
and section 4 claims the mapping was verified with cargo test --manifest-path flare-cli/Cargo.toml across all nine GB206_DEVICES entries. At head 8e2ea68 there is no GB206 arm in flare-cli/src/orbit/gpu.rs at all (the whole flare-cli src change is one line, cli.rs:175), and no test in flare-cli references GB206; the nine-id loop lives at helios/src/core/naming.rs:205-211 and only runs with --features runtime-core,server (helios/src/lib.rs:22-23, AGENTS.md:317).
Why it matters: AGENTS.md:72-113 requires the "what exactly changed" and "what evidence supports those claims" sections to describe the change as merged (Never invent evidence), and docs/design-review.md:137-152 (principle 16) requires a reviewer not to need the diff to reconstruct the argument. A reviewer reading this description will look for a mapping and a test that do not exist. Removing the flare-cli hunk was the right call, but the description did not follow, and the description is also the record of which hardware was actually exercised.
Fix: drop the flare-cli/src/orbit/gpu.rs bullet, credit the flare-cli/src/cli.rs help-line change instead, and state the test command that actually covers the nine ids (cargo test --features runtime-core,server --manifest-path helios/Cargo.toml), keeping 0x2d04 as the only id tested against hardware.
3. flare-cli/src/orbit/gpu.rs:309-321 — a private copy of the PCI table that naming.rs forbids, now visibly divergent
helios/src/core/naming.rs:17-20 states the rule explicitly:
This table is the single source consumed by Flare's device detection and by core export naming; do not duplicate the identifiers elsewhere.
flare-cli/src/orbit/gpu.rs:309-321 is that duplication: a local platform() with its own match, its own vendor mask, and its own device list (one gb10 id 0x2e12 out of five, plus 0x2bbc in the gb202 arm which the shared table keeps, no ga102, no gb300 at this head).
The complying precedent is already in the tree and in the same workspace: flare/src/hardware.rs:18-21 is a one-line wrapper —
fn platform(pci_id: u32) -> Option<&'static str> {
// Single mapping table shared with core export naming.
flare_helios::core::naming::platform_from_pci(pci_id)
}
— and flare-cli/Cargo.toml:27 already depends on flare-helios with features = ["runtime-core", "server"], so platform_from_pci is available in this crate without a new dependency.
Why it matters for this PR, concretely: before it, both paths answered gb202 for a GB206 part (shared table by exclusion → None → capability fallback; orbit table by exclusion → capability fallback). After it, the shared answer for 0x2d04 is gb206 (naming.rs:55-58, surfaced through flare/src/hardware.rs:20 and documented at docs/cli-design.md:890), while Orbit still reports gb202 (gpu.rs:298-307). The two "Flare hardware revision" answers for the same card now disagree, and nothing in Orbit's own docs or tests says so (docs/orbit.md:321 still lists gb10, gb202, gb300, which remains accurate for Orbit's code — so no doc change is owed there, but the divergence is a real usability trap for a fleet mixing 5060 Ti cards). This is exactly the drift the comment warns about, and it is the reason #469 deletes the copy in favour of core_revision.
Fix: make orbit/gpu.rs::platform delegate to flare_helios::core::naming::platform_from_pci exactly as flare/src/hardware.rs:18-21 does, and keep the capability fallback in revision() only for ids the shared table does not know. If the placement divergence must be deferred, it belongs with #469's core_revision change rather than standing alone as the third copy of the decision.
Nits
helios/src/core/naming.rs:56—return Some("gb206")omits the trailing semicolon that every sibling arm has (:47,:50,:53) and the file's style otherwise follows. Nofmt/clippygate exists in.github/workflows/native-serving.yml(not opened), so nothing enforces it. Fix: add the;.helios/src/core/naming.rs:17-20— the "single source … do not duplicate" doc comment is attached toGB202_DEVICES, and withGB206_DEVICESnow inserted directly after it (:25-29) the scope reads as "this GB202 table", not "the PCI table as a whole". Precedent: it should describeplatform_from_pci(as #469's review asked). Fix: move the comment ontoplatform_from_pciat:41, or reword it to cover all four*_DEVICEStables.- Five-name enumerations duplicated from
PLATFORMS—docs/cli-design.md:887,docs/cli-design.md:923,docs/core-format-design.md:753-754,flare-cli/src/cli.rs:175. All are consistent now, but none derives fromhelios::core::naming::PLATFORMS(naming.rs:15), which is precisely how the fourth platform went stale; and the sixth copy,docs/cli-design.md:901, already did (finding 1). Fix: point the prose atPLATFORMSand keep the literal list only innaming.rs. - Branch is behind
main—mainnow hasGB300_DEVICES: [u32; 2] = [0x31c2, 0x31c3](naming.rs:33) from #529 and aGB300_DEVICESlookup inflare-cli/src/orbit/gpu.rs:315; this branch's copy of that file is the pre-#529 version. Rebase before merge and re-runhelios(--features runtime-core,server),flareandflare-clitests, and re-check finding 3 against the rebased file — #529 makes the duplicate table diverge from the shared one in a second dimension.
Open questions and what could not be verified
- No build or test run was possible in this environment. Every finding above is read from the code at
pr/502. Findings 1-3 and the nits are static text/matchfacts and do not depend on execution; the claim that the catalog test passes at this head rests on readingapply_refs/select_revision(flare/src/catalog.rs:292-329) against the extended fixture, not on a run. Acargo test --locked --release --manifest-path flare/Cargo.toml(not opened) would settle it. - Whether adding
gb206toPLATFORMSis the intended seam at all —PLATFORMSis used to gate the Hub-tp1fallback (flare/src/hub.rs:3115) and the catalog-ticket/ref filtering, so a platform name in this array implies an expected Hub revision. Nothing publishes agb206build yet, so after this PR detection will requestgb206/gb206-tp1and 404 where it previously produced an actionable error. That is a behaviour question for the correctness lens; flagged here only because it is the mechanism finding 1's documentation sentence describes. - Correctness of the eight untested ids (
0x2d05,0x2d18,0x2d19,0x2d30,0x2d39,0x2d58,0x2d59,0x2d79) is outside this lens; the description discloses they come frompci.idsrather than hardware, which is the disclosureAGENTS.md:103-112asks for. - Charter scope (GB206 support vs. "not … broad hardware support") is not raised: the description cites a reproducible ignition failure, which
AGENTS.md:165-169accepts, and the change follows the merged #300 / open #469 pattern for adding a platform.
Verdict: should-fix issues only. Nothing blocks the change as a naming addition; findings 1 and 2 are text defects in files the PR already touches, finding 3 is the duplication the PR's own source file forbids and which this change makes observable.