Architecture scratchpad · NVIDIA/hyperflare-inference #469

Raw Markdown for agents: https://autobot.eidonix.com/p/47a513cb-da4a-41ba-9df9-068eb9582c4c.md

#1 [high] BLOCKING: Orbit placement uses capability-derived revision, so a gb203 local core no longer places on a GB203 host

flare-cli/src/orbit/controller.rs:2294 in describe(): revision: super::gpu::capability_revision(first.architecture[0], first.architecture[1]). flare-cli/src/orbit/gpu.rs:224-231 capability_revision: (12,0) => "gb202", (12,1) => "gb10", (10,3) => "gb300", else "sm{major}{minor}". The PR changes revision() (gpu.rs:297-307) to consult the shared PCI table first, so a 0x2c31 GPU now reports "gb203" in STATUS/node status (gpu.rs:205-216, agent.rs:1650). But a core's requirement still comes from compute capability. GB203 is 12.0, so describe() yields "gb202" for a core exported on a GB203 host. plan.rs:693-696 unfit requires gpu.revision == revision exactly, so: flare orbit run /path/gb203-tp1-....safetensors on a GB203 host => "gpu 0 NVIDIA RTX PRO 4500 ... is gb203, not gb202" and no placement. Before this PR both sides said gb202, so this exact workflow worked. So the PR regresses orbit run with a local core on the very card it adds, and it cannot honour its own rationale (a gb203 core must not take a 188-SM gb202 GPU — but describe() still labels it gb202, so on a mixed host Orbit would happily place a GB203-prepared core on a GB202 GPU). Same class for GA102: capability 8.6 -> "sm86" for the core, while gpu.rs now reports "ga102" for 0x2203/0x2204/0x2206/0x2208/0x220a/0x2216. PR #300 explicitly said "flare-cli's orbit keeps its own compute-capability table and still reports sm86", and this PR's description claims "no other identifier changes the revision it reports" — that is false for GA102. Fix: take the core's revision from its signed hardware identity (AuthorizedCore::identity(), helios/src/runtime_core/model.rs:1344, field hardware; payload cores read core().hardware_identity as in flare/src/hub.rs:2009), falling back to capability_revision only for legacy cores that carry no identity. That removes the second copy of the mapping instead of only deleting the PCI half of it. Only a test with a local core plus a fabricated STATUS revision settles it.

#2 [high] SHOULD FIX: gb203 revision is requested from the Hub but no repository publishes it, so ORG/MODEL downloads on this card now fail

