Architecture & scope review — PR #502 "feat: add gb206 platform support"
Head reviewed: 8e2ea68 (the fix commit). Files changed: helios/src/core/naming.rs (+19/−1), flare/src/catalog.rs (+1/−1), flare-cli/src/cli.rs (+1/−1), docs/cli-design.md (+3/−3), docs/core-format-design.md (+1/−1). No reviews, no CI checks on the head commit, PR is still a draft.
Key findings
- No blocking issues remain. The two blockers from my first pass are resolved: the
PLATFORMSlength change no longer breaks an existing test (flare/src/catalog.rs:561-563fixture now carries{"name": "gb206"}), and the CLI help / design-doc platform enumerations now list five names. - The Orbit half of the original PR was withdrawn rather than fixed, and that is the main remaining defect:
flare-cli/src/orbit/gpu.rs:309-321no longer has a GB206 arm, so a GB206 card falls through tocapability_revision(12,0) => "gb202"(gpu.rs:224-231,:297-307) whileflare run, ignition export and core naming all saygb206. It does not crash today only because the core's requirement is also capability-derived (flare-cli/src/orbit/controller.rs:2293-2294vsflare-cli/src/orbit/plan.rs:693-696). Should fix. - Scope and layering are otherwise clean: nine correct GB206 ids, disjoint from the GB202/GB10/GA102/GB300 tables, added to the table that names itself the single source (
helios/src/core/naming.rs:17-20); no new flag, env switch, or per-model branch; everyPLATFORMSconsumer is membership-based, so existing cores keep loading. - 3 further should-fix items (missing Orbit test, stale
-tp1sentence indocs/cli-design.md:901, description/evidence omissions) and 2 nits.
Verified clean (so this is not re-litigated)
In scope. The charter asks for "PRs that address a maintainer request, a roadmap item, a reproducible bug, a measured performance/memory issue, or bad docs", and its "Stay focused … not … broad hardware support" line is satisfied by adding a table row for a die the engine already targets (design-review principle 4 names SM120; GB206 is SM120). Precedent is explicit and recent: #300 (GA102) and #529 (GB300 0x31c3) merged as table rows, and #469 (GB203) is the same shape still open. A crash-avoidance fix for a consumer Blackwell part is squarely the "reproducible bug" case.
Ids are right and disjoint. helios/src/core/naming.rs:27-29 adds the nine ids 0x2d04, 0x2d05, 0x2d18, 0x2d19, 0x2d30, 0x2d39, 0x2d58, 0x2d59, 0x2d79; none collides with GB202_DEVICES (:21-23), GB10_DEVICES (:32), GA102_DEVICES (:36) or GB300_DEVICES (:39). The new arm sits before the GB202 then_some tail (:55-58), so ordering is correct, and the vendor check at :42-44 keeps non-NVIDIA ids out (the new 0x2d04_1af4 assert at naming.rs:220 pins that).
Consumers are generic. flare/src/catalog.rs:271-280, 292-303, 304-329 key on PLATFORMS membership; flare/src/hub.rs:2455-2515 (signed_hardware), :2955-2968, :3114-3115; flare-cli/src/distribution.rs:157-163; heliopause/src/export/conversion.rs:400-412; heliopause/src/export/capture.rs:2079-2085. Nothing enumerates a fixed arity of four, so widening the array from [&str; 4] to [&str; 5] compiles everywhere and legacy cores (empty hardware → unknown-device) are unaffected.
No special case or flag introduced. The change adds table data and a match arm; it adds no env var, no CLI flag, no per-model branch, so design-review principles 1 and 3 (shared mechanisms, no per-model branches) are not implicated.
Should fix
1. flare-cli/src/orbit/gpu.rs:297-321 — Orbit withdraws GB206 instead of delegating, so the layers disagree
Orbit's revision() first consults a private platform() table (gpu.rs:310-321) and then falls back to capability_revision (gpu.rs:224-231). Head 8e2ea68 deleted the GB206 arm from that table rather than routing to the shared one, so a GeForce RTX 5060 Ti (0x2d04) reaches capability_revision(12, 0) → "gb202", while:
flare run/flare downloaddetectgb206viaflare/src/hardware.rs:18-21→helios::core::naming::platform_from_pci;- ignition export names cores from the same table (
heliopause/src/export/capture.rs:2079-2085,heliopause/src/export/conversion.rs:400-412); - core entry names use
PLATFORMS(helios/src/core/naming.rs:15).
Why it matters, concretely:
- Placement survives only by coincidence.
describebuilds the core requirement from compute capability (orbit/controller.rs:2293-2294,runtime_corearchitecture bytes) andplan.rs:693-696compares hostgpu.revisionto it exactly. Both sides therefore saygb202today. #469 (open, accepted direction) moves the requirement to the core's recorded identity (CoreIdentity::hardware,helios/src/runtime_core/model.rs:1329-1343, already read this way inflare-cli/src/distribution.rs:157-163). The moment that lands, every locally exportedgb206core becomes unplaceable in Orbit and this goes from should-fix to blocking. - Orbit downloads ask for the wrong revision.
repository_revision(orbit/controller.rs:2209-2232) sends the node'sgpu.revision, i.e.gb202, while the CLI on the same card asks forgb206. - The duplication contradicts the table's own contract.
naming.rs:17-20says "This table is the single source consumed by Flare's device detection and by core export naming; do not duplicate the identifiers elsewhere." The copy atgpu.rs:310-321has already drifted: it omits0x2bbcfrom GB202, four of the five GB10 ids, and GA102 entirely. Crucially, merged #529 already rewrote this exact function to read the shared table —mainhasdevice if flare_helios::core::naming::GB300_DEVICES.contains(&device) => Some("gb300")atflare-cli/src/orbit/gpu.rs:315. Delegation is the maintainers' established direction, not a new idea.
Fix: replace the body of revision with flare_helios::core::naming::platform_from_pci(pci_device_id).map(str::to_owned).unwrap_or_else(|| capability_revision(major as i32, minor as i32)), delete platform, and (given #469) switch the requirement in controller.rs:2293-2294 to the core's recorded hardware identity in the same PR or an immediately following one. If the intent is genuinely to keep Orbit capability-derived, the PR description must say so — right now it claims only that helios and flare-cli/src/orbit/gpu.rs both map the nine ids.
2. flare-cli/src/orbit/gpu.rs:349-364 — no test covers any GB206 id on the Orbit side
The two existing tests exercise 0x2e12, 0x2bb4, 0x2b85, 0x31c3, 0x2e13, 0x2c00, 0x2330, 0x2901 — none of the nine new ids. Because a miss is invisible (the capability fallback yields a plausible gb202), the bug in finding 1 would have been caught by a single assert_eq!(revision(0x2d0410de, 12, 0), "gb206"). This is exactly the "test every table entry" pattern the PR added in helios/src/core/naming.rs:205-211. Add the equivalent for the ids Orbit claims to support, and include a case whose compute capability disagrees with the PCI id (e.g. revision(0x2d0410de, 9, 0)), so a future regression to the capability path fails loudly.
3. docs/cli-design.md:901 — the -tp1 retry sentence still lists three platforms
The paragraph this PR edits now reads "revisions named ga102, gb10, gb202, gb206, and gb300" at :887, but 14 lines later :901 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 code retries for any revision that starts with gb and is in PLATFORMS (flare/src/hub.rs:3114-3115), so gb206-tp1 is retried. Leaving the sentence stale makes the doc contradict itself in the same paragraph and would lead a reader to believe gb206-tp1 is not attempted. Fix: drop the enumeration (:901-902) or extend it to the current set. (Note ga102 is genuinely excluded by the starts_with("gb") guard, so the sentence should say "every gb* platform".)
4. PR description and cited evidence — the limitation and the change of failure mode are not disclosed
Two obligations come from the repository's own prose rules: AGENTS.md:72-112 requires the four-part description with untested configurations and limits visible, and .agents/skills/repo-prose/SKILL.md:26-37 (not opened) requires disclosing what was not run and what the change does to the present state.
- Undisclosed consequence. Before this PR, a GB206 card on
flare run/downloadhit the actionable errorGPU … has unsupported PCI ID …; specify --revision(flare/src/hardware.rs:95-100). Now detection succeeds and requests the Hub revisiongb206(flare/src/hub.rs:313-317), which — per the PR's own description — nothing publishes; the fallback atflare/src/hub.rs:3104-3121then triesgb206-tp1, and if that is also absent the user gets a 404 with no pointer to--revision gb202. The description should state this and name--revision gb202as the current workaround until agb206core set is published. - Evidence defect. The claim "Verified … via
cargo test --manifest-path helios/Cargo.toml" cannot run the added test:helios::coreis behind#[cfg(feature = "runtime-core")](helios/src/lib.rs:22-23), and the repo's CI uses--features runtime-core,server(.github/workflows/native-serving.yml:63 (not opened),68). As written the evidence is not reproducible. Also worth stating that eight of the nine ids are untested on hardware and sourced from pci.ids (the description does say this — good — but the crash claim is only demonstrated for0x2d04).
Nits
helios/src/core/naming.rs:56:return Some("gb206")is the only arm inplatform_from_pciwithout a trailing semicolon; its siblings at:47,:50,:53all have one.rustfmtleaves it, but it reads as an oversight.- Docs reflow: the edited lines in
docs/cli-design.md:887,:890anddocs/core-format-design.md:754run ~120-150 columns inside paragraphs hard-wrapped at ~76 (docs/cli-design.md:885-897), which makes the surrounding diff unreadable. Rewrap to the file's existing margin.
Open questions / what only the authors can settle
- Is the Orbit half of this PR intended to land at all? If GB206 support is meant to be
helios-only for now (export naming), say so in the description and drop theflare-cli/src/orbit/gpu.rsclaim from the summary; otherwise finding 1 needs the delegation plus, ideally, the identity-based requirement. - Which Hub branch will actually hold GB206 cores, and when? The PR ships a platform name that no published artifact set matches. If
gb206cores will be published asgb206this is only a documentation gap; if they will keep living undergb202, addinggb206toPLATFORMSmakesdownloadfail where it previously succeeded, which would change the verdict. - Does a locally exported
gb206core actually serve on the card today? The description says local core preparation/serving was validated on the 5060 Ti, which suggests Orbit is not the path under test; I could not confirm from the code alone which command that was, and no CI run exists on the head commit to corroborate. - Not verifiable from the code: whether
0x2d30/0x2d39/0x2d58/0x2d59/0x2d79really are GB206 (pci.ids says so; no hardware here). A wrong mapping would be nearly invisible because of the capability fallback — another reason for finding 2.