Architecture scratchpad · NVIDIA/hyperflare-inference #502

Raw Markdown for agents: https://autobot.eidonix.com/p/2cedc44f-4710-4845-b866-256df48ea969.md

#1 [high] Blocking: adding "gb206" to PLATFORMS breaks an existing flare crate test (CI red)

helios/src/core/naming.rs:15 adds "gb206" to PLATFORMS (now 5 entries).

flare/src/catalog.rs:548-569 published_build_match_uses_all_platform_branches loops for target in PLATFORMS and, per target, builds a FIXED branch fixture: {"ga102-tp1"}, {"gb10-tp1"}, {"gb202"}, {"gb300-tp8"} (catalog.rs:561-563). For target="gb206":

CI runs this suite: .github/workflows/native-serving.yml:74-77 cargo test --manifest-path flare/Cargo.toml. The PR touches only naming.rs + orbit/gpu.rs, so this test is not updated → red CI.

Precedent: merged #300 added ga102 to the same fixture; open #469 (GB203) was told the identical thing ("flare/src/catalog.rs:561-563 hardcodes a four-platform branch fixture … Add {"name":"gb203-tp1"}").

Fix: add {"name": "gb206-tp1"} (or a gb206 branch) to the fixture in flare/src/catalog.rs:561-563.

#2 [high] Blocking: GB206 cores cannot be placed by Orbit (host says gb206, core requirement says gb202)

After the change the Orbit agent reports "gb206" for the nine new PCI ids (flare-cli/src/orbit/gpu.rs:310-324 platform(), consumed by revision() at gpu.rs:297-307, stored on Gpu.revision at gpu.rs:209).

But the core's required revision still comes from compute capability:

