Correctness scratchpad · NVIDIA/hyperflare-inference #469

Raw Markdown for agents: https://autobot.eidonix.com/p/f93dba6a-5224-4511-adf9-a8c87c4c65c6.md

#1 [high] Orbit: describe() derives core revision from compute capability only, so gb203 cores cannot be placed

flare-cli/src/orbit/controller.rs:2293-2298 describe() builds CoreNeeds.revision as super::gpu::capability_revision(first.architecture[0], first.architecture[1]). capability_revision (flare-cli/src/orbit/gpu.rs:224-231) maps (12,0)->"gb202", (12,1)->"gb10", (10,3)->"gb300", else "sm{major}{minor}". It cannot return "gb203". The agent side now reports GPU revision through naming::platform_from_pci (gpu.rs:297-307), which returns "gb203" for 0x2c31. Placement compares exact strings: flare-cli/src/orbit/plan.rs:693-708 unfit() -> if gpu.revision != revision { Some("... is {gpu.revision}, not {revision}") }.

So a core exported on GB203 (architecture [12,0], hardware_identity "gb203") has needs.revision == "gb202" while every GB203 GPU reports "gb203": flare orbit run ORG/MODEL resolves revision gb203 (repository_revision, controller.rs:2209-2233, uses gpu.revision), downloads the gb203 core, then fails placement with "gpu 0 ... is gb203, not gb202". Fix: prefer the signed hardware identity (authorized/VerifiedCore identity().hardware) when it is in naming::PLATFORMS, falling back to capability_revision for legacy cores that have none (legacy_identity leaves hardware empty, helios/src/runtime_core/model.rs:1308-1340).

#2 [high] Orbit regression: GA102 devices now report ga102 while cores still need sm86

Before: flare-cli/src/orbit/gpu.rs platform() (removed) listed only 0x2e12 and the GB202 family, so GA102 ids 0x2203/0x2204/0x2206/0x2208/0x220a/0x2216 fell to the capability fallback -> "sm86". After: naming::platform_from_pci has GA102_DEVICES (helios/src/core/naming.rs:37) and returns "ga102" (naming.rs:56-58). Core side still computes needs.revision from capability: capability_revision(8,6) == "sm86" (gpu.rs:305). plan::unfit (plan.rs:695) requires equality, so GA102 cores in Orbit become unplaceable ("gpu 0 ... is ga102, not sm86"). Before the change both sides said "sm86". This contradicts the PR's "no other identifier changes the revision it reports": six GA102 identifiers change from sm86 to ga102 in Orbit STATUS, dashboard, repository_revision (controller.rs:2209-2233) and placement. Same root cause as the gb203 finding: fix describe() to use the signed hardware identity, and keep the capability fallback only for cores without one.

#5 [high] Research summary

Reviewed PR #469 through lens A (correctness and consequences). The naming/table work is right, but the PR's central claim — "no other device changes label" — does not hold for the Orbit path, and the change leaves GB203 cores unplaceable in Orbit.

Findings recorded in the scratchpad:

  1. Blocking — flare-cli/src/orbit/controller.rs:2294: describe() still derives the core's required revision from compute capability (capability_revision), which maps [12,0] → gb202 and cannot return gb203, while the agent now reports gb203 for 0x2c31. Placement compares revisions as exact strings (plan.rs:693-708), so flare orbit run ORG/MODEL resolves and downloads the new gb203 core and then fails with "gpu 0 … is gb203, not gb202". Fix: take needs.revision from the verified core's signed hardware identity when it is in naming::PLATFORMS, falling back to capability_revision only for legacy cores with no identity.

  2. Blocking — same root cause, second consequence: the removed CLI-local table had no GA102 ids, so six GA102 identifiers used to report sm86 in Orbit. With the table delegated to platform_from_pci, they now report ga102 (helios/src/core/naming.rs:37,56-58) while cores still need sm86, so GA102 cores become unplaceable in Orbit and the "no other identifier changes label" claim is false. This is a genuine regression, not just a documentation gap; the same fix addresses both.

  3. Should fix / document — flare/src/hub.rs:241-246: auto-selection now resolves gb203 with no branch-existence fallback, so every ORG/MODEL on GB203 fails at fetch until publishers add gb203 branches (the PR itself says none exist). Not a regression from a working state (detection failed before), but it needs a note in docs/cli-design.md near line 885 that an explicit --revision is required in the interim.

  4. Nit — stale revision lists in Rust doc comments (flare-cli/src/orbit/gpu.rs:38,222-231, plan.rs:38-40, cli.rs:173) that the docs update skipped, the now-misplaced "single source" doc comment above GB202_DEVICES in naming.rs:17-23, and a ragged line-wrap at docs/cli-design.md:885-890.

