#1 [high] Blocking: entire flag duplicates the existing --online-mxfp8-scope conversion-group mechanism
The PR adds a second mechanism for exactly the thing --online-mxfp8 --online-mxfp8-scope GROUP already does.
Evidence the existing mechanism already covers a target-vocabulary-head conversion group:
- ignition/declaration.py:267-269 —
online_mxfp8: bool,online_mxfp8_scope: str = "all",online_mxfp8_scopes: tuple[str, ...] = ("all",). Group names are recipe-declared and free-form: declaration.py:314 and planning.py:226/605 only check membership inrecipe.online_mxfp8_scopes; helios never allowlists names (helios/src/core/conversion.rs:7554 merely rewrites a legacy arg, helios/src/runtime_core/preparation.rs:170-178 copies whatever string is recorded). - ignition/planning.py:206-207, 223-229 —
Plan.online_mxfp8/Plan.online_mxfp8_scope, validated against the recipe, non-default scope requires--online-mxfp8. - ignition/preparation/rebuild_manifest.py:294-297 (reproduction args) and :358-360 (SCOPE_TARGET_WEIGHT
online_mxfp8+online_mxfp8_scope, defaulting toall) — byte-for-byte the plumbing this PR re-creates at :302-303 and :363-364. - ignition/cli/init.py:262-270 — the CLI flag and its help already exist for all three commands (export/bench/debug-serve share
_preparation_arguments, init.py:50/53/60). - docs/cli-design.md:475 already documents
--online-mxfp8-scope SCOPEas "Select a conversion group declared by the recipe"; :474 already lists which projections each group converts.
And the group this PR wants already exists in the tree's design precedent: PR #312 (--online-mxfp8-scope with-vocabulary-head) selects a group that "reads 239 MB of vocabulary weights per rank", i.e. it quantizes the target vocabulary head, and "the scope enters the tuning identity and the rebuild manifest" with "No kernel, Helios code, Protobuf field or package contract changes" (#312 section 7, files: ignition/components/vocabulary.py, ignition/recipes/inkling2/*). Kimi K3.1 likewise declares the kda-input vs all groups today.
So the companion Qwen3.8 recipe can declare online_mxfp8=True and add a vocabulary-head entry to online_mxfp8_scopes; the exported plan, Plan.to_dict(), and the SCOPE_TARGET_WEIGHT manifest entry all follow from code that already exists.
What goes (the whole diff, +126/−10): declaration.py:278 + 328-329; planning.py:199, 289-293, 411-412; cli/init.py:212-214; cli/preparation.py:57, 73; cli/serve.py:210, 278, 314, 479; cli/bench.py:170, 250-251; rebuild_manifest.py:302-303, 363-364; docs/cli-design.md:454; and all ~88 test lines in tests/cli/test_commands.py:22-23, 52, 102-139 and tests/cli/test_planning.py:23, 54, 212-253.
Saves ~126 lines. Nothing is lost: the opt-in is still recipe-declared, still CLI-only, still carried through Plan into SCOPE_TARGET_WEIGHT, still rejected by recipes that do not declare it — via a mechanism that is already documented, already tested, and already used by two other recipes. Repository rules it collides with: charter "Solve the right problem in the right place … a way to solve it without new code at all"; AGENTS.md "Reject unsupported abstractions and churn. Do not add … configuration switches without a concrete requirement"; docs/design-review.md principle 10 ("Settings belong in recipe declarations, configuration files, or CLI flags") is satisfied equally by the existing flag.
#2 [high] Should fix: the ~88 new test lines repeat three existing tests verbatim in shape
Even if the flag were kept, the tests prove nothing the suite does not already prove:
- tests/cli/test_commands.py:102-113
test_target_head_quantization_flag_is_model_agnosticis a copy of :61-72test_row_shard_prefill_flag_is_model_agnostic— same parametrization over export/debug-serve/bench, same parse-args-never-None assertion, same--helpsplit and same "no model name in the section" check. It asserts argparse plumbing, not behaviour, which AGENTS.md calls out ("source-text checks and mocks that bypass the behavior cannot establish runtime correctness"). Cost: ~12 lines. - tests/cli/test_commands.py:116-139
test_derive_forwards_and_validates_target_head_quantizationrepeats :75-99test_derive_forwards_row_shard_prefill_and_rejects_joint_tuning: build fixture,derive(...), assert field +to_dict(), then assert the UsageError message. ~24 lines. - tests/cli/test_planning.py:212-253
test_target_head_quantization_validation_and_preparation_manifestrepeats :72-107 and :142-183:Reciperejects an undeclared format, absent key into_dict(),from_planparameter scope + reproduction args, protobuf round trip, sorted unique keys. ~42 lines. - The
target_head_quantizations=()keyword threading through the two fixture builders (test_commands.py:23/52, test_planning.py:23/54) exists only to serve those tests.
Saves ~88 lines. What already covers the contract: test_row_shard_prefill_* proves the same CLI-forwarding-into-Plan shape, and test_preparation_manifest_resolves_scopes_and_dflash2_inheritance proves the same manifest scope/round-trip machinery, including the "changing a target-weight parameter rejects combine and reuse" case in helios/src/runtime_core/preparation.rs:530-539.
#6 [high] Research summary
Reviewed PR #518 (+126/−10, 10 files) against the charter, AGENTS.md and docs/design-review.md, strictly for subtraction.
Central finding (blocking): the flag duplicates a mechanism the repository already has. --online-mxfp8 --online-mxfp8-scope GROUP is already recipe-declared, free-form in group name (ignition/declaration.py:267-269, planning.py:223-229, validated only by membership), already carried through Plan and recorded as SCOPE_TARGET_WEIGHT in PreparationManifest plus reproduction args (rebuild_manifest.py:294-297, 358-360), already wired to export/bench/debug-serve via the shared _preparation_arguments (cli/init.py:50/53/60), and already documented as "select a conversion group declared by the recipe" (docs/cli-design.md:475). PR #312 shows the target-vocabulary-head case is exactly such a group (--online-mxfp8-scope with-vocabulary-head, no Rust or Protobuf change). So the whole diff, ~126 lines, can go: the companion recipe declares a vocabulary-head group instead.
Secondary findings: the ~88 new test lines clone the row_shard_prefill CLI/planning/manifest tests; the bench preparation dict grows from 12 to 21 lines for one optional key (a one-expression filter does both jobs in 6) plus five dead getattr(..., None) fallbacks; Recipe.__post_init__'s new 2-line check duplicates the plan-level check that actually produces the user-facing error, while its three sibling override tuples have no recipe-level check at all; the extra startup-status line and doc row restate what the online-MXFP8 scope line and rows already say, and target_head_quantization has no consumer outside ignition/ and tests/.
Total estimated removable: ~126 lines (essentially the whole change), of which ~27 lines could still go if the flag were kept.
#7 [high] Summary: change size, ranked line savings, and cited rules
Change size, measured from the diff: 10 files, +126 / −10.
- tests/cli/test_commands.py +47/−3, tests/cli/test_planning.py +41/−1 (88 added test lines, plus 4 fixture-keyword lines)
- ignition/cli/init.py +3, ignition/cli/preparation.py +2/−1, ignition/cli/serve.py +4, ignition/cli/bench.py +6/−5
- ignition/declaration.py +4/−1 (incl. the reworded comment at :276), ignition/planning.py +8
- ignition/preparation/rebuild_manifest.py +4, docs/cli-design.md +1
Ranked findings and their line savings (entries 1–5):
- Blocking — whole flag duplicates
--online-mxfp8-scopegroup mechanism: ~126 lines (entry 1). - Should fix — 88 test lines clone existing row_shard_prefill tests: ~88 (entry 2).
- Should fix — bench.py:243-252 dict splat + 5 dead getattr fallbacks: ~5 + 5 sites (entry 3).
- Nit — Recipe.post_init validation duplicates Plan's: 2 (entry 4).
- Nit — duplicate status line (serve.py:314) and doc row (cli-design.md:454): 2 (entry 5).
Relationship: findings 2–5 are subsets of finding 1. Unique total removable = ~126 lines, i.e. essentially the whole diff. If a maintainer keeps the flag, findings 2–5 still recover ~97 of those 126 (88 test lines + ~9 code/doc lines).
Rules cited: charter line 12 ("Keep the runtime small and model-agnostic … Standard model extensions … implemented once via a single general mechanism") and "Look for the smallest footprint in shared code, or a way to solve it without new code at all"; AGENTS.md "Reject unsupported abstractions and churn. Do not add frameworks, extension points, speculative compatibility, fallback layers, or configuration switches without a concrete requirement" and "Every contribution must address … a measured performance or memory problem"; docs/design-review.md principle 10 (settings belong in recipe declaration, config file, or CLI flag — satisfied by the existing flag), principle 15 (reject scope expansion).
Nothing in the change touches helios/, heliopause/ or Protobuf — confirmed by grep (no target_head_quantization outside ignition/ and tests/), matching the description's own claim. So there is no leftover/deprecated code elsewhere in the repo for this change to remove; the subtraction is entirely within the diff.
#9 [high] Counter-argument and exact "if kept" arithmetic for the flag
Counter-case a maintainer may raise: the repo already has a family of per-component precision overrides — draft_head_quantizations (declaration.py:277), draft_body_quantizations (:279), markov_head_quantizations (:280), each with a recipe tuple, a choices=(...) CLI flag (ignition/cli/init.py:204-217), a Plan field and a SCOPE_TARGET_WEIGHT entry. A target-side member (declaration.py:278) is symmetric with that family, so the PR can be read as completing it rather than inventing a mechanism.
Why that does not rescue the ~126 lines:
- The sibling overrides exist because they prepare additional copies computed at load (proposal heads, DFlash2 body) that
online_mxfp8groups do not cover; docs/cli-design.md:474 says so explicitly ("Existing packed weights, normalization, convolutions, selectors and target vocabulary weights retain their precision"). Target-vocabulary conversion is anonline_mxfp8conversion group: PR #312 §7 exports with--online-mxfp8-scope with-vocabulary-headand states "The scope enters the tuning identity and the rebuild manifest. No kernel, Helios code, Protobuf field or package contract changes" — the exact plumbing this PR re-adds at rebuild_manifest.py:302-303, 363-364. - The new option has one value in practice:
choices=("mxfp8",)(cli/init.py:212) and a one-element recipe tuple. Atuple[str, ...]+ membership validation exists only because the family uses tuples; the field carries a single boolean fact. - Nothing in core consumes the key (zero matches outside ignition/ and tests/), so the whole effect lives in the companion recipe PR.
Corrected arithmetic (my earlier note #1 attribute "~126" is the whole-diff figure; per-item net line counts):
- Tests: +88 added lines (test_commands.py +47/−3, test_planning.py +41/−1), including 5 fixture-keyword lines (test_commands.py:23, 52; test_planning.py:23, 54).
- bench.py:243-252 dict splat reverts to a 6-line membership comprehension: saves ~4 lines (10 → 6).
- getattr fallbacks (serve.py:210, 278, 479; bench.py:170; rebuild_manifest.py:302): each is already a single line, so removing
getattr(..., None)saves 0 lines — clarity only. Do not count them as line savings. - declaration.py:328-329: 2 lines.
- serve.py:314 status item + docs/cli-design.md:454 row: 2 lines. So "if kept" ≈ 88 + 4 + 2 + 2 = ~96 lines out of 126; whole-flag removal = ~126.
#10 [high] Report of 2026-11-25 (amended, supersedes entry #8)
Correction/amendment to entry #8 (same verdict, tighter arithmetic + counter-case). Nothing in the PR changed between runs (head still f54928b, no new comments). Use this entry's numbers, not entry #8's "about 5 lines in bench.py plus five fallback wrappers".
Size from the diff: 10 files, +126 / −10. Tests +88 added (test_commands.py +47/−3, test_planning.py +41/−1); production code +38/−10.
Ranked findings:
- Blocking — the whole
--target-head-quantizationflag duplicates--online-mxfp8 --online-mxfp8-scope GROUP; ~126 lines (the entire diff). Sites: declaration.py:278, 328-329 (+ comment reword :276); planning.py:199, 289-293, 411-412; cli/init.py:212-214; cli/preparation.py:57, 73; cli/serve.py:210, 278, 314, 479; cli/bench.py:170, 243-252; rebuild_manifest.py:302-303, 363-364; docs/cli-design.md:454; tests +88. Existing mechanism: declaration.py:267-269 (online_mxfp8,online_mxfp8_scope,online_mxfp8_scopes), validation declaration.py:314 / planning.py:223-229 / 603-608, CLI flag (shared by export/bench/debug-serve), reproduction args rebuild_manifest.py:294-297, SCOPE_TARGET_WEIGHT entries :358-360, docs/cli-design.md:474-475. Target-vocabulary-head precedent: PR #312 §7--online-mxfp8-scope with-vocabulary-head("The scope enters the tuning identity and the rebuild manifest. No kernel, Helios code, Protobuf field or package contract changes"). Counter-case answered in entry #9 (draft/markov head family symmetry does not apply; target conversion is an online_mxfp8 group, and the new option has exactly one value). Replacement: nothing — the companion recipe declares the group. - Should fix — ~88 test lines clone three existing tests (removable even if the flag is kept). test_commands.py:102-113 clones :61-72; test_commands.py:116-139 repeats :75-99; test_planning.py:212-218 repeats :63-69 and :212-253 repeats :72-107 + :142-183; plus fixture keywords test_commands.py:23, 52 and test_planning.py:23, 54.
- Should fix — bench.py:243-252 dict splat: ~4 lines. Revert to one 6-line membership comprehension with
"target_head_quantization"added to the tuple (10 lines → 6). Sibling precedent for**({} if ...)exists at planning.py:419, so this is a saving of lines only, not a new idiom. - Nit — declaration.py:328-329 recipe-level validation: 2 lines. Duplicates planning.py:289-293 (the only user-facing UsageError); siblings draft_head/draft_body/markov_head_quantizations have no recipe-level check (validated at planning.py:487-495).
- Nit — serve.py:314 status item + docs/cli-design.md:454 row: 2 lines. Restates serve.py:308's online-MXFP8 item and docs/cli-design.md:474-475's group rows.
- Zero-line clarity (record but do not count):
getattr(args, "target_head_quantization", None)at serve.py:210, 278, 479 and bench.py:170, andgetattr(plan, 'target_head_quantization', None)at rebuild_manifest.py:302 — every caller builds its parser through_preparation_arguments(cli/init.py:50/53/60) and neighbours use plain access (args.row_shard_prefill,plan.force_moe_decode_a16at rebuild_manifest.py:300,plan.row_shard_prefill:308). Removing the wrapper saves no lines, only noise; entry #8's "plus five fallback wrappers" implied savings that do not exist.
Totals: whole flag → ~126 removable (the whole diff). If a maintainer keeps the flag → 88 + 4 + 2 + 2 = ~96 removable.
Left behind elsewhere in the repo: nothing. target_head_quantization occurs only in ignition/ and tests/ (zero in helios/, heliopause/, proto). No dead path created because the change adds a parallel route rather than replacing one.
Rules: charter "Look for the smallest footprint in shared code, or a way to solve it without new code at all"; "No per-model special cases or flags: Keep shared runtime layers general"; AGENTS.md:188-193 (reject configuration switches without a concrete requirement; unsolicited comment expansion is not a contribution); docs/design-review.md:80 (principle 10, explicit configuration — already satisfied) and :125 (principle 15, reject scope expansion).
Open question unchanged: the companion recipe repo (local-inference-lab/hyperflare-recipes#40) is not in this tree, so I cannot show its declaration; the in-tree precedent is PR #312 §7 and docs/cli-design.md:474-475.
#11 [high] Research summary
Reviewed PR #518 (+126/−10, 10 files) strictly for subtraction; head still f54928b and nothing changed since the previous run, so the verdict stands. Findings are in scratchpad entries #10 (the amended report, which supersedes #8) and #9 (counter-case + arithmetic).
Verdict: should not be merged at this size. The whole --target-head-quantization flag (~126 lines, the entire diff) duplicates --online-mxfp8 --online-mxfp8-scope GROUP, which is already a recipe-declared, CLI-only, recipe-free opt-in carried through Plan → reproduction args → SCOPE_TARGET_WEIGHT, and PR #312 §7 already uses it for the target vocabulary head (with-vocabulary-head, "no kernel, Helios code, Protobuf field or package contract changes"). Nothing replaces the removed code: the companion recipe declares the group.
Ranked: 1) Blocking, whole flag, ~126 lines. 2) Should fix, ~88 test lines that clone test_row_shard_prefill_flag_is_model_agnostic / ..._forwards_... / ..._validation_..._rebuild_manifest and test_preparation_manifest_resolves_scopes_and_dflash2_inheritance (removable even if the flag stays). 3) Should fix, bench.py:243-252 dict-splat reverts to one 6-line membership comprehension, ~4 lines. 4) Nit, declaration.py:328-329 recipe validation duplicates planning.py:289-293, 2 lines. 5) Nit, the extra startup status item (serve.py:314) and doc row (docs/cli-design.md:454) restate existing output, 2 lines. Total if the flag is kept: ~96.
One correction to the earlier report: the five getattr(..., None) fallbacks save zero lines when removed (clarity only), so they are recorded as zero-line noise rather than savings. Left behind elsewhere in the repo: nothing — target_head_quantization appears only in ignition/ and tests/, and the change adds a parallel route rather than superseding one.
#3 [medium] Should fix: bench preparation block grows 12→21 lines for one optional key; 5 dead getattr fallbacks
ignition/cli/bench.py:243-252 — the change replaces a 12-line dict-literal comprehension with a 10-line pair of **{} splats, purely to append one optional key. A membership filter does both jobs in one expression and 6 lines:
"preparation": {key: preparation[key] for key in (
"tensor_parallel", "prefill_chunk", "stream_overlap", "context_parallel", "context_parallel_size",
"native_dense_activations", "force_moe_decode_a16", "autotune_effort", "compile_workers",
"speculative_token_capacity", "speculation", "expert_scale_compression", "mla_compute_mode",
"row_shard_prefill", "online_mxfp8", "online_mxfp8_scope", "target_head_quantization",
"language_model_only") if key in preparation},
Saves ~5 lines and removes the special case: plan.to_dict() already omits the key when it is None (planning.py:411-412), so if key in preparation expresses the same rule for every key instead of only this one. The block is also a second serialization of a value the same function already prints whole (print(json.dumps({"plan": plan.to_dict()})), bench.py:182), so the extra entry buys no new information.
Same getattr noise, 4 sites, no behaviour: getattr(args, "target_head_quantization", None) at serve.py:210, serve.py:278, serve.py:479, bench.py:170 and getattr(plan, 'target_head_quantization', None) at rebuild_manifest.py:302 — every command that reaches these functions builds its parser through _preparation_arguments (cli/init.py:50/53/60), so the attribute always exists, and neighbouring fields in the same calls read it directly (args.row_shard_prefill, args.online_mxfp8, plan.force_moe_decode_a16 at rebuild_manifest.py:300, plan.row_shard_prefill at :308). Use args.target_head_quantization / plan.target_head_quantization.
#5 [medium] Nit: status line and doc row restate what the online-MXFP8 scope line/rows already say
What the change leaves behind or repeats for one sentence of output:
- ignition/cli/serve.py:314 —
f"{(' · target head ' + plan.target_head_quantization) if plan.target_head_quantization else ''}"is a second startup-status item alongside serve.py:308f"{(' · online MXFP8 ' + plan.online_mxfp8_scope) if plan.online_mxfp8 else ''}". Under finding 1 the existing line already prints the conversion group that was prepared (it would print the vocabulary-head group name), so the new line would state the same fact twice. Saves 1 line. - docs/cli-design.md:454 — a full table row duplicating what :474-475 already say (which projections each conversion group converts;
--online-mxfp8-scopeselects a recipe-declared group). It is also the only row that names a model in the target-head sentence while the CLI help deliberately avoids model names ("default: checkpoint precision", tested at tests/cli/test_commands.py:113 that the section contains no "Qwen") — so the doc row and the help text disagree about how much model knowledge belongs in a model-agnostic flag. Saves 1 line. - No Rust or Protobuf consumer exists for the new key:
target_head_quantizationappears only in ignition/ and tests/ (heliopause and helios have zero matches), so theSCOPE_TARGET_WEIGHTentry is inert unless a future recipe reads it; the Rust side already forwards any string in the manifest throughfrom_legacy_rebuild_manifest/validate_preparation_manifestunchanged (helios/src/runtime_core/preparation.rs:164-186, 337-370). That is consistent with the description's claim of "zero changes to helios/ or Protobuf schemas" but also means the flag carries no behaviour here at all — the entire effect lives in the companion recipe PR.
#12 [medium] Verbatim smaller versions and per-file diff counts for the report
Per-file diff (head f54928b, base main): docs/cli-design.md +1/−0 · ignition/cli/init.py +3/−0 · ignition/cli/bench.py +6/−5 · ignition/cli/preparation.py +2/−1 · ignition/cli/serve.py +4/−0 · ignition/declaration.py +4/−1 · ignition/planning.py +8/−0 · ignition/preparation/rebuild_manifest.py +4/−0 · tests/cli/test_commands.py +47/−3 · tests/cli/test_planning.py +41/−1. Total +126/−10.
Smaller versions to quote:
(a) Finding 1 replacement — nothing; the flag and its 10-file plumbing go, and the recipe declares an online-MXFP8 conversion group instead (the only surviving code is in the companion recipe).
(b) Finding 3, ignition/cli/bench.py:243-252 — replace the 10-line splat pair with one comprehension (6 lines):
"preparation": {key: preparation[key] for key in (
"tensor_parallel", "prefill_chunk", "stream_overlap", "context_parallel", "context_parallel_size",
"native_dense_activations", "force_moe_decode_a16", "autotune_effort", "compile_workers",
"speculative_token_capacity", "speculation", "expert_scale_compression", "mla_compute_mode",
"row_shard_prefill", "online_mxfp8", "online_mxfp8_scope", "target_head_quantization",
"language_model_only") if key in preparation},
(c) Finding 4, ignition/declaration.py:328-329 — delete the two-line check; planning.py:289-293 keeps the user-facing UsageError, matching the sibling tuples (draft_head/draft_body/markov_head_quantizations) which are validated once at planning.py:487-495.
(d) Finding 5 — delete serve.py:314 and docs/cli-design.md:454; serve.py:308 and docs/cli-design.md:474-475 already state the prepared conversion group.
(e) Finding 2 — delete tests/cli/test_commands.py:102-113 and :116-139, tests/cli/test_planning.py:212-253, and the target_head_quantizations keywords at test_commands.py:23, 52 and test_planning.py:23, 54; the existing row_shard_prefill and preparation_manifest tests keep the same contracts covered.
Zero-line items to mention but not count: the five getattr(..., None) wrappers (serve.py:210, 278, 479; bench.py:170; rebuild_manifest.py:302) and the declaration.py:276 comment reword.
#4 [low] Nit: Recipe validation of target_head_quantizations duplicates Plan's check; siblings have none
ignition/declaration.py:328-329 — if any(name not in ("mxfp8",) for name in self.target_head_quantizations). The three sibling override tuples this field sits beside (draft_head_quantizations:277, draft_body_quantizations:279, markov_head_quantizations:280) have no Recipe.__post_init__ validation at all; they are validated once, at plan time (ignition/planning.py:487-495). The new tuple gets validated twice: here and in Plan.__post_init__ (planning.py:289-293), which is the check that produces the user-facing UsageError and the only one a CLI path can reach. Removing the recipe-level check makes the field match its neighbours and loses nothing: an unsupported name still fails at plan(), with the alias named. Saves 2 lines.
Also ignition/declaration.py:276 — the comment "Preparation overrides for vocabulary and transition projections" was reworded from "…used only by proposals" purely to stay true after adding a target-side field. If the flag goes, that edit goes with it (0 net lines, but it is churn against "Unsolicited … comment expansion … are not contributions").
ignition/declaration.py:208-243 — the class docstring documents online_mxfp8, language_model_only, mla_compute_modes, export_repository, b12x_environment, row_shard_prefill_world_sizes, but the new target_head_quantizations gets no docstring line. If the flag is kept it should be documented there like its siblings; if dropped the problem disappears. Folded into finding 1.