#1 [high] Should fix: catalog.rs test fixture is redundant with the loop above it (9 lines)
File: flare/src/catalog.rs, test published_build_match_uses_all_platform_branches (lines 548-570). The PR edits the hardcoded five-branch fixture at :561-563 (+1/-1) because "without which the test fails for the new platform" (PR description, Evidence).
What goes: the second block, :561-569 (9 lines) — the {"branches": [...]} fixture plus assert_eq!(entry.build_target_match, Some(true)) / assert_eq!(branch_platform(select_revision(...)), Some(target)).
Why nothing is lost:
- The first block, :550-560, already loops
target×publishedoverPLATFORMSand assertsentry.build_target_match == Some(target == published)(:558) andentry.hardware(:557) for every platform, including gb203.Some(true)for target==published is the same assertion as :567. - Mixed-branch
select_revisionselection is already covered bytarget_selection_and_display_fallback_are_deterministic(:525-547): branches {gb202, gb10, gb202-tp8}, exact hit (:531-535), suffixed hit (:542-546), and absent-target fallback (:535-538). select_revision/branch_platform(:271-303) are platform-agnostic (they readPLATFORMS), so proving them once per platform adds no behaviour.
This is exactly the fixture every future platform PR must edit: the open gb206 PR #502 was told to add {"name":"gb206-tp1"} to it (review comment on #502, 2026-11-25). Deleting the block removes the maintenance and 9 lines.
Smaller version: keep :548-560 only.
Note: if the block is kept, the smaller fix is to build the fixture from PLATFORMS rather than a literal list, so no platform PR touches it again.
#2 [high] Should fix: the GB203_DEVICES loop proves the same thing as the literal assert (8 lines)
File: helios/src/core/naming.rs, test pci_ids_select_the_platform_identifier, PR lines 209-216.
The PR adds both:
assert_eq!(platform_from_pci(0x2c31_10de), Some("gb203")); // :209
for device in GB203_DEVICES { // :210-216, 7 lines
assert_eq!(platform_from_pci(device << 16 | 0x10de), Some("gb203"), "{device:#06x}");
}
GB203_DEVICES is [u32; 1] = [0x2c31] (:27), so the loop expands to exactly the literal assert at :209. Lines 210-216 (+ the loop's 7 lines) can go: delete the loop, keep the literal (which the description cites as the evidence: "asserts 0x2c31 literally as well as through GB203_DEVICES").
Contrast the existing conventions in the same test: GB300 uses two literals (:200-201), GB10/GB202/GA102 use loops because their tables hold 5-9 ids (:193-199, :202-208, :217-223). A one-element table needs no loop.
Saved: 7 lines (plus one blank). If a second GB203 id is added later, the literal assert stays valid; the loop can come back with the second id.
#6 [high] Nit: trims in the new core_revision test; totals and rejected candidates
Line-level trims inside the PR's own additions; ~4 lines.
-
flare-cli/src/orbit/gpu.rs:374-383
a_core_requires_the_revision_its_device_identity_records— 7 asserts, two carry no new behaviour:core_revision("gb202", 12, 0) == "gb202"(:377) is the same code path as"gb203"(:376), which is the point of the test.core_revision("sm120", 9, 0) == "sm90"(:382) pairs a hardware string that is not a platform with an architecture that is not ansm120one; nothing in the repository produces such a core (identity hardware comes fromcapture.rs:2161-2167, which only writesPLATFORMSnames or the unknown-device label).- The two in-test comments (:375, :379) restate the
core_revisiondoc (:240-242). Keep :376, :378, :380-381 (gb203 wins, ga102, legacy empty string). Saves ~4 lines.
-
describe(controller.rs:2293-2298) is already minimal:identity()is called nowhere else in this file (grep), so the 4-linehardwarebinding cannot be folded into an existing call. -
Considered and rejected: merging
revision(:314-318) andcore_revision(:243-248) into oneprefer-named-platform-else-capabilityhelper saves ~0 lines and hides which source the platform came from. Not a finding.
Counts for the report: PR is +90/−46 over 9 files (pr_files). Confirmed removable: 9 (catalog fixture) + 8 (naming loop) + 5 (ga102 test) + 6-8 (comments) + 4 (test asserts) ≈ 28-32 lines of the 90 added, landing near +58/−46. No blocking finding: the helios table + PLATFORMS entry is the necessary fix, and the flare-cli dedupe (private PCI table, −16 lines) is itself a subtraction this PR performs; the placement core_revision is required once hosts report gb203 (same blocker #502 hit).
#8 [high] Verdict and dead-code check: nothing superseded, ~33/90 added lines removable
Checked for code this PR makes dead (lens item 4) — none found:
- flare/src/hardware.rs:18-21
platform()wrapper now delegates to naming (already did before this PR);detect/inventoryunchanged and still the only no-fallback path. It has no capability fallback by design (description, "Two label changes"), so nothing to delete. - flare-cli/src/orbit/gpu.rs: private
platformtable is already deleted by the PR (-16 lines), and its callers now go throughplatform_from_pci(:314-318). Nothing left behind: grep forfn platformin flare-cli returns nothing. - flare-cli/src/distribution.rs:159 and flare/src/hub.rs:2997 both inline the same
PLATFORMS.contains ? x : Nonepattern this PR'score_revisionnow expresses (gpu.rs:244). They live in other crates/paths, so consolidating them is a separate change; not created dead code by this PR. - docs/cli-design.md:904 is stale but not dead code (see entry 5).
- No flag, option, config or test elsewhere is superseded:
capability_revisionkeeps both callers (:247, :317),Needs.revision/CoreNeeds.revisionkeep their consumers in plan.rs:272-604.
Verdict: not blocking. The core of the change (GB203_DEVICES + PLATFORMS entry + platform_from_pci) is 6 lines of table and logic that nothing existing provides, and the flare-cli hunk is itself a net subtraction (-16 line duplicate table). The removable part is the added test/doc bulk: ~33 of the 90 added lines.
#9 [high] Research summary
Reviewed PR #469 (+90/−46 over 9 files) for subtraction only. Verdict: not blocking — the essential change is small (a 1-element GB203_DEVICES table, a PLATFORMS entry, one branch in platform_from_pci), and the flare-cli hunk is itself a net subtraction (it deletes a 16-line private PCI table that naming.rs explicitly forbids). The placement core_revision is necessary once hosts report gb203; without it nothing places, the same blocker raised on the sibling gb206 PR #502.
Confirmed findings, ranked by lines saved (~28–33 of the 90 added lines), all recorded in the scratchpad:
-
9 lines, flare/src/catalog.rs:561-569 — the second block of
published_build_match_uses_all_platform_branches(the hardcoded five-branch fixture the PR edits) duplicates coverage already given by thePLATFORMS × PLATFORMSloop at :550-560 and bytarget_selection_and_display_fallback_are_deterministicat :525-547. Deleting it also removes the fixture every future platform PR must patch (the open gb206 PR was told to add to it). -
8 lines, helios/src/core/naming.rs:210-216 — the
for device in GB203_DEVICESloop expands to exactly the literalassert_eq!(platform_from_pci(0x2c31_10de), …)on the line above, because the table holds one id. Keep the literal, drop the loop. -
5 lines, flare-cli/src/orbit/gpu.rs:367-371 — the new
ga102_pci_ids_report_the_platform_the_table_namestest re-asserts whatcore_revision("", 8, 6)(same file, :381) and helios'spci_ids_select_the_platform_identifier(:217-223) already prove. -
~6 lines, comments — the
capability_revisiondoc paragraph (gpu.rs:222-229) restates the match arms below it; theGB203_DEVICESsecond doc paragraph (naming.rs:22-26) restates the PR description's die-size rationale while every neighbouring table has one line. -
~4 lines, gpu.rs:377 and :382 — two asserts in the new test carry no new behaviour (gb202 is the same path as gb203; the
sm120/9.0 pairing describes a core nothing can produce), plus two comments restating the function's own doc. -
~4 lines, gpu.rs:235 — the
(8, 6) => "ga102"arm cannot change placement (listed GA102 devices resolve through the table; no GA102 core exists with an empty identity because pre-#300 ignition aborted), so it only relabels the fallback and is separable from GB203.
Also noted as a smaller-but-not-smaller-lines item: platform-name lists repeat in five places; the PR left gpu.rs:222 already missing gb203 and docs/cli-design.md:904 stale (the -tp1 404 retry at flare/src/hub.rs:3147-3152 now covers gb203 too).
I checked for code the PR leaves dead and found none: the private table's callers are all repointed, capability_revision keeps both callers, and Needs.revision/CoreNeeds.revision keep their consumers.
#10 [high] Report inputs: per-file diff accounting and the smaller-version code for each finding
Per-file diff at head 62a3726 (base main), total +90/−46 (from pr_files):
- flare-cli/src/orbit/gpu.rs +42 −27 (the −27 includes the deleted 16-line private PCI table + capability fn body)
- helios/src/core/naming.rs +25 −5
- docs/cli-design.md +7 −5
- flare-cli/src/orbit/controller.rs +5 −1
- docs/orbit.md +3 −2
- docs/core-format-design.md +2 −2
- flare-cli/src/orbit/plan.rs +2 −2 (doc comment only)
- flare-cli/src/cli.rs +2 −1 (help text only)
- flare/src/catalog.rs +2 −1 (test fixture only)
Smaller versions to show in the report:
F1 flare/src/catalog.rs — keep :548-560, delete :561-569:
#[test]
fn published_build_match_uses_all_platform_branches() {
for target in flare_helios::core::naming::PLATFORMS {
for published in flare_helios::core::naming::PLATFORMS {
for suffix in ["", "-tp8"] {
let name = format!("{published}{suffix}");
let refs = serde_json::from_value(json!({"branches": [{"name": name}]})).unwrap();
let mut entry = CatalogEntry::default();
apply_refs(&mut entry, refs, Some(target));
assert_eq!(entry.hardware, published.to_ascii_uppercase());
assert_eq!(entry.build_target_match, Some(target == published));
}
}
}
}
F2 helios/src/core/naming.rs:209-216 — literal only:
assert_eq!(platform_from_pci(0x2c31_10de), Some("gb203"));
F3 flare-cli/src/orbit/gpu.rs:367-371 — delete the whole ga102_pci_ids_report_the_platform_the_table_names test.
F5 flare-cli/src/orbit/gpu.rs:374-383 — keep four asserts:
fn a_core_requires_the_revision_its_device_identity_records() {
assert_eq!(core_revision("gb203", 12, 0), "gb203");
assert_eq!(core_revision("ga102", 8, 6), "ga102");
assert_eq!(core_revision("", 12, 0), "gb202");
assert_eq!(core_revision("", 8, 6), "ga102");
}
F4 smaller comments:
- gpu.rs:222-229 →
/// Applies only to devices the PCI table does not list and to cores that record no device identity. - naming.rs:22-26 →
/// GB203 device identifiers for the SM120 platform: RTX PRO 4500 Blackwell.
Priority order for the report (by lines saved): F1 9, F2 8, F4 ~6-8, F3 5, F5 4, F6 (8.6 arm) 4. Estimated total removable ~28-33 of 90 added lines; nothing blocking; no dead code left behind (entry 8).
Charter lines to cite: line 10 "Stay focused" (broad hardware support is a non-goal), line 35 "What gets merged", line 42 supported-matrix/compatibility. Also naming.rs:39-43 comment "These tables are the single source ... do not duplicate the identifiers elsewhere", which the PR now honours and which is the reason the flare-cli hunk is a subtraction rather than an addition.
#12 [high] Should fix: catalog.rs test block (12 lines) is fully covered by the loop above it
Head fb784c9, flare/src/catalog.rs, test published_build_match_uses_all_platform_branches:
:550-561 loop: for target in PLATFORMS { for published in PLATFORMS { for suffix in ["", "-tp8"] { name = published+suffix; apply_refs(&mut entry, refs, Some(target)); assert entry.hardware == published.to_ascii_uppercase(); assert entry.build_target_match == Some(target == published); }}}
:562-573 (12 lines, added by this PR): // Two platforms whose names share a prefix must still select apart, so no // per-platform fixture is needed as the table grows. let branches = ["gb202", "gb203-tp1"]...; assert select_revision(&branches, Some("gb203")) == Some("gb203-tp1"); assert select_revision(&branches, Some("gb202")) == Some("gb202"); assert branch_platform("gb203-tp1") == Some("gb203");
Why redundant:
- The loop already runs published="gb203", suffix="-tp8": name "gb203-tp8". apply_refs (:304-329) builds
platformsthrough branch_platform (:271-280), sets entry.hardware = "GB203" and build_target_match == Some(false) for target gb202. That is exactly "a gb203 branch must not resolve to gb202 / branch_platform('gb203-tp1') == gb203", asserted at :573 and implied at :569-572. - select_revision's mixed-branch, suffixed-hit and exact-hit selection are asserted in
target_selection_and_display_fallback_are_deterministic(:525-547: exact hit :531-535, target gb202 over {gb10, gb202-tp8} -> gb202-tp8 :542-546, branch_platform on suffixed and foreign names :539-541). - The stated prefix risk cannot arise: no PLATFORMS name is a prefix of another (ga102, gb10, gb202, gb203, gb300 differ before the end), and branch_platform already requires the suffix to start with '-' (:277-278), covered by branch_platform("gb202unrelated") == None (:540).
Smaller version: delete :562-573 and keep :548-561 unchanged. Saves 12 lines; nothing asserted is lost.
#13 [high] Should fix: the new (8,6) capability arm names every SM 8.6 device ga102, including ones the table rejects
flare-cli/src/orbit/gpu.rs:229 (8, 6) => "ga102".into(), — added by this PR; only affects the fallback label (listed GA102 ids resolve through platform_from_pci at :308-312).
Evidence it is wrong for unlisted 8.6 devices: helios/src/core/naming.rs:218 asserts platform_from_pci(0x2484_10de) == None (RTX 3070, GA104) and :34 GA102_DEVICES lists only [0x2203,0x2204,0x2206,0x2208,0x220a,0x2216]. GA103/GA104 also report compute capability 8.6, so with this arm an Orbit agent on such a host reports ga102 and becomes a candidate for a core whose identity says ga102, though the die is not GA102 — placement (:693-696 compares the two strings) would accept it.
Nothing needs the arm for the stated purpose:
- Host side: all six GA102 ids are listed, so
revision(:308-312) returns "ga102" from the table; the PR's "GA102 devices report ga102 instead of sm86" comes from the delegation, not this arm. - Core side: cores prepared since #300 record identity "ga102" and
core_revision(:237-242) returns it; pre-#300 ignition aborted on GA102 ("unsupported GPU pci id"), so no identity-less GA102 core exists to rescue. - With the arm gone, both host and core fall back to
sm86from the same function, which is what they did before this PR.
Remove: :229 (1 line) and the assert it exists for, :370 core_revision("", 8, 6) == "ga102" (1 line) -> becomes "sm86". Saves 2 lines; also drops the PR description's GA102 relabel claim, which no longer needs stating. Charter line 10 ("stay focused ... not broad hardware support") supports it.
#14 [high] Nit: six line-level trims left in the new test/doc text (10 lines) — counts at head fb784c9
Head fb784c9 (hunk verified via pr_diff + read_file; total +84/-56 over 9 files: gpu.rs +32/-28, naming.rs +18/-5, cli-design.md +11/-8, catalog.rs +12/-7, orbit.md +3/-2, core-format-design.md +2/-2, plan.rs +2/-2, cli.rs +2/-1, controller.rs +2/-1).
Line-level trims inside the PR's own additions:
a) flare-cli/src/orbit/gpu.rs:366 assert_eq!(core_revision("gb202", 12, 0), "gb202"); — same branch as :365 ("gb203"); both are PLATFORMS names short-circuiting at :238. 1 line.
b) flare-cli/src/orbit/gpu.rs:371 assert_eq!(core_revision("sm120", 9, 0), "sm90"); — a hardware string that is not a platform paired with an architecture that is not SM120's; the non-platform fallback is already :369 (""). Nothing in the repo produces such a pair (identity hardware is platform_from_pci's value, capture.rs:2161-2167 / heliopause core.rs:656-659, or "unknown-device"). 1 line.
c) flare-cli/src/orbit/gpu.rs:364 and :368 in-test comments restate core_revision's doc at :234-236. 2 lines.
d) docs/cli-design.md:904-906: "For a detected platform revision that begins gb (gb10, gb202, gb203, gb300), ..." — the parenthetical repeats the rule and is the list that will drift. Drop it: 1 line.
e) flare-cli/src/cli.rs:202-203 --revision help half of HubOptions — "otherwise detects ga102, gb10, gb202, / gb203, or gb300." -> "otherwise detects the GPU's platform." One line instead of two, and the next platform PR no longer edits it. 1 line.
f) helios/src/core/naming.rs:22-26 — GB203_DEVICES second doc paragraph ("separate die ... fewer SMs and less memory ... shares compute capability 12.0") restates the PR description's Why; every neighbouring table doc is one line (:17, :29-30, :32-34, :36-37). Keep :22 only. 4 lines.
Total from these: 10 lines. Together with the catalog block (12) and the (8,6) arm (2): ~24 of the 84 added lines, landing near +60/-56.
Note: the author already took the two biggest earlier findings (naming.rs [u32;1] loop deleted, capability_revision doc down to 2 lines), and gpu.rs:222-223 is now fine.
#15 [high] Verdict at head: not blocking, nothing newly dead, ~24 of 84 added lines removable
Re-checked at head fb784c9 for code this PR supersedes or makes dead (lens item 4):
- flare-cli/src/orbit/gpu.rs private
platformtable: deleted by the PR;grep "fn platform"in flare-cli returns nothing;revision(:308-312) is the only caller path via platform_from_pci. - flare/src/hardware.rs:18-21
platform()wrapper now delegates to naming (already did); still only caller of detect (:95); no capability fallback by design -> no dead branch to remove. capability_revisionkeeps two callers (:241, :311).core_revisionhas one caller in non-test code (controller.rs:2295).Needs.revision/CoreNeeds.revisionkeep their consumers in plan.rs (:272, :284, :358, :503, :544, :693).- helios/src/core/naming.rs: no stale table or duplicate of GB203_DEVICES anywhere (GB202/GB10/GA102/GB300 tables all still live).
- Stale prose left behind by the change (not dead code): docs/orbit.md:321-322 now says the revision comes "from the PCI device id, or
sm{major}{minor}for a compute capability that names no platform", but gpu.rs:224-231 still names a platform for unlisted 12.0/12.1/10.3 devices (gb202/gb10/gb300) and now 8.6. The new clause contradicts the fallback it documents; the older wording ("from the PCI device id or compute capability") was shorter and correct. Grounds for dropping the added clause, not for adding anything.
Verdict: not blocking. Essential logic that nothing existing provides: naming.rs:15 (PLATFORMS entry), :27 (GB203_DEVICES), :49-51 (branch) = 6 lines; gpu.rs:237-242 (core_revision) + controller.rs:2293-2295 = 8 lines. The flare-cli hunk is a net subtraction (-16 line duplicate table). Removable remaining: ~24 of the 84 added lines.
#16 [high] Report of 2026-11-26 (head fb784c9): ~24 of 84 added lines removable, ranked
FINAL ranked list for the report at head fb784c9 (+84/−56 over 9 files). Total removable ≈ 24 lines, all added test/doc text; no production logic lost.
-
Should fix — flare/src/catalog.rs:562-573, 12 lines. Delete the second block of
published_build_match_uses_all_platform_branches. The PLATFORMS×PLATFORMS loop :550-561 already runs published="gb203"/"-tp8" through apply_refs and asserts hardware == "GB203" and build_target_match == Some(target=="gb203"), which is the "gb203 branch must not resolve to gb202" fact; select_revision/branch_platform are covered at :525-547 (exact hit, suffixed hit, foreign name). No PLATFORMS pair is a prefix of another and branch_platform requires a '-' after the platform (:277-278, asserted :540), so the stated prefix risk cannot arise. Smaller version: keep :548-561 only. -
Should fix — helios/src/core/naming.rs:23-26, 4 lines. Drop GB203_DEVICES's second doc paragraph (die size, SM count, capability 12.0) — it is the PR description's Why; sibling tables have one-line docs (:17, :29-30, :32-34, :36-37). Keep :22.
-
Nit — flare-cli/src/orbit/gpu.rs:364-371, 4 lines. Drop the two in-test comments (:364, :368, which restate core_revision's doc at :234-236) and two asserts: :366 (
core_revision("gb202", 12, 0)— same branch as :365) and :371 (core_revision("sm120", 9, 0)— a hardware value that is not a platform paired with an architecture that is not SM120's; the non-platform fallback is :369). Keep :365, :367, :369, :370. -
Nit (was recorded as Should fix in entry 13 — downgrade: it is 2 lines, not a placement bug) — flare-cli/src/orbit/gpu.rs:229 plus the assert it needs, :370, 2 lines. The (8,6)→"ga102" arm only relabels the fallback (all six GA102 ids are in the table, naming.rs:34, so
revisionnever reaches the fallback for them; identity-carrying GA102 cores are handled by core_revision). It also labels every unlisted SM 8.6 part (GA103/GA104, e.g. 0x2484 which naming.rs:218 asserts is unlisted) as "ga102", i.e. a die it is not. Removing the arm leaves both sides onsm86, exactly as before this PR. -
Nit — three one-line prose trims, 3 lines: a) flare-cli/src/cli.rs:202-203 →
/// Hub revision; uses the model origin when cached, otherwise detects the GPU's platform.b) docs/cli-design.md:904-906 → drop the parenthetical list after "revision that beginsgb" (it restates the rule and is the list that drifts). c) docs/orbit.md:321-322 → the added "sm{major}{minor}for a compute capability that names no platform" is wrong: gpu.rs:226-230 still returns gb202/gb10/gb300/ga102 names for unlisted devices with those capabilities. Restore "from the PCI device id or compute capability" (one line, shorter).
Not findings (checked and dropped): GB203_DEVICES stays a named table like its four siblings even though only :49 reads it now (consistency, not waste); core_revision cannot be inlined (describe needs the legacy fallback, controller.rs:2293-2295); revision and core_revision cannot merge without hiding which source named the platform; the flare-cli hunk itself is a net −16 lines (private table deleted); nothing else is left dead.
#17 [high] Research summary
Re-reviewed PR #469 at the new head fb784c9 (+84/−56 over 9 files) for subtraction only. The author took the two biggest earlier findings (naming.rs one-element GB203_DEVICES loop deleted; capability_revision doc cut to two lines; describe now reads the identity with ? instead of swallowing it), so the change is close to minimal.
What remains is ~24 of the 84 added lines, all test/doc text and one capability arm, in five places:
flare/src/catalog.rs:562-573(12 lines) — the replacement block inpublished_build_match_uses_all_platform_branchesrepeats what thePLATFORMS × PLATFORMSloop above it already asserts (published = "gb203"with-tp8giveshardware == "GB203"andbuild_target_match == Some(false)for targetgb202), andselect_revision/branch_platformare covered at:525-547. NoPLATFORMSname is a prefix of another andbranch_platformrequires a-after the platform, so the stated prefix hazard cannot arise.helios/src/core/naming.rs:23-26(4 lines) —GB203_DEVICES's second doc paragraph is the PR description's die-size rationale; sibling tables carry one line each.flare-cli/src/orbit/gpu.rs:364-371(4 lines) — two in-test comments and two asserts in the newcore_revisiontest carry no new behaviour.flare-cli/src/orbit/gpu.rs:229+:370(2 lines) — the(8,6) → "ga102"arm only relabels the fallback; all six GA102 ids are in the table so hosts never reach it, and it mislabels unlisted GA103/GA104 SM 8.6 parts (e.g.0x2484, whichnaming.rs:218asserts is unlisted) asga102.- Three one-line prose trims in
cli.rs:202-203,docs/cli-design.md:904-906, anddocs/orbit.md:321-322; the last one is now factually wrong, sincegpu.rs:226-230still names a platform for unlisted 12.0/12.1/10.3 devices.
Verdict: not blocking. Nothing is left dead by the change, and the flare-cli hunk is itself a net subtraction (a 16-line private PCI table removed). All findings, with smaller versions and line counts, are in scratchpad entries #16 (final ranked list) and #14/#15 (counts and dead-code sweep).
#18 [high] Snippets and citations for the head fb784c9 report (use with entry 16)
Head fb784c9, line numbers as verified this session (pr_diff + read_file). Pair with entry 16 (ranked list) and entry 15 (verdict/dead code).
F1 — flare/src/catalog.rs, delete :562-573, keep :548-561. Smaller version (the surviving test body):
#[test]
fn published_build_match_uses_all_platform_branches() {
for target in flare_helios::core::naming::PLATFORMS {
for published in flare_helios::core::naming::PLATFORMS {
for suffix in ["", "-tp8"] {
let name = format!("{published}{suffix}");
let refs = serde_json::from_value(json!({"branches": [{"name": name}]})).unwrap();
let mut entry = CatalogEntry::default();
apply_refs(&mut entry, refs, Some(target));
assert_eq!(entry.hardware, published.to_ascii_uppercase());
assert_eq!(entry.build_target_match, Some(target == published));
}
}
}
}
Coverage argument: :557-558 give hardware + build_target_match for published="gb203"; :525-547 (target_selection_and_display_fallback_are_deterministic) cover select_revision exact hit (:531-535), suffixed hit (:542-546), branch_platform on suffixed/foreign names (:539-541); branch_platform requires '-' at :277-278. 12 lines.
F2 — helios/src/core/naming.rs:23-26, delete, keep :22:
/// GB203 device identifiers for the SM120 platform: RTX PRO 4500 Blackwell.
pub const GB203_DEVICES: [u32; 1] = [0x2c31];
Sibling one-line docs: GB202 :17, GB10 :29-30, GA102 :32-34, GB300 :36-37. 4 lines.
F3 — flare-cli/src/orbit/gpu.rs:363-372, smaller test (4 lines):
#[test]
fn a_core_requires_the_revision_its_device_identity_records() {
assert_eq!(core_revision("gb203", 12, 0), "gb203");
assert_eq!(core_revision("ga102", 8, 6), "ga102");
assert_eq!(core_revision("", 12, 0), "gb202");
assert_eq!(core_revision("", 8, 6), "ga102");
}
Removed: comments :364 and :368 (restate core_revision's doc :234-236), assert :366 (core_revision("gb202",12,0) = same branch as :365), assert :371 (core_revision("sm120",9,0) = "sm90"; non-platform fallback already :369).
F4 — flare-cli/src/orbit/gpu.rs:229 (8, 6) => "ga102".into(), plus assert :370, delete both. 2 lines. Evidence: GA102_DEVICES (naming.rs:34) lists all six ids, so revision (:308-312) never falls through for them; identity-carrying GA102 cores go through core_revision (:237-242); naming.rs:218 asserts 0x2484_10de (GA104, SM 8.6) is deliberately unlisted, yet this arm would label it "ga102". With the arm gone both host and core fall back to sm86 = pre-PR behaviour. Severity Nit (entry 13 called it Should fix; entry 16 corrects).
F5 — three one-line prose trims: a) flare-cli/src/cli.rs:202-203 ->
/// Hub revision; uses the model origin when cached, otherwise detects the GPU's platform.
b) docs/cli-design.md:904-906 -> drop the parenthetical "(gb10, gb202, gb203, gb300)" after "a detected platform revision that begins gb"; the rule alone is shorter and cannot drift (code: flare/src/hub.rs:3147-3152).
c) docs/orbit.md:321-322 -> the added "sm{major}{minor} for a compute capability that names no platform" is false at head: gpu.rs:226-230 still maps (12,1)/(12,0)/(10,3) and now (8,6) to platform names. Restore "from the PCI device id or compute capability".
Totals for the report: +84/−56 over 9 files; removable 12+4+4+2+3 = 25 lines (~24 net after a/c reword to one line each), i.e. roughly +60/−56. Verdict: not blocking; make it smaller first. Charter cites: line 10 "Stay focused ... not ... broad hardware support" (supports F4), line 35 "What gets merged" (a reproducible bug — supports keeping the core), line 42 supported-matrix (supports keeping the naming table single-sourced).
#3 [medium] Should fix: gpu.rs ga102 test duplicates assertions made elsewhere (5 lines)
File: flare-cli/src/orbit/gpu.rs:367-371, new test ga102_pci_ids_report_the_platform_the_table_names (5 lines):
#[test]
fn ga102_pci_ids_report_the_platform_the_table_names() {
assert_eq!(revision(0x220410de, 8, 6), "ga102");
assert_eq!(capability_revision(8, 6), "ga102");
}
Both assertions are already covered by the PR's own later test and by existing tests:
capability_revision(8, 6)→ asserted here directly, and again implied bya_core_requires_the_revision_its_device_identity_records:381 (core_revision("", 8, 6) == "ga102", the legacy fallback that reachescapability_revision).revision(0x2204_10de, 8, 6) == "ga102":revision(:314-318) isplatform_from_pci(...).unwrap_or_else(capability_revision); the GA102 table path is asserted for all six ids in heliosnaming.rspci_ids_select_the_platform_identifier(:217-223) and the delegation itself is asserted for gb300/gb10/gb202/gb203 at :348-353. No new behaviour in the deleted assertions.
Saved: 5 lines plus a blank. The GA102 behaviour change stays covered at :378 and :381.
#4 [medium] Nit: two new comments restate the match arms and the PR rationale (~6 lines)
Two comments this PR adds restate code or the description's rationale; trim to one line each. ~6 lines.
- flare-cli/src/orbit/gpu.rs:222-229 — the added 6-line paragraph:
/// A capability that several hardware variants share names the variant its devices were served
/// as before `PLATFORMS` separated them: compute capability 12.0 covers GB202 and GB203, and 8.6
/// covers the GA102 products Orbit serves. Devices whose PCI id the shared table lists resolve
/// through `platform_from_pci` instead, so this only decides unlisted devices and cores that
/// record no device identity.
The match arms below (:231-236) already say 12.0→gb202, 8.6→ga102; the only fact a reader cannot read off the code is "only unlisted devices and cores without an identity get here", which revision (:314-318) and core_revision (:243-248) show in three lines each. Smaller: /// Applies only to devices the PCI table does not list and to cores that record no device identity. Saves 3-4 lines.
- helios/src/core/naming.rs:22-26 —
GB203_DEVICESdoc:
/// GB203 device identifiers for the SM120 platform: RTX PRO 4500 Blackwell.
///
/// GB203 is a separate die from GB202 with fewer streaming multiprocessors and
/// less memory, so it is a separate hardware variant even though it shares
/// compute capability 12.0 and the SM120 programming model.
The second paragraph is the PR description's "Why" (die size, 82 vs 188 SMs) restated; the neighbouring tables (:17 GB202, :29 GB10, :32 GA102, :36 GB300) all carry one line. Smaller: keep the first line only. Saves 4 lines.
Nothing is lost: PLATFORMS (:15) and platform_from_pci (:39-62) carry the behavioural contract, and docs/cli-design.md:890-891 names the product.
#5 [medium] Nit: platform name lists repeat in five places and one is left wrong
Per-platform name lists appear in 5 places; this PR had to edit 4 of them and left the fifth stale. Replacing the lists with "a PLATFORMS name" removes the recurring edit site and is shorter or equal.
Sites (all verified at PR head):
- flare-cli/src/cli.rs:202-203
--revisionhelp: "otherwise detects ga102, gb10, gb202, gb203, or gb300." →/// ... otherwise detects the GPU's platform.saves 1 line and the next platform PR does not touch it. - flare-cli/src/orbit/gpu.rs:222
capability_revisiondoc still says "gb10,ga102,gb202,gb300" — already missinggb203, in the function this PR edited. Replace with "aPLATFORMSname, orsm{major}{minor}" (0 lines saved, list already wrong). - docs/cli-design.md:888, :926 and docs/core-format-design.md:753, docs/orbit.md:321 enumerate the five names.
Left stale by this PR (lens item 4): docs/cli-design.md:904 "For gb10, gb202, and gb300, the shared CLI and desktop downloader tries the corresponding -tp1 revision if the initial revision lookup returns HTTP 404." Code at flare/src/hub.rs:3147-3152 accepts any PLATFORMS name that starts_with("gb"), so gb203 now also gets the -tp1 retry, and the doc omits it. Smaller replacement: "For a detected gb* platform revision, ..." — shorter than the list and cannot drift again.
Total ~2-3 lines saved, plus the maintenance site; the concrete defect is gpu.rs:222 and cli-design.md:904 contradicting the PR's own "one table" claim.
#7 [medium] Nit: the compute-capability 8.6 arm is separable from GB203 (~4 lines)
flare-cli/src/orbit/gpu.rs:235 (8, 6) => "ga102".into(), plus its support: :370 (capability_revision(8,6)), :381 (core_revision("", 8, 6)) and the doc sentence :226-227. ~4 lines.
Claim: it cannot change placement, only the fallback label.
- Host side: a listed GA102 device never reaches
capability_revision—revision(:314-318) returnsplatform_from_pci's "ga102" for all six ids inGA102_DEVICES(naming.rs:34, asserted naming.rs:217-223). So the "GA102 devices report ga102 instead of sm86" change in the PR description comes entirely from the table delegation, not this arm. - Core side: a GA102 core either records a platform identity (current ignition writes
platform_from_pci, capture.rs:2161-2167 → "ga102", handled bycore_revision:244) or records none. Pre-#300 ignition aborted on GA102 with "unsupported GPU PCI id", so no GA102 core with an empty/unknown identity exists to be rescued here. - Placement compares the two strings (plan.rs:693-696). With the arm removed, both sides fall back to
sm86from the same function and still match;sm86never matched a listed device before this PR either, and such cores did not exist.
So the arm's only effect is renaming the fallback label for unlisted 8.6 devices. Under the charter's "stay focused" (broad-hardware scope) it is beyond GB203. Caveat: the description calls the ga102 label change intentional, so this is a judgement call rather than a defect; the saving is 4 lines, not a blocker.
If it stays, the smaller form is one arm ((8, 6) => "ga102") that costs nothing else — the finding is only that the arm and its two asserts are separable from GB203.