Simplicity scratchpad · NVIDIA/hyperflare-inference #469

Raw Markdown for agents: https://autobot.eidonix.com/p/4ce72397-e5d4-4bc3-8442-5f456462566d.md

#1 [high] should fix: orbit controller still derives a core's revision from compute capability, so gb203 cores cannot be placed

The PR removes the duplicated PCI-id table from flare-cli, but a second, contradictory revision path remains in the same crate and is now wrong for GB203.

Therefore, after this PR, flare orbit run of a gb203 core on a GB203 host resolves needs.revision = "gb202" and every GB203 GPU is rejected with "gpu 0 NVIDIA RTX PRO 4500 Blackwell is gb203, not gb202". Single-host flare run/flare download work (they use the shared table, flare/src/hardware.rs:95), so this PR's headline claim ("GB203 hosts can prepare cores at all" / CLI and export agree) is not true for the Orbit path. The signed identity is already available at this point: ResolvedCore's authorized core carries identity().hardware (used at flare-cli/src/distribution.rs:157-163, and flare/src/hub.rs:2009-2020 shows the PLATFORMS-filtered pattern).

Fix: in describe(), take the revision from the core's signed hardware identity when naming::PLATFORMS.contains it, and fall back to capability_revision only for legacy cores without one. That also makes capability_revision a genuinely legacy-only fallback instead of a competing mapping.

#5 [high] Research summary

Read the charter, AGENTS.md, docs/design-review.md, the repo-prose skill, all five changed files in context, and every caller of platform_from_pci, PLATFORMS and the two revision functions in flare-cli.

Main finding (should fix, simplicity/parallel-paths lens): the PR removes the duplicated PCI table from flare-cli/src/orbit/gpu.rs, but a second revision-derivation path survives in the same crate and contradicts the new table. flare-cli/src/orbit/controller.rs:2294 sets a core's required hardware revision from capability_revision(architecture) alone, and gpu.rs:224-231 maps (12,0) => "gb202". Since GB203 is compute capability 12.0, flare orbit run of a core on a GB203 host now computes needs.revision = "gb202" while the agent reports gb203 for the card (gpu.rs:209, :297-307), and plan.rs:693-696 rejects every GPU ("is gb203, not gb202"). Single-host flare run/download are fine, so the same card resolves one way in flare run and another in flare orbit — the split the PR set out to close. The signed identity is already available there (identity().hardware, as used in distribution.rs:157-163, with the PLATFORMS-filtered pattern at flare/src/hub.rs:2009-2020).

Nits: capability_revision and the fallback half of revision are the same three-arm match twice (gpu.rs:224-231, :301-306); flare-cli/src/cli.rs:173 (--revision help), gpu.rs:38/:222-223 and plan.rs:38 still list gb10, gb202, gb300 without gb203; docs/cli-design.md:885-886 left "selection" on a line of its own. Everything else in the change is clean — the naming.rs additions repeat exactly the shape merged for GA102 in #300, the deleted table is a genuine −15 lines, and the two new assertions prove behaviour rather than restate it.

#6 [high] review verdict, scope, and the rule citations each finding rests on

VERDICT: Nothing blocking. One should-fix (entry 1: a second revision path in the same crate still maps GB203 to gb202 for Orbit placement), two nits (entries 2 and 3). The code the PR touches is a net simplification and matches the shape merged for GA102 in #300. If the should-fix is accepted, it belongs in this PR rather than a follow-up, because the PR's own claim is that CLI and export now resolve one id the same way.

SCOPE REVIEWED

RULES EACH FINDING RESTS ON

PR-DESCRIPTION CLAIM THE CODE CONTRADICTS The description says "The CLI and export resolve one PCI id the same way because there is one table" and "GB203 hosts can prepare cores at all". True for ignition export, flare download and single-host flare run; not true for flare orbit run, which fails at controller.rs:2294 -> plan.rs:695 with "is gb203, not gb202". The description's Limits section does not disclose the Orbit path as unexercised, so this is a gap in the evidence section as well as a code defect.

NOT REPORTED (checked, no finding)

#2 [medium] nit: capability_revision and revision keep identical compute-capability match blocks

flare-cli/src/orbit/gpu.rs: capability_revision (lines 224-231) and the fallback half of revision (lines 301-306) are the same match on (major, minor) with the same three arms and the same sm{major}{minor} tail. The PR removed the PCI table duplication but left the capability duplication next to it.

Smaller version:

fn revision(pci_device_id: u32, major: c_int, minor: c_int) -> String {
    flare_helios::core::naming::platform_from_pci(pci_device_id)
        .map(str::to_owned)
        .unwrap_or_else(|| capability_revision(major, minor))
}

with capability_revision taking c_int/i32 consistently (controller.rs:2294 passes i32). One mapping, one place to add the next variant.

#3 [medium] should fix / nit: platform lists left stale in two doc comments and the --revision help text; docs line wrap broken

Docs and CLI help that the PR did not update, and which now contradict the code:

  1. flare-cli/src/cli.rs:173: "Hub revision; uses the model origin when cached, otherwise detects ga102, gb10, gb202, or gb300." This is --revision's --help text for flare download/flare run, the very surface the PR is about. It lists four platforms and omits gb203; docs/cli-design.md:921 (the table row for the same flag) was updated to five. Fix: add gb203 (the string is short enough; the run of prose is a rustdoc comment so it is also the rendered help).
  2. flare-cli/src/orbit/gpu.rs:38 and :222-223: "Flare hardware revision: gb10, gb202, gb300, or sm{major}{minor}" — stale after this PR since a GB203 now reports gb203. Same for flare-cli/src/orbit/plan.rs:38 ("gb10, gb202, gb300").
  3. docs/cli-design.md:885-886: the added word gb203 left "and gb300. Automatic" then a one-word line "selection", i.e. the paragraph now wraps badly — the reflow was not done. Cosmetic but it is a docs-only part of the change.

Note: docs/orbit.md's new text says the revision comes "from the PCI device id or compute capability", which is accurate for the agent but hides the mismatch at controller.rs:2294 (see the should-fix note). I would only mention this in passing.

#4 [low] checked clean: naming.rs shape, deleted table, new tests

Things checked and found clean through the simplicity lens: