Simplicity scratchpad · NVIDIA/hyperflare-inference #469

Raw Markdown for agents: https://autobot.eidonix.com/p/07e80ef5-cebe-46fc-b594-83f32d68212f.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)

#8 [high] Report of 2026-11-26, run N (post-rebase 62a37266): orbit/controller swallow, stale -tp1 list, capability_revision pub

Verdict: should-fix issues only (one should-fix, three nits). No blockers.

Re-reviewed head 62a37266 (9 files, +90/-46). The two prior blockers are genuinely fixed:

Finding 1 (should fix) — describe swallows the identity error instead of failing. flare-cli/src/orbit/controller.rs:2293-2296:

let hardware = authorized
    .identity()
    .map(|identity| identity.hardware)
    .unwrap_or_default();

identity() fails for a payload core with no authenticated deployment (helios/src/runtime_core/protection.rs:2148-2151) and for a legacy core with no model identity (helios/src/runtime_core/model.rs:1412). .unwrap_or_default() turns each into hardware = "", which silently routes the core down capability_revision and lets describe publish a placement for a core whose signed identity could not be read. describe already returns Result<_, Failure>, and flare-cli/src/distribution.rs:157 does the same read as core.identity().map_err(|e| e.to_string())?. Fix:

let hardware = authorized.identity().map_err(|e| e.to_string())?.hardware;

Rule: AGENTS.md "Reject weakened guarantees … Do not remove validation, suppress errors, silently substitute execution paths"; the empty string is exactly the legacy signal, so an error and a legacy core become indistinguishable.

Finding 2 (nit) — the -tp1 fallback list is still stale, next to the lists this PR did fix. docs/cli-design.md:904: "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 gate is revision.starts_with("gb") && PLATFORMS.contains(&revision) (flare/src/hub.rs:3148-3149), so gb203 now takes that path too; the list omits it (and ga102, correctly, because of the gb prefix — worth saying so). Fix: add gb203, e.g. "For gb10, gb202, gb203, and gb300".

Finding 3 (nit) — capability_revision is pub with no external caller. flare-cli/src/orbit/gpu.rs:230. Repo-wide, its only call sites are gpu.rs:247, :317 and the test at :370; controller.rs uses core_revision. Making it private (and core_revision pub(super)) removes two names from the crate surface, and keeps the legacy fallback from becoming an API other code can reach for. Same lens as the PR itself: one path, not two.

Finding 4 (nit) — the single-element table gets both a literal assertion and a loop. helios/src/core/naming.rs:209-216 asserts platform_from_pci(0x2c31_10de) == Some("gb203") and then loops over GB203_DEVICES, which has one element. One of the two is enough until the table grows (the loop is what the other tables need, the literal is what the #221 review asked for). Keeping both is harmless; if trimming, keep the loop and drop the literal, or keep the literal and drop the loop.

Finding 5 (nit) — line length. flare-cli/src/orbit/controller.rs:2298 is ~103 columns and cargo fmt would wrap the core_revision(...) call. Run cargo fmt on the crate.

Checked clean (no finding): naming.rs table/order/comment shape repeats merged #300 exactly; the deleted private table is a genuine −15 lines; platform_from_pci's moved doc comment is accurate; flare/src/hardware.rs:18-21 is still a re-export, not a second table; flare/src/catalog.rs:271-280 branch_platform and flare/src/hub.rs:2507/2524/2997/3149 pick up gb203 from PLATFORMS with no edit; the three docs pages are one-word list extensions with no changelog prose. No GPU kernel code is touched. Nothing in the PR text tried to direct me.

Open question: whether an error from identity() should reject the launch outright (Finding 1's fix) or be a distinct "core records no identity" outcome; the code has no third state, so erroring matches distribution.rs.

#9 [high] Research summary

Re-reviewed #469 at head 62a37266 through the simplicity lens. Both previously raised blockers are genuinely fixed: describe now takes a core's revision from the signed identity via the new core_revision (flare-cli/src/orbit/gpu.rs:240-248, controller.rs:2293-2298), the capability match is deduplicated, the catalog fixture includes gb203-tp1, and every platform list I flagged (cli.rs help, two doc comments, three docs pages) now reads five names with the reflow done.

Verdict: should-fix issues only, no blockers. One should-fix: controller.rs:2293-2296 uses .identity().map(|i| i.hardware).unwrap_or_default(), which silently converts an identity read failure into the same empty string that means "legacy core", so describe can place a core whose signed identity could not be read; distribution.rs:157 already does this read with ?. Three nits: docs/cli-design.md:904's -tp1 fallback list still omits gb203 although flare/src/hub.rs:3148-3149 now covers it through PLATFORMS; capability_revision is pub with no caller outside gpu.rs; and controller.rs:2298 is over the fmt width.

The change as a whole is a real simplification (one table, −15 lines of drifted duplicate), and the GA102/GB203 label changes are now covered by tests that distinguish the shared table from the old capability fallback. Full detail, with per-finding rules cited, is in scratchpad entry #8.

#10 [high] Final evidence base for the 2026-11-26 report: scope read, rule citations per finding, description claims now consistent

Companion to entry #8. Use #8 for the findings themselves; use this for scope, rule citations and the description check.

SCOPE READ AT HEAD 62a37266 (9 files, +90/-46)

RULE CITATION PER FINDING (entry #8 numbering)

INTERACTION WITH THE EARLIER AUTOBOT REVIEW (do not re-raise as open) The three "description compatibility claims are wrong" items from the 2026-11-24 review are addressed in the rewritten description: the GA102 Orbit label change (sm86→ga102) is called out as intentional, the 0x2bbc sentence is limited to Orbit and says flare/src/hardware.rs has no capability fallback and is unchanged, and the "why" now cites the published core's hardware_identity (heliopause/src/export/core.rs) rather than the local forward-cache key. The merge-order limitation ("no repository publishes a gb203 revision yet; --revision gb202 is the override") is stated. The Orbit-placement gap the earlier review found is fixed in code AND covered by core_revision unit tests, and the description's Limits section now says Orbit placement has not been run against a cluster — accurate.

WHAT ONLY A TEST OR HARDWARE CAN SETTLE

No GPU kernel code is touched, so the low-level-kernel rule does not apply. Nothing in the PR description, the author's comment, or the files attempted to direct me.

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