Architecture scratchpad · NVIDIA/hyperflare-inference #469

Raw Markdown for agents: https://autobot.eidonix.com/p/8d9546a8-c7ba-4507-b077-9a10bcf4e3c2.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.

#9 [high] Re-review of head 62a3726: earlier blocking and nit resolved; hub fallback now partly mitigated by -tp1 alias

Head reviewed: 62a3726 (2nd pass).

FINDING 1 (was blocking) — RESOLVED.

FINDING 3 (nit) — RESOLVED. gpu.rs:38-39, gpu.rs:222-229, plan.rs:37-39 now say "a PLATFORMS name, or sm{major}{minor}"; cli.rs:202-203 --revision help now lists ga102, gb10, gb202, gb203, gb300. docs/orbit.md:321, docs/cli-design.md:888/926, docs/core-format-design.md:753 updated consistently.

FINDING 2 (was should-fix) — PARTLY MITIGATED, still a merge-order constraint. Reduced, not removed:

NEW NIT (verified): docs/cli-design.md:904 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." This PR adds gb203 to the two adjacent platform lists (888, 926) but leaves this one enumerating three names. The code (hub.rs:3148-3149) applies the -tp1 retry to every PLATFORMS name starting with "gb" — so gb203 does get it, and ga102 correctly does not. As written, a reader of the new default concludes gb203 has no -tp1 fallback. Fix: add gb203 to that sentence, or replace the enumeration with "for any PLATFORMS name beginning gb".

#12 [high] Research summary

Re-reviewed PR #469 at head 62a3726 through lens B (architecture and scope), against the charter, AGENTS.md and docs/design-review.md, reading every changed file in context and following the callers of the changed functions.

Verdict: the change belongs, and the approach is right. The Orbit blocker from my previous pass is fixed: describe() now takes a core's required revision from its signed hardware_identity when that is a PLATFORMS name and falls back to compute capability only for legacy cores that record none (controller.rs:2293-2298 → gpu.rs:243-248), which also restores GA102 placement after the (8,6) → ga102 change. The stale platform enumerations in gpu.rs, plan.rs and the user-visible --revision help are updated. Table consolidation, PLATFORMS growth to five, and the evidence for splitting gb203 from gb202 all check out, and no new flags, per-model branches or captured-graph ops were introduced.

What remains: one new nit — docs/cli-design.md:904 still says the -tp1 retry applies to "gb10, gb202, and gb300", while the code (hub.rs:3148-3149) applies it to every PLATFORMS name beginning gb, gb203 included; as written the sentence contradicts the new default it sits next to. And one merge-order note rather than a code defect: flare/src/hub.rs:337-339 still uses detect() verbatim, so flare run ORG/MODEL on this card requests gb203 then gb203-tp1 (hub.rs:3144-3157) and fails until a gb203 build is published — the description discloses exactly this, so it should gate merge order, not the code.

Full findings, citations and the checks that produced no finding are in scratchpad entries 9-11.

#13 [high] Report of 2026-11-26, run 2 (head 62a3726) — SUPERSEDES entry #8 — verdict: no blocking issues; 1 nit + merge-order note

PR #469 review — lens B (architecture and scope), head 62a3726

SUPERSEDES entry #8 (the 2026-11-24 review of the earlier head). Do not reuse entry #8's "Changes Requested / blocking" verdict: the blocker it names is fixed in the code now under review.

Verdict

The change belongs, the layer is right, and the approach is right. No blocking issues. One nit and one merge-order note.

Scope and layer (why it belongs)

Resolved since my 2026-11-24 review (entry #8) — verified in code

  1. Previous blocker (Orbit placement) is fixed. describe() (flare-cli/src/orbit/controller.rs:2293-2298) now builds CoreNeeds.revision as core_revision(&hardware, arch[0], arch[1]) from authorized.identity()?.hardware. core_revision (flare-cli/src/orbit/gpu.rs:243-248) prefers the signed platform when naming::PLATFORMS.contains it and falls back to capability_revision only for a core that records none. The fallback is exactly right: payload cores carry the signed hardware_identity (helios/src/runtime_core/protection.rs:2146-2158 via helios/src/runtime_core/model.rs:1441-1458), legacy cores deliberately carry String::new() (model.rs:1405-1437, doc at 1399-1404). GA102 placement is restored because gpu.rs:235 maps (8,6) → ga102, so host and legacy core agree again. Covered by gpu.rs:373-383.
  2. Previous nit (stale enumerations) is fixed. gpu.rs:38-39 and gpu.rs:222-229 and plan.rs:37-39 now say "a PLATFORMS name, or sm{major}{minor}"; flare-cli/src/cli.rs:202-203 (--revision help) lists ga102, gb10, gb202, gb203, gb300. Docs match: docs/cli-design.md:888,926, docs/core-format-design.md:753, docs/orbit.md:321.

Findings

NIT — docs/cli-design.md:904 still enumerates the -tp1 retry platforms, and the list is now wrong

"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 code (flare/src/hub.rs:3144-3157) applies that retry to every PLATFORMS name beginning gb, so gb203 gets it (and ga102 correctly does not). This PR adds gb203 to the two adjacent lists (888 about revisions, 926 about --revision) but leaves 904 enumerating three names, so the paragraph that describes the new default's fallback contradicts the code beside it. Fix: add gb203 to that sentence, or replace the enumeration with "for any PLATFORMS name beginning gb". Cite AGENTS.md:43 "Required prose review" and design-review principle 16.

Merge-order note (not a code defect) — flare run ORG/MODEL on this card fails until a gb203 build is published

flare/src/hub.rs:337-339 uses crate::hardware::detect(...) verbatim with no fallback, and flare/src/hardware.rs:18-21 now returns gb203. Mitigated but not removed by the alias retry at hub.rs:3144-3157: the CLI tries gb203, then gb203-tp1, then fails — it never falls back to gb202. So the card goes from resolving a working gb202 branch to a "missing revision" error. The description discloses this and names --revision gb202 as the override, which satisfies AGENTS.md on disclosing unrun checks; the point for the merge decision is ordering, not the code. Do not add a silent gb203 → gb202 fallback: it would reintroduce the artifact mismatch the PR exists to prevent, and the charter forbids silently substituting paths.

Checked, not findings

Limits I carry from the description and cannot settle here

No GB203 hardware; whether any repository publishes a gb203 revision; Orbit placement has unit tests only and has not been run against a cluster; only 0x2c31 was exercised. No CI checks were reported on the head, so the author's suite-level cargo test runs are the only evidence.

Open questions

  1. Who publishes the first gb203 revision, and does this PR wait for it or land ahead of it? (Merge-order note above.)
  2. #502 (GB206) and this PR both edit PLATFORMS and flare/src/catalog.rs:561; whoever merges second must rebase. Same-family change, no conflict in approach.

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

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

#10 [medium] Architecture/scope verdict unchanged at 62a3726: narrow, evidence-led, complete on the Orbit side

Lens B (architecture and scope), head 62a3726 — verdict: the change belongs, approach is right, and the layer story improved on this pass.

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

#11 [low] Second-pass checks that are not findings

Checked and NOT findings at head 62a3726: