Correctness and contracts scratchpad · NVIDIA/hyperflare-inference #635

Raw Markdown for agents: https://autobot.eidonix.com/p/499e7a85-85c3-4c20-9c0e-681b7d748a5a.md

#1 [high] PR #635 head 3c3c4df: exact code at the changed sites

Head is now 3c3c4df ("Pass candidate GPUs into filter_world_sizes during planning", Jonathan Gutierrez, 2026-11-30), one commit on top of main's 0a8c20f4. This is NEWER than the Discovery Dossier snapshot (c2ef797): the hoisted arch check + tuple(supported) + documented docstring are now actually on the branch, so the dossier's A4/A5 ("reply not on the branch") is superseded.

ignition/planning.py:563-591 at head (verbatim): 563 params.validate(pre_context) 565 world_sizes = recipe.checkpoint_tensor_parallel(checkpoint) 566 supported = tuple(gpu for gpu in gpus if gpu.supported) 567 chosen = None 568 if selected is not None: 569 if any(index >= len(gpus) for index in selected): 570 raise UsageError(f"--gpus {format_gpus(selected)} names a GPU this host does not have;" 571 f" it has {len(gpus)}") 572 chosen = tuple(gpus[index] for index in selected) 573 for gpu in chosen: 574 if not gpu.supported: 575 raise CapacityError(f"GPU {gpu.index} ({gpu.name}) is not an {SUPPORTED_ARCHITECTURES} device") 576 filter_gpus = chosen if chosen is not None else supported 577 plan_sizes = params.filter_world_sizes(world_sizes, replace(pre_context, gpus=filter_gpus)) 578 if not plan_sizes: 579 raise UsageError(f"no supported tensor-parallel size remains for {checkpoint.alias} with the selected parameters") 580 sizes = " or ".join(map(str, plan_sizes)) 581 if chosen is not None: 582 if len(chosen) not in plan_sizes: 583-584 # Let parameter validation surface explicit UsageErrors ... 585 params.validate(replace(pre_context, gpus=chosen, world_size=len(chosen))) 586 size = min(...); 587 first=...; 588 example=... 589 raise CapacityError(f"{checkpoint.alias} needs {sizes} GPUs; {len(chosen)} selected; use --gpus {example}") 590 elif len(supported) < plan_sizes[0]: 591 raise CapacityError(...) 608-614: 611 candidate_sizes = candidate_params.filter_world_sizes( 612 world_sizes, replace(pre_context, root=candidate_params, gpus=filter_gpus) 613 ) 614 return [automatic(size, candidate_params, flags=flags) for size in candidate_sizes if size <= len(supported)]

main (ref=main) planning.py:565-589 order: filter_world_sizes at 566 with default gpus=() ; supported list at 570; explicit bounds 573-575; if len(chosen) not in plan_sizes: → params.validate(..., world_size=len(chosen)) at 577-584; THEN the for gpu in chosen: if not gpu.supported: raise CapacityError at 585-587. main's candidates() at 609 passes no gpus.

pre_context (556-562) has NO gpus and NO world_size → both filter call sites see world_size=None. params.validate(pre_context) at :563 therefore still sees gpus=() while the filter at :577 sees real GPUs.

#2 [high] Exit-code plumbing and callers of plan()

ignition/errors.py:13-22 — UsageError.exit_code = 2, CapacityError.exit_code = 4. ignition/cli/init.py:373-377 — except FlareError as error: display.error(str(error)); return error.exit_code. So planning-time error class is the process exit status; scripts/automation can branch on it.

plan() call sites (all one-shot, setup-time, no serving hot path):

#3 [high] F1: error-precedence regression from hoisting the arch CapacityError

FINDING — hoisting the arch CapacityError above the filter masks recipe-declared UsageErrors (regression vs main), and makes the PR's own target scenario raise the wrong error class.

Code at ignition/planning.py:573-579 (head): 573 for gpu in chosen: 574 if not gpu.supported: 575 raise CapacityError(f"GPU {gpu.index} ({gpu.name}) is not an {SUPPORTED_ARCHITECTURES} device") 576 filter_gpus = chosen if chosen is not None else supported 577 plan_sizes = params.filter_world_sizes(world_sizes, replace(pre_context, gpus=filter_gpus)) 578 if not plan_sizes: 579 raise UsageError(f"no supported tensor-parallel size remains for {checkpoint.alias} with the selected parameters")

Two concrete consequences: (a) main honoured a recipe-declared parameter UsageError for ANY --gpus selection, because if len(chosen) not in plan_sizes: params.validate(replace(pre_context, gpus=chosen, world_size=len(chosen))) (main :577-584, now head :582-585) sat ABOVE the arch check (main :585-587). At head the arch check at :573-575 short-circuits it, so a mixed selection (e.g. SM120 GPU 0 + SM90 GPU 1) with a TP-restriction error now reports "GPU 1 (...) is not an SM87, ... device" (CapacityError, exit 4) where main reported the recipe's UsageError (exit 2). That is the inverse of the regression this commit set out to fix, and it kills the explicit intent documented two lines below at :583-584 ("Let parameter validation surface explicit UsageErrors (such as TP restrictions) before falling back to a generic capacity/GPU-count error") — the comment is now inconsistent with the code it describes for mixed selections.

(b) The PR's headline scenario: for a capability-aware recipe whose filter returns () on unsupported GPUs (exactly CapabilityAwareParams in tests/cli/test_planning.py:571-577), an all-unsupported automatic run (e.g. 1-3x SM90, no --gpus) is not covered by the explicit-selection check at all. It falls to :578-579 → UsageError exit 2 "no supported tensor-parallel size remains ... with the selected parameters", i.e. the same misleading parameter-blame classification the PR says it prevents, on the default flare run path. So the fix is partial: it only protects the explicit --gpus sub-path.

Fix: keep the arch check after the plan_sizes/validate block (main's order) and give the filter only supported devices, e.g. filter_gpus = tuple(g for g in chosen if g.supported) if chosen is not None else supported; then an unsupported device still raises CapacityError at the existing site, recipe UsageErrors keep precedence, and the filter never sees unsupported hardware. Add both a mixed-selection regression test and an all-unsupported automatic test. Severity: Major.

#5 [high] F1b: verified exit-4→exit-2 flip on the default no---gpus path

FINDING (F1b detail, the strongest single defect) — automatic-path regression of error classification vs main, with the PR's own fixture recipe.

Scenario: no --gpus (the default flare run / ignition export path via ignition/cli/preparation.py:70 → ignition/cli/serve.py:270), host has 4x SM90 GPUs, recipe TP sizes (3,4).

At head (ignition/planning.py:576-579): supported = () # :566, all GPUs unsupported filter_gpus = supported == () # :576 plan_sizes = params.filter_world_sizes(world_sizes, replace(pre_context, gpus=())) # :577 if not plan_sizes: raise UsageError("no supported tensor-parallel size remains for ... with the selected parameters") # :578-579 A capability-aware recipe such as the PR's own CapabilityAwareParams (tests/cli/test_planning.py:571-577, if any(not gpu.supported for gpu in context.gpus): return ()) now returns () because it finally sees the unsupported GPUs → UsageError, exit 2, blaming parameters.

On main (ref=main ignition/planning.py:565-589) the same command: the filter still receives gpus=() so it returns (4,); supported = [] at :570; elif len(supported) < plan_sizes[0] at :588 → CapacityError "…needs 4 SM87, SM103, SM110, SM120, or SM121 GPUs; this host has 0", exit 4.

So for the very recipes this PR enables, the default automatic path flips exit 4 → exit 2 and the message misattributes a hardware mismatch to --max-concurrency-style parameters. The hoisted explicit check at :573-575 does not cover this path (chosen is None), so the PR's claim ("without … turning an unsupported-hardware CapacityError (exit 4) into a misleading parameter UsageError (exit 2)") is only true when every explicitly selected GPU is unsupported. Verified exit plumbing: ignition/errors.py:13-22 and ignition/cli/init.py:373-377. Fix: distinguish "filter emptied the set because hardware is unsupported" from "parameters excluded every size" — e.g. when not plan_sizes, raise CapacityError if no GPU in supported (automatic) / any chosen GPU is unsupported, else the existing UsageError. Add a test for this path (the PR's unsupported case is explicit-selection only, tests/cli/test_planning.py:596-599).

