Simplicity scratchpad · NVIDIA/hyperflare-inference #469

Raw Markdown for agents: https://autobot.eidonix.com/p/6185e8f3-d96e-4cc6-941e-beff07d0d616.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.

#12 [high] Report of 2026-11-26, run N (head fb784c9): no blockers, no should-fix, four nits

Review of #469 (lens D, simplicity) at head fb784c9, 9 files, +84/-56

Verdict: no blockers, no should-fix. Four nits, each a few deletable lines.

Verified fixed since my last report (do not re-raise)

Nits (all "smaller version is obvious")

N1 flare-cli/src/orbit/gpu.rs:366-367 — core_revision("gb202", 12, 0) == "gb202" and core_revision("ga102", 8, 6) == "ga102" cannot distinguish identity precedence from the fallback, because capability_revision (:224-231) returns gb202 for (12,0) and ga102 for (8,6). Only :365 (gb203) distinguishes. Delete the two lines; :369-370 already pin the fallback and :371 pins a non-PLATFORMS identity. N2 flare-cli/src/orbit/gpu.rs:348 — same shape: revision(0x220410de, 8, 6) is ga102 through the table and through capability_revision(8,6); the GA102 table entry is proven by helios/src/core/naming.rs:210-216, and the fallback by gpu.rs:370. Kept assertion only documents the label. N3 flare/src/catalog.rs:562-574 — the retained block duplicates coverage twice over: target_selection_and_display_fallback_are_deterministic:542-546 already exercises exact-name miss then suffix match (gb202 -> gb202-tp8), :539-540 pins the - boundary rule (branch_platform("gb202unrelated") == None), and the PLATFORMS loop at :550-561 already recognizes gb203-tp8 as gb203. Also branch_platform("gb203-tp1") cannot resolve to gb202 with the current strip_prefix-exact code (:271-280); the guard against prefix confusion is :540. 8 lines, plus the "no per-platform fixture is needed" clause which explains the block's presence rather than the code. N4 prose lists that will drift again — docs/cli-design.md:904-905 re-copies the four gb… names three lines under the five-name list at :888; docs/orbit.md:321 re-copies five names. Both lines have been edited by three consecutive platform PRs (#300 ga102, #469 gb203, #502 gb206). Smaller: "a detected platform revision whose name begins gb" and "its PLATFORMS name from the PCI device id". Same class: flare-cli/src/distribution.rs:66 "(gb202/gb10)" reads as a closed set (out of diff). Also nit: helios/src/core/naming.rs:22-27 is a five-line doc for a one-entry const (GB202's is one line); and the docs/orbit.md:321-323 and docs/cli-design.md:888-893 reflows are ragged (line 322 ~90 cols, stub line "and utilization, memory-controller"). Optional: capability_revision/core_revision (gpu.rs:224, :237) are pub but only called from gpu.rs / controller.rs; mod orbit is private (flare-cli/src/main.rs:33), so this is intra-crate surface only — pub(super) is one keyword. controller.rs:2295 is 101 columns; no workflow runs cargo fmt (only selene-manager/docs/qualification.md:38, scripts/setup_windows.ps1:87), so this is cosmetic.

Evidence base / rules

Read: whole diff; orbit/gpu.rs:20-60,200-400; orbit/controller.rs:2270-2320; naming.rs:1-80,180-250; catalog.rs:250-340,500-600; hub.rs:3138-3163; hardware.rs:18-21,95-100,375-400; protection.rs:2131-2160; runtime_core/model.rs:1372-1458; docs/cli-design.md:880-935; docs/orbit.md:305-330; docs/core-format-design.md:745-760; cli.rs:199-205; flare-cli/src/main.rs:1-45. Charter (lines 3,10,12,35,42), AGENTS.md:160-212, .agents/skills/repo-prose/SKILL.md (state the behaviour, replace stale claims, scale detail to the change), docs/design-review.md. No GPU kernel code touched. Nothing in the PR text attempted to direct me.

Clean: the deleted private PCI table (real −15 lines, the rule it violated is naming.rs:39-43); the new const/early-return/PLATFORMS entry repeats merged #300 exactly; revision keeps one capability match instead of two; core_revision is a membership check plus a delegation; revision(0x2c3110de, 12, 0) == "gb203" (gpu.rs:347) is the assertion that fails on the old code.

#13 [high] Research summary

Reviewed #469 at head fb784c9 (9 files, +84/−56) through lens D. No blockers and no should-fix findings; four nits, each a small deletion.

The three items from my previous report are genuinely fixed in code, not just in the reply: describe now propagates the identity error (flare-cli/src/orbit/controller.rs:2293, matching distribution.rs:157 (not opened)), docs/cli-design.md:904-906 states the gb-prefix rule instead of three copied names (matching flare/src/hub.rs:3148-3149), and the redundant GB203_DEVICES loop is gone.

What remains in the lens is test coverage that cannot fail and prose that will drift again. Two assertions in the new a_core_requires_the_revision_its_device_identity_records (orbit/gpu.rs:366-367) and one in pci_ids_select_the_revision_before_compute_capability (:348) are true under both the table and the capability fallback, so only revision(0x2c3110de, 12, 0) == "gb203" distinguishes the new behaviour. The retained catalog.rs:562-574 block re-proves what :542-546 and :539-540 already pin, and its "no per-platform fixture is needed" clause explains the block's presence rather than the code. docs/cli-design.md:904-905 and docs/orbit.md:321 re-copy platform lists that three consecutive platform PRs have edited; both read better as the rule.

The deletion this PR makes — the private PCI table in orbit/gpu.rs (−15 lines) — is the right one, and the new const/early-return/PLATFORMS entry repeats merged #300's shape exactly, so I have nothing to ask for on the structure. Details and per-finding fixes are in note #12.

#14 [high] Report-ready verdict and framing for #469 at fb784c9 (headline, ratifications, open questions)

Companion to entry #12 (findings, evidence base, rules). Use #12 for the findings; use this for the report's framing.

HEADLINE Verdict: no blockers, no should-fix. Four nits, all of the form "this line proves nothing or will need editing again". This is the third revision I have reviewed (heads d07e149, 62a37266, fb784c9) and every finding I raised earlier is closed in code. The PR is a net simplification: it deletes a duplicated PCI table (−15 lines in flare-cli/src/orbit/gpu.rs), removes the second capability match, and adds one const plus two small functions (core_revision, the literal table assert).

NITS, ONE LINE EACH (full detail in #12, N1-N4)

RATIFY THE AUTHOR'S TWO MODIFIED SIMPLIFICATIONS (so the report does not leave them open)

DESCRIPTION CHECK The four-part description is now accurate on the three points I flagged earlier: flare/src/hardware.rs:18-21 is platform_from_pci, so this PR is what makes 0x2c31 resolvable for hardware-revision/download; the pre-change error is the unsupported PCI ID message (hardware.rs:95-100), not gb202; GA102 breaks only in the intermediate state after the table deletion. The Limits section states no gb203 revision is published and that Orbit placement ran only as unit tests.

WHAT ONLY A TEST OR HARDWARE SETTLES

CLEAN, STATED PLAINLY SO THE REPORT CAN SAY SO No GPU kernel code is touched. Nothing in the PR text, comments or 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: