PR #469 review — lens B (architecture and scope)
Key findings
- The change belongs, and the approach is the right one. Adding
0x2c31tohelios/src/core/naming.rsand deleting the private PCI table inflare-cli/src/orbit/gpu.rsis exactly what that file's doc comment asks for ("This table is the single source consumed by Flare's device detection and by core export naming; do not duplicate the identifiers elsewhere" —helios/src/core/naming.rs:17-20). The split ofgb203fromgb202is justified by a checkable mechanism, not a preference (ignition/preparation/aot.py:694-697folds device name, compute capability and multiprocessor count into the forward-cache key). No new flags, per-model branches, or captured-graph ops. Precedent: #300 (GA102), #129 (GB300). See "Scope and layer" below. - Blocking (not in the description): Orbit computes a core's hardware requirement from compute capability, not from the signed identity.
flare-cli/src/orbit/controller.rs:2294callscapability_revision(12,0)→"gb202"while the GPU status now reports"gb203"(flare-cli/src/orbit/gpu.rs:209,297-307), andflare-cli/src/orbit/plan.rs:695requires exact equality.flare orbit runwith a locally exported gb203 core on an RTX PRO 4500 therefore fails where it worked before this PR — and, in the other direction, still labels the coregb202, which is the very confusion the PR exists to prevent. - Should fix:
flare/src/hub.rs:242-245has no fallback revision. Withdetect()now returninggb203,flare run ORG/MODELon this card requests a Hub revision the author confirms does not exist anywhere, where it previously resolved a workinggb202branch (at, by the author's own numbers, identical throughput). - Description accuracy: "no other identifier changes the revision it reports, since
gb203is reachable only for0x2c31" is true ofplatform_from_pciand false of the Orbitrevision()/capability_revisionpair, which still maps every other device by compute capability: GA102 parts now reportga102from the table (helios/src/core/naming.rs:56-58) while an Orbit core requirement for SM86 stayssm86(gpu.rs:229). PR #300 said explicitly that "flare-cli's orbit keeps its own compute-capability table and still reports sm86"; this PR changes the GPU side of that pair without changing the core side.
Scope and layer
Verdict: in scope, correct layer, no churn. Judged against the charter (read_charter), AGENTS.md, and docs/design-review.md.
The charter says "Solve the right problem in the right place… Look for the smallest footprint in shared code" and "Good ideas in the wrong place will be declined". This is the smallest footprint in the right place:
helios/src/core/naming.rs:15adds"gb203"toPLATFORMS(4 → 5) socandidate()/deployment_candidate()accept the name;helios/src/core/naming.rs:30,47-49addsGB203_DEVICESand the lookup ahead of the others (membership is disjoint, so ordering is cosmetic).- Consumers of
PLATFORMSare all containment checks and accept the new name unchanged:flare/src/hub.rs:2010,2027,flare/src/catalog.rs:272,320,flare-cli/src/distribution.rs:159 (not opened),720,heliopause/src/export/conversion.rs:402(not opened). - Deleting the private PCI copy at
flare-cli/src/orbit/gpu.rs(nowrevision()at 297-307 delegating toflare_helios::core::naming::platform_from_pci) removes a demonstrated source of divergence, which is precisely the refactoringAGENTS.md:183-188permits: "Refactoring must directly support the requested behavior or remove a demonstrated source of defects or cost." The drift the description cites (four GB10 ids missing,0x2bbclisted) is real and visible in the before/after. - No configuration switch, no fallback layer, no per-model branch; design-review principles 1, 3, 4 and 10 are not engaged. Nothing here is a GPU kernel change.
The separate-variant claim is evidenced, not asserted. ignition/preparation/aot.py:694-697 puts properties.name, major, minor and multi_processor_count into the forward cache key, and ignition/preparation/compilation.py:289-291 folds get_device_capability() and get_device_name(). A 188-SM GB202 cache and an 82-SM GB203 cache are therefore different artifacts; one shared gb202 revision would ship GB202-compiled forwards to GB203 hosts. That satisfies the charter's "Bring real evidence" for a correctness claim. The reported throughput equality (pp 10,275 vs 10,074 t/s, tg 124.1 vs 124.7 t/s) is correctly framed as an expected non-change rather than a win — consistent with "Performance PRs need benchmarks showing an actual speedup"; none is claimed.
Evidence honesty is good. The description separates expectation from measurement, names the limits (only 0x2c31 exercised, no published gb203 revision), and satisfies AGENTS.md:189-194 ("Identify missing hardware, inputs, and unrun checks explicitly"). The Discord contact line is present, as AGENTS.md requires.
Test strength. helios/src/core/naming.rs:206-212 loops GB203_DEVICES and asserts gb203 — the loop-in-table shape yatesdr objected to on #221 ("the test still passes if 0x2c31 is removed from the table"). Here the literal assertion revision(0x2c3110de, 12, 0) == "gb203" covers the gap, so this is not a finding.
Findings
1. BLOCKING — Orbit derives a core's revision from compute capability, so a gb203 core no longer places on a GB203 host
Where: flare-cli/src/orbit/controller.rs:2294, with flare-cli/src/orbit/gpu.rs:222-231 and flare-cli/src/orbit/plan.rs:693-696.
// controller.rs:2293-2294, inside describe()
let needs = CoreNeeds {
revision: super::gpu::capability_revision(first.architecture[0], first.architecture[1]),
capability_revision(12, 0) returns "gb202". A core exported on a GB203 host carries architecture 12.0 (GB203 shares SM120 with GB202 — the PR's own doc comment at helios/src/core/naming.rs:27-29 says so), so describe() labels that core gb202. Meanwhile Gpu::revision now comes from the PCI table (gpu.rs:209 → gpu.rs:297-307), so the same card's status says gb203. unfit() then compares them:
// plan.rs:695-696
if gpu.revision != revision {
Some(format!("{name} is {}, not {revision}", gpu.revision))
Why it matters. Two ways, both directly caused by this PR:
- Regression. Before this PR,
Gpu::revisionfor0x2c31also fell through tocapability_revisionand returnedgb202, soflare orbit run <gb203-tp1-…>on a GB203 host matched. After it, the host isgb203and the core is stillgb202, so the placement that worked now fails.docs/design-review.md:52— "Retain internal paths required to load and serve previously supported models" — and principle 13 are both touched: a core the PR itself produces cannot be served by the PR's own code. - The rationale is not delivered. The stated reason for a separate revision is that a 188-SM GB202 core must not land on an 82-SM GB203 die. Because
describe()still saysgb202for a GB203-prepared core, on a mixed host Orbit would happily place that core on a GB202 GPU — the exact artifact mismatch the PR is written to prevent. The invariant is half-enforced: the GPU side knows the die, the core side does not.
It also contradicts the deletion's stated goal. The PR removes the PCI half of the duplicated table in flare-cli/src/orbit/gpu.rs but leaves the compute-capability half, now used by exactly one caller (capability_revision appears only at controller.rs:2294 — searched). A second, disagreeing source of the core's hardware identity survives.
Fix. Read the core's revision from its signed hardware identity, and drop the capability mapping to a legacy fallback:
AuthorizedCore::identity()athelios/src/runtime_core/model.rs:1344-1361returnsCoreIdentity { hardware, architecture, .. }; for payload coreshardwareis the signed value, and for legacy cores it is deliberatelyString::new()(legacy_identity,model.rs:1308-1340and its doc comment at 1302-1307).- The export path already does exactly this:
flare/src/hub.rs:2009—let signed_platform = verified.core().hardware_identity.as_str();guarded bynaming::PLATFORMS.contains(&signed_platform)at 2010. - So
describe()should preferauthorized.identity()?.hardwarewhennaming::PLATFORMS.contains(&hardware), and callcapability_revisiononly when it is empty (legacy cores).describe()already receivesauthorized, so this needs no signature change.
What would settle it: a test that builds a local core (payload format, hardware_identity = "gb203", architecture 12.0) and runs it through describe() against a GpuStatus { revision: "gb203", .. }; today it produces gb202 and unfit returns "is gb203, not gb202". I could not run it here; the code path is unambiguous from the two functions cited.
2. SHOULD FIX — flare run ORG/MODEL on this card now requests a Hub revision no repository publishes
Where: flare/src/hub.rs:241-246.
let (id, given_revision) = repository(source)?;
let revision = match options.revision.as_deref().or(given_revision) {
Some(revision) => revision.to_owned(),
None => crate::hardware::detect(gpu_count)?.to_owned(),
};
No fallback is attempted: the detected revision is used verbatim. flare/src/hardware.rs:18-21 forwards to naming::platform_from_pci, so on an RTX PRO 4500 detect() now returns gb203. The description states plainly that "no gb203 revision exists on any published repository yet, so download selection for it has not been exercised against a real hub."
Why it matters. This is not an unknown test gap; it is a predictable code outcome. flare run ORG/MODEL on the card this PR supports goes from resolving a gb202 branch that the author measured serving this card at identical throughput, to requesting a branch that does not exist. The disclosure satisfies AGENTS.md:189-194 and design-review principle 12, so the finding is not about concealment — it is that landing order matters and the description does not say so. Compare the charter: "Bug fixes need to address the root cause; don't just swallow, skip, or retry an unexplained error" — the mirror rule is also true: don't ship a rename that turns a working default into a failing one without stating the ordering constraint.
Fix. One of:
- land this together with (or after) publishing a
gb203revision on the repositories in question; or - state the merge order explicitly in the description and release note ("
flare run ORG/MODELon GB203 requires--revision gb202until agb203branch is published"), since--revisionalready overrides detection athub.rs:242.
I would not ask for a fallback in code here: an automatic gb203 → gb202 retry would violate "don't silently substitute execution paths" (AGENTS.md:178-182) and would reintroduce the artifact-mismatch the PR is avoiding.
3. NIT — the platform lists in the Orbit and CLI sources were not updated with the docs
Where: flare-cli/src/orbit/gpu.rs:38 (Gpu::revision doc: "gb10, gb202, gb300, or sm{major}{minor}"), gpu.rs:222-223 (capability_revision doc, same list), flare-cli/src/orbit/plan.rs:38-39 (Needs::revision doc, "gb10, gb202, gb300, or sm{major}{minor}"), and flare-cli/src/cli.rs:173 — clap help text: "otherwise detects ga102, gb10, gb202, or gb300."
The description says the platform-name lists in docs/cli-design.md, docs/orbit.md and docs/core-format-design.md were updated (they were: docs/cli-design.md:885,889,921, docs/orbit.md:321, docs/core-format-design.md:754), but the four lists in the source were missed. cli.rs:173 is what flare run --help prints, so this one is user-visible and already omitted ga102 before this change.
Fix: add gb203 to the three Rust doc comments and to the --revision help string. Cite AGENTS.md "Required prose review" and design-review principle 16; severity nit because nothing branches on the prose.
Checked, not findings
- Nothing else branches on the literal string
"gb202". Repository search shows only table, doc and test occurrences;flare/src/catalog.rs:271-279matches byPLATFORMSprefix, sogb203-tp8-style branches are handled by the new array entry. 0x2bbclosing its table entry changes nothing observable. It falls through tocapability_revision, and 12.0 →gb202, as the description says.PLATFORMSlength change 4 → 5 has no consumer that indexes by length.flare runsingle-host with an explicit--revisionis unaffected by finding 1 and 2.- Docs changes are consistent with each other and with the new table.
- No CI on the head commit (
d07e149).AGENTS.mdasks for the per-cratecargo testinvocations; the description reports the two relevant suites (naming,orbit::gpu, 6 and 5 passing). For a change this size I would not raise it above nit level, and it is not one of the findings above.
Open questions
- Does a GB203 host ever run
flare orbit runwith a local core? If that workflow is out of scope for this card, finding 1 downgrades to should-fix — but the mixed-host mislabelling (a GB203 core accepted on a GB202 GPU) survives either way, and it is the case the PR's rationale is written about. - Merge order against a published
gb203branch (finding 2). Who publishes it, and does this PR wait? The author could not test it, and I cannot from here. - The author has no prior merged PRs in this repository (orientation packet: 0 merged, 0 closed, 0 open), and the change touches the shared naming table that #221 is also modifying. Someone with merge access should confirm #221 and this PR do not conflict on
naming.rs— I could not check the two diffs against each other from the local copy beyond noting both add a device table.
What I could not verify
- Runtime behaviour on hardware: no GB203 device here.
- Whether any repository publishes a
gb203revision (finding 2 relies on the description's statement plushub.rs:242-245having no fallback). - Finding 1's failure message was derived by reading
describe()→unfit(); a test with a payload-format core and a fabricatedGpuStatuswould confirm the exact string.