#6 [high] F3: test gaps and a vacuous assertion in the new test

FINDING — tests: the one new test does not pin the contract most at risk, and the multi-host shape the PR targets has no in-repo coverage.

tests/cli/test_planning.py:568-599 is the only new test. Total collected tests across the four files named in the PR (test_planning 7, test_commands 5 = 2 + 3 parametrized help cases at :114-115, test_parameters 7, test_gpu_discovery 10 = 7 + 3 parametrized) = 29, so "29 passed" is consistent with head and is not evidence a fix was pushed.

Gaps verified by reading the test:

  1. Unsupported-GPU coverage exists only for an all-unsupported explicit selection (:596-599). Untested: (a) automatic planning on unsupported-only GPUs — the F1b regression above; (b) a mixed supported+unsupported --gpus selection, which is where the hoist at :573-575 now pre-empts recipe validate() UsageErrors that main surfaced via :582-585.
  2. No assertion of the exit-code/classification contract at all (no exc.value.exit_code check), even though the PR's justification is explicitly about exit 4 vs exit 2 (ignition/errors.py:13-22).
  3. The SM120 automatic assertion at :589-590 ("selects TP4, not TP3") passes with or without the change: with gpus=() the filter's SM121 branch is false and its fallback returns size==4 too, so that line is not evidence for the new passthrough. Only :595 (3x SM121 automatic → TP3) actually depends on the candidates() hunk at :611-613.
  4. Multi-host: the PR's motivation is cross-host SM121 TP3 vs single-host TP4, but no test exercises the multi-host selection shape used by ignition/cli/serve.py:204 (selected=tuple(range(len(gpus))), peer topologies from :421, while :411-414 required --gpus to name exactly one local GPU). In that shape filter_world_sizes receives the whole cluster's GPUs, and every device is treated as "explicitly selected", so an unsupported peer GPU trips the local --gpus error at :574-575 even though the local device is fine. The only evidence offered is the external local-inference-lab/hyperflare-recipes#103, unreadable from this repo. Fix: add a mixed-selection test, an automatic all-unsupported test asserting CapacityError/exit 4, and a two-host synthetic plan() test with heterogeneous capabilities.

#7 [high] RETRACTION of F1b: no automatic-path exit-code regression

CORRECTION — retract earlier notes "F1b: verified exit-4→exit-2 flip on the default no---gpus path" and the (b) part of "F1: error-precedence regression from hoisting the arch CapacityError". My trace was wrong.

Why it was wrong (verified by reading ignition/planning.py:566,576-579 at head): 566 supported = tuple(gpu for gpu in gpus if gpu.supported) 576 filter_gpus = chosen if chosen is not None else supported On the automatic path (selected is None, i.e. default flare run/ignition export/bench) filter_gpus = supported, which by construction contains ONLY supported devices. So on a host of unsupported (e.g. SM90) GPUs, supported == () and the filter again receives gpus=(), exactly as on main. plan_sizes therefore still comes back non-empty and execution reaches elif len(supported) < plan_sizes[0] at :590-591 → CapacityError "needs 4 SM87, ... GPUs; this host has 0" (exit 4) — identical to main (ref=main :588-589). There is no exit-4→exit-2 flip on the automatic path. The hoisted check at :573-575 plus passing only supported devices means the filter can never observe unsupported hardware anywhere.

What survives of F1 (narrowed): only the mixed explicit selection precedence change, described in the replacement note "F1 (corrected)".

#8 [high] F1 (corrected, Minor): what stays sound and the narrow precedence narrowing

REPLACES the note "F1: error-precedence regression…" (entry 3) and the retracted entry 7. Severity: Minor (I earlier rated it Major; that was wrong).

WHAT IS SOUND (verified, state plainly):

REMAINING, narrow issue — mixed explicit selection loses main's parameter-first precedence (ignition/planning.py:573-585): 573 for gpu in chosen: 574 if not gpu.supported: 575 raise CapacityError(f"GPU {gpu.index} ({gpu.name}) is not an {SUPPORTED_ARCHITECTURES} device") ... 582 if len(chosen) not in plan_sizes: 583 # Let parameter validation surface explicit UsageErrors (such as TP restrictions) 584 # before falling back to a generic capacity/GPU-count error. 585 params.validate(replace(pre_context, gpus=chosen, world_size=len(chosen))) On main the arch check sat after the :582-585 block (ref=main planning.py:577-587), so for e.g. --gpus 0,1 where GPU 1 is SM90 and the recipe declares only TP4 (in-repo precedent: tests/cli/test_planning.py:87-106 raising "--sharded-prefill is not supported at TP4…" and :211 a "--sharded-prefill is not supported at TP3" UsageError from validate), main reported the recipe's parameter UsageError while head reports the GPU-architecture CapacityError. The new classification is defensible (the hardware really is unusable), but it is an undeclared behavior change and it makes the :583-584 comment unreachable/inaccurate for any selection containing an unsupported device. Impact: message + exit class (2 vs 4) for mixed selections only. Fix: keep the arch check where main had it and pass filter_gpus = tuple(g for g in chosen if g.supported); or leave the hoist and delete/reword the :583-584 comment. Add a mixed-selection test either way.

RELATED, same family, explicit path (also Minor) — main's precise "use --gpus X-Y" hint can be replaced by a vague parameter error: with --gpus 0 on a 4-GPU host and recipe TP sizes (4,), a recipe whose filter reasons about len(context.gpus) (now documented as legitimate, ignition/parameters.py:563-564) returns () at :577 → UsageError "no supported tensor-parallel size remains for … with the selected parameters" (:578-579, exit 2); main's len(chosen) not in plan_sizes branch (ref=main :577-584) instead produced CapacityError "… needs 4 GPUs; 1 selected; use --gpus 0-3" (exit 4). Derived from both files read; not executed.

#9 [high] F2: context.gpus contract claim is inaccurate on the multi-host path

F2 (Minor but concrete) — the new contract sentence is inaccurate for the multi-host shape this PR exists to enable.

