Simplicity review — PR #502 "feat: add gb206 platform support" (head 8e2ea68)
No new commits since the previous round; the PR description was edited at 2026-11-26 13:05, so the earlier description defects (§2 advertising the deleted flare-cli/src/orbit/gpu.rs platform() hunk, the "prevents crashes" claim, the L2/bus/VRAM rationale) are gone. Nothing in the PR text tried to instruct me.
Head is 5 files (+25/−7) per pr_files: docs/cli-design.md (+3/−3), docs/core-format-design.md (+1/−1), flare-cli/src/cli.rs (+1/−1), flare/src/catalog.rs (+1/−1), helios/src/core/naming.rs (+19/−1). The helios half is small and correct: nine ids, one return in platform_from_pci (helios/src/core/naming.rs:55-57), one PLATFORMS entry (:15), and every consumer picks gb206 up without an edit (candidate/deployment_candidate naming.rs:79/:121; flare/src/hub.rs:2473/:2490/:2963/:3115; flare/src/catalog.rs:272/:320; distribution.rs:159/:720; conversion.rs:402 (not opened)). Everything below is duplication this diff either adds or leaves standing next to the change it makes. Judged against AGENTS.md:188-193 (reject churn; refactoring must support the requested behaviour or remove a demonstrated source of defects), AGENTS.md:194-199 (tests must exercise the affected contract), and the invariant the table itself states at helios/src/core/naming.rs:17-20.
Verdict: should-fix only. No blocking finding. Nothing in the diff is CUDA or other GPU kernel code, so the defect-only rule for kernel paths does not apply.
Key findings
flare/src/catalog.rs:561-563keeps a second, hand-maintainedPLATFORMS; this diff's+{"name": "gb206"}is the third hand edit to it (#300, #469). It should be derived.helios/src/core/naming.rs:205-211— the added test cannot fail on a wrong device id, which is precisely the PR's claim.helios/src/core/naming.rs:21-59— five consts plus five if-arms; this diff is the sixth copy of a shape that costs four edits per platform. One table.docs/cli-design.md:901is now false: the-tp1retry gate is everygb*name inPLATFORMS(flare/src/hub.rs:3113-3115).flare-cli/src/orbit/gpu.rs:297-321carries a private PCI table this PR makes observably wrong (gb206inflare,gb202in Orbit) — but the fix must not land alone.
Should fix
S1 flare/src/catalog.rs:561-563 (inside the loop at :550-568) — the fixture is a second, hand-maintained PLATFORMS.
The loop iterates flare_helios::core::naming::PLATFORMS (:550) and then, against a literal branch list, asserts build_target_match == Some(true) (:566) and branch_platform(select_revision(..)) == Some(target) (:567). apply_refs sets the flag from platforms.contains(target) (flare/src/catalog.rs:315-322), so the assertion is satisfiable only while the literal list equals PLATFORMS; that is exactly why this diff had to add {"name": "gb206"}. The same fixture was edited for #300 (ga102) and is edited again in #469 ("the fixture now includes gb203-tp1, without which the test fails for the new platform"). The failure mode is a red flare suite in CI (.github/workflows/native-serving.yml:77 (not opened)), not a caught bug.
Do not delete the block: it is the only place select_revision runs against a multi-platform branch set (:551-559 feeds one branch at a time). Derive it instead, which deletes the platform names from the test:
let refs = serde_json::from_value(json!({"branches":
flare_helios::core::naming::PLATFORMS
.map(|p| json!({"name": format!("{p}-tp1")}))
.to_vec()
})).unwrap();
S2 helios/src/core/naming.rs:205-211 — the added test cannot fail on a wrong device id.
The loop reads GB206_DEVICES and asserts the mapping of that same constant, so its only possible failures are "platform_from_pci ignores GB206_DEVICES" and "the vendor mask is broken"; a mistyped id passes. It duplicates the literal two lines below (:219, assert_eq!(platform_from_pci(0x2d04_10de), Some("gb206"))) and is the third copy of the identical shape (:198 GB202, :205 GB206, :212 GA102; :190 uses a literal for GB10). The ids' correctness is the PR's actual claim, and §4 says only 0x2d04 met hardware.
Smaller and stronger — one loop over pairs plus one literal array a reviewer can check against a driver's id list:
for (devices, platform) in [
(&[0x2e02, 0x2e03, 0x2e06, 0x2e12, 0x2e2a][..], "gb10"),
(&GB202_DEVICES[..], "gb202"),
(&GB206_DEVICES[..], "gb206"),
(&GA102_DEVICES[..], "ga102"),
] {
for device in devices {
assert_eq!(platform_from_pci(device << 16 | 0x10de), Some(platform), "{device:#06x}");
}
}
assert_eq!(GB206_DEVICES, [0x2d04, 0x2d05, 0x2d18, 0x2d19, 0x2d30, 0x2d39, 0x2d58, 0x2d59, 0x2d79]);
(If S3 lands, the loop reads DEVICES and the literal stays. Whichever table shape lands, keep one loop plus one literal array.) Rule: AGENTS.md:194-199.
S3 helios/src/core/naming.rs:21-59 — five consts plus a five-arm if-chain that this diff extends by one more copy.
The consts are read only in this file and in its own test (search GB202_DEVICES|GB206_DEVICES|GB10_DEVICES|GA102_DEVICES|GB300_DEVICES → naming.rs only). One platform currently costs four edits (const, if-arm, PLATFORMS, and the fixed array length) and this diff is the sixth copy of that shape — the same shape #300 and #469 each paid again. One table makes a platform one row, and removes the missing ; at :56 as a side effect:
pub const PLATFORMS: [&str; 5] = ["ga102", "gb10", "gb202", "gb206", "gb300"];
/// Devices that select each platform, in NVML's `device<<16 | vendor` layout. This is the single
/// source for detection, export naming, and the reported revision; do not duplicate it elsewhere.
pub const DEVICES: [(&str, &[u32]); 5] = [
("ga102", &[0x2203, 0x2204, 0x2206, 0x2208, 0x220a, 0x2216]),
("gb10", &[0x2e02, 0x2e03, 0x2e06, 0x2e12, 0x2e2a]),
("gb202", &[0x2b85, 0x2b87, 0x2b8c, 0x2bb1, 0x2bb2, 0x2bb3, 0x2bb4, 0x2bb5, 0x2bb9]),
("gb206", &[0x2d04, 0x2d05, 0x2d18, 0x2d19, 0x2d30, 0x2d39, 0x2d58, 0x2d59, 0x2d79]),
("gb300", &[0x31c3]),
];
pub fn platform_from_pci(pci_id: u32) -> Option<&'static str> {
if pci_id & 0xffff != 0x10de {
return None;
}
let device = pci_id >> 16;
DEVICES.iter().find(|(_, ids)| ids.contains(&device)).map(|(platform, _)| *platform)
}
39 lines to 21. Branch order stops mattering because the id sets are disjoint (checked: the nine GB206 ids naming.rs:27-29 collide with nothing at :21-23, :32, :36, :39).
S4 docs/cli-design.md:901 is false at this head.
"For gb10, gb202, and gb300, the shared CLI and desktop downloader tries the corresponding -tp1 revision if the initial revision lookup returns HTTP 404" (:901-903) — the gate is 404 && revision.starts_with("gb") && PLATFORMS.contains(&revision) (flare/src/hub.rs:3113-3115), so this diff silently adds gb206 to the retried set (and ga102 is not retried at all: it does not begin gb). It contradicts :887 and :923, which the same diff updates. Fix: state the rule ("a detected platform revision whose name begins gb"), not three copied names; likewise for the enumerations in N4.
S5 flare-cli/src/orbit/gpu.rs:297-321 — the second PCI table this diff is the sixth copy of, which this PR makes observably wrong.
revision() (:297-307) consults private platform() (:310-321: one GB10 id 0x2e12, GB202 plus 0x2bbc, no ga102/gb300/gb206) before an arm-for-arm copy of capability_revision (:301-306 vs :224-231, cf. :222). helios/src/core/naming.rs:19-20 forbids the duplication and flare/src/hardware.rs:18-21 already shows the delegating shape. Before this PR both tools fell through to (12,0) -> gb202, so the copies happened to agree; now a 5060 Ti reports gb206 in flare and gb202 in Orbit, and Orbit's inferred hub revision comes from exactly those per-GPU strings (flare-cli/src/orbit/controller.rs:2210-2232), so flare run requests gb206 while Orbit requests gb202, and flare orbit show prints gb202.
Smaller version, 16 lines deleted and the duplicated match gone: platform_from_pci(pci_id).map(str::to_owned).unwrap_or_else(|| capability_revision(major, minor)). flare-cli already depends on flare-helios (flare-cli/Cargo.toml:27).
Important, and the reason this is not a one-line patch to this PR: do not change orbit/gpu.rs alone and do not add a GB206 arm here. A core's required revision is still capability_revision (flare-cli/src/orbit/controller.rs:2293-2296) compared exactly at flare-cli/src/orbit/plan.rs:693-696, so making the agent report gb206 would refuse every GB206 core ("is gb206, not gb202"), and GA102 would break too (no (8,6) arm). #469 carries the coupled change (core_revision from the signed device identity plus the (8,6) arm); this PR should stay out of that file, as it now does. The finding stands as a follow-up tied to #469, not as a request to widen this diff.
Nits
N1 helios/src/core/naming.rs:56 — return Some("gb206") lacks the ; its siblings at :47, :50, :53 carry. No CI step runs cargo fmt --check or clippy (search of .github/workflows for cargo fmt|fmt --check|clippy: no matches), so it will persist. Removed by S3.
N2 helios/src/core/naming.rs:25-26 — the doc comment attributes "GeForce RTX 5060 Ti, 5060, and mobile/workstation variants" to nine ids, eight of which the description calls untested. Say which id was exercised (.agents/skills/repo-prose/SKILL.md:30-34 (not opened), implementation vs qualification).
N3 helios/src/core/naming.rs:17-20 — the "single source … do not duplicate the identifiers elsewhere" comment sits above GB202_DEVICES as if it documented those ids; it belongs on platform_from_pci, which is the function it constrains (and the one S5's copy violates).
N4 Five more platform enumerations that will need this same edit next time — flare-cli/src/orbit/gpu.rs:38, :222, flare-cli/src/orbit/plan.rs:38, docs/orbit.md:321 (all four omit ga102 and gb206), and flare-cli/src/distribution.rs:66 ("gb202/gb10"). Fix: "a name from PLATFORMS" in the doc comments, one list in the docs.
N5 Three over-long lines the diff leaves behind — docs/cli-design.md:887 (~106 columns) and :890 (~207; the inserted GB206 clause made it the longest line in the section) and docs/core-format-design.md:754 (~108), inside paragraphs wrapped at ~80. Re-wrap; preferably by stating the rule once instead of enumerating names (S4).
N6 (outside this lens, flagged for the prose review) PR description §4 — "Verified on GeForce RTX 5060 Ti 16GB (0x2d04)" names no command and no result, and "Passed test suites in helios and flare" names no command (the helios test needs --features runtime-core,server; CI runs it so at .github/workflows/native-serving.yml:63 (not opened)/:68). §2/§3 also do not mention that detection now asks the Hub for gb206 and then gb206-tp1 on 404 (flare/src/hub.rs:3110-3122), neither published, replacing the actionable "unsupported PCI ID …; specify --revision" (flare/src/hardware.rs:95-100). Suggest one sentence with the command and its result, and one saying --revision gb202 is the override until a gb206 build exists. Please do not add a silent fallback.
Checked and clean at this head
- The nine GB206 ids (
naming.rs:27-29) are disjoint from GB202 (:21-23), GB10 (:32), GA102 (:36) and GB300 (:39), so inserting the return above the GB202 tail (:55-58) is order-independent and correct. - Widening
PLATFORMSneeds no other edit:candidate/deployment_candidateacceptgb206through it, the Hub-tp1retry (flare/src/hub.rs:3114-3115) andbranch_platformprefix matching (flare/src/catalog.rs:271-279) follow automatically, and the fixed length[&str; 5](naming.rs:15) makes a forgotten length a compile error. - The export path picks
gb206up throughplatform_from_pci(heliopause/src/export/capture.rs:2079), andflaredetection throughflare/src/hardware.rs:18-21; the unsupported-id error this PR removes iscapture.rs:2081-2084andhardware.rs:95-100. flare/src/catalog.rs:550-568passes at this head: the fixture carriesgb206(:562).- Dropping the earlier
flare-cli/src/orbit/gpu.rsarm was right; see S5 for why the file should stay untouched here. - The diff adds no dead code, no option, no fallback and no parallel path;
PLATFORMSis the only new name crossing a crate boundary.
Open questions
- Whether S3's single
DEVICEStable is acceptable to maintainers who currently rely on the per-family consts as documentation; the ids are public API (pub const) but have no consumer outsideheliostoday, so this is a taste call, not a compatibility risk. - Whether the
-tp1fallback should exist forgb206at all before agb206branch is published (S4/N6): the code will retrygb206-tp1and then surface a second 404. Only publishing the branch, or a maintainer decision to keep the generic rule, settles it.