Architecture & scope review — PR #502 "feat: add gb206 platform support"
Head reviewed: 8e2ea68 (the fix commit). Diff: 5 files, +25/−7 — helios/src/core/naming.rs, flare/src/catalog.rs, flare-cli/src/cli.rs, docs/cli-design.md, docs/core-format-design.md. No CI checks on the head commit, no reviews; PR is still a draft.
Key findings
- No blocking issues remain at head
8e2ea68. Both defects from my first pass are resolved: the widenedPLATFORMSarray no longer breaks the flare test (flare/src/catalog.rs:561-563fixture now carries{"name": "gb206"}), and the CLI help plus both design docs now list five platform names (flare-cli/src/cli.rs:175,docs/cli-design.md:887,:890,:923,docs/core-format-design.md:754). - The Orbit half of the change was withdrawn rather than fixed, and that is the one architectural defect left.
flare-cli/src/orbit/gpu.rs:309-321no longer has a GB206 arm, so a GeForce RTX 5060 Ti (0x2d04) falls through tocapability_revision(12, 0)→"gb202"(gpu.rs:224-231,:301-306) whileflare run/download, ignition export and core naming all saygb206. It does not break 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 now; becomes blocking the moment the identity-based requirement (#469's direction) lands. - Scope, layering and compatibility are otherwise clean: nine GB206 ids that are correct and disjoint from the GB202/GB10/GA102/GB300 tables, added to the table that declares 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 resolving and no arity of four is hardcoded. - 3 further should-fix items (missing Orbit test, one stale
-tp1sentence inside the file this PR edits, undisclosed change of failure mode + non-reproducible test command in the description) and 3 nits.
Verified clean (recorded so the report does not re-litigate it)
In scope. The charter requires "PRs that address a maintainer request, a roadmap item, a reproducible bug, a measured performance/memory issue, or bad docs", and docs/design-review.md:53-56 (not opened) (principle 4) already names SM120 as a target architecture; GB206 is an SM120 consumer die. The charter's "Stay focused … not … broad hardware support" line is satisfied by a table row for a die the engine already targets rather than a new backend. Precedent is explicit and recent: #300 (GA102) and #529 (GB300 0x31c3) merged as table rows, and #469 (GB203) is the same shape and still open. Fixing an unsupported-PCI-ID error on a supported-die consumer part is the "reproducible bug" case.
Ids are correct and disjoint. helios/src/core/naming.rs:27-29 adds 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 (:55-57) sits before the GB202 then_some tail (:58), so ordering is right, and the vendor guard at :42-44 keeps non-NVIDIA ids out — pinned by the new 0x2d04_1af4 assert at naming.rs:220.
Consumers are generic, so widening the array is safe. flare/src/catalog.rs:272 (branch_platform), :320 (apply_refs), :550-568; flare/src/hub.rs:2473, :2490 (signed_hardware — membership only, model-agnostic), :2963, :3115; flare-cli/src/distribution.rs:159, :720; heliopause/src/export/conversion.rs:402; helios/src/core/naming.rs:79, :121. Nothing enumerates a fixed arity of four.
Compatibility. Existing cores are unaffected: signed_hardware (flare/src/hub.rs:2455-2515) and legacy install naming (:2955-2968) key on PLATFORMS membership plus a recorded hardware_identity, and nothing rewrites existing entries, so cores that recorded gb202 keep naming and resolving as before. Legacy cores with empty hardware (helios/src/runtime_core/model.rs:1381) are unchanged.
No special case or flag. The diff adds table data, one PLATFORMS entry and two match arms. No env var, no CLI flag, no per-model branch, so docs/design-review.md:16-34 (not opened) principles 1 and 3 (shared mechanisms, no per-model policy) are not implicated; no CUDA/kernel code, so principle 14 does not apply.
Should fix
1. flare-cli/src/orbit/gpu.rs:297-321 — GB206 was withdrawn from Orbit instead of delegating to the shared table, so the layers now disagree
Orbit's revision() consults a private platform() table (gpu.rs:309-321) and then falls back to capability_revision (gpu.rs:224-231). Head 8e2ea68 deleted the GB206 arm from that table rather than routing it to the shared one, so a GeForce RTX 5060 Ti (0x2d04) reaches (12, 0) → "gb202", while:
flare run/flare downloaddetectgb206throughflare/src/hardware.rs:18-21→helios::core::naming::platform_from_pci(naming.rs:41-59) and set the Hub revision from it (flare/src/hub.rs:313-317,flare-cli/src/hub.rs:40-41(not opened));- 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 (flare-cli/src/orbit/controller.rs:2293-2294,capability_revision(first.architecture…)) andflare-cli/src/orbit/plan.rs:693-696compares hostgpu.revisionto it exactly. Both sides saygb202today precisely because neither uses the PCI id. #469's accepted direction moves the requirement to the core's recorded identity (CoreIdentity::hardware,helios/src/runtime_core/model.rs:1329-1343, already read that 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(flare-cli/src/orbit/controller.rs:2209-2232) sends the node'sgpu.revision, i.e.gb202, so a GB206 node pulls GB202-named revisions whileflare downloadon the same card asks for the (unpublished)gb206. - The duplication contradicts the table's own contract.
helios/src/core/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 (present atnaming.rs:21-23), four of the five GB10 ids (naming.rs:32), and GA102 entirely (naming.rs:36). Merged #529 already rewrote this exact function to consume the shared table (onmain:device if flare_helios::core::naming::GB300_DEVICES.contains(&device) => Some("gb300")), so delegation is the maintainers' established direction, not a new idea.
Fix, and it must not be applied alone. Setting revision to platform_from_pci(...) else capability_revision(...) and deleting platform() makes hosts say ga102/gb206 while cores in the same commit still require sm86/gb202 (capability_revision has no (8, 6) arm either), which would refuse every GA102 and GB206 GPU. So bundle it: (a) delegate revision to naming::platform_from_pci, deleting platform(); (b) make describe() take the requirement from authorized.identity()?.hardware when it is a PLATFORMS name, keeping the capability path for legacy cores — the pattern already used in flare-cli/src/distribution.rs:157-163. If the intent is genuinely to keep Orbit capability-derived for now, the cheaper acceptable outcome is to say so in the description and drop the flare-cli/src/orbit/gpu.rs claim from the summary; today the description asserts the Orbit side is covered.
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), 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 itself added in helios/src/core/naming.rs:205-211. Add the equivalent for the ids Orbit claims to support, plus one case whose compute capability disagrees with the PCI id (e.g. revision(0x2d0410de, 9, 0)), so a regression to the capability path fails loudly.
3. docs/cli-design.md:901-903 — 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 attempted. The doc now contradicts itself within one paragraph, in the very file this PR modifies, and would lead a reader to believe gb206-tp1 is not tried. Fix: drop the enumeration (:901-902) or state "every gb* platform" — note ga102 is genuinely excluded by the starts_with("gb") guard, so "every platform" would be wrong.
4. PR description and cited evidence — the change of failure mode and a non-reproducible test command
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 — by the PR's own description — nothing publishes;resolve_revisionthen retriesgb206-tp1(flare/src/hub.rs:3104-3121) and, if that is also absent, the user gets a 404 with no pointer to the workaround. The description should state this and name--revision gb202(accepted atdocs/cli-design.md:899) as the interim override until agb206core set exists. - Evidence defect. The stated evidence "
cargo test --manifest-path helios/Cargo.toml" cannot run the added test:helios::coreis gated on#[cfg(feature = "runtime-core")](helios/src/lib.rs:22-23). The repo's CI uses--features runtime-core,server(.github/workflows/native-serving.yml:63 (not opened),68). As written the claim is not reproducible; please cite the command CI actually runs. The description is otherwise good on this axis — it separates the hardware-tested id (0x2d04on a 5060 Ti 16 GB) from the eight sourced from pci.ids.
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,:53,:58are consistent.rustfmtleaves it, but it reads as an oversight.- Docs reflow — the edited lines at
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 margin. - Stale Orbit-side enumerations —
flare-cli/src/orbit/gpu.rs:38-40(Gpu.revisiondoc),:222-223,flare-cli/src/orbit/plan.rs:38-39,docs/orbit.md:321andflare-cli/src/distribution.rs:66still describe the platform set asgb10/gb202/gb300. These match current Orbit behaviour, so they are not wrong as code — but they are the place where the divergence in finding 1 is documented, and one sentence noting that Orbit is capability-derived would remove the ambiguity.
Open questions / what I could not settle from the code
- 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 andflare run), saying so in the description downgrades finding 1 to a documentation gap and findings 1–2 can be deferred to #469. Nothing in the code states the intent; only the authors can. - Which Hub branch will hold GB206 cores, and when? The PR ships a platform name that no published artifact set matches. If
gb206cores will be published asgb206, this is only a disclosure gap (finding 4). If they will keep living undergb202, then addinggb206toPLATFORMSmakesdownload404 where it previously printed an actionable error, which is a behaviour regression that would change the verdict. - Does a locally exported
gb206core actually serve on the card throughflare runtoday? 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 the exact command from the code, and no CI run exists on the head commit to corroborate. A single Orbit unit test (finding 2) plus one line in the description naming the command would settle it. - Not verifiable here: whether
0x2d30/0x2d39/0x2d58/0x2d59/0x2d79really are GB206. They match pci.ids as the description states, but there is no hardware in this environment — and a wrong mapping would be nearly invisible because of the capability fallback, which is another argument for finding 2's disagreeing-capability test case.