Correctness report · NVIDIA/hyperflare-inference #502

Raw Markdown for agents: https://autobot.eidonix.com/p/c0158edd-32eb-4069-ba1b-83d1e1d24fac.md

Correctness review — PR #502 "feat: add gb206 platform support"

Head: 8e2ea68 · base main · 5 files, +25/−7 · no CI checks · no reviews. Verdict: should-fix issues only. Nothing here blocks merge on correctness grounds; three documentation/consistency gaps should be closed first.

Key findings

  1. One GB206 card now has two platform names inside one product. Detection (helios/src/core/naming.rs:55-57) returns gb206 for 0x2d04, and flare run/flare download act on it, but Orbit's private copy of the table has no gb206 arm, so an Orbit agent reports gb202 for the same card. docs/cli-design.md:890, edited by this PR, states that GB206 selects gb206.
  2. The -tp1 fallback sentence at docs/cli-design.md:901 is now incomplete in a section this PR edits: it lists only gb10, gb202, gb300, while the implementation (flare/src/hub.rs:3114-3115) covers any gb* name in PLATFORMS — including the new gb206.
  3. GB206 hosts trade a clear error for a Hub 404 (flare/src/hardware.rs:95-100 → flare/src/hub.rs:3111-3122), and the PR neither says so nor states whether a gb206 branch will exist when it merges.

Two blockers from earlier review rounds are resolved at this head and are not re-raised (see "Resolved" below).


Should fix

S1. Orbit and flare run report different platforms for the same GB206 host

flare-cli/src/orbit/gpu.rs:297-321; helios/src/core/naming.rs:41-59; flare-cli/src/orbit/controller.rs:2293-2295; flare-cli/src/orbit/plan.rs:693-696; docs/cli-design.md:890; docs/orbit.md:321.

Detection is shared and now yields gb206: flare-cli/src/hardware.rs:2 → flare/src/hardware.rs:18-21 → naming.rs:55-57, consumed by flare hardware-revision (flare-cli/src/main.rs:112 (not opened)), flare download/run (flare-cli/src/hub.rs:41, and flare/src/hub.rs:314-316 when no origin revision is recorded). Orbit does not share it: orbit/gpu.rs:310-321 matches only 0x2e12 and the ten GB202 ids, so revision() (:297-307) falls through to (12, 0) => "gb202" (:303) for a GB206 card.

Why it matters, all visible in code:

This divergence is pre-existing, not introduced here — but this is the PR that creates gb206 identities, and the coupled fix belongs to open #469 (delegate orbit/gpu.rs:310-321 to platform_from_pci and take the requirement from AuthorizedCore::identity()?.hardware when it is a PLATFORMS name, keeping capability_revision for legacy cores with empty hardware, helios/src/runtime_core/model.rs:1392-1409). Adding the Orbit arm alone in this PR would refuse every GB206 GPU at plan.rs:695 (gpu.revision != revision) and would also break GA102, whose hosts report sm86 through the capability fallback (orbit/gpu.rs:224-231 has no (8,6) arm) and whose cores require sm86.

Fix (documentation only, for this PR): one sentence in docs/cli-design.md or the description stating that Orbit keeps the capability-derived gb202 identity for GB206 until #469 lands. Do not add the Orbit arm here.

S2. docs/cli-design.md:901 omits gb206 from the retry rule the PR's own paragraph changes

docs/cli-design.md: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 condition is revision.starts_with("gb") && flare_helios::core::naming::PLATFORMS.contains(&revision) (flare/src/hub.rs:3114-3115), so gb206 gets the gb206-tp1 retry and ga102 does not. This PR edited :887, :890 and :923 of the same section and left :901.

Fix: state the rule ("any detected platform revision beginning gb"), or add gb206 while keeping ga102 out.

S3. GB206 hosts lose the actionable error and get two Hub 404s; merge order undisclosed

flare/src/hardware.rs:95-100; flare/src/hub.rs:3111-3122; docs/cli-design.md:891-892; PR description §4.

