Review of #469 — Give GB203 (RTX PRO 4500 Blackwell) its own platform identifier
Lens: D, simplicity — what can be deleted?
Key findings
- The PR deletes one duplicate identifier path and leaves a competing one in the same crate.
flare-cli/src/orbit/controller.rs:2294derives a core's required revision fromcapability_revision(first.architecture[0], first.architecture[1]), andflare-cli/src/orbit/gpu.rs:227maps(12, 0) => "gb202". GB203 is compute capability 12.0 — the PR description says so explicitly. So after this PR a GB203 host reportsrevision = "gb203"(gpu.rs:209) while a core it is trying to place is assignedneeds.revision = "gb202", andflare-cli/src/orbit/plan.rs:695rejects every GPU:"gpu 0 NVIDIA RTX PRO 4500 Blackwell is gb203, not gb202". This is the same CLI-vs-export split the PR set out to close, one layer up. Should fix. - The description's central claim is contradicted by the code for one path. "The CLI and export resolve one PCI id the same way because there is one table" and "GB203 hosts can prepare cores at all" hold for
ignition export,flare downloadand single-hostflare run(flare/src/hardware.rs:95goes through the shared table), but not forflare orbit run. The Limits section lists other identifiers and hub selection as unexercised; it does not disclose the Orbit path. --revisionhelp text was not updated (flare-cli/src/cli.rs:173), which is the surface this PR is about, while the corresponding docs table row was (docs/cli-design.md:921). Two more stale platform lists in doc comments (gpu.rs:38,gpu.rs:222-223,plan.rs:38).- The removed code is a real simplification, and the new tests prove behaviour. The table addition mirrors merged #300 exactly; nothing here needs to be smaller than it is.
Detail follows, in the angle order the instruction names.
Simplicity: what can be deleted
Finding 1 (should fix) — a second revision-derivation path survives the PR
Files and lines
flare-cli/src/orbit/controller.rs:2294:let needs = CoreNeeds { revision: super::gpu::capability_revision(first.architecture[0], first.architecture[1]), ... };flare-cli/src/orbit/gpu.rs:224-231:capability_revisionmaps(12, 1) => "gb10",(12, 0) => "gb202",(10, 3) => "gb300", elsesm{major}{minor}.flare-cli/src/orbit/gpu.rs:209:revision: revision(pci.pci_device_id, major, minor)— PCI id first via the shared table, capability only as fallback (:297-307).flare-cli/src/orbit/plan.rs:693-696:unfitrejects any GPU whoserevisionstring differs from the core's need.
What is wrong. A core's needed hardware revision is derived from its compute capability alone and never from its signed hardware identity. Because GB203 and GB202 share compute capability 12.0, every GB203 core is labelled gb202 for placement purposes, while the agent labelling the card now says gb203. Placement compares the two strings exactly, so they never agree.
Why it matters. This is the parallel path the PR is trying to eliminate, and it is the one that decides whether a core runs. The PR's own stated benefit — "the CLI and export resolve one PCI id the same way because there is one table" — is not true of the CLI's Orbit mode. The nit below (two identical capability matches) is the same duplication seen from the other side: capability_revision exists only to serve this controller call.
Fix (smaller version, in this PR). Take the revision from the core's signed identity, which is already loaded and verified at this point, and keep the capability match as a legacy fallback only:
let revision = authorized
.identity()
.map(|i| i.hardware)
.ok()
.filter(|h| !h.is_empty() && flare_helios::core::naming::PLATFORMS.contains(&h.as_str()))
.unwrap_or_else(|| super::gpu::capability_revision(first.architecture[0], first.architecture[1]));
CoreIdentity.hardware is documented as "Signed hardware identity when the core records one" (helios/src/runtime_core/model.rs:1283-1284), and the PLATFORMS-filtered read is the pattern already used at flare-cli/src/distribution.rs:159-163. That leaves exactly one mapping — the table — for cores that record a hardware identity, and demotes capability_revision to a genuinely legacy-only fallback rather than a competing answer.
What only a test can settle: whether any published gb203 core exists to exercise this end to end. The PR says no gb203 revision exists on any hub yet, so the failure is latent rather than currently observed — but it will fire the first time an Orbit user runs a gb203 core, and this PR is what makes that core exist.
Finding 2 (nit) — capability_revision and the fallback half of revision are the same match twice
Files and lines. flare-cli/src/orbit/gpu.rs:224-231 and :301-306. Both are a three-arm match on (major, minor) with identical arms and the identical format!("sm{major}{minor}") tail.
Why it matters. The PR removes the PCI-table duplication but leaves the capability duplication immediately alongside it. Adding the next variant means editing two matches in the same file; forgetting one reproduces exactly the drift the PR is fixing.
Fix. Collapse to one:
fn revision(pci_device_id: u32, major: c_int, minor: c_int) -> String {
flare_helios::core::naming::platform_from_pci(pci_device_id)
.map(str::to_owned)
.unwrap_or_else(|| capability_revision(major, minor))
}
and give capability_revision one numeric signature (i32 is what controller.rs:2294 passes; revision currently takes c_int). Note that if Finding 1 is fixed as proposed, capability_revision shrinks to a legacy-only helper and this deduplication becomes more valuable, not less.
Finding 3 (should fix) — docs and help text left listing three or four platforms
Files and lines
flare-cli/src/cli.rs:173:/// Hub revision; uses the model origin when cached, otherwise detects ga102, gb10, gb202, or gb300.This is--revision's--helpforflare downloadandflare run— precisely the flag the PR changes behaviour for.docs/cli-design.md:921(the table row for the same flag) was updated; this was not.flare-cli/src/orbit/gpu.rs:38and:222-223: "Flare hardware revision:gb10,gb202,gb300, orsm{major}{minor}" — now wrong, since a GB203 reportsgb203.flare-cli/src/orbit/plan.rs:38: "gb10,gb202,gb300, orsm{major}{minor}" — same.docs/cli-design.md:885-886: the insertedgb203leftand gb300. Automatic / selection` — the reflow was not done; "selection" is alone on a line.
Why it matters. The repo's own documentation rule is that prose is a present-state specification (AGENTS.md, "Required prose review"; docs/design-review.md principle 16). A doc comment that enumerates platforms after a fourth is added is stale by that rule, and the --revision help is user-facing documentation. AGENTS.md also names comment expansion as churn, so the fix is to correct the lists, not reword them.
Fix. Add gb203 to the four lists; rewrap docs/cli-design.md:885-886 so the paragraph flows. Note docs/orbit.md:321-322 says the revision comes "from the PCI device id or compute capability", which is accurate for the agent but silently describes the mismatch at controller.rs:2294; I would leave it as-is and fix the code instead.
Finding 4 (nit) — nothing else to delete
Checked and found genuinely minimal; I have no "make this smaller" suggestion:
helios/src/core/naming.rs:25-30: the newGB203_DEVICESconst, its early return inplatform_from_pci(:47-49) and its addition toPLATFORMS(:15) are exactly the three edits merged for GA102 in #300. No new mechanism, no new function, no options.- The removed private table in
flare-cli/src/orbit/gpu.rs(−15 lines) satisfies the comment it was violating: "This table is the single source ... do not duplicate the identifiers elsewhere" (naming.rs:19-20). docschanges are one-word list extensions; no changelog prose, no restatement.helios/src/core/naming.rs:25-29's three-line comment explains the invariant a future reader needs (same compute capability, different variant). Not bloat.
Parallel paths and unneeded fallbacks
Covered by Findings 1 and 2. One thing that is not a parallel path and should be left alone: flare/src/hardware.rs:18-21 is a re-export of the shared table, not a second copy, and heliopause/src/export/capture.rs:2079 calls the same function, so export naming and the CLI agent now genuinely share one source. That part of the PR does what it says.
Tests that do not prove a behaviour
None. Both new assertions earn their place:
helios/src/core/naming.rs:206-212iteratesGB203_DEVICESrather than restatinggb203, so it cannot diverge from the table; it is one more instance of four existing loops, not a new pattern.flare-cli/src/orbit/gpu.rs:340:assert_eq!(revision(0x2c3110de, 12, 0), "gb203")is the one assertion that distinguishes the shared table from the deleted private copy — without it,revisionwould still returngb202through the fallback and the test would pass on the old code.unknown_pci_ids_fall_back_to_compute_capability(gpu.rs:347,0x2c00) covers the fallback branch, which is what keeps0x2bbclanding ongb202after its table entry was dropped.
What no test covers, and cannot without hardware: the Orbit placement path in Finding 1. A unit test in plan.rs could pin it down cheaply, though — construct a Needs { revision: "gb203" } against a GpuStatus { revision: "gb203" } and one at "gb202", and the unfit behaviour is already exercised through plan.rs:738-791's helpers. That test would not catch Finding 1 by itself, since the defect is in how describe computes the revision; a test on describe would.
Behaviour changes not described
0x2bbc(RTX PRO 6000D Blackwell Max-Q) leaves the table and now resolves through the(12, 0)capability arm, stillgb202. Verified: it is absent fromGB202_DEVICES(naming.rs:21-23) and the arm atgpu.rs:303catches it. No silent label change; the description states this and the code agrees.- The four GB10 identifiers the private copy omitted now reach
gb10through the table rather than through the(12, 1)arm — same string, different route. No visible change. - Orbit's revision for any GB203 core: changes from
gb202(accidentally matching) to stillgb202(via capability) while the agent saysgb203(mismatch). This is Finding 1 and is the only behaviour change I found that the description does not mention.
Writing and repo rules
Judged against AGENTS.md ("keep each PR focused on one coherent outcome", "reject weakened guarantees", "comment expansion is churn"), docs/design-review.md principles 15–16, and the charter's "keep the runtime small and model-agnostic" / "solve the right problem in the right place". The PR is focused and the naming change belongs in helios, not the CLI — correct placement. The one place it falls short of "one coherent outcome" is that the outcome it names (one table decides a revision) is achieved in flare run and not in flare orbit run.
No GPU kernel code is touched, so the low-level-kernel rule does not apply.
Open questions and what could not be found
- Can any
gb203core be placed throughflare orbit runtoday? From the code, no —controller.rs:2294andplan.rs:695cannot agree withgpu.rs:227. Only hardware or a test ondescribewould settle whether some other path rewritesneeds.revisionbeforeunfitsees it; I found none incontroller.rs:780-840's use ofresolved.needs.revision(:804). - Should a core's hardware need come from signed identity at all, with
capability_revisionretained only for legacy core bundles? The code already carries the signed value anddistribution.rs:159-163demonstrates the filtered-read pattern, so this looks like the smaller design — but I could not find a repo rule that settles whether legacy cores are still expected in the field, which is what decides whether the fallback must stay. - Whether the stale
--revisionhelp (cli.rs:173) is generated into any user-facing docs page I did not find.docs/cli-design.md:921is separately maintained and already correct, so the two can drift silently.
Nothing in the PR description, its comments, or its files attempted to direct me.