So a core exported on an RTX 5060 Ti (the PR's own headline use case) requires "gb202" while every GB206 host reports "gb206" → "gpu 0 … is gb206, not gb202", no placement. The same mismatch blocks placing an existing gb202 core on a GB206 node.

Note this is new: every existing PCI-table entry's name equals what capability_revision would produce (gb10 = (12,1), gb202 = (12,0), gb300 = (10,3); ga102 is not in the Orbit table at all, so it stays sm86 on both sides), which is why the coupling was invisible until now. gb206 is the first entry that breaks it.

Fix (same as the accepted direction in #469): in describe(), take the requirement from authorized.identity()?.hardware when it is a naming::PLATFORMS name, keeping capability_revision only for legacy cores with no signed identity (helios/src/runtime_core/model.rs:1327-1402, identity.hardware empty for legacy at model.rs:1356-1381). Add a test covering a gb206 core.

#3 [high] Should fix: GB206 ids duplicated in orbit/gpu.rs although naming.rs declares its table the single source

helios/src/core/naming.rs:17-20 already states: "This table is the single source consumed by Flare's device detection and by core export naming; do not duplicate the identifiers elsewhere."

This PR adds a third, parallel copy of the same ids in flare-cli/src/orbit/gpu.rs:314-322 (private platform() match arm 0x2d04 | … | 0x2d79 => Some("gb206")). The copy has already drifted from the shared table:

Fix: make orbit/gpu.rs's platform() delegate to flare_helios::core::naming::platform_from_pci (flare-cli already depends on flare-helios: flare-cli/Cargo.toml:27) and keep the (major, minor) match only in capability_revision for legacy cores. This is what #469 did after review ("the private copy of the table is gone"), so it is the accepted direction.

(Extra entry 0x2bbc in Orbit's gb202 arm is harmless today only because the (12,0) capability fallback also yields gb202.)

#8 [high] Review summary: architecture and scope lens on #502 (gb206)

Verdict: the direction is right and in scope (adding a device id table entry for a real Blackwell die is the established pattern: #300 GA102 merged, #221 GB300 open, #469 GB203 open), but this PR is incomplete for the same two reasons #469 was sent back.

Findings, in severity order:

  1. Blocking — CI red: flare/src/catalog.rs:548-569 fixture still four platforms; target="gb206" fails both asserts. (entry 1)
  2. Blocking — Orbit cannot place gb206 cores: controller.rs:2294 capability_revision (12,0)→gb202 vs host gb206 from orbit/gpu.rs:319, compared exactly at plan.rs:695. (entry 2)
  3. Should fix — duplicated PCI table in orbit/gpu.rs despite naming.rs:17-20 declaring a single source; the copy already drifted (0x2bbc, 4 GB10 ids, no ga102). (entry 3)
  4. Should fix — stale platform enumerations in CLI help and docs. (entry 4)
  5. Should fix — download/run now requests an unpublished gb206 branch; description does not disclose it. (entry 5)
  6. Should fix — no Orbit-side test for the nine ids. (entry 6)
  7. Nits — missing doc comment on GB206_DEVICES, loop-only test with no literal id, formatting. (entry 7)

No findings in: the ids themselves are correct (0x2d00 range is GB206 per PCI ids; they do not collide with any existing table entry — checked naming.rs:21-37, orbit/gpu.rs:314-322, flare/src/hardware.rs:389-400); PLATFORMS array length updated to 5 and every consumer uses .contains/iteration so nothing breaks on the size change (flare/src/catalog.rs:272,320,550-551; flare/src/hub.rs:2473,2490,2963,3115; flare-cli/src/distribution.rs:159,720; heliopause/src/export/conversion.rs:402); core compatibility is unaffected (existing gb202 cores still load and still verify; hardware_identity matching lives in flare/src/hub.rs:2455-2510 and treats any new PLATFORMS name generically).

Claims I could not test and did not record as findings: the PR's "128-bit bus / 32 MB L2 / 16 GB" justification is descriptive only — no measured evidence is claimed and none is needed, since the change alters a name, not execution; the author's statement that ignition export previously crashed on 0x2d04 (heliopause/src/export/capture.rs:2079-2085 raises "NVML reports unsupported GPU PCI id") is consistent with the code.

#9 [high] Research summary

Reviewed PR #502 (gb206 platform support) through the architecture-and-scope lens: read the charter, AGENTS.md, docs/design-review.md, both changed files in full, and every consumer of PLATFORMS / platform_from_pci (flare/src/hardware.rs, catalog.rs, hub.rs, flare-cli/src/distribution.rs, orbit/{gpu,controller,plan}.rs, heliopause/src/export/{capture,conversion,core}.rs).

The direction is in scope and matches precedent (merged GA102 #300, open GB300 #221 and GB203 #469), and the nine ids are correct and collide with no existing entry. But the change is incomplete in the same two ways #469 was sent back:

Should fix: the PCI table is duplicated in orbit/gpu.rs:314-322 although naming.rs:17-20 declares its table the single source, and the copy has already drifted (0x2bbc, four missing GB10 ids, no ga102 — the last makes Orbit report sm86 where flare reports ga102); stale four-name enumerations in cli.rs:175, orbit/gpu.rs:38,222, orbit/plan.rs:38, docs/cli-design.md:887,890,901,923, docs/core-format-design.md:753, docs/orbit.md:321; the PR description omits that flare run/download and Orbit now request an unpublished gb206 branch (previously an actionable "specify --revision") and that --revision gb202 is the override; and no Orbit-side test covers the nine new ids, where the (12,0)→gb202 fallback would mask a miss. Nits: undocumented GB206_DEVICES table beside four documented neighbours, loop-only test with no literal id assertion, two formatting slips in the introduced lines.

Full findings with file/line citations and fixes are in the scratchpad (entries 1-8, entry 8 being the summary).

#4 [medium] Should fix: platform enumerations in CLI help and design docs still list four names

The platform identifier set is user-visible and specified in prose that this PR leaves listing four names:

AGENTS.md:52-60: repository documents specify the architecture; support must be stated as present qualification. These statements become false with the change, and docs/cli-design.md is the CLI spec a user reads for --revision.

Fix: add gb206 (and, since the same lines are already incomplete, ga102 where missing) to each enumeration, or replace the enumeration with a reference to the shared table.

#5 [medium] Should fix: description omits that download/run now requests an unpublished gb206 revision

Verified path: flare-cli/src/hub.rs:40-41 (download sets revision from hardware::detect_isolated when no @revision) → flare/src/hardware.rs:23-114 detect → platform_from_pci. Same for flare/src/hub.rs:316 and flare/src/controller.rs:1201-1207, 1429.

On a GB206 GPU, platform_from_pci used to return None, so detect() failed with "GPU 0 has unsupported PCI ID …; specify --revision" (flare/src/hardware.rs:95-100). After the PR it returns "gb206", so flare run ORG/MODEL and flare download ORG/MODEL request the Hub revision gb206, and flare/src/hub.rs:3114-3121 only retries gb206-tp1 on 404. No repository publishes a gb206 branch (the PR itself only describes locally built cores), so the failure becomes a Hub missing-revision error. Orbit does the same through flare-cli/src/orbit/controller.rs:2209-2232 (revision inferred from the agents' Gpu.revision).

The PR description presents the benefit purely as "allows ignition to export locally built cores under gb206" and says nothing about the download/pull path now requesting a nonexistent branch, nor about --revision gb202 as the override. AGENTS.md:72-113 (required PR descriptions: claimed benefit, evidence, and material limitations/disclosure of what remains untested) and docs/design-review.md principle 16 require that limitation to be stated.

Fix: state the merge-order limitation in the description (and, if useful, in the platform-detection paragraph of docs/cli-design.md, which is being edited anyway for the enumeration). Do not add a silent fallback to gb202 — #469 was told the same.

#6 [medium] Should fix: no Orbit-side test for the new GB206 ids, and the capability fallback hides a miss

flare-cli/src/orbit/gpu.rs gains the nine GB206 ids (lines 319-321) but no test covers them. The only revision tests are orbit/gpu.rs:352-367 (pci_ids_select_the_revision_before_compute_capability, unknown_pci_ids_fall_back_to_compute_capability); none uses a 0x2d0x id. The PR description's evidence lists only platform_from_pci unit tests plus the one 0x2d04 card, so the Orbit half of the change has no automated check.

Why it matters: without a literal test, the exact failure recorded as a blocker (revision() falling through platform() to capability_revision (12,0) → "gb202") stays invisible, because the fallback masks a missing or mistyped table entry.

Fix: add assert_eq!(revision(0x2d0410de, 12, 0), "gb206") (and one id that must stay unlabelled) beside the existing tests at orbit/gpu.rs:352-367.

#7 [low] Nit: undocumented GB206 table, loop-only test, formatting slips

  1. naming.rs:25-27 — GB206_DEVICES is the only device table in the file without a doc comment saying what it covers. Compare naming.rs:21-23 (GB202), :29-30 (GB10/Spark), :32-34 (GA102 with product names), :36-37 (GB300). AGENTS.md:52-60 and the repo-prose skill require present, resolvable descriptions rather than unexplained identifiers; the ids themselves (0x2d18, 0x2d39, 0x2d79 …) are otherwise unattributable. Fix: one line naming GB206 as the Blackwell consumer/workstation die whose ids these are, matching the neighbouring tables.

  2. naming.rs:203-209 — the new test only iterates GB206_DEVICES; the loop would pass even if the table were pointed at the wrong platform constant. Precedent from the #221/#469 reviews: assert one literal id (platform_from_pci(0x2d04_10de) == Some("gb206")).

  3. Formatting in introduced lines: naming.rs:15 has "gb202","gb206" (missing space, and the array literal is now at 74 columns), and naming.rs:54 return Some("gb206") drops the semicolon that the sibling arm at :45-51 uses. No cargo fmt --check runs in CI (.github/workflows/native-serving.yml), so this is style only, but it will re-format on the next pass.

#10 [low] Description and process checks that passed (so the report does not re-litigate them)

Checked against AGENTS.md:72-113 ("Required PR descriptions") and docs/design-review.md principles 16-17:

No environment-variable switches, flags, per-model branches, or new abstractions are introduced by the diff, so docs/design-review.md principles 1, 3, 10 and 15 (keep Helios simple, no per-model policy, explicit configuration, reject scope expansion) are not implicated. The diff adds no CUDA/kernel code, so principle 14 does not apply.