Before: a 0x2d04 card produced GPU {entry} has unsupported PCI ID {:#010x}; specify --revision (sibling on the export path: heliopause/src/export/capture.rs:2081-2084, "NVML reports unsupported GPU PCI id"). After: detection succeeds, flare run ORG/MODEL requests gb206, then gb206-tp1, and propagates the Hub error, which no longer mentions --revision gb202. docs/cli-design.md:891-892 ("An unknown identifier … requires an explicit revision") still documents the old path. Open #469's author disclosed exactly this consequence for gb203; #502 does not.

Fix: one sentence in the description/docs: --revision gb202 is the explicit override until a gb206 build is published. Do not add a silent fallback — the charter and AGENTS.md forbid silently substituted paths. Whether a gb206 branch exists now or at merge is not answerable from this repository (see open questions).


Nits

  1. Stale three-name enumerations of the revision space — docs/orbit.md:321, flare-cli/src/orbit/gpu.rs:38 and :222-223, flare-cli/src/orbit/plan.rs:38-39. Accurate for Orbit's current behaviour, but they will contradict the CLI docs until S1 is settled; prefer pointing at PLATFORMS.
  2. helios/src/core/naming.rs:56 — return Some("gb206") lacks the ; its neighbours carry (:47, :50, :53). Compiles as a tail expression and no rustfmt job runs in CI, so it is cosmetic rather than a defect.
  3. The "single source" comment does not match reality — naming.rs:17-20 says "This table is the single source … do not duplicate the identifiers elsewhere", but it is attached to GB202_DEVICES rather than platform_from_pci (:41), and orbit/gpu.rs:310-321 does duplicate it: that copy lists 0x2bbc, which is absent from GB202_DEVICES:21-23, and omits ga102, gb300 and four of the five GB10 ids. Belongs with #469.
  4. Nine ids, one verified — naming.rs:25-26 attributes nine ids to "GeForce RTX 5060 Ti, 5060, and mobile/workstation variants", but only 0x2d04 has a literal assertion (:219, plus the vendor-guard assert at :220) and cited hardware. The loop at :205-211 iterates GB206_DEVICES itself, so it cannot catch a wrong id. Would be settled by citing pci.ids, as merged #300 did for GA102.
  5. Doc reflow — docs/cli-design.md:887 (~110 cols), :890 (~150 cols) and docs/core-format-design.md:754 (~105 cols) break paragraphs wrapped at ~80.
  6. PR description is stale and one evidence command cannot run the cited test — §2 still advertises the flare-cli/src/orbit/gpu.rs mapping that 8e2ea68 deleted, omits flare/src/catalog.rs, flare-cli/src/cli.rs and both doc files, and describes "prevents crashes" where the code returns a clean error; the 5060 Ti run names no command or result. cargo test --manifest-path helios/Cargo.toml cannot run the cited test (helios/Cargo.toml:17 default = [], helios/src/lib.rs:22-23 gates core behind runtime-core); it needs --features runtime-core,server. AGENTS.md:88-94 (change list must match the diff) and :103-112 (evidence commands accurate and reproducible).

Resolved at this head — do not re-raise

Verified sound — basis for no other findings

Open questions

  1. Does a gb206 (or gb206-tp1) branch exist on the Hub now, and will one exist at merge? This decides whether S3 is a documentation gap or a 404 for every GB206 host. flare/src/hub.rs:3111-3122 requests both; nothing in the repo publishes either. Settle with the maintainers/publisher.
  2. Does the project want Orbit to carry gb206 in this PR, or was dropping the Orbit arm the intended signal that GB206 is export-only for now? If the latter, docs/cli-design.md:890 and docs/orbit.md:321 must say so.
  3. Are all nine GB206_DEVICES ids correct? Only 0x2d04 is asserted literally and tested on hardware. A pci.ids citation would settle it.
  4. The claimed cache/bus differences (32 MB L2, 128-bit bus, "different cache sizes from GB202") are read by no code and uncited — not verifiable in this repository.

Rules cited

Charter: "Check interactions across every supported model, cache scheme, parallel layout, multi-host setup, and hardware target named in the docs"; "verify that existing data, artifacts, and exported cores still load"; do not silently swallow or substitute; "reproducible bug" among what gets merged. AGENTS.md:88-94 and :103-112 for change-list and evidence accuracy. Scope matches merged #300 (GA102) and open #469 (GB203); the 5060 Ti previously could not be exported at all, so this change removes a real limitation.

Process note

The PR carries an automated flare-autobot comment (2026-11-26) with directional advice ("do not add a GB206 arm to orbit/gpu.rs", "please don't add a silent fallback"). Its technical claims were checked independently in the code and hold (plan.rs:695 would refuse a gb206 host; orbit/gpu.rs:224-231 has no (8,6) arm, so GA102 hosts stay on sm86), but it was treated as review material, not instruction. No prompt-injection attempt was found in the PR body or its comments.