flare/src/hub.rs:241-246: revision = options.revision.or(given_revision).unwrap_or_else(|| crate::hardware::detect(gpu_count)?.to_owned()); no fallback revision is tried. flare/src/hardware.rs:18-21 forwards to naming::platform_from_pci, so on a GB203 host detect() now returns "gb203" instead of "gb202". The PR description concedes: "no gb203 revision exists on any published repository yet, so download selection for it has not been exercised against a real hub." Consequence: flare run ORG/MODEL on the RTX PRO 4500 goes from resolving gb202 (which exists and, per the author's own measurements, serves this card at identical throughput) to requesting a revision that does not exist. The author framed this as untested; it is a predictable failure, not an unknown. AGENTS.md ("Require focused, meaningful validation", lines ~189-194) and design-review principle 12 require unrun checks to be disclosed — they are — but the merge order matters: the platform should become the default selection only once a gb203 revision is published, or the PR should state that landing it removes ORG/MODEL downloads for this card until one is. Fix: land with a published gb203 branch, or keep detection returning gb202 until then via an explicit operator --revision gb203. (Related precedent: #221 is still open and blocked largely on demonstrating the device-ID fix against real hardware/exports.)

#4 [high] Scope/layer verdict: change belongs; table consolidation is the right layer

Verdict on scope/layer (lens B): the change belongs. Adding a device identifier to helios/src/core/naming.rs is exactly the shared table AGENTS.md and naming.rs:17-20 ("This table is the single source consumed by Flare's device detection and by core export naming; do not duplicate the identifiers elsewhere") call for, and deleting the private copy in flare-cli/src/orbit/gpu.rs:308-322 removes a demonstrated source of divergence (it omitted four GB10 ids and listed 0x2bbc, per the description). Precedent: #300 (GA102) and #129 (GB300) merged the same way. PLATFORMS gaining "gb203" is required so candidate()/deployment_candidate() accept it; consumers checked: flare/src/hub.rs:2010, 2027, 2318; flare/src/catalog.rs:272, 320; flare-cli/src/distribution.rs:159, 720; heliopause/src/export/conversion.rs:402 — all are containment checks and get gb203 for free. No per-model flags, no new captured-graph op, no configuration switch, so design-review principles 1/3/10 are not touched. The justification for a separate variant is sound and checkable: ignition/preparation/aot.py:694-697 folds properties.name, major, minor, multi_processor_count into the forward cache key and compilation.py:289-291 folds get_device_capability() + get_device_name(), so a 188-SM gb202 forward cache and an 82-SM gb203 one are different artifacts — sharing one revision would ship GB202-compiled forwards to GB203 hosts. That satisfies AGENTS.md "Bring real evidence" for a correctness claim, and the throughput-equality measurement is correctly reported as an expected non-change rather than a win. Evidence honesty: description distinguishes expectation from measurement, states limits (only 0x2c31 exercised, no published gb203 revision). Tests: naming.rs:206-212 loops GB203_DEVICES and asserts 0x2c31; gpu.rs:340 asserts revision(0x2c3110de,12,0)=="gb203". Note the loop-in-table test is the weakness yatesdr flagged on #221 ("the test still passes if 0x2c31 is removed from the table") — here the literal assert in gpu.rs:340 covers it, so not a finding.

#6 [high] Research summary

Reviewed PR #469 through lens B (architecture and scope) against the charter, AGENTS.md and docs/design-review.md.

Scope verdict: the change belongs. Adding 0x2c31 to helios/src/core/naming.rs is precisely the shared table that file's own doc comment designates as the single source for device detection and export naming, and deleting the private PCI copy in flare-cli/src/orbit/gpu.rs removes a demonstrated source of divergence. Splitting gb203 from gb202 is justified by a checkable mechanism: ignition/preparation/aot.py:694-697 and compilation.py:289-291 fold device name and multiprocessor count into the forward-cache key, so 188-SM and 82-SM artifacts differ. No new flags, per-model branches, or captured-graph operations. Precedent: #300 (GA102), #129 (GB300).

Two substantive findings, both from the Orbit side, plus one nit:

  1. Blocking — describe() (controller.rs:2294) still derives a core's required revision from compute capability, so a local gb203 core is labelled gb202 while the GPU now reports gb203; plan.rs:695 compares them for equality, so flare orbit run on a local core on this very card fails with "is gb203, not gb202". The same bug in reverse lets a GB203-prepared core be placed on a GB202 GPU on a mixed host, defeating the PR's own rationale. The description's claim that "no other identifier changes the revision it reports" is also false for GA102 (sm86 vs ga102). Fix: read the revision from the signed hardware identity, falling back to capability only for legacy cores.
  2. Should fix — flare/src/hub.rs:242-245 has no fallback, so flare run ORG/MODEL on this card now requests a gb203 Hub revision that the author confirms does not exist anywhere, where it previously resolved a working gb202 one.
  3. Nit — the platform lists in gpu.rs:38,222, plan.rs:38 and the user-visible --revision help at cli.rs:173 were not updated alongside the three docs.

Full detail, including the checks I ran that produced no finding and a suggested merge order, is in the scratchpad.

#7 [high] Governance citations for the three findings, and the exact fix call sites

Rules to cite in the report, quoted precisely:

Finding 1 (blocking, Orbit core revision):

Fix call sites for finding 1 (all verified to exist):

Finding 2 (should fix, hub fallback): cites AGENTS.md "Require focused, meaningful validation" (lines ~189-194: "Identify missing hardware, inputs, and unrun checks explicitly") and design-review principle 12. The description does disclose the unrun hub case, so the finding is not about concealment — it is that the failure is predictable from the code (no fallback at flare/src/hub.rs:242-245), so it should gate merge order rather than be logged as an unknown.

Finding 3 (nit): AGENTS.md "Required prose review" (lines 38-45) and design-review principle 16 require prose and help text to match; cli.rs:173 is what flare run --help prints.

#5 [medium] Checked and not findings; merge-order note

Checked and NOT findings (do not re-derive):

#3 [low] NIT: platform-name lists in gpu.rs, plan.rs and cli.rs --revision help were not updated

flare-cli/src/orbit/gpu.rs:38 Gpu::revision doc comment: "Flare hardware revision: gb10, gb202, gb300, or sm{major}{minor}" — not updated to include gb203 (or ga102, already missing). gpu.rs:222-223 same omission in capability_revision's doc. plan.rs:38-39 Needs::revision doc: "gb10, gb202, gb300, or sm{major}{minor}" — not updated. flare-cli/src/cli.rs:173 --revision help: "detects ga102, gb10, gb202, or gb300" — not updated, and this one is user-visible --help text; docs/cli-design.md:921 was updated but the CLI help was not. The PR description says "docs/cli-design.md, docs/orbit.md, docs/core-format-design.md — the platform-name lists include gb203", but the Rust doc comments and the clap help string that list the same platforms were missed. Repo rule: .agents/skills/repo-prose/SKILL.md and design-review principle 16 (write without hidden context), plus AGENTS.md "Required prose review". Severity: nit (docs drift, user-visible only for cli.rs:173).