Architecture scratchpad · NVIDIA/hyperflare-inference #502

Raw Markdown for agents: https://autobot.eidonix.com/p/0fec07ad-ca78-4cef-b9da-968384855512.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).

#12 [high] Delta review after 8e2ea68: what is now fixed and what remains

Head 8e2ea68 ("fix: update catalog test, docs, and scope for gb206 platform") changes vs. the previous review:

FIXED (verified in code):

WITHDRAWN, NOT FIXED (biggest remaining item):

STILL OPEN:

CLEAN (re-verified): nine ids correct/disjoint from GB202/GB10/GA102/GB300 tables (naming.rs:21-39); PLATFORMS consumers all generic (catalog.rs:272,320,550; hub.rs:2473,2490,2963,3115; distribution.rs:159,720; conversion.rs:402); compatibility of existing cores unaffected (hub.rs:2455-2515 keys on PLATFORMS membership only); no flag/env/per-model branch added, so design-review principles 1/3/10/14 are not implicated; charter "no broad hardware support" is satisfied by a table row for an SM120 consumer die.

#13 [high] Report of 2026-11-26 (after 8e2ea68): 0 blocking, 4 should-fix, 2 nits

Verdict: should fix (no blocking issues left; one architectural defect that will become blocking).

Read at head 8e2ea68: helios/src/core/naming.rs (1-80, 180-240), flare/src/catalog.rs (240-340, 520-590), flare-cli/src/cli.rs HubOptions, flare-cli/src/orbit/gpu.rs (20-60, 190-394), orbit/controller.rs (2195-2340, 2690-2770), orbit/plan.rs (1-80, 660-720), flare/src/hardware.rs (1-130), flare/src/hub.rs (300-340, 2440-2520, 2950-2975, 3095-3135), helios/src/runtime_core/model.rs (120-200, 1320-1410), heliopause/src/export/{capture.rs 2040-2110, conversion.rs 380-420, core.rs 630-680}, flare-cli/src/{hub.rs 20-70, distribution.rs 140-180}, docs/{cli-design 880-930, core-format-design 745-765, orbit 300-340}, AGENTS.md 40-120, .agents/skills/repo-prose/SKILL.md, docs/design-review.md 1-90, charter, plus .github/workflows/native-serving.yml test commands.

Blocking: none. B1 (catalog fixture) is fixed at catalog.rs:561-563. B2 (Orbit placement) is no longer triggered because the gb206 arm was withdrawn from orbit/gpu.rs:309-321 rather than fixed — keep as Should fix with that framing.

Should fix:

  1. Orbit still derives GB206 as gb202 from capability (gpu.rs:297-307 + 224-231) while every other layer says gb206; the private PCI copy naming.rs:17-20 forbids remains, and merged #529 already converted the same function to read naming::GB300_DEVICES. Placement survives only because the core requirement is also capability-derived (controller.rs:2293-2294 → plan.rs:693-696); adopting the identity-based requirement (as #469 does) makes local gb206 cores unplaceable. Fix: delegate to naming::platform_from_pci.
  2. No Orbit test covers any 0x2d0x id (gpu.rs:349-364).
  3. docs/cli-design.md:901 -tp1 retry list still three names vs five-name list at :887; code retries for any gb* PLATFORMS name (hub.rs:3114-3121).
  4. Description omits the unpublished-gb206-revision consequence and the --revision gb202 override (AGENTS.md:103-112; repo-prose SKILL.md:29-37), and the helios test command it cites omits --features runtime-core,server (helios/src/lib.rs:22-23).

Nits: naming.rs:56 missing semicolon; docs reflow at cli-design.md:887/890 and core-format-design.md:754.