ignition/parameters.py:560-565 (new): 563 context.gpus contains the explicitly selected GPUs (when --gpus is given) 564 or all supported host GPUs (during automatic planning), and context.world_size is None. Multi-host counterexample (ignition/cli/serve.py:411-414, 421, 426 / serve.py:189-204): 411 selected = planning.parse_gpus(args.gpus or "0") 412 if len(selected) != 1 or selected[0] >= len(host.gpus): 413 raise UsageError("multi-host ranks each use one GPU; --gpus names this host's") 414 local = (host.gpus[selected[0]],) 421 gpus = tuple(topology_gpu(topology, index) for index, topology in enumerate(topologies)) 426 selected=None if args.ranks == 1 and args.gpus is None else tuple(range(len(gpus))), With --ranks > 1, --gpus names ONE local device but plan() is called with selected=tuple(range(len(gpus))) over the whole cluster, so chosen (and therefore context.gpus) is every peer's GPU, not "the explicitly selected GPUs". Consequences: (a) a recipe written to the docstring misreads a 3-rank cluster as a 3-device explicit selection; (b) an unsupported peer GPU trips the local-looking error at ignition/planning.py:574-575 ("GPU 2 (…) is not an SM…") even when this host's --gpus device is fine; (c) the selection is functionally "explicit" but semantically automatic, so on multi-host the filter never receives the supported-only tuple the docstring calls the automatic case. Fix: document the multi-host case in that docstring (candidate devices = the ranks' GPUs), or note it in docs/preparation-development.md:32-36, which lists the hooks but no per-hook context contract. Also: ignition/planning.py:563 params.validate(pre_context) still gets gpus=()/world_size=None while :577 gets real GPUs — unchanged asymmetry, worth one sentence in the same docstring since recipes such as tests/cli/test_planning.py:105-106 read context.gpus in validate and that read can never fire pre-planning.

#11 [high] Sound areas + PR-description accuracy (verified)

Areas checked with no defects found (state positively in the report):

#12 [high] Final ranking and severities (no Blockers/Majors; 3 concrete Minors)

Priority order for the report (all citations verified by opening files at head 3c3c4df):

  1. (Minor) Mixed explicit --gpus selections: the hoist at ignition/planning.py:573-575 pre-empts the recipe UsageError path at :582-585 that main reached first (ref=main :577-587). Exit class 2 → 4 and message change; makes the :583-584 comment inaccurate. Fix: keep the check where main had it, pass tuple(g for g in chosen if g.supported) to the filter.
  2. (Minor) ignition/parameters.py:563-564 docstring is wrong for multi-host (ignition/cli/serve.py:411-414 → :421 → :426/:204: --gpus names one local GPU but the filter receives every rank's GPU, all marked "explicitly selected"); also silent about validate()/fit()/Plan using a different context.gpus/world_size (ignition/planning.py:563 vs :577, :469-478, :231-239).
  3. (Minor) Test gaps: no mixed-selection test; no exit-code assertion; the SM120 automatic assertion (tests/cli/test_planning.py:589-590) passes unchanged on main so only the SM121 cases (:594-595) exercise the new passthrough; no multi-host synthetic test of the heterogeneous-capability shape the PR targets.
  4. No Blocker/Major found. No concurrency, hot-path, memory, wire-format, manifest, or platform-parity defect. PR description matches head. Retracted my earlier (wrong) exit-code-flip claim about the automatic path: automatic runs pass only supported devices, so behavior is identical to main (ignition/planning.py:566, 576, 590-591).

#13 [high] Research summary

Reviewed PR #635 at head 3c3c4df (which is newer than the Discovery Dossier's c2ef797 snapshot — the hoisted architecture check, the tuple supported, and the documented docstring are all now actually on the branch, so the dossier's "reply not on the branch" amendment is superseded).

No Blocker or Major defects. The change's core invariant is sound: filter_gpus is either chosen (each member screened by the arch check at ignition/planning.py:573-575) or supported (:566), so filter_world_sizes can never observe unsupported hardware, and the automatic no---gpus path still reaches the CapacityError at :590-591 exactly as main did. Nothing on a serving hot path, no locking/buffering/metric sampling, no wire/protobuf/manifest change (Plan.to_dict omits capability), no OS-conditional code touched, and the PR description's "What changed" matches the diff exactly.

Three concrete Minors, all with citations in the scratchpad:

  1. Mixed explicit --gpus selections (some supported, some not) now report the GPU-architecture CapacityError (exit 4) where main first reported the recipe's parameter UsageError (exit 2), because the arch check was hoisted above the if len(chosen) not in plan_sizes: params.validate(...) block whose own comment at :583-584 promises the opposite order.
  2. The new context.gpus contract sentence at ignition/parameters.py:563-564 is inaccurate on the multi-host path this PR exists to enable: --gpus names one local GPU (ignition/cli/serve.py:411-414) but plan() is called with selected=tuple(range(len(gpus))) over all peers (:421, :204/:426), so the filter sees every rank's GPU labelled "explicitly selected".
  3. Test gaps: the new test has no mixed-selection case, no exit-code assertion, and its SM120 automatic line (tests/cli/test_planning.py:589-590) passes unchanged on main — only the SM121 cases (:594-595) actually exercise the new candidates() passthrough; no multi-host heterogeneous-capability case exists in-repo.

I explicitly retracted an earlier hypothesis of mine: I initially concluded the automatic path flipped exit 4 → exit 2 on wholly-unsupported hardware; re-reading ignition/planning.py:566,576 showed the filter receives only supported devices there, so that path is byte-for-byte equivalent to main in behavior. The scratchpad carries the correction.

#14 [high] Verbatim PR-text quotes and author-reply verification at head 3c3c4df

PR #635 description (verbatim, needed for the claim-accuracy findings):

Author reply (nero-, 11:17 UTC, verbatim): "Should fix: Moved the if not gpu.supported: CapacityError check ahead of params.filter_world_sizes(...) so explicitly selected unsupported GPUs always raise CapacityError (exit 4) rather than leaking into capability-gated filter_world_sizes() and triggering UsageError (exit 2), and added an explicit SM90 test case covering this path." / "Simplify / Nits: Constructed supported directly as a tuple and reused filter_gpus in candidates(); simplified … to reuse _recipe() and _gpu()…; documented the context.gpus / context.world_size contract…" / "Re-verified … (29 passed, 0 failed)."

Verification against head 3c3c4df — every claimed edit is now present, i.e. the dossier's A5 ("reply not on the branch") is superseded:

Accuracy verdict for the report: the description and reply now match the code, so no "false claim" finding. One residual imprecision only: "preserving CapacityError classification for unsupported hardware" is silent about the fact that within a mixed selection the recipe's parameter UsageError (exit 2) precedent from main is dropped. Also: the earlier autobot review's own evidence warning (no unsupported-GPU --gpus case tested, CI not confirmed green) is now partly addressed by :596-599; python-cpu.yml green on 3c3c4df is still unconfirmed in the conversation (last comments end at the 11:17 reply).

#4 [medium] F2: context.gpus contract is inconsistent across hooks vs the new docstring

FINDING — context.gpus has three different meanings across RecipeParameters hooks, and the PR's new docstring states one of them as if it were universal, so a policy written to the documented contract cannot tell pre-planning from final planning.

ignition/parameters.py:560-565 (new text): 560 def filter_world_sizes(self, world_sizes: tuple[int, ...], context: ParameterContext) -> tuple[int, ...]: 561 """Restrict candidate tensor-parallel world sizes during planning. 562 563 context.gpus contains the explicitly selected GPUs (when --gpus is given) 564 or all supported host GPUs (during automatic planning), and context.world_size is None. 565 """

But in the same planning run the same parameter object sees:

So "world_size is None" is only true for the filter/validate calls the docstring now sits on, not for validate()/adjust_weights_bytes()/adjust_rank_costs() on the same context class. Most importantly, the docstring tells recipe authors "all supported host GPUs during automatic planning", but on the automatic path the final chosen group is a subset of that (ignition/planning.py:599-606 automatic() picks the first fitting GPUs, else the ones with most free memory). A policy that, e.g., needs the final group's capabilities cannot distinguish the two, and a policy keyed on "all GPUs are SM121 → allow TP3" is silently wrong when only 2 of 4 GPUs end up in the plan. Fix (cheap): say explicitly in the same docstring that during planning context.gpus is candidate GPUs (selected devices, or every supported host GPU) and that each candidate is individually validated through fit()/Plan at world_size=len(gpus); or pass filter_gpus as supported also on the explicit path and describe it as "candidate devices" in both branches. Severity: Minor (documentation/contract precision; the behavior itself is intended).

#10 [medium] F3 addendum: the test does cover the candidates() hunk, via the SM121 case

SM121 automatic -> TP3 (:595) IS the one assertion that depends on the new candidates() passthrough: on main, gpus=() → context.gpus falsy → CapabilityAwareParams falls through to size == 4 → only TP4 → the assertion would fail. So the test does cover the automatic call site at ignition/planning.py:611-613 through the SM121 branch. My earlier item 1(a) "SM120 automatic assertion" note stands: the :589-590 SM120 line passes on both main and head, so it is decoration, not evidence.

#15 [medium] Verbatim quotes for the test files and the vacuous assertion

tests/cli/test_planning.py:568-577 (new test, verbatim) — the fixture recipe's policy: 568 def test_filter_world_sizes_receives_selected_or_supported_gpus(): 569 @dataclass(frozen=True) 570 class CapabilityAwareParams(RecipeParameters): 571 def filter_world_sizes(self, world_sizes: tuple[int, ...], context: ParameterContext) -> tuple[int, ...]: 572 sizes = super().filter_world_sizes(world_sizes, context) 573 if any(not gpu.supported for gpu in context.gpus): 574 return () 575 if context.gpus and all(gpu.capability == (12, 1) for gpu in context.gpus): 576 return tuple(size for size in sizes if size in (3, 4)) 577 return tuple(size for size in sizes if size == 4)

tests/cli/test_planning.py:589-599 (verbatim) — assertions: 589 # Automatic planning on 4x SM120 selects TP4, not TP3. 590 assert planning.plan(model, ckpt, sm120_gpus).world_size == 4 591 with pytest.raises(CapacityError, match="needs 4"): 592 planning.plan(model, ckpt, sm120_gpus[:3], selected=(0, 1, 2)) 593 # Explicit and automatic planning on 3x SM121 allow TP3. 594 assert planning.plan(model, ckpt, sm121_gpus, selected=(0, 1, 2)).world_size == 3 595 assert planning.plan(model, ckpt, sm121_gpus).world_size == 3 596 # Explicitly selecting an unsupported GPU raises CapacityError before world-size filtering. 597 unsupported_gpus = tuple(_gpu(i, capability=(9, 0)) for i in range(4)) 598 with pytest.raises(CapacityError, match="not an SM"): 599 planning.plan(model, ckpt, unsupported_gpus, selected=(0, 1, 2, 3)) Why :590 is vacuous: with gpus=() (main's behavior) line 575's condition is falsy so line 577 returns size == 4, i.e. TP4 — the same result. Only :594-595 depend on the new passthrough. _gpu default is SM120: tests/cli/test_planning.py:154-156 def _gpu(index, free_gib=95, capability=(12, 0)); _recipe signature :118; the recipe's TP sizes come from ranks=(3, 4) at :582.

In-repo backward-compat fixtures (both ignore context.gpus, so unaffected): tests/cli/test_planning.py:81-85 def filter_world_sizes(...): sizes = super()...; if self.sharded_prefill: return tuple(size for size in sizes if size in self.sharded_world_sizes); return sizes tests/cli/test_commands.py:55-59 same shape with self.sharded_world_sizes. In-repo precedent for reading context.gpus inside validate: tests/cli/test_planning.py:105-106 if any(gpu.capability == (10, 3) for gpu in context.gpus): raise UsageError("--sharded-prefill is not qualified on SM103; select SM120 or SM121 GPUs") — still can never fire at ignition/planning.py:563 because pre_context has no gpus.

Test-count breakdown confirming the "29 passed" claim is consistent with head (and is not evidence of a different run): test_planning.py 7 tests (:159, 223, 298, 402, 479, 521, 568); test_commands.py 2 + 3 parametrized (:114-115, 137, 158); test_parameters.py 7 (:172, 202, 245, 262, 278, 306, 364); test_gpu_discovery.py 7 + 3 parametrized (:61, 68-69, 95-96, 108, 117, 126-127, 144).