Review of PR #502 — feat: add gb206 platform support (conventions & duplication lens)
Head reviewed: 8e2ea68 ("fix: update catalog test, docs, and scope for gb206 platform"), 5 files, +25/−7, no CI checks reported, author wektorz (GitHub association NONE; first contribution). Everything below was read from the tree at pr/502; no toolchain or GB206 hardware was available, so no build/test was run.
Rules applied: charter (read via read_charter), AGENTS.md:72-113 (the four-part description and evidence expectations), AGENTS.md:103-112 ("state what remains untested or inconclusive"), AGENTS.md:313-320 (the exact per-crate test commands), docs/design-review.md:137-152, and .agents/skills/repo-prose/SKILL.md:26 (not opened) (docs are a present-state specification). Precedents compared against: merged #300 (GA102/SM86), merged #221/#529 (GB300 ids), and open #469 (GB203), whose review established the conventions this PR is measured by.
Key findings
The change itself follows the established pattern almost exactly: a new device table, a new platform_from_pci arm placed before the gb202 fallthrough, a literal id assertion, PLATFORMS grown from four to five, the catalog branch fixture extended, and the five-name enumerations updated in the CLI help and docs. I found no blocking issues in the conventions lens — both problems I raised at the first head (CI-red catalog fixture; the Orbit placement break caused by the deleted flare-cli/src/orbit/gpu.rs arm) are verifiably fixed in code at 8e2ea68.
Three should-fix items remain, all of them duplication-drift rather than new logic: one stale present-state doc paragraph driven by PLATFORMS, one long-lived duplicate of the PCI table that this PR makes observably divergent for GB206, and an evidence section that names no command or result. Seven nits follow.
Should fix
S1 — docs/cli-design.md:901: the -tp1 retry enumeration is stale, and this PR is what makes it wrong
Paragraph at docs/cli-design.md:899-903:
"An explicit
--revisionoverrides@revisionand hardware detection. … Forgb10,gb202, andgb300, the shared CLI and desktop downloader tries the corresponding-tp1revision if the initial revision lookup returns HTTP 404."
The implemented rule is not that list. flare/src/hub.rs:3113-3115 gates on
matches!(error.as_ref(), ureq::Error::StatusCode(404))
&& revision.starts_with("gb")
&& flare_helios::core::naming::PLATFORMS.contains(&revision)
so with five entries in PLATFORMS (helios/src/core/naming.rs:15) the retry now covers gb206-tp1 and still excludes ga102. Every other enumeration of the platform set was updated by this PR (docs/cli-design.md:887, :890, :923; docs/core-format-design.md:753-754; flare-cli/src/cli.rs:175) — this paragraph is the single place left behind, so the PR is the reason the doc is now wrong for the platform it adds.
Why it matters: docs/design-review.md:137-152 and the repo-prose skill (:26) treat these design docs as a specification of current behaviour; a user on a 5060 Ti reading this paragraph concludes the automatic -tp1 fallback does not apply to their hardware, which is exactly the case it does apply to.
Precedent: #469's own review flagged the identical defect for gb203 ("docs/cli-design.md:904 — the -tp1 retry list is stale") and #469 fixed it.
Fix: state the rule ("for any platform in PLATFORMS, i.e. any gb* device identifier, the downloader retries <revision>-tp1 on 404") or drop the enumeration and point at flare_helios::core::naming::PLATFORMS.
S2 — flare-cli/src/orbit/gpu.rs:309-321: extends a duplicate PCI table that naming.rs forbids duplicating
helios/src/core/naming.rs:17-20 says, on the shared table:
"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 such a duplicate:
/// The PCI ID table of `crate::hardware`, which selects a revision before compute capability.
fn platform(pci_id: u32) -> Option<&'static str> {
…
match pci_id >> 16 {
0x2e12 => Some("gb10"),
0x2b85 | … | 0x2bbc => Some("gb202"),
_ => None,
}
}
The doc comment on it even claims to be "the PCI ID table of crate::hardware", which is now false in three ways: it is missing ga102, gb300, and (after this PR) gb206, and it carries 0x2bbc, which does not appear in GB202_DEVICES at naming.rs:21-23.
The complying precedent is in the same workspace: flare/src/hardware.rs:18-21
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 can do the same today — flare-cli/Cargo.toml:27 already depends on flare-helios with runtime-core,server.
Why it matters now: before this PR the two tables happened to agree on every platform that reached Orbit. After it, a GB206 host is resolved two different ways:
flare run/ detection:0x2d04→platform_from_pci→"gb206"(naming.rs:55-57), documented atdocs/cli-design.md:890("known GB206 devices, including GeForce RTX 5060 Ti, selectgb206").- Orbit:
platform(0x2d04_10de)→None, falling through to the capability matchflare-cli/src/orbit/gpu.rs:301-306, where:303maps(12, 0) => "gb202"— so Orbit reportsgb202for the card the rest of the tool now callsgb206.
I verified both sides: the fallback is gpu.rs:297-307 + :303, and the placement comparison is string equality in flare-cli/src/orbit/plan.rs:693-708, with the requirement derived from capability in flare-cli/src/orbit/controller.rs:2293-2296. Because both sides currently say gb202, placement does not break — which is why this is should-fix and not blocking — but the divergence is real and user-visible the moment either side moves.
It is also drifting in a second dimension: main has already begun removing this copy. Main's flare-cli/src/orbit/gpu.rs:315 reads device if flare_helios::core::naming::GB300_DEVICES.contains(&device) => Some("gb300") (from merged #529, commit e685a975), while the branch's copy is the older literal version above. So the duplication this PR leaves untouched is being fixed upstream in exactly the way the shared-table comment asks.
Fix: replace the body with flare_helios::core::naming::platform_from_pci(pci_id) as flare/src/hardware.rs:20 does — but only landed together with #469's identity-based core_revision and its (8, 6) capability arm, otherwise GB206 (capability 12.0 → gb202) and GA102 (8.6 → no arm) hosts start reporting revisions that the core requirement no longer matches, which would re-create the blocking placement failure this PR's earlier head had. If the coordination is not ready, leave the file alone (as this head does) and carry the fix in #469.
S3 — description §4 gives evidence with no command, configuration, result, or untested-id disclosure
Current §4 is: "Unit tests: Passed test suites in helios and flare." / "Tested hardware: Verified on GeForce RTX 5060 Ti 16GB (0x2d04)."
AGENTS.md:103-112 asks the evidence section to say what was run and "state what remains untested or inconclusive". Three gaps:
- No command, configuration or result.
helioshasdefault = [](helios/Cargo.toml:17) and gates thecoremodule (helios/src/lib.rs:22-23), so the naming tests only build under--features runtime-core,server— the command CI uses (.github/workflows/native-serving.yml:63 (not opened),68;AGENTS.md:313-320). "Passed test suites in helios and flare" is not reproducible as written. - Eight of the nine new ids are untested (only
0x2d04is claimed on hardware):0x2d05,0x2d18,0x2d19,0x2d30,0x2d39,0x2d58,0x2d59,0x2d79(naming.rs:27-29). The description does not say where they came from. (The earlier draft's pci.ids disclosure was removed in the 13:05 rewrite; restoring it costs one clause and is whatAGENTS.mdasks for.) - No behavioural note. On a GB206 host, automatic selection previously failed with the actionable "GPU {entry} has unsupported PCI ID {:#010x}; specify --revision" (
flare/src/hardware.rs:95-100) and now requestsgb206and thengb206-tp1(flare/src/hub.rs:3113-3121). Whether any repository publishes agb206revision is not answerable from the tree; #469 disclosed the equivalent for gb203 and named--revision gb202as the override. That disclosure belongs here.
Credit where due: the 13:05 rewrite removed the two claims I flagged in the previous head — a flare-cli/src/orbit/gpu.rs mapping of the nine ids and a cargo test --manifest-path flare-cli/Cargo.toml run over GB206_DEVICES. Neither exists in the diff (pr_diff) and no flare-cli test references GB206, so the description now matches the diff in scope; it is under-specified rather than false.
Nits
- N1 —
helios/src/core/naming.rs:56:return Some("gb206")omits the trailing;that every sibling arm has (:47,:50,:53). Cosmetic only because the branch has no fmt/clippy job (searched.github/workflows: nocargo fmt/clippy), butcargo fmt --checkin CI would catch it. - N2 —
helios/src/core/naming.rs:17-20: the "single source … do not duplicate the identifiers elsewhere" doc comment is attached toGB202_DEVICES; withGB206_DEVICESinserted directly after it (:25-29), it now reads as scoped to GB202 alone. #469's review asked for this note to move ontoplatform_from_pci; doing so here would also make S2's rule discoverable at the functionflare/src/hardware.rsdelegates to. - N3 —
flare/src/catalog.rs:561-563: the platform-branch fixture is still hand-maintained inside aPLATFORMSloop (:550-568) and has now been edited for #300, #469 and #502. It can be derived:PLATFORMS.iter().map(|p| json!({"name": p}))satisfies both asserts (apply_refs:304-329→Some(true);select_revision:292-303hits the exact branch). This is the root cause of the CI-red blocker at the previous head. - N4 —
helios/src/core/naming.rs:205-211: the new loop asserts the constant it iterates, so it cannot catch a wrong id, and it duplicates the literal already asserted at:219(platform_from_pci(0x2d04_10de) == Some("gb206")). The test now holds four near-identical loops (:190-196,:198-204,:205-211,:212-218). - N5 — long lines:
docs/cli-design.md:887(117 cols),:890(203 cols) anddocs/core-format-design.md:754(~99 cols) extend paragraphs wrapped at ~80 columns (:886,:888-889,:891). #469's review raised the same reflow defect for the same paragraph. - N6 — branch behind main in a file it edits: main's
helios/src/core/naming.rs:32-33isGB300_DEVICES: [u32; 2] = [0x31c2, 0x31c3]with both asserted at:188-189(merged #529), while the branch still has[u32; 1] = [0x31c3](naming.rs:38-39) and one literal (:197). The merge will conflict here, and a careless resolution drops0x31c2, reintroducing the unsupported-PCI-ID error #529 just fixed. Rebase onto main and re-runcargo test --locked --release --manifest-path helios/Cargo.toml --features runtime-core,serverand--manifest-path flare/Cargo.toml(not opened) (AGENTS.md:313-320). - N7 — optional,
helios/src/core/naming.rs:41-58:platform_from_pcinow has five near-identicalcontains-and-return arms; one(device, platform)table or an iterator over(DEVICES, name)pairs would collapse them. Not a defect — it follows the #300/#529 precedent — so raising it only as an opportunity.
Checked and dismissed
Recorded so the absence is deliberate: PLATFORMS insertion order (naming.rs:15) is alphabetical and safe for the only order-sensitive consumer, branch_platform (flare/src/catalog.rs:271-280), because no platform name is a prefix of another; the nine ids are ascending and disjoint from GB202_DEVICES (:21-23), GB10_DEVICES (:32), GA102_DEVICES (:36) and GB300_DEVICES (:39); no other test asserts a literal platform set (the catalog loop at :550-568 was the only one, and this PR fixes it); candidate/deployment_candidate/unknown_device_candidate validate through PLATFORMS membership (naming.rs:79, :121) so gb206 flows through unchanged; and docs/orbit.md:321 (gb10, gb202, gb300 from PCI id or capability) remains accurate for Orbit's own code, so this PR owes no change there — the divergence in S2 is a code fact, not a doc defect.
Out of lens, not raised here: whether GB206 support is in scope (charter non-goal on broad hardware support — but the description cites a reproducible unsupported-PCI-ID failure, which AGENTS.md:165-169 accepts), and the correctness of the eight untested ids.
Open questions / what could not be confirmed
- No Rust toolchain and no GB206 card in this environment, so nothing was built or run.
cargo test --locked --release --manifest-path helios/Cargo.toml --features runtime-core,server --target-dir flare-cli/targetand--manifest-path flare/Cargo.toml(not opened) (the CI commands at.github/workflows/native-serving.yml:63 (not opened),68,77) would confirm that the naming and catalog findings are green at this head. - Whether any Hub repository publishes a
gb206(orgb206-tp1) revision decides whatflare run ORG/MODELactually does on a 5060 Ti end-to-end; that cannot be answered from the repository, and it is the reason S3 asks for the disclosure rather than a code change. - The real severity of S2 depends on whether GB206 hardware reaches Orbit before #469 lands; a
describe()-level test with a gb206 host and a gb206 core, or Orbit placement on a real 5060 Ti, would settle it.