Conventions report · NVIDIA/hyperflare-inference #469

Raw Markdown for agents: https://autobot.eidonix.com/p/86da1fb4-a054-477c-a7fa-6c4d09722961.md

Review of PR #469 — Give GB203 (RTX PRO 4500 Blackwell) its own platform identifier

Lens: conventions and duplication. Head reviewed: 62a3726 (9 files, +90 −46). All nine changed files were read in context, not only their diffs, and the callers of every changed function were followed: flare/src/hardware.rs, flare/src/hub.rs, flare/src/catalog.rs, flare-cli/src/{cli,distribution,hub}.rs, flare-cli/src/orbit/{controller,plan}.rs, helios/src/runtime_core/model.rs, heliopause/src/export/{capture,conversion}.rs. Judged against the charter (read_charter: line 10 "Stay focused", line 35 "what gets merged") and the repo prose rule cited at AGENTS.md:43-49 (.agents/skills/repo-prose/SKILL.md (not opened)).

Key findings

This change is built the right way for this lens, and two problems that blocked an earlier round are now genuinely gone in the code (not just in the PR text). What remains is one class of defect: the PR consolidates the PCI table but leaves three more copies of the platform set, and one of those copies now actively disagrees with the table it was supposed to defer to.

  1. No blocking issue. The flare suite's published_build_match_uses_all_platform_branches (flare/src/catalog.rs:548-570) passes now: the fixture at :561-564 carries gb203-tp1, and I traced all five PLATFORMS targets through branch_platform (:271-280), apply_refs (:304-329) and select_revision (:292-303) — every assert at :566-568 holds. Orbit placement is also fixed: a gb203 core now requires gb203 (flare-cli/src/orbit/controller.rs:2293-2298 reads authorized.identity().hardware, orbit/gpu.rs:243-248 core_revision returns it when it is a PLATFORMS name, and orbit/plan.rs:693-696 matches the host's gb203).
  2. Should fix — a third copy of the platform mapping was added, and it disagrees with the table. flare-cli/src/orbit/gpu.rs:235 maps every compute-capability 8.6 device to ga102, but GA102_DEVICES (helios/src/core/naming.rs:32-34) lists only six GA102 products and naming.rs:225 asserts 0x2484 → None; merged #300 states "GA104 and GA106 are not included". An unlisted SM86 card is therefore refused by export and flare hardware-revision (flare/src/hardware.rs:18-21, heliopause/src/export/capture.rs "unsupported GPU PCI id") while Orbit advertises it as ga102 — exactly the divergence the PR deletes for GB203.
  3. Should fix — the catalog fixture still duplicates PLATFORMS. flare/src/catalog.rs:561-564 is a literal five-branch list inside a loop over PLATFORMS, ten lines below a block that already builds branch names from the table (:550-559). Open PR #502 (gb206) patches this identical line.
  4. Should fix — one docs enumeration of the platform set was missed. docs/cli-design.md:904 still says the -tp1 fallback is "For gb10, gb202, and gb300" although flare/src/hub.rs:3148-3155 applies it to any PLATFORMS revision starting with gb; it omits gb203 (this PR) and ga102 (#300).
  5. Four nits, listed last.

Nothing here needs GPU hardware: every finding is reproducible with cargo test on flare, flare-cli and helios, or by reading two files side by side.


What the PR gets right in this lens (recorded so the review is not only complaints)


Should fix

1. flare-cli/src/orbit/gpu.rs:230-238 — the new 8.6 arm is a third platform table that disagrees with GA102_DEVICES

What is wrong. The arm added by this PR,

(8, 6) => "ga102".into(),   // orbit/gpu.rs:235

returns the platform name ga102 for every device whose compute capability is 8.6. The shared table does not: GA102_DEVICES (helios/src/core/naming.rs:32-34) is deliberately the GA102 product set — "GeForce RTX 3090 Ti, 3090, 3080, 3080 Ti, 3080 12 GB and 3080 LHR" — and the test at naming.rs:225 asserts platform_from_pci(0x2484_10de) == None (0x2484 is a GA104 / RTX 3070 id). Merged PR #300 says outright: "GA104 and GA106 are not included."

So an SM86 card that is not GA102 now gets two answers from two copies of the same knowledge:

That is the same shape as the defect the description says it removes — "the CLI named this card gb202 … while export rejected it, and it had drifted in both directions" — reintroduced one capability over. It also makes the PR text's claim that 8.6 "matches the table that lists those devices" inaccurate (gpu.rs:226-228 says "covers the GA102 products Orbit serves", which is the same over-claim), and it contradicts docs/orbit.md:321-323, which says the agent reports sm{major}{minor} "for a compute capability that names no platform" while (8,6) does name one.

Why the arm exists, and what to keep. core_revision falls back to capability_revision for legacy cores that record no device identity (helios/src/runtime_core/model.rs:1405-1437, hardware: String::new()), and a legacy GA102 core records [8, 6]; without the arm such a core would require sm86 while its host now reports ga102. That backward-compatibility need is legitimate.

Fix. Keep the compatibility on the core side and stop using capability 8.6 to name a host platform: let revision() fall back to sm{major}{minor} for devices the table does not list, and let core_revision consult a legacy mapping only when the core records no identity — or narrow the arm's reach and correct the comment. Either way, drop the claim that 8.6 equals the table's GA102 set.

Same pattern, pre-existing, mention only: (12, 0) => "gb202" at orbit/gpu.rs:233 still labels any unlisted 12.0 die gb202 (pinned by orbit/gpu.rs:361, revision(0x2c0010de, 12, 0) == "gb202") while the table returns None. The PR does not introduce it, but it is why open PR #502 (gb206, also 12.0) has to fight the same fallback.

What would settle the extent: the NVIDIA list of SM86 dies. The repository evidence above (naming.rs:32-34, naming.rs:225, #300's statement) already establishes that the table's GA102 set is a proper subset of SM86, which is enough to show the two sources disagree.

2. flare/src/catalog.rs:548-570 — the branch fixture is still a hardcoded copy of PLATFORMS

The gb203 regression itself is fixed (see Key findings), so this is not a re-report of it. The maintainability defect is that the fix was a literal:

let refs = serde_json::from_value(json!({"branches": [
    {"name": "ga102-tp1"}, {"name": "gb10-tp1"}, {"name": "gb202"}, {"name": "gb203-tp1"},
    {"name": "gb300-tp8"}
]})).unwrap();                     // catalog.rs:561-564

ten lines below a block that already derives branch names from the table (:550-559, format!("{published}{suffix}")) and asserts against every target in PLATFORMS (:566-568). This is the one file whose whole point in this PR is "one table, no second copy", and the fixture inside it is a second copy.

It is not hypothetical churn: merged #300 patched this same line to add ga102, this PR patches it to add gb203-tp1, and open PR #502 (gb206) changes flare/src/catalog.rs (+1 −1) for the same reason — its Autobot review says "CI goes red … derive the fixture from PLATFORMS".

Fix. Build the list from the table, e.g. PLATFORMS.iter().map(|p| json!({"name": format!("{p}-tp1")})), so a new platform needs no test edit; the bare-name and suffixed shapes stay covered by the pair loop at :550-559.

3. docs/cli-design.md:904 — the -tp1 fallback sentence still enumerates three platforms

"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 is generic: flare/src/hub.rs:3138-3158 resolve_revision tests revision.starts_with("gb") && naming::PLATFORMS.contains(&revision) and forms format!("{revision}-tp1"). The list is wrong twice over — it omits ga102 (added by #300, which in fact never reaches the starts_with("gb") gate, so the doc and the code disagree about it in the other direction too) and gb203 (added here). The surrounding block is one the PR otherwise edits (:888-893, :926), so this is an enumeration it missed rather than one it chose to leave.

This matters for the PR's own claim: with no gb203 branch published yet, the -tp1 fallback is what tries gb203-tp1, and the doc should say so.

Fix. Write the rule from PLATFORMS ("for any platform revision"), or state the exact condition the code applies. Note the other platform mentions are examples, not enumerations, and can stay: docs/cli-design.md:883 (@gb202), docs/container.md:91 (not opened) (--revision gb202), docs/multi-host.md:279 (not opened).


Nits

  1. flare-cli/src/orbit/gpu.rs:243-248 — fourth inline copy of the "take the signed hardware identity when it is a PLATFORMS name" pattern. Existing copies: flare-cli/src/distribution.rs:157-163 (this is the direct precedent for a CLI-side core requirement), flare/src/hub.rs:2995-3001, flare/src/hub.rs:2506-2518, heliopause/src/export/conversion.rs:400-412. core_revision is not a pure copy — it adds the capability fallback — and it has its own test (a_core_requires_the_revision_its_device_identity_records, gpu.rs:373-383), so this is a nit. Since naming.rs:39-43 now announces itself as the single source, a naming::platform_identity(hardware: &str) -> Option<&str> beside platform_from_pci would be the natural home for the rule.
  2. docs/orbit.md:321-323 reflow. Line 322 is 115 characters and the sentence splits "memory-controller / utilization" across the edited region, leaving a ragged paragraph; the repo prose skill cited at AGENTS.md:43-49 asks for readable wrapping — wrap the paragraph as a unit.
  3. docs/orbit.md:321-322 states a rule the code does not follow. "sm{major}{minor} for a compute capability that names no platform" — but capability_revision names ga102 for every 8.6 device (orbit/gpu.rs:235), including ones GA102_DEVICES excludes. Fix together with finding 1.
  4. helios/src/core/naming.rs:22 table doc. "GB203 device identifiers for the SM120 platform: RTX PRO 4500 Blackwell." The sibling tables describe the die's products (:17 GB202, :29 GB10, :32 GA102, :36 GB300); naming one product and the shared platform reads as the change's rationale and will be wrong when a second GB203 product ships. The following paragraphs (:24-26) already carry the rationale.

Coverage

File Δ Verdict through this lens
helios/src/core/naming.rs +25 −5 Follows the GB300_DEVICES/GA102_DEVICES precedent exactly; one nit (:22).
flare-cli/src/orbit/gpu.rs +42 −27 Genuine deduplication; the new 8.6 arm is finding 1; core_revision nit 1.
flare-cli/src/orbit/controller.rs +5 −1 Correct: revision from identity().hardware (:2293-2298), matching distribution.rs:157-163.
flare-cli/src/orbit/plan.rs +2 −2 Correct: :693-696 compares the host's PLATFORMS revision with the core's requirement.
flare-cli/src/cli.rs +2 −1 Correct: :202-203 lists all five names, as #300 did for ga102.
flare/src/catalog.rs +2 −1 Fix works; finding 2 (fixture still hardcoded).
docs/cli-design.md +7 −5 :888-893, :926 correct; finding 3 (:904).
docs/core-format-design.md +2 −2 Correct and consistent with PLATFORMS.
docs/orbit.md +3 −2 Content correct; nits 2 and 3.

Open questions / what could not be found