The table additions and the PLATFORMS entry are correct and every caller of platform_from_pci (flare/src/hardware.rs:18-21, heliopause/src/export/capture.rs:2079) benefits; the export path resolves and names the card as claimed. The evidence (cargo tests, hardware run on b9cac839, export entry gb203-tp1-202611222126, flare run throughput parity) is consistent with what the diff claims for the direct flare run path.

#6 [high] Report-ready finding details and citations for PR #469 (lens A)

PR #469, head d07e149, base main, 5 files +28/−22. Lens A (correctness/consequences).

FINDING 1 (blocking) — Orbit cannot place a core exported on GB203.

FINDING 2 (blocking regression) — GA102 revisions change from sm86 to ga102 in Orbit.

FINDING 3 (should fix / document) — no gb203 branch fallback in acquisition.

NIT 4 — stale text: flare-cli/src/orbit/gpu.rs:38 and :222-223 doc comments, flare-cli/src/orbit/plan.rs:38-40, flare-cli/src/cli.rs:173 ("detects ga102, gb10, gb202, or gb300") all omit gb203 and (except cli.rs) ga102; AGENTS.md:47-55 requires docs to state implemented support. naming.rs:17-23 doc ("single source") now sits above GB202_DEVICES rather than above platform_from_pci. docs/cli-design.md:885-890 line wrapping leaves "selection" alone on line 886.

#3 [medium] Auto-selected gb203 revision has no fallback when a repository publishes only gb202 branches

flare/src/hub.rs:241-246: the revision used for acquisition is exactly hardware::detect(gpu_count) (via naming::platform_from_pci) unless --revision/@revision is given; there is no branch-existence fallback, unlike catalog discovery (flare/src/catalog.rs:292-303 select_revision falls back to any published platform branch, display only). Consequence: on 0x2c31 before this PR, detect() failed with "unsupported PCI ID ... specify --revision" (flare/src/hardware.rs:95-100), so flare run already refused; after the PR it resolves gb203 and any repository without a gb203 branch fails at fetch (the PR states no gb203 revision is published yet). So this is not a regression from a working state, but it does mean every ORG/MODEL invocation on GB203 needs an explicit --revision gb202-style override until publishers publish gb203 branches, and the error comes from the Hub fetch rather than from detection. Worth documenting in docs/cli-design.md near line 885 rather than a code change. Note gb202 cores do load on GB203 (architecture [12,0] matches, helios/src/runtime_core/mod.rs:330-339 only compares attributes 75/76), so the pre-PR override path works.

#4 [low] nit: stale revision lists in Rust doc comments and CLI help; doc-comment placement in naming.rs

Minor consistency items in the changed hunks (nit severity):

  1. helios/src/core/naming.rs:17-23: the doc comment "Platform for one NVIDIA PCI id ... This table is the single source consumed by Flare's device detection and by core export naming" now sits above GB202_DEVICES instead of above platform_from_pci, so the "single source" statement documents one table rather than the function that dispatches over all five tables. Cosmetic, but it is the sentence the PR relies on.

  2. Duplicated device lists: GB203_DEVICES is iterated in the new test (naming.rs:206-212) while the other device families are iterated from their constants except GB10, which naming.rs:191 still hardcodes as [0x2e02, 0x2e03, 0x2e06, 0x2e12, 0x2e2a]. Not introduced here.

  3. flare-cli/src/orbit/gpu.rs:38 doc for Gpu::revision and :222-231 doc for capability_revision still say "gb10, gb202, gb300, or sm{major}{minor}" and do not mention ga102/gb203, though revision() can now return both. docs/orbit.md:321 was updated; these two Rust doc comments were not. Same for flare-cli/src/orbit/plan.rs:38-40 (Needs::revision) and flare-cli/src/cli.rs:173 (--revision help text: "detects ga102, gb10, gb202, or gb300"). AGENTS.md:47-55 requires docs to state implemented support.

  4. docs/cli-design.md:885-890: the reflow left "Automatic" ending line 885 and "selection" alone on line 886, and the "All selected GPUs must belong to the same family." sentence now sits on line 890 with the GB203 sentence. Prose-skill layout nit only.