Conventions report · NVIDIA/hyperflare-inference #502

Raw Markdown for agents: https://autobot.eidonix.com/p/db578c94-ed6a-42ab-b40b-20c59716739c.md

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

Head reviewed: 8e2ea68 ("fix: update catalog test, docs, and scope for gb206 platform"), 5 files, +25/−7, draft, no CI checks, author wektorz. Files read in context: helios/src/core/naming.rs, flare/src/catalog.rs, docs/cli-design.md, docs/core-format-design.md, flare-cli/src/cli.rs, plus the callers of the shared PCI table (flare/src/hardware.rs, flare/src/hub.rs, flare-cli/src/orbit/gpu.rs) and the rules in AGENTS.md, docs/design-review.md, the charter and the repo-prose skill. Benchmarks were read against the earlier head; both blocking findings from the 2026-11-24 review are now resolved in the code.

Key findings

The change itself is now conformant: the new platform is added at the single source of truth, the loop-over-PLATFORMS test in flare/src/catalog.rs was extended with a matching branch, and the docs/help enumerations were updated in five of six places. One stale present-state sentence remains (docs/cli-design.md:901), the PR description still describes a diff that no longer exists, and the long-standing duplicate PCI table in flare-cli/src/orbit/gpu.rs is now visibly divergent for the newly supported hardware. No blocking issues remain at this head.

Resolved since the previous review (verified at 8e2ea68)

Should fix

1. docs/cli-design.md:901 — the -tp1 fallback still enumerates three platforms, but is driven by PLATFORMS

The paragraph (lines 899-903) says:

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 behaviour is general, not a hand-written list: flare/src/hub.rs:3113-3121 triggers the fallback on revision.starts_with("gb") && flare_helios::core::naming::PLATFORMS.contains(&revision). With PLATFORMS now five entries (naming.rs:15), a detected gb206 revision gets the gb206-tp1 fallback as well, so this sentence understates the code and would be the only platform-doc line that omits gb206's acquisition behaviour.

Why it matters: docs/ is the present-state specification of the product (.agents/skills/repo-prose/SKILL.md:26 (not opened), cited through docs/design-review.md:137-152); a sentence that contradicts the code at the head commit is a documentation defect even when no runtime behaviour changes. The same paragraph was updated for gb203 in #469 and for ga102 in #300, so the established pattern is to keep it in sync.

Fix: add gb206 to the list, or better, delete the enumeration and point at naming::PLATFORMS so the sentence cannot drift again (§Nits 3 argues the same for the other copies).

2. PR description no longer describes the diff

Section 2 still claims:

Updated platform(pci_id) to map the same 9 GB206 PCI device IDs to Some("gb206") during NVML device discovery.

and section 4 claims the mapping was verified with cargo test --manifest-path flare-cli/Cargo.toml across all nine GB206_DEVICES entries. At head 8e2ea68 there is no GB206 arm in flare-cli/src/orbit/gpu.rs at all (the whole flare-cli src change is one line, cli.rs:175), and no test in flare-cli references GB206; the nine-id loop lives at helios/src/core/naming.rs:205-211 and only runs with --features runtime-core,server (helios/src/lib.rs:22-23, AGENTS.md:317).

Why it matters: AGENTS.md:72-113 requires the "what exactly changed" and "what evidence supports those claims" sections to describe the change as merged (Never invent evidence), and docs/design-review.md:137-152 (principle 16) requires a reviewer not to need the diff to reconstruct the argument. A reviewer reading this description will look for a mapping and a test that do not exist. Removing the flare-cli hunk was the right call, but the description did not follow, and the description is also the record of which hardware was actually exercised.

Fix: drop the flare-cli/src/orbit/gpu.rs bullet, credit the flare-cli/src/cli.rs help-line change instead, and state the test command that actually covers the nine ids (cargo test --features runtime-core,server --manifest-path helios/Cargo.toml), keeping 0x2d04 as the only id tested against hardware.

3. flare-cli/src/orbit/gpu.rs:309-321 — a private copy of the PCI table that naming.rs forbids, now visibly divergent

helios/src/core/naming.rs:17-20 states the rule explicitly:

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 that duplication: a local platform() with its own match, its own vendor mask, and its own device list (one gb10 id 0x2e12 out of five, plus 0x2bbc in the gb202 arm which the shared table keeps, no ga102, no gb300 at this head).

The complying precedent is already in the tree and in the same workspace: flare/src/hardware.rs:18-21 is a one-line wrapper —

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/Cargo.toml:27 already depends on flare-helios with features = ["runtime-core", "server"], so platform_from_pci is available in this crate without a new dependency.

Why it matters for this PR, concretely: before it, both paths answered gb202 for a GB206 part (shared table by exclusion → None → capability fallback; orbit table by exclusion → capability fallback). After it, the shared answer for 0x2d04 is gb206 (naming.rs:55-58, surfaced through flare/src/hardware.rs:20 and documented at docs/cli-design.md:890), while Orbit still reports gb202 (gpu.rs:298-307). The two "Flare hardware revision" answers for the same card now disagree, and nothing in Orbit's own docs or tests says so (docs/orbit.md:321 still lists gb10, gb202, gb300, which remains accurate for Orbit's code — so no doc change is owed there, but the divergence is a real usability trap for a fleet mixing 5060 Ti cards). This is exactly the drift the comment warns about, and it is the reason #469 deletes the copy in favour of core_revision.

Fix: make orbit/gpu.rs::platform delegate to flare_helios::core::naming::platform_from_pci exactly as flare/src/hardware.rs:18-21 does, and keep the capability fallback in revision() only for ids the shared table does not know. If the placement divergence must be deferred, it belongs with #469's core_revision change rather than standing alone as the third copy of the decision.

Nits

  1. helios/src/core/naming.rs:56 — return Some("gb206") omits the trailing semicolon that every sibling arm has (:47, :50, :53) and the file's style otherwise follows. No fmt/clippy gate exists in .github/workflows/native-serving.yml (not opened), so nothing enforces it. Fix: add the ;.
  2. helios/src/core/naming.rs:17-20 — the "single source … do not duplicate" doc comment is attached to GB202_DEVICES, and with GB206_DEVICES now inserted directly after it (:25-29) the scope reads as "this GB202 table", not "the PCI table as a whole". Precedent: it should describe platform_from_pci (as #469's review asked). Fix: move the comment onto platform_from_pci at :41, or reword it to cover all four *_DEVICES tables.
  3. Five-name enumerations duplicated from PLATFORMS — docs/cli-design.md:887, docs/cli-design.md:923, docs/core-format-design.md:753-754, flare-cli/src/cli.rs:175. All are consistent now, but none derives from helios::core::naming::PLATFORMS (naming.rs:15), which is precisely how the fourth platform went stale; and the sixth copy, docs/cli-design.md:901, already did (finding 1). Fix: point the prose at PLATFORMS and keep the literal list only in naming.rs.
  4. Branch is behind main — main now has GB300_DEVICES: [u32; 2] = [0x31c2, 0x31c3] (naming.rs:33) from #529 and a GB300_DEVICES lookup in flare-cli/src/orbit/gpu.rs:315; this branch's copy of that file is the pre-#529 version. Rebase before merge and re-run helios (--features runtime-core,server), flare and flare-cli tests, and re-check finding 3 against the rebased file — #529 makes the duplicate table diverge from the shared one in a second dimension.

Open questions and what could not be verified

Verdict: should-fix issues only. Nothing blocks the change as a naming addition; findings 1 and 2 are text defects in files the PR already touches, finding 3 is the duplication the PR's own source file forbids and which this change makes observable.