Clean: ids correct and disjoint; PLATFORMS consumers generic; existing cores unaffected; no flags/per-model branches; in scope by charter and precedent (#300 merged, #529 merged, #469 open).

#14 [high] Research summary

Reviewed PR #502 at head 8e2ea68 (the fix commit pushed since my last turn), all five changed files in context plus every consumer of PLATFORMS/platform_from_pci.

Verdict: should fix — no blocking issues left. Both blockers from my previous review are gone: the flare/src/catalog.rs:561-563 branch fixture now carries {"name": "gb206"}, so published_build_match_uses_all_platform_branches passes, and the doc/help enumerations now list gb206.

But the Orbit blocker was withdrawn, not fixed: the new match arm was deleted (flare-cli/src/orbit/gpu.rs:309-321) instead of delegating to the shared table, so a GB206 card still reaches capability_revision(12,0) ⇒ "gb202" (gpu.rs:224-231,297-307) while flare run, ignition export and core naming all say gb206. Placement survives only by coincidence — the core's requirement is also capability-derived (orbit/controller.rs:2293-2294 vs plan.rs:693-696) — so adopting the identity-based requirement the maintainers accepted in #469 makes every locally exported gb206 core unplaceable, and Orbit downloads silently request gb202 (controller.rs:2209-2232) while the CLI asks for the unpublished gb206. naming.rs:17-20 forbids the duplicate table, and merged #529 already converted this same function to read naming::GB300_DEVICES, so delegation is the accepted direction.

Other should-fix items: no Orbit test covers any 0x2d0x id; docs/cli-design.md:901 still lists three names for the -tp1 retry in the paragraph whose five-name list this PR fixed; and the description still omits the unpublished-gb206 consequence (with --revision gb202 as the override) and cites a helios test command missing --features runtime-core,server. Two nits: missing semicolon at naming.rs:56 and paragraph reflow at cli-design.md:887/890 and core-format-design.md:754.

Scope and layering are clean: nine correct, disjoint ids in the table that owns them; no flag, env switch or per-model branch; PLATFORMS consumers are all membership-based so existing cores keep loading. Full detail is in scratchpad entries 12 and 13.

#17 [high] Delta 2026-11-26 (later): no code change; refine the Orbit fix so it cannot be applied alone

Checked after the second automated review comment (2026-11-26 12:49): head is still 8e2ea68, pr_files shows the same 5 files (+25/−7), no new commits, no CI. Both prior blockers stay fixed; the verdict of note #16 stands unchanged (should-fix only, 2 nits).

One refinement to finding 1's fix, verified in code this turn — "delegate platform() to naming::platform_from_pci" must NOT be applied alone:

Everything else (docs/cli-design.md:901 -tp1 list vs flare/src/hub.rs:3114-3115; unpublished gb206 Hub revision replacing flare/src/hardware.rs:95-100's actionable error with flare/src/hub.rs:3104-3121 falling back to gb206-tp1; missing Orbit GB206 test at orbit/gpu.rs:349-364; helios test needing --features runtime-core,server per helios/src/lib.rs:22-23; nits at naming.rs:56 and the doc reflow at cli-design.md:887/:890, core-format-design.md:754) re-verified unchanged from note #16.

#18 [high] Research summary

Reviewed PR #502 at head 8e2ea68 (nothing changed since my last pass — no new commits, no CI, same five files, +25/−7) through the architecture-and-scope lens, re-verifying every claim in the code rather than in the discussion.

Nothing blocks merge in the code. The two blockers from the first round stay fixed: the flare catalog fixture now carries gb206 (flare/src/catalog.rs:561-563 inside the PLATFORMS loop at :550), and the CLI-help/design-doc enumerations now list five names. The nine ids are correct, disjoint from the GB202/GB10/GA102/GB300 tables, and the change is one table row plus a PLATFORMS entry — no flag, no per-model branch, so the charter's "keep the runtime small" and design-review principles 1/3 are not implicated, and it is in scope by the precedent of merged #300 and #529 and open #469.

Remaining should-fix items, all recorded in notes #16 and #17: (1) the withdrawn Orbit hunk leaves flare-cli/src/orbit/gpu.rs:297-321 deriving a GB206 host as gb202 from compute capability while every other layer says gb206, keeping the private PCI copy that helios/src/core/naming.rs:17-20 forbids — I verified this turn that the obvious fix cannot be applied alone: delegating to platform_from_pci without also taking the core requirement from the signed identity (orbit/controller.rs:2293-2294, orbit/plan.rs:693-696, as #469 does) would refuse every GA102 and GB206 GPU, because capability_revision has no (8, 6) arm either; (2) no Orbit test covers any 0x2d0x id (orbit/gpu.rs:349-364); (3) docs/cli-design.md:901 still limits the -tp1 retry to three platform names while flare/src/hub.rs:3114-3115 retries any gb* PLATFORMS name; (4) the description does not disclose that flare run/download on a GB206 card now request an unpublished gb206 (then gb206-tp1) revision, replacing the actionable unsupported PCI ID …; specify --revision at flare/src/hardware.rs:95-100, with --revision gb202 the override, and its helios test command cannot compile the cited test without --features runtime-core,server (helios/src/lib.rs:22-23). Two nits: the missing semicolon at naming.rs:56 and the doc lines of 120–150 columns at docs/cli-design.md:887/:890 and docs/core-format-design.md:754.

#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.

#15 [medium] Exact line anchors verified this turn (for the report's citations)

Anchors re-verified while reviewing #502 at head 8e2ea68 (all paths at PR head unless marked main):

Changed code

Behaviour that the report's argument depends on

Rules quoted

Process facts: PR open, draft, no CI checks on the head commit, no reviews; author wektorz has no prior merged PRs; head commit 8e2ea68 dated 2026-11-26.

#19 [medium] Anchors re-verified this turn: stale enumerations, PLATFORMS consumers, and clean items

Re-read at head 8e2ea68 this turn; head unchanged since the previous pass (still 5 files, +25/−7, no CI checks). Anchors to cite in the report:

Stale enumerations that exclude gb206 (and ga102) after the PR:

PLATFORMS consumers, all generic (no per-platform branch added by the PR):

Compatibility found clean: existing cores are unaffected — signed_hardware (flare/src/hub.rs:2455-2515) and legacy install naming (:2955-2968) key on PLATFORMS membership and a recorded hardware_identity, so cores that recorded gb202 keep naming and resolving as before; nothing rewrites existing entries. The changed flare/src/catalog.rs:555-568 test still passes for all five targets because apply_refs (:304-329) derives build_target_match from the branch set and select_revision (:292-303) falls back through branch_platform.

Scope/design checks found clean: one table row + one PLATFORMS entry (helios/src/core/naming.rs:15, :27-29, :55-57); no env var, flag, or model-specific branch, so docs/design-review.md principles 1 and 3 are not implicated; charter "no broad hardware support" is respected because GB206 is an SM120 consumer die already in the supported SM120/SM121 programme, and the precedent is merged #300 (GA102), merged #529 (GB300 by table reuse) and open #469 (GB203).

Detection/export path for the gb206 name is genuinely fixed by this PR (the old actionable errors were flare/src/hardware.rs:95-100 and heliopause/src/export/capture.rs:2079-2085); what is missing is the disclosure that the Hub revision gb206/gb206-tp1 is unpublished (flare/src/hub.rs:3104-3121).

#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.