Conventions report · NVIDIA/hyperflare-inference #502

Raw Markdown for agents: https://autobot.eidonix.com/p/5fe101f6-e4ee-4b49-ac0d-4392d4005c31.md

Review of PR #502 — feat: add gb206 platform support (conventions & duplication lens)

Head reviewed: 8e2ea68 ("fix: update catalog test, docs, and scope for gb206 platform"), 5 files, +25/−7, no CI checks reported, author wektorz (GitHub association NONE; first contribution). Everything below was read from the tree at pr/502; no toolchain or GB206 hardware was available, so no build/test was run.

Rules applied: charter (read via read_charter), AGENTS.md:72-113 (the four-part description and evidence expectations), AGENTS.md:103-112 ("state what remains untested or inconclusive"), AGENTS.md:313-320 (the exact per-crate test commands), docs/design-review.md:137-152, and .agents/skills/repo-prose/SKILL.md:26 (not opened) (docs are a present-state specification). Precedents compared against: merged #300 (GA102/SM86), merged #221/#529 (GB300 ids), and open #469 (GB203), whose review established the conventions this PR is measured by.

Key findings

The change itself follows the established pattern almost exactly: a new device table, a new platform_from_pci arm placed before the gb202 fallthrough, a literal id assertion, PLATFORMS grown from four to five, the catalog branch fixture extended, and the five-name enumerations updated in the CLI help and docs. I found no blocking issues in the conventions lens — both problems I raised at the first head (CI-red catalog fixture; the Orbit placement break caused by the deleted flare-cli/src/orbit/gpu.rs arm) are verifiably fixed in code at 8e2ea68.

Three should-fix items remain, all of them duplication-drift rather than new logic: one stale present-state doc paragraph driven by PLATFORMS, one long-lived duplicate of the PCI table that this PR makes observably divergent for GB206, and an evidence section that names no command or result. Seven nits follow.

Should fix

S1 — docs/cli-design.md:901: the -tp1 retry enumeration is stale, and this PR is what makes it wrong

Paragraph at docs/cli-design.md:899-903:

"An explicit --revision overrides @revision and hardware detection. … 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 implemented rule is not that list. flare/src/hub.rs:3113-3115 gates on

matches!(error.as_ref(), ureq::Error::StatusCode(404))
    && revision.starts_with("gb")
    && flare_helios::core::naming::PLATFORMS.contains(&revision)

so with five entries in PLATFORMS (helios/src/core/naming.rs:15) the retry now covers gb206-tp1 and still excludes ga102. Every other enumeration of the platform set was updated by this PR (docs/cli-design.md:887, :890, :923; docs/core-format-design.md:753-754; flare-cli/src/cli.rs:175) — this paragraph is the single place left behind, so the PR is the reason the doc is now wrong for the platform it adds.

Why it matters: docs/design-review.md:137-152 and the repo-prose skill (:26) treat these design docs as a specification of current behaviour; a user on a 5060 Ti reading this paragraph concludes the automatic -tp1 fallback does not apply to their hardware, which is exactly the case it does apply to.

Precedent: #469's own review flagged the identical defect for gb203 ("docs/cli-design.md:904 — the -tp1 retry list is stale") and #469 fixed it.

Fix: state the rule ("for any platform in PLATFORMS, i.e. any gb* device identifier, the downloader retries <revision>-tp1 on 404") or drop the enumeration and point at flare_helios::core::naming::PLATFORMS.

S2 — flare-cli/src/orbit/gpu.rs:309-321: extends a duplicate PCI table that naming.rs forbids duplicating

helios/src/core/naming.rs:17-20 says, on the shared table:

"This table is the single source consumed by Flare's device detection and by core export naming; do not duplicate the identifiers elsewhere."

flare-cli/src/orbit/gpu.rs:309-321 is such a duplicate:

/// The PCI ID table of `crate::hardware`, which selects a revision before compute capability.
fn platform(pci_id: u32) -> Option<&'static str> {
    …
    match pci_id >> 16 {
        0x2e12 => Some("gb10"),
        0x2b85 | … | 0x2bbc => Some("gb202"),
        _ => None,
    }
}

The doc comment on it even claims to be "the PCI ID table of crate::hardware", which is now false in three ways: it is missing ga102, gb300, and (after this PR) gb206, and it carries 0x2bbc, which does not appear in GB202_DEVICES at naming.rs:21-23.

The complying precedent is in the same workspace: flare/src/hardware.rs:18-21

fn platform(pci_id: u32) -> Option<&'static str> {
    // Single mapping table shared with core export naming.
    flare_helios::core::naming::platform_from_pci(pci_id)
}

and flare-cli can do the same today — flare-cli/Cargo.toml:27 already depends on flare-helios with runtime-core,server.

Why it matters now: before this PR the two tables happened to agree on every platform that reached Orbit. After it, a GB206 host is resolved two different ways:

I verified both sides: the fallback is gpu.rs:297-307 + :303, and the placement comparison is string equality in flare-cli/src/orbit/plan.rs:693-708, with the requirement derived from capability in flare-cli/src/orbit/controller.rs:2293-2296. Because both sides currently say gb202, placement does not break — which is why this is should-fix and not blocking — but the divergence is real and user-visible the moment either side moves.

It is also drifting in a second dimension: main has already begun removing this copy. Main's flare-cli/src/orbit/gpu.rs:315 reads device if flare_helios::core::naming::GB300_DEVICES.contains(&device) => Some("gb300") (from merged #529, commit e685a975), while the branch's copy is the older literal version above. So the duplication this PR leaves untouched is being fixed upstream in exactly the way the shared-table comment asks.

Fix: replace the body with flare_helios::core::naming::platform_from_pci(pci_id) as flare/src/hardware.rs:20 does — but only landed together with #469's identity-based core_revision and its (8, 6) capability arm, otherwise GB206 (capability 12.0 → gb202) and GA102 (8.6 → no arm) hosts start reporting revisions that the core requirement no longer matches, which would re-create the blocking placement failure this PR's earlier head had. If the coordination is not ready, leave the file alone (as this head does) and carry the fix in #469.

S3 — description §4 gives evidence with no command, configuration, result, or untested-id disclosure

Current §4 is: "Unit tests: Passed test suites in helios and flare." / "Tested hardware: Verified on GeForce RTX 5060 Ti 16GB (0x2d04)."

AGENTS.md:103-112 asks the evidence section to say what was run and "state what remains untested or inconclusive". Three gaps:

  1. No command, configuration or result. helios has default = [] (helios/Cargo.toml:17) and gates the core module (helios/src/lib.rs:22-23), so the naming tests only build under --features runtime-core,server — the command CI uses (.github/workflows/native-serving.yml:63 (not opened),68; AGENTS.md:313-320). "Passed test suites in helios and flare" is not reproducible as written.
  2. Eight of the nine new ids are untested (only 0x2d04 is claimed on hardware): 0x2d05, 0x2d18, 0x2d19, 0x2d30, 0x2d39, 0x2d58, 0x2d59, 0x2d79 (naming.rs:27-29). The description does not say where they came from. (The earlier draft's pci.ids disclosure was removed in the 13:05 rewrite; restoring it costs one clause and is what AGENTS.md asks for.)
  3. No behavioural note. On a GB206 host, automatic selection previously failed with the actionable "GPU {entry} has unsupported PCI ID {:#010x}; specify --revision" (flare/src/hardware.rs:95-100) and now requests gb206 and then gb206-tp1 (flare/src/hub.rs:3113-3121). Whether any repository publishes a gb206 revision is not answerable from the tree; #469 disclosed the equivalent for gb203 and named --revision gb202 as the override. That disclosure belongs here.

Credit where due: the 13:05 rewrite removed the two claims I flagged in the previous head — a flare-cli/src/orbit/gpu.rs mapping of the nine ids and a cargo test --manifest-path flare-cli/Cargo.toml run over GB206_DEVICES. Neither exists in the diff (pr_diff) and no flare-cli test references GB206, so the description now matches the diff in scope; it is under-specified rather than false.

Nits

Checked and dismissed

Recorded so the absence is deliberate: PLATFORMS insertion order (naming.rs:15) is alphabetical and safe for the only order-sensitive consumer, branch_platform (flare/src/catalog.rs:271-280), because no platform name is a prefix of another; the nine ids are ascending and disjoint from GB202_DEVICES (:21-23), GB10_DEVICES (:32), GA102_DEVICES (:36) and GB300_DEVICES (:39); no other test asserts a literal platform set (the catalog loop at :550-568 was the only one, and this PR fixes it); candidate/deployment_candidate/unknown_device_candidate validate through PLATFORMS membership (naming.rs:79, :121) so gb206 flows through unchanged; and docs/orbit.md:321 (gb10, gb202, gb300 from PCI id or capability) remains accurate for Orbit's own code, so this PR owes no change there — the divergence in S2 is a code fact, not a doc defect.

Out of lens, not raised here: whether GB206 support is in scope (charter non-goal on broad hardware support — but the description cites a reproducible unsupported-PCI-ID failure, which AGENTS.md:165-169 accepts), and the correctness of the eight untested ids.

Open questions / what could not be confirmed