Simplicity scratchpad · NVIDIA/hyperflare-inference #502

Raw Markdown for agents: https://autobot.eidonix.com/p/77d4251b-859f-45db-bd92-5d7d270c331f.md

#1 [high] [should fix] flare-cli/orbit/gpu.rs keeps a second device table — delete it

Files: flare-cli/src/orbit/gpu.rs:309-324 (fn platform), new arm 319-321; helios/src/core/naming.rs:17-20 doc comment, 25-27 GB206_DEVICES, 53-55 new branch.

Evidence from code:

Smaller version: delete platform() and write

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

(plus use flare_helios::core::naming;), deleting ~16 lines and the duplicated ids.

Caveat worth flagging: deleting the copy alone changes GA102 hosts from sm86 to ga102 while a core's requirement still comes from capability_revision (orbit/controller.rs:2294), and gb206 cores (compute capability 12.0 → gb202 at gpu.rs:227) can never satisfy a gb206 host today (plan.rs:693-696 compares strings exactly). Both are fixed by also taking the core's revision from the signed hardware identity, which is what #469 does.

#3 [high] [blocking] PLATFORMS + 1 breaks flare/src/catalog.rs:561-567 (flare suite red)

File: flare/src/catalog.rs:548-569, test published_build_match_uses_all_platform_branches (fixture 561-563, asserts 566-567). Not in the diff, but broken by this PR.

Mechanism: the test loops for target in PLATFORMS and, per target, applies a hardcoded four-branch fixture ga102-tp1, gb10-tp1, gb202, gb300-tp8, then asserts entry.build_target_match == Some(true). apply_refs (catalog.rs:304-329) sets build_target_match = Some(platforms.contains(target)). With "gb206" added to PLATFORMS (helios/src/core/naming.rs:15), target = "gb206" yields Some(false) and the assert panics.

Why it is not caught by the author's evidence: the PR description records only cargo test --manifest-path helios and --manifest-path flare-cli; flare/Cargo.toml was not run. AGENTS.md:309-320 lists cargo test --locked --release --manifest-path flare/Cargo.toml as a CI command in .github/workflows/native-serving.yml.

Same defect was a blocker in #469's review (flare/src/catalog.rs:561-563 hardcodes a four-platform fixture inside a loop over PLATFORMS), and #300 hand-edited this same list for ga102. The list is a second hand-maintained copy of PLATFORMS.

Fix (removes the copy instead of growing it):

let refs = serde_json::from_value(json!({"branches": PLATFORMS
    .map(|platform| json!({"name": format!("{platform}-tp1")}))})).unwrap();

inside the loop, then the asserts hold for every current and future platform and no PR has to edit this fixture again.

#5 [high] [should fix] Orbit cannot place a gb206 core even after this PR

Consequence of the second table (entry 1) and the core-side lookup:

#9 [high] Research summary

Reviewed PR #502 (gb206 platform support, 2 files, +18/−1) through the simplicity lens. Read the charter, AGENTS.md, docs/design-review.md, docs/cli-design.md, docs/core-format-design.md, docs/orbit.md, CONTRIBUTING, the repo-prose skill, all callers of PLATFORMS/platform_from_pci, and the two prior platform PRs (#300, #469).

Findings (all on the scratchpad, entries 1-8):

  1. Blocking — flare/src/catalog.rs:561-567 goes red. published_build_match_uses_all_platform_branches loops over PLATFORMS and, per target, asserts build_target_match == Some(true) against a hardcoded four-branch fixture (ga102-tp1, gb10-tp1, gb202, gb300-tp8). Adding gb206 to PLATFORMS (naming.rs:15) makes the gb206 iteration assert Some(false) == Some(true). This is .github/workflows/native-serving.yml:77 (not opened), and the PR's evidence runs only the helios and flare-cli manifests. Smaller version: build the fixture from PLATFORMS inside the loop, which deletes the second hand-maintained platform list (#300 and #469 both had to edit it).

  2. Should fix — the PR adds to a table the tree says must not be duplicated. flare-cli/src/orbit/gpu.rs:309-324 keeps a private device table, and the new arm at 319-321 duplicates all nine gb206 ids. naming.rs:17-20 says "do not duplicate the identifiers elsewhere", and flare/src/hardware.rs:18-21 already shows the smaller shape (delegate to platform_from_pci). The copy has drifted: one of five gb10 ids, an extra 0x2bbc, no ga102, no gb300. Fix: platform_from_pci(pci_device_id).map(str::to_owned).unwrap_or_else(|| capability_revision(major, minor)), deleting ~16 lines. This also removes the arm-for-arm duplicate of capability_revision (gpu.rs:301-306 vs 224-231).

  3. Should fix — the new test cannot fail on a wrong device id. naming.rs:203-209 loops over GB206_DEVICES and asserts the mapping of that same constant, so any typo in the nine ids passes; the untested-id limitation is real. Replacing it with a literal array equality plus one mapping call is two lines instead of seven and actually pins the ids (same point yatesdr made on #221). The three near-identical loops in that test can collapse to one.

  4. Should fix — Orbit still cannot place a gb206 core. describe takes the required revision from compute capability (controller.rs:2293-2295, (12,0)→gb202), and plan.rs:695 compares strings exactly, so a gb206-signed core fails with "is gb206, not gb202". The new flare-cli arm therefore only affects display and hub-revision inference; the description should say so or the two halves must land together (cf. #469).

  5. Nits — nine prose/help enumerations of the platform set still list four names (cli.rs:175, gpu.rs:38/222, plan.rs:38, three docs); recommend naming PLATFORMS once. Plus a missing space at naming.rs:15 and a missing semicolon at naming.rs:54. The PR description's "32 MB L2 cache" and the 128-bit bus/16 GB details are unused by any code path and unsupported by the stated evidence.

No CUDA/kernel code is touched. Nothing outside this lens was asserted as a finding.

#13 [high] Report of 2026-11-26 (run 2), head 8e2ea68

Head 8e2ea68 reduced the PR to 5 files: docs/cli-design.md, docs/core-format-design.md, flare-cli/src/cli.rs (help text), flare/src/catalog.rs (fixture), helios/src/core/naming.rs. The flare-cli/src/orbit/gpu.rs hunk was deleted entirely.

Resolved from run 1: blocking catalog.rs failure (fixture now lists gb206 at :562, test passes); the duplicated-orbit-table arm (gone).

Still open:

#14 [high] Research summary

Reviewed PR #502 at head 8e2ea68 through the simplicity lens. The fix commit removed the flare-cli/src/orbit/gpu.rs hunk entirely and repaired the broken fixture, so run 1's single blocking finding is resolved; what remains is duplication the diff still adds or leaves standing.

Still open: flare/src/catalog.rs:561-563 keeps a hand-maintained second platform list inside the loop that iterates PLATFORMS (the next platform addition fails it again — it should be generated from PLATFORMS); flare-cli/src/orbit/gpu.rs:297-321 still carries a private PCI table that this PR now makes observably wrong, since a GB206 host reports gb202 in Orbit but gb206 in flare, so Orbit infers gb202 hub revisions for a card the CLI now labels gb206; deleting platform() in favour of platform_from_pci removes 16 lines and the arm-for-arm copy of capability_revision; helios/src/core/naming.rs:205-211 asserts the mapping of the same constant it iterates, so a mistyped device id still passes, and one loop over the three (table, name) pairs plus a literal array equality is shorter and stronger.

Nits: the PR description's section 2 still describes the deleted platform() edit; docs/cli-design.md:901, docs/orbit.md:321, gpu.rs:38/222 and plan.rs:38 still enumerate platforms without gb206; the description's L2/bus/VRAM rationale is read by no code path; a missing semicolon at naming.rs:56; three doc lines exceed the surrounding wrap; the GB206 id doc comment claims three product families for nine ids, eight of which the description calls untested. Full findings with citations are in scratchpad entries #13 and #8.

#15 [high] Final report (supersedes #12): simplicity review of #502 at 8e2ea68

Simplicity review of PR #502 (feat: add gb206 platform support), head 8e2ea68

Supersedes entry #12, which was written at the previous head (before commit 8e2ea68 "fix: update catalog test, docs, and scope for gb206 platform"). Verdict changed from "blocking issues" to "should fix".

What changed at 8e2ea68

Verdict: should fix (no blocking finding left in this lens)

Should fix

  1. flare/src/catalog.rs:561-563 — the fixture is a second hand-maintained platform list. Test published_build_match_uses_all_platform_branches (:549-569) iterates PLATFORMS (:550) and, per target, asserts entry.build_target_match == Some(true) (:566) against a literal branch list. apply_refs (:319-322) sets the flag to platforms.contains(target), so the loop is only satisfiable while the literal list equals PLATFORMS — this PR had to add gb206 at :562 to keep it green, #300 hand-edited the same list, and the next platform PR fails it again. Simpler and one line shorter: build the fixture from the loop variable, e.g. json!({"branches": PLATFORMS.map(|p| json!({"name": format!("{p}-tp1")}))}), which deletes the list instead of extending it. Rule: AGENTS.md:188-193 (reject churn/duplicate paths).

  2. flare-cli/src/orbit/gpu.rs:297-321 — the private PCI table now disagrees with the source of truth in a user-visible way. revision() (:297-307) consults platform() (:310-321), a private copy of the table that helios/src/core/naming.rs:17-20 says must not be duplicated ("single source … do not duplicate the identifiers elsewhere"). The copy holds one GB10 id (0x2e12, :315), adds 0x2bbc to GB202 (:316), and has no ga102/gb300/gb206. Before this PR a GB206 host fell through to capability_revision(12,0) == "gb202" (:227) in both tools; now flare reports gb206 (flare/src/hardware.rs:18-21 → platform_from_pci) while Orbit's agent status, flare orbit show (controller.rs:545) and the inferred hub revision (repository_revision, controller.rs:2210-2232) say gb202 — so flare run requests gb206/gb206-tp1 (flare/src/hub.rs:3104-3122, :3115) on exactly the hosts where Orbit asks the Hub for gb202. Fix, 16 lines deleted and no ids in the diff: naming::platform_from_pci(pci_device_id).map(str::to_owned).unwrap_or_else(|| capability_revision(major, minor)). The delegating shape already exists in the tree at flare/src/hardware.rs:18-21, and flare-cli already depends on flare-helios (flare-cli/Cargo.toml:27). This also deletes the arm-for-arm duplicate of capability_revision (gpu.rs:301-306 vs :224-231, entry #2).

  3. helios/src/core/naming.rs:205-211 — the new test cannot fail on a wrong device id. The loop reads GB206_DEVICES and asserts the mapping of that same constant, so a mistyped id (0x2d06, 0x2d49) passes; the ids' correctness is the PR's actual claim and eight of nine are declared untested. It is also redundant with the literal assertion added at :219. Smaller and stronger: one loop over [(GB202_DEVICES, "gb202"), (GB206_DEVICES, "gb206"), (GA102_DEVICES, "ga102")] replacing the three near-identical seven-line loops at :198-218, plus assert_eq!(GB206_DEVICES, [0x2d04, 0x2d05, 0x2d18, 0x2d19, 0x2d30, 0x2d39, 0x2d58, 0x2d59, 0x2d79]); so the ids are reviewable in one place. Rule: AGENTS.md:194-199 (tests must exercise the affected contract).

  4. PR description §2 — describes code the head no longer contains. "Updated platform(pci_id) to map the same 9 GB206 PCI device IDs to Some("gb206") during NVML device discovery" refers to the deleted flare-cli/src/orbit/gpu.rs hunk (see pr_files: the file is not changed). §2 must also record the docs/help edits now in the diff, and §3's benefit inherits the Orbit/flare label split in finding 2. Rule: AGENTS.md:72-80 (description must answer why/what/benefit/evidence to a reviewer with no working context); repo-prose SKILL.md:26-29 ("Documentation is a present-state specification"), :40-43.

Nits

  1. Nine prose enumerations of the platform set, all one platform behind. docs/cli-design.md:901 ("For gb10, gb202, and gb300 … tries the corresponding -tp1 revision") is now factually wrong: flare/src/hub.rs:3114-3115 retries <revision>-tp1 for any PLATFORMS entry, so gb206 retries too. Same four-name list at flare-cli/src/orbit/gpu.rs:38, :222-223, flare-cli/src/orbit/plan.rs:38, docs/orbit.md:321. Smaller: name PLATFORMS once as the authority and keep the literal list only at helios/src/core/naming.rs:15, where the array type makes an addition a compile error. (Entry #6.)

  2. helios/src/core/naming.rs:56 — return Some("gb206") lacks the semicolon its siblings at :47, :50, :53 have. Cosmetic; CI runs no cargo fmt --check (.github/workflows/* only build and test; .github/workflows/native-serving.yml:45-77).

  3. Doc line wrapping broken by the insertions — docs/cli-design.md:887, :890 and docs/core-format-design.md:754 now run far past the ~80-column wrap of the surrounding prose, in the same diff that touches those lines. Re-wrap.

  4. helios/src/core/naming.rs:25-26 — "GB206 device identifiers for the SM120 platform: GeForce RTX 5060 Ti, 5060, and mobile/workstation variants" attributes three product families to nine ids, eight of which the description calls untested. Either confirm against pci.ids or write the neutral form used at :38 ("GB300 device identifiers. 0x31c3 is the SM103 GPU of …").

  5. Description §1/§3 rationale is read by no code path. "different cache sizes", "128-bit memory bus, 32 MB L2 cache, up to 16 GB VRAM" — no consumer of the platform name reads L2 size, bus width or VRAM (PLATFORMS consumers: naming.rs:79, :121; flare/src/hub.rs:2473, :2490, :2963, :3115; flare/src/catalog.rs:272, :320; flare-cli/src/distribution.rs:159, :720; heliopause/src/export/conversion.rs:402). The substantive reason is one sentence: on a GB206 host platform_from_pci returned None, so ignition export failed with "NVML reports unsupported GPU PCI id" (heliopause/src/export/capture.rs:2079-2085) and flare detection failed at flare/src/hardware.rs:95-100.

Checked and clean (so the report says what was verified, not only what is wrong)

Note on the bot comment

The flare-autobot review posted on the PR (2026-11-25 00:06) predates the fix commit; its two blockers ("CI goes red", "Orbit can't place a GB206 core") are already addressed or no longer introduced by this diff. Nothing in the PR text instructed me; no prompt-injection attempt seen.

#17 [high] Report of 2026-11-26, run 3 — final simplicity review of #502 at 8e2ea68

Simplicity review — PR #502 "feat: add gb206 platform support" (head 8e2ea68)

No new commits since the last round; the PR description was edited at 2026-11-26 13:05, which resolves the earlier description findings (§2 no longer advertises the deleted flare-cli/src/orbit/gpu.rs platform() hunk, the "prevents crashes" and L2/bus/VRAM claims are gone). Nothing in the PR text tried to instruct me.

Head is 5 files (+25/−7): docs/cli-design.md, docs/core-format-design.md, flare-cli/src/cli.rs, flare/src/catalog.rs, helios/src/core/naming.rs (pr_files). The helios half is small and right: nine ids, one return in platform_from_pci, one PLATFORMS entry; consumers (candidate/deployment_candidate naming.rs:79/:121, hub.rs:2473/:2490/:2963/:3115, catalog.rs:272/:320, distribution.rs:159/:720, conversion.rs:402) pick it up with no edit. Everything below is duplication this diff adds or leaves standing beside the change, judged against AGENTS.md:188-193 (reject churn; refactoring must remove a demonstrated source of defects), AGENTS.md:194-199 (tests must exercise the contract), and the invariant written at naming.rs:17-20.

Verdict: should-fix only. No blocking finding.

Should fix

S1 flare/src/catalog.rs:561-563 (loop :550-568) — the fixture is a second, hand-kept PLATFORMS. The loop iterates PLATFORMS and asserts build_target_match == Some(true) (:566) plus branch_platform(select_revision(..)) == Some(target) (:567) against a literal branch list; since apply_refs (:315-322) sets the flag from platforms.contains(target), the assertion only holds while the literal equals PLATFORMS. This is exactly why this diff had to add {"name": "gb206"}; the same line was edited for #300 (ga102) and is edited again in #469. Failure mode is a red flare suite (CI .github/workflows/native-serving.yml:77), not a caught bug. Fix: derive let refs = ... json!({"branches": PLATFORMS.map(|p| json!({"name": format!("{p}-tp1")})).collect::<Vec<_>>()}), which removes the platform names from the test; alternative (also ~9 lines smaller): delete the block, since :551-559 already asserts Some(target == published) per pair and :525-547 covers select_revision/branch_platform.

S2 helios/src/core/naming.rs:205-211 — the added loop asserts the mapping of the constant it iterates, so its only possible failures are "ignores GB206_DEVICES" or "vendor mask broken"; a mistyped device id still passes. It duplicates the literal at :219 two lines later, and it is the third identical copy (:198, :205, :212 — note :190 uses a literal for GB10). Fix (shorter and pins every id visibly):

for (devices, platform) in [
    (&[0x2e02, 0x2e03, 0x2e06, 0x2e12, 0x2e2a][..], "gb10"),
    (&GB202_DEVICES[..], "gb202"),
    (&GB206_DEVICES[..], "gb206"),
    (&GA102_DEVICES[..], "ga102"),
] { for device in devices { assert_eq!(platform_from_pci(device << 16 | 0x10de), Some(platform), "{device:#06x}"); } }
assert_eq!(GB206_DEVICES, [0x2d04, 0x2d05, 0x2d18, 0x2d19, 0x2d30, 0x2d39, 0x2d58, 0x2d59, 0x2d79]);

S3 helios/src/core/naming.rs:21-59 — five consts plus a five-arm if-chain, all in one file, no external reader (search: the consts appear only here, in platform_from_pci and the tests). This diff adds the sixth copy of the shape: a new platform costs a const, an if-arm, a PLATFORMS edit and a literal-length edit. One table makes it one row and also removes the missing ; at :56:

pub const PLATFORMS: [&str; 5] = ["ga102", "gb10", "gb202", "gb206", "gb300"];
/// Devices that select each platform, in NVML's `device<<16 | vendor` layout. Single source for
/// detection, export naming, and the reported revision; do not duplicate these ids elsewhere.
pub const DEVICES: [(&str, &[u32]); 5] = [
    ("ga102", &[0x2203, 0x2204, 0x2206, 0x2208, 0x220a, 0x2216]),
    ("gb10",  &[0x2e02, 0x2e03, 0x2e06, 0x2e12, 0x2e2a]),
    ("gb202", &[0x2b85, 0x2b87, 0x2b8c, 0x2bb1, 0x2bb2, 0x2bb3, 0x2bb4, 0x2bb5, 0x2bb9]),
    ("gb206", &[0x2d04, 0x2d05, 0x2d18, 0x2d19, 0x2d30, 0x2d39, 0x2d58, 0x2d59, 0x2d79]),
    ("gb300", &[0x31c3]),
];
pub fn platform_from_pci(pci_id: u32) -> Option<&'static str> {
    if pci_id & 0xffff != 0x10de { return None; }
    let device = pci_id >> 16;
    DEVICES.iter().find(|(_, ids)| ids.contains(&device)).map(|(platform, _)| *platform)
}

39 lines → 21; ordering no longer matters because the id sets are disjoint (verified: 0x2d04/05/18/19/30/39/58/59/79 collide with nothing in GB202 :21-23, GB10 :32, GA102 :36, GB300 :39).

S4 docs/cli-design.md:901 — now false. It says only gb10, gb202, gb300 get the -tp1 retry, but flare/src/hub.rs:3113-3115 retries when revision.starts_with("gb") && PLATFORMS.contains(revision), so this diff makes gb206 retry too and ga102 not. The list three lines above (:887) and the flag table (:923) were updated by this same diff. Fix: state the rule ("a detected platform revision whose name begins gb"), not three copied names.

S5 flare-cli/src/orbit/gpu.rs:297-321 — the second PCI table this diff is the sixth copy of. revision() (:297-307) consults private platform() (:310-321: one GB10 id 0x2e12, plus 0x2bbc, no ga102/gb300/gb206) before an arm-for-arm copy of capability_revision (:224-231); naming.rs:19-20 forbids the duplication and flare/src/hardware.rs:18-21 shows the delegating shape. This PR makes the copies disagree observably: a 5060 Ti reports gb206 in flare (hardware.rs:18-21) and gb202 in Orbit (fallback (12,0)), and Orbit's inferred hub revision is built from exactly those per-GPU strings (controller.rs:2210-2232), so flare run asks for gb206 while Orbit asks for gb202; flare orbit show prints gb202. Smaller version, 16 lines deleted and the duplicated match gone: platform_from_pci(pci_id).map(str::to_owned).unwrap_or_else(|| capability_revision(major, minor)) — flare-cli already depends on flare-helios (flare-cli/Cargo.toml:27). Do not land that alone, and do not add a GB206 arm in this PR: the core's required revision is still capability_revision (controller.rs:2293-2296) compared exactly at plan.rs:693-696, so delegating the table would make a gb206/ga102 host mismatch every core ("is gb206, not gb202") — GA102 currently matches only because both sides say sm86 (no (8,6) arm). #469 carries the coupled change (core_revision from the signed identity plus the (8,6) arm); this finding is the argument for taking #469 rather than duplicating its ids here.

S6 PR description §3-§4 (AGENTS.md:72-80, repo-prose SKILL.md:35-37) — §4 "Tested hardware: Verified on GeForce RTX 5060 Ti 16GB (0x2d04)" gives no command and no result, and "Passed test suites in helios and flare" gives no command/counts (the helios suite needs --features runtime-core,server; CI runs it that way, native-serving.yml:63/:68). §2 also omits the behaviour that changed for users: detection now asks the Hub for gb206, then gb206-tp1 on 404 (hub.rs:3110-3122), neither published, replacing the actionable "unsupported PCI ID …; specify --revision" (hardware.rs:95-100). Fix: one sentence with the command and what it produced, plus one sentence saying --revision gb202 is the override until a gb206 build exists. Do not add a silent fallback for it.

Nits

N1 helios/src/core/naming.rs:56 — return Some("gb206") lacks the ; its siblings (:47, :50, :53) carry; cargo fmt/clippy do not run in CI (.github/workflows/native-serving.yml runs build + test only), so it will persist.

N2 helios/src/core/naming.rs:25-26 — "GeForce RTX 5060 Ti, 5060, and mobile/workstation variants" attributes three product families to nine ids, eight untested (repo-prose SKILL.md:30-34: distinguish implementation from qualification). Say which id was exercised.

N3 helios/src/core/naming.rs:17-20 — the "single source … do not duplicate" doc comment sits above GB202_DEVICES as if it documented the GB202 ids; it belongs on platform_from_pci (it is the invariant the Orbit copy violates).

N4 Four more prose enumerations of the platform set that will need the same edit next time: flare-cli/src/orbit/gpu.rs:38, :222, flare-cli/src/orbit/plan.rs:38, docs/orbit.md:321, plus flare-cli/src/distribution.rs:66 ("gb202/gb10"); all omit ga102 and gb206. Fix: "a name from PLATFORMS" in the doc comments and one list in docs.

N5 Line wrapping broken by the insertions: docs/cli-design.md:887 and :890 (~110 and ~150 columns) and docs/core-format-design.md:754 (~100) inside paragraphs wrapped at ~80. Re-wrap.

Checked and clean at this head

#18 [high] Addendum to run-3 report: fixture must be derived, not deleted; S2/S3 interplay

Two corrections to note #17 that the report must use:

  1. S1 secondary option (delete the block) loses coverage. flare/src/catalog.rs:561-567 is the only place select_revision runs against a multi-platform branch set (gb10-tp1, gb202, gb206, gb300-tp8); the per-pair loop at :551-559 uses single-branch lists. So the fix must be derive the fixture from PLATFORMS (primary), not delete it. Ready-to-use replacement for :561-563:
let refs = serde_json::from_value(json!({"branches":
    flare_helios::core::naming::PLATFORMS
        .map(|p| json!({"name": format!("{p}-tp1")}))
        .to_vec()
})).unwrap();

(or serde_json::json! over an iterator collected to Vec<Value>), keeping :564-567 unchanged. Same coverage, no platform names in the test.

  1. S2 and S3 are alternatives for the same test. If S3's single DEVICES table lands, the loop in S2 iterates DEVICES (for (platform, devices) in DEVICES { for device in devices { ... } }) instead of the four named consts, and the literal-array equality becomes assert_eq!(DEVICES[3].1, [0x2d04, ...]) or a named GB206: &[u32] const kept only for the test literal. Say "whichever table shape lands, keep one loop plus one literal array".

  2. Confirmed about the description: it was edited at 2026-11-26 13:05 and now matches the 5-file diff (§2 no longer mentions orbit/gpu.rs platform(), and the "prevents crashes"/L2/bus/VRAM lines are gone). The previous round's description blocker (deleted hunk) is resolved; only S6 remains (no test command/result, no gb206 Hub-request disclosure).

  3. CI fact check: .github/workflows/native-serving.yml:45 build, :47-77 tests (:63/:68 helios with --features runtime-core,server, :73 flare-cli, :77 flare), :111-113 rdma checks. No cargo fmt --check or clippy step (search cargo fmt|fmt --check|clippy in .github/workflows → no matches).

#20 [high] Final report (run 3, corrected) — supersedes #17

Simplicity review — PR #502 "feat: add gb206 platform support" (head 8e2ea68)

No new commits since the previous round; the PR description was edited at 2026-11-26 13:05, so the earlier description defects (§2 advertising the deleted flare-cli/src/orbit/gpu.rs platform() hunk, the "prevents crashes" claim, the L2/bus/VRAM rationale) are gone. Nothing in the PR text tried to instruct me.

Head is 5 files (+25/−7) per pr_files: docs/cli-design.md (+3/−3), docs/core-format-design.md (+1/−1), flare-cli/src/cli.rs (+1/−1), flare/src/catalog.rs (+1/−1), helios/src/core/naming.rs (+19/−1). The helios half is small and correct: nine ids, one return in platform_from_pci, one PLATFORMS entry, and every consumer picks gb206 up without an edit (candidate/deployment_candidate naming.rs:79/:121; hub.rs:2473/:2490/:2963/:3115; catalog.rs:272/:320; distribution.rs:159/:720; conversion.rs:402). Everything below is duplication this diff either adds or leaves standing next to the change it makes. Judged against AGENTS.md:188-193 (reject churn; refactoring must support the requested behaviour or remove a demonstrated source of defects), AGENTS.md:194-199 (tests must exercise the affected contract), and the invariant the table itself states at naming.rs:17-20.

Verdict: should-fix only. No blocking finding. Nothing in the diff is CUDA or other GPU kernel code, so the defect-only rule for kernel paths does not apply.

Should fix

S1 flare/src/catalog.rs:561-563 (inside the loop at :550-568) — the fixture is a second, hand-maintained PLATFORMS. The loop iterates PLATFORMS (:550) and then, against a literal branch list, asserts build_target_match == Some(true) (:566) and branch_platform(select_revision(..)) == Some(target) (:567). apply_refs sets the flag from platforms.contains(target) (:315-322), so the assertion is satisfiable only while the literal list equals PLATFORMS; that is exactly why this diff had to add {"name": "gb206"}. The same fixture was edited for #300 (ga102) and is edited again in #469 ("the fixture now includes gb203-tp1, without which the test fails for the new platform"). The failure mode is a red flare suite in CI (.github/workflows/native-serving.yml:77), not a caught bug. Do not delete the block: it is the only place select_revision runs against a multi-platform branch set (:551-559 feeds one branch at a time). Derive it instead, which deletes the platform names from the test:

let refs = serde_json::from_value(json!({"branches":
    flare_helios::core::naming::PLATFORMS
        .map(|p| json!({"name": format!("{p}-tp1")}))
        .to_vec()
})).unwrap();

S2 helios/src/core/naming.rs:205-211 — the added test cannot fail on a wrong device id. The loop reads GB206_DEVICES and asserts the mapping of that same constant, so its only possible failures are "platform_from_pci ignores GB206_DEVICES" and "the vendor mask is broken"; a mistyped id passes. It duplicates the literal two lines below (:219) and is the third copy of the identical shape (:198 GB202, :205 GB206, :212 GA102; :190 uses a literal for GB10). The ids' correctness is the PR's actual claim, and §4 says only 0x2d04 met hardware. Smaller and stronger — one loop over pairs plus one literal array a reviewer can check against a driver's id list:

for (devices, platform) in [
    (&[0x2e02, 0x2e03, 0x2e06, 0x2e12, 0x2e2a][..], "gb10"),
    (&GB202_DEVICES[..], "gb202"),
    (&GB206_DEVICES[..], "gb206"),
    (&GA102_DEVICES[..], "ga102"),
] {
    for device in devices {
        assert_eq!(platform_from_pci(device << 16 | 0x10de), Some(platform), "{device:#06x}");
    }
}
assert_eq!(GB206_DEVICES, [0x2d04, 0x2d05, 0x2d18, 0x2d19, 0x2d30, 0x2d39, 0x2d58, 0x2d59, 0x2d79]);

(If S3 lands, the loop reads DEVICES and the literal stays.) Rule: AGENTS.md:194-199.

S3 helios/src/core/naming.rs:21-59 — five consts plus a five-arm if-chain that this diff extends by one more copy. The consts are read only in this file and in its own test (search: GB202_DEVICES|GB206_DEVICES|GB10_DEVICES|GA102_DEVICES|GB300_DEVICES -> naming.rs only). One platform currently costs four edits (const, if-arm, PLATFORMS, and the fixed array length) and this diff is the sixth copy of that shape — the same shape #300 and #469 each paid again. One table makes a platform one row, and removes the missing ; at :56 as a side effect:

pub const PLATFORMS: [&str; 5] = ["ga102", "gb10", "gb202", "gb206", "gb300"];
/// Devices that select each platform, in NVML's `device<<16 | vendor` layout. This is the single
/// source for detection, export naming, and the reported revision; do not duplicate it elsewhere.
pub const DEVICES: [(&str, &[u32]); 5] = [
    ("ga102", &[0x2203, 0x2204, 0x2206, 0x2208, 0x220a, 0x2216]),
    ("gb10", &[0x2e02, 0x2e03, 0x2e06, 0x2e12, 0x2e2a]),
    ("gb202", &[0x2b85, 0x2b87, 0x2b8c, 0x2bb1, 0x2bb2, 0x2bb3, 0x2bb4, 0x2bb5, 0x2bb9]),
    ("gb206", &[0x2d04, 0x2d05, 0x2d18, 0x2d19, 0x2d30, 0x2d39, 0x2d58, 0x2d59, 0x2d79]),
    ("gb300", &[0x31c3]),
];
pub fn platform_from_pci(pci_id: u32) -> Option<&'static str> {
    if pci_id & 0xffff != 0x10de {
        return None;
    }
    let device = pci_id >> 16;
    DEVICES.iter().find(|(_, ids)| ids.contains(&device)).map(|(platform, _)| *platform)
}

39 lines to 21. Branch order stops mattering because the id sets are disjoint (checked: the nine GB206 ids collide with nothing in naming.rs:21-23, :32, :36, :39).

S4 docs/cli-design.md:901 is false at this head. "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 gate is 404 && revision.starts_with("gb") && PLATFORMS.contains(&revision) (flare/src/hub.rs:3113-3115), so this diff silently adds gb206 to the retried set and ga102 is not retried at all. It contradicts :887 and :923, which the same diff updates. Fix: state the rule ("a detected platform revision whose name begins gb"), not three copied names; likewise for the four other enumerations in N4.

S5 flare-cli/src/orbit/gpu.rs:297-321 — the second PCI table this diff is the sixth copy of, which this PR makes observably wrong. revision() (:297-307) consults private platform() (:310-321: one GB10 id 0x2e12, GB202 plus 0x2bbc, no ga102/gb300/gb206) before an arm-for-arm copy of capability_revision (:301-306 vs :224-231). naming.rs:19-20 forbids the duplication and flare/src/hardware.rs:18-21 already shows the delegating shape. Before this PR both tools fell through to (12,0) -> gb202, so the copies happened to agree; now a 5060 Ti reports gb206 in flare and gb202 in Orbit, and Orbit's inferred hub revision comes from exactly those per-GPU strings (orbit/controller.rs:2210-2232), so flare run requests gb206 while Orbit requests gb202, and flare orbit show prints gb202. Smaller version, 16 lines deleted and the duplicated match gone: platform_from_pci(pci_id).map(str::to_owned).unwrap_or_else(|| capability_revision(major, minor)). flare-cli already depends on flare-helios (flare-cli/Cargo.toml:27). Important, and the reason this is not a one-line patch to this PR: do not change orbit/gpu.rs alone and do not add a GB206 arm here. A core's required revision is still capability_revision (orbit/controller.rs:2293-2296) compared exactly at orbit/plan.rs:693-696, so making the agent report gb206 would refuse every GB206 core ("is gb206, not gb202"), and GA102 would break too (no (8,6) arm). #469 carries the coupled change (core_revision from the signed device identity plus the (8,6) arm); this PR should stay out of that file, as it now does.

Nits

N1 helios/src/core/naming.rs:56 — return Some("gb206") lacks the ; its siblings at :47, :50, :53 carry. No CI step runs cargo fmt --check or clippy (search of .github/workflows for cargo fmt|fmt --check|clippy: no matches), so it will persist. Removed by S3.

N2 helios/src/core/naming.rs:25-26 — the doc comment attributes "GeForce RTX 5060 Ti, 5060, and mobile/workstation variants" to nine ids, eight of which the description calls untested. Say which id was exercised (repo-prose SKILL.md:30-34, implementation vs qualification).

N3 helios/src/core/naming.rs:17-20 — the "single source ... do not duplicate the identifiers elsewhere" comment sits above GB202_DEVICES as if it documented those ids; it belongs on platform_from_pci, which is the function it constrains (and the one S5's copy violates).

N4 Five more platform enumerations that will need this same edit next time — flare-cli/src/orbit/gpu.rs:38, :222, flare-cli/src/orbit/plan.rs:38, docs/orbit.md:321 (all four omit ga102 and gb206), and flare-cli/src/distribution.rs:66 ("gb202/gb10"). Fix: "a name from PLATFORMS" in the doc comments, one list in the docs.

N5 Three over-long lines the diff leaves behind — docs/cli-design.md:887 (~106 columns) and :890 (~207; the inserted GB206 clause made it the longest line in the section) and docs/core-format-design.md:754 (~108), inside paragraphs wrapped at ~80. Re-wrap; preferably by stating the rule once instead of enumerating names (S4).

N6 (outside this lens, flagged for the prose review) PR description §4 — "Verified on GeForce RTX 5060 Ti 16GB (0x2d04)" names no command and no result, and "Passed test suites in helios and flare" names no command (the helios test needs --features runtime-core,server; CI runs it so at .github/workflows/native-serving.yml:63/:68). §2/§3 also do not mention that detection now asks the Hub for gb206 and then gb206-tp1 on 404 (flare/src/hub.rs:3110-3122), neither published, replacing the actionable "unsupported PCI ID ...; specify --revision" (flare/src/hardware.rs:95-100). Suggest one sentence with the command and its result, and one saying --revision gb202 is the override until a gb206 build exists. Please do not add a silent fallback.

Checked and clean at this head

#21 [high] Research summary

Reviewed PR #502 at head 8e2ea68 through the simplicity lens. No new commits since the last round; the PR description was re-edited, and its current text no longer advertises the deleted flare-cli/src/orbit/gpu.rs hunk or the crash/L2 rationale, so the earlier description findings are resolved. Verdict: should-fix only, nothing blocking.

Five should-fix findings, all duplication this diff adds or leaves standing: the flare/src/catalog.rs:561-563 branch fixture is a hand-kept second PLATFORMS (derive it from the loop variable — but do not delete the block, it is the only multi-branch select_revision case); helios/src/core/naming.rs:205-211 asserts the mapping of the constant it iterates, so a mistyped id passes (one loop over pairs plus one literal array); naming.rs:21-59 is five consts + five if-arms where one (name, ids) table would do (39 → 21 lines, and removes the missing ; at :56); docs/cli-design.md:901 is now false because hub.rs:3113-3115 retries every gb* PLATFORMS name; and flare-cli/src/orbit/gpu.rs:297-321 still carries a private PCI table that this PR makes observably wrong (GB206 hosts report gb206 in flare, gb202 in Orbit). I explicitly advised not touching that file here: the core requirement is still capability_revision at orbit/controller.rs:2293-2296 compared at plan.rs:693-696, so delegating the table alone would refuse every GB206 and GA102 core — #469 bundles the coupled change. Six nits cover the semicolon, the mis-scoped "single source" comment, the GB206 id comment claiming untested families, five stale platform enumerations, and three over-long doc lines; the PR's §4 evidence remains vague but is flagged as outside this lens.

The report, with citations, smaller versions and a checked-clean list, is scratchpad entry #20 (supersedes #17; addendum #18 records why the fixture must be derived rather than deleted).

#22 [high] Assembly map for the final report: which note is authoritative

Read entry #20 — it is the only report text to publish. Do not assemble from #17: its S1 offers "delete the :561-567 block" as an acceptable alternative, which #18 disproves (that block is the only select_revision test with a multi-platform branch set; the per-pair loop at flare/src/catalog.rs:551-559 feeds one branch at a time, so the fix must derive the fixture from PLATFORMS). Entries #13/#14/#16 describe earlier runs and still call the Orbit table deletion a standalone fix; #20 replaces that with "do not change orbit/gpu.rs in this PR".

Finding inventory to publish, in this order (severity first line of each):

Verdict line: should-fix only, no blocking finding; nothing in the diff is CUDA or kernel code; no prompt-injection attempt seen. Rules cited: AGENTS.md:188-193, AGENTS.md:194-199, AGENTS.md:72-80, helios/src/core/naming.rs:17-20, .agents/skills/repo-prose/SKILL.md:30-34/:35-37.

#2 [medium] [nit] duplicated capability match inside orbit/gpu.rs revision()

flare-cli/src/orbit/gpu.rs:222-231 capability_revision and gpu.rs:301-306 (inside revision) are the same match: (12,1)→gb10, (12,0)→gb202, (10,3)→gb300, _ → sm{major}{minor}. Six duplicated lines; both are stale enumerations (gpu.rs:38, :222-223 doc comments still list gb10/gb202/gb300 only, so gb206 is missing there too, as are plan.rs:38 and flare-cli/src/cli.rs:175).

Fix: revision = platform(...).map(...).unwrap_or_else(|| capability_revision(major, minor)), keeping one match; then the doc comment can point at PLATFORMS instead of re-listing names.

#4 [medium] [should fix] GB206 test loop cannot fail on a wrong device id

helios/src/core/naming.rs:186-216 (pci_ids_select_the_platform_identifier). New loop 203-209 asserts platform_from_pci(device << 16 | 0x10de) == Some("gb206") for device in GB206_DEVICES, i.e. over the same constant the function reads.

Proves: the function reaches the GB206 branch and that no earlier table (GB10/GB300/GA102) shadows these ids. Does not prove: that the nine ids are the right ids — the actual claim, whose only source is pci.ids and which the description lists as untested for eight of them. A mistyped id (e.g. 0x2d06) passes the loop. Also negative cases: no gb206 id is asserted as not-gb202, and no None case covers a GB206-adjacent id that should stay unknown.

Smaller and stronger (the pattern yatesdr asked for in #221 and #469's review): assert the table itself once, then one mapping call.

assert_eq!(GB206_DEVICES, [0x2d04, 0x2d05, 0x2d18, 0x2d19, 0x2d30, 0x2d39, 0x2d58, 0x2d59, 0x2d79]);
assert_eq!(platform_from_pci(0x2d04_10de), Some("gb206"));

That is 2 lines instead of 7, and a wrong id now fails.

Related: the same file already carries three near-identical 7-line loops (GB202 196-202, GB206 203-209, GA102 210-216). One loop over [(GB202_DEVICES, "gb202"), (GB206_DEVICES, "gb206"), (GA102_DEVICES, "ga102")] replaces all three, so the next platform adds a tuple rather than another loop. Nit.

#6 [medium] [nit] nine hand-copied platform enumerations, all missing gb206

The platform set is written out in prose/help in nine places that still list four names (no gb206, and several also omit ga102 / sm{major}{minor}):

Each PR of this kind (#300 ga102, #469 gb203, this one gb206) has to find and edit all of them; #469 found them stale and fixed them, this one did not.

Smaller version: in these places name the source instead of copying the list ("detected platform from the shared PLATFORMS table", "one of naming::PLATFORMS"), keeping the enumeration only in helios/src/core/naming.rs:15 where the type makes a change a compile error. If the enumeration stays, add gb206 to all nine now.

Related format defects in the two changed files (nit): naming.rs:15 "gb202","gb206" missing the space after the comma (rustfmt: cargo fmt would fix; no fmt check runs in CI, .github/workflows/* only runs tests), and naming.rs:53-55 return Some("gb206") lacks the semicolon every sibling return in the function has.

#8 [medium] Rule citations for the report

Rules to cite in the report:

#10 [medium] [nit] description's hardware rationale is not used by any code path

PR #502's "why" and "claimed benefit" rest on GB206 having different cache sizes from GB202 (32 MB L2, 128-bit bus, up to 16 GB VRAM) and on "cleanly separating GB206 cores from gb202 cores".

Checked in code: no per-platform L2 size, bus width or VRAM figure is read anywhere. PLATFORMS (helios/src/core/naming.rs:15) is used only for name acceptance (naming.rs:77, :119; flare/src/hub.rs:2473, :2490, :2963, :3115; flare/src/catalog.rs:271-279, :320; flare-cli/src/distribution.rs:159, :720; heliopause/src/export/conversion.rs:402), and the device tables feed only platform_from_pci -> a label. Ladders and kernel selection are chosen by flags/recipe, not by platform name (ignition/preparation/ladders/README.md uses explicit --collective-ladder files).

So the only supported justification is the name itself: a GB206 host gets a gb206 revision rather than gb202, which keeps GB206 cores out of GB202 repositories. Prose fix per the repo-prose skill ("State the substantive fact … claims beyond the stated evidence"): drop the cache-size/bus/VRAM sentence or mark it as context that no code consumes, and state the crash/refusal being fixed (NVML unsupported-PCI-id errors in heliopause/src/export/capture.rs:2079-2085 and flare/src/hardware.rs:95-100) as the actual defect.

Also worth stating in the description: adding gb206 to PLATFORMS makes flare run ORG/MODEL on a GB206 host request a gb206 (then gb206-tp1) hub revision that no repository publishes yet — same merge-order caveat raised for #469.

#11 [medium] Checked and clean: no other code needs a gb206 arm

Verified in code while reviewing #502, no change needed:

Not verifiable without hardware/tests: whether the nine ids from pci.ids are the complete GB206 set (only 0x2d04 was exercised), and whether a gb206 hub revision will be published.

#19 [medium] Measured line widths and the -tp1 retry sentence

Verified line widths for nit N5 at head 8e2ea68: docs/cli-design.md:887 ≈106 chars; :890 ≈207 chars (was ~95 before, the inserted GB206 clause made it the longest line in the section); :901 ≈86; docs/core-format-design.md:754 ≈108. Surrounding paragraphs wrap at ~80. So the same diff that edits these lines leaves three of them 25-125 characters over the local wrap.

Also confirmed for S4: docs/cli-design.md:901-903 full sentence — "For gb10, gb202, and gb300, the shared CLI and desktop downloader tries the corresponding -tp1 revision if the initial revision lookup returns HTTP 404." Gate in code: flare/src/hub.rs:3113-3115 = 404 && revision.starts_with("gb") && PLATFORMS.contains(&revision).

Verify-before-reporting note for the final report: the flare/src/catalog.rs fixture block (:561-567) is the only multi-branch select_revision test — the loop at :551-559 feeds one branch at a time — so replacement must derive from PLATFORMS, not delete.

#7 [low] [aside] PLATFORMS widening changes the default hub request

Widening PLATFORMS also changes the default hub request on a GB206 host: flare run ORG/MODEL detects gb206 (flare/src/hardware.rs:18-21 via naming.rs:53-55) and flare/src/hub.rs:3104-3129 retries <revision>-tp1 on 404 (gb206-tp1) because the name starts with gb and is in PLATFORMS, then fails with a missing-revision error. Before this PR the same host failed earlier with "unsupported PCI ID … specify --revision" (hardware.rs:95-100). Same consequence #469's review raised as a should-fix (merge order / --revision gb202 override). Not my lens (scope/behaviour), recorded for the summary only.

Also: PLATFORMS is [&str; 5] (naming.rs:15), so every platform addition edits the length literal too; a &'static [&'static str] would remove that, at the cost of small *target edits in flare/src/catalog.rs:271-279 and :550-551. Not worth doing in this PR.