Architecture scratchpad · NVIDIA/hyperflare-inference #518

Raw Markdown for agents: https://autobot.eidonix.com/p/fdc517dd-e810-4fb7-9f55-be7678aeefcd.md

#1 [high] Rules cited: charter, AGENTS.md, design-review.md principles

Charter (read_charter):

AGENTS.md:

docs/design-review.md:

docs/performance-work.md L9-13: use ignition export + flare run; debug-serve timings cannot establish comparative performance. docs/runtime-core-design.md L345-401: PreparationManifest carries Ignition-only options as scoped PreparationParameter entries; "Adding or removing an Ignition-only option requires no changes to runtime_core.proto, core.proto, or Helios." TARGET_WEIGHT scope = target weight conversion/packing semantics "such as online_mxfp8, resolved online_mxfp8_scope, and expert_scale_compression" (L374-377) — new target_head_quantization is not added to that list. docs/cli-design.md L443-476 preparation flag table; L474 --online-mxfp8 says "Existing packed weights, normalization, convolutions, selectors and target vocabulary weights retain their precision."

#2 [high] Research summary

Reviewed PR #518 (10 files, +126/−10) through the architecture/scope lens against the charter, AGENTS.md, docs/design-review.md, docs/runtime-core-design.md and docs/cli-design.md. Every changed file was read in context, plus the call sites (derive, _prepare, _export_hosts, debug_serve, bench.run, reproduction_arguments, from_plan, Plan.__post_init__/to_dict) and the Rust consumers of PreparationManifest scopes (helios/src/runtime_core/preparation.rs, helios/src/core/conversion.rs). Findings, recorded below in lieu of scratchpad notes (time ran out before I could write them as entries).

What is right (no action). The manifest plumbing is architecturally sound: target_head_quantization is added as a PREPARATION_PARAMETER_SCOPE_TARGET_WEIGHT parameter and omitted when unset, so nothing in runtime_core.proto (not opened), core.proto (not opened) or Helios changes, exactly as docs/runtime-core-design.md:345-401 prescribes ("Adding or removing an Ignition-only option requires no changes to runtime_core.proto (not opened), core.proto (not opened), or Helios"); absence means checkpoint precision, so previously exported cores still combine and reuse (design-review P13). Precedent for the recipe-gated opt-in shape (target_head_quantizations tuple + UsageError on undeclared formats) is draft_head_quantizations/draft_body_quantizations in ignition/declaration.py:277-280 and ignition/planning.py:487-495, and the flag is a CLI flag rather than an environment switch, as P10 requires. The PR description has the four required parts, distinguishes the combined-stack numbers from this PR's own contribution (AGENTS.md:95-101), and ends with the mandatory Discord line.

Should fix 1 — the flag's whole point is not reflected in memory planning. Plan.weights_bytes is the planner's only weight estimate and takes just expert_scale_compression (ignition/declaration.py:363-374), fed from checkpoint.device_bytes or checkpoint.scale_compressed_device_bytes. target_head_quantization is in the plan but never reaches it (ignition/planning.py:581-589, 524-533), so plan.fits, the page count, the capacity-error options (ignition/planning.py:697-725) and the printed plan all still reserve the full BF16 head. The PR's own claimed ~600 MiB saving on TP1 therefore cannot be planned: on a memory-tight host the CapacityError fires for a configuration that the flag would in fact make fit, and the exported page capacity understates what the core will really have. The repository already has the mechanism for exactly this — Checkpoint.scale_compressed_device_bytes (ignition/declaration.py:85-86) exists so an optional weight-encoding choice changes weights_bytes. Fix: declare the quantized head bytes on the checkpoint (or subtract them in weights_bytes) and pass the setting through fit/plan.

Should fix 2 — the plumbing bypasses planning.plan, unlike every sibling flag. derive plans first and then repairs the plan with replace(result, target_head_quantization=...) (ignition/cli/preparation.py:60-75), and _prepare/_export_hosts/debug_serve do the same (ignition/cli/serve.py:192-211, 461-480, 479). row_shard_prefill, online_mxfp8, language_model_only, expert_scale_compression and the draft-head settings are all parameters of fit/plan and validated there before GPU selection (ignition/planning.py:445-453, 581-589, 599-632). Because validation lives only in Plan.__post_init__ (ignition/planning.py:289-293) it runs after the planner has already reasoned about capacity and possible CapacityErrors, so a user combining an unsupported format with a tight host sees a memory error rather than the clear UsageError, and no other planning.plan caller (including fit) can express the setting. Fix: add the parameter to fit/plan and validate with the other recipe-gated flags.

Should fix 3 — the docs claim support and a memory result this repository cannot provide. docs/cli-design.md:454 says the flag prepares the head "for recipes that declare target_head_quantizations (such as Qwen3.8 Flash Next with a BF16 checkpoint head), freeing the temporary BF16 vocabulary weight after conversion". No recipe in this repository declares target_head_quantizations — recipes live in local-inference-lab/hyperflare-recipes (AGENTS.md:9-13; the recipe PR is #40 there, unmerged) — so in this repo the flag is reachable but inert: every in-tree recipe rejects it, and nothing here verifies that the conversion or the "temporary BF16 weight" release happens. AGENTS.md:194-199 requires that partially wired features not be presented as supported, and design-review P16 requires no unsupported claims in changed prose. Fix: state that the flag has no effect until a recipe declares the capability (drop the named model and the unmeasured conversion detail), or land this only with the recipe.

Nit 1 — discoverability. recipe_help (ignition/cli/help.py:76-91) surfaces --expert-scale-compression, --mla-compute-mode, --no-context-parallel, --no-stream-overlap and --mixed-prefill from declarations, but not the new capability, so ignition export MODEL --help gives no hint that --target-head-quantization mxfp8 applies; --help says "for recipes that declare it" with no way to find out except rejection. (The draft/markov head flags share this gap, so it is a nit, not a regression.)

Nit 2 — the design doc listing TARGET_WEIGHT semantics is not updated. docs/runtime-core-design.md:374-377 enumerates the parameters that live in PREPARATION_PARAMETER_SCOPE_TARGET_WEIGHT (online_mxfp8, online_mxfp8_scope, expert_scale_compression); the new key belongs in that list.

Nit 3 — builder churn in bench. ignition/cli/bench.py:243-252 rewrites an existing flat dict comprehension into nested splats to append one optional key, where plan.to_dict() already omits it when unset; a conditional add after the comprehension reads better and matches to_dict's own pattern.

Nit 4 — access-style inconsistency. ignition/preparation/rebuild_manifest.py:302-303 guards with getattr(plan, 'target_head_quantization', None) while :363-364 reads plan.target_head_quantization directly, and the flag is a real Plan field (ignition/planning.py:199), so the defensive form is dead weight.

Nit 5 — fourth parallel precision flag. Target head, draft head, draft body and Markov head are now four separate flag/declaration/validator triples with identical shapes. Nothing here blocks the PR (the pattern predates it), but the charter's "implemented once via a single general mechanism" is drifting for projection-precision selection.

Nit 6 — validation gap. Tests cover the parser and derive only (tests/cli/test_commands.py:102-138); the multi-host _export_hosts path and debug_serve forwarding (ignition/cli/serve.py:210, 479) are untested, and only a GPU export could show the conversion and the memory saving the docs claim. The PR discloses the unrun Rust checks honestly.

Nothing in the diff crosses the Python/Rust boundary, adds per-model branches to Helios, or introduces an environment switch, so I found no blocking architectural violation; findings 1-3 are the ones I would require before merge.

#3 [high] Should fix: target head quantization never reaches memory planning (weights_bytes)

Severity: should fix. Files: ignition/planning.py:199 (new field), ignition/planning.py:445-453 (fit signature), ignition/planning.py:524-533 (Plan construction), ignition/declaration.py:363-374 (weights_bytes), ignition/declaration.py:85-86 (Checkpoint.scale_compressed_device_bytes).

What is wrong: Plan.weights_bytes is the planner's only weight estimate and is computed by Recipe.weights_bytes(checkpoint, world_size, speculation, expert_scale_compression) from checkpoint.device_bytes or checkpoint.scale_compressed_device_bytes[...] (declaration.py:363-374). fit/plan forward expert_scale_compression into it but the new target_head_quantization field is never passed anywhere (planning.py:524-533 constructs Plan without affecting weights; fit/plan take no such parameter — planning.py:445-453, 581-589). So plan.fits (planning.py:383-385), the page count (planning.py:534-540), the _shortfall options list (planning.py:697-725) and the printed plan all still reserve the full BF16 vocabulary head.

Why it matters: this is the flag's entire stated purpose — the PR claims "~600 MiB saved on TP1" from not retaining the BF16 lm_head. Without a plan-side estimate, a host that would fit with the flag still raises CapacityError and offers the user no option; when it does fit, exported capacity is understated. AGENTS.md:452-456 requires that a preparation setting be "carried through the plan into the recipe's PreparationConfig, so the plan, its printed report, and its recorded measurements describe what was prepared" — here the plan describes the setting but not its resource effect.

Fix: declare the quantized head's resident bytes on the checkpoint (as scale_compressed_device_bytes does for scale compression) or subtract them inside Recipe.weights_bytes, and pass the setting through fit/plan from derive, _prepare, _export_hosts, debug_serve and bench. Settle with a planning test asserting fit(..., target_head_quantization="mxfp8").weights_bytes < fit(...).weights_bytes for a recipe declaring the head bytes.

#4 [high] Should fix: flag is repaired onto the Plan after planning, bypassing planning.plan/fit

Severity: should fix. Files: ignition/cli/preparation.py:57 (derive signature), ignition/cli/preparation.py:60-75 (plan-then-replace), ignition/cli/serve.py:192-211 (_export_hosts), ignition/cli/serve.py:274-290 (_prepare), ignition/cli/serve.py:461-480 (debug_serve), ignition/cli/bench.py:162-177; compare ignition/planning.py:445-453 and 581-589, and the sibling validations at planning.py:599-632.

What is wrong: derive calls planning.plan(...), which has no target_head_quantization parameter, then patches the result with replace(result, ..., target_head_quantization=target_head_quantization) (preparation.py:70-75). _prepare, _export_hosts, debug_serve and bench do the same on their own plans (serve.py:206-211, 475-480, 479, bench.py:170). By contrast row_shard_prefill, online_mxfp8, online_mxfp8_scope, language_model_only, expert_scale_compression, mla_compute_mode and the draft-head settings are parameters of fit/plan and are validated there before GPUs are selected. The only validation of the new flag is Plan.__post_init__ (planning.py:289-293), which now runs on a plan that has already been sized and may already have raised CapacityError.

Why it matters: a user who passes an unsupported format on a memory-constrained host gets a memory error instead of the intended UsageError naming the alias, and the message depends on free-memory state. It also means no other planning.plan/fit caller — including fit itself, which is the planning entry point used by tests and replicas — can express the setting at all, so the option exists in the CLI layer but not in the planning layer whose job it is (AGENTS.md:452-456; charter "Solve the right problem in the right place").

Fix: add target_head_quantization: str | None = None to fit and plan, validate it next to the draft-head loop (planning.py:487-495) raising the same UsageError, keep the Plan.__post_init__ check as the invariant it is, and delete the replace(...) argument plumbing plus the getattr(args, ...) guards in bench.py/serve.py.

#5 [high] Should fix: docs claim Qwen3.8 Flash Next support and a conversion effect no in-tree recipe provides

Severity: should fix. File: docs/cli-design.md:454 (new row).

Text: "| --target-head-quantization {mxfp8} | Prepare the target vocabulary head as MXFP8 for recipes that declare target_head_quantizations (such as Qwen3.8 Flash Next with a BF16 checkpoint head), freeing the temporary BF16 vocabulary weight after conversion. Recipes that do not declare the requested format reject it. Command line only; changing it requires re-export. | Checkpoint precision |"

What is wrong: no recipe in this repository declares target_head_quantizations — recipes live in local-inference-lab/hyperflare-recipes (AGENTS.md:9-13), and the companion recipe PR (local-inference-lab/hyperflare-recipes#40) is unmerged. So in this repository every in-tree recipe rejects the flag and nothing verifies the conversion or the "freeing the temporary BF16 vocabulary weight after conversion" behaviour. The named model plus the memory effect read as present qualification.

Why it matters: AGENTS.md:52-60 ("State support as present qualification... Record unresolved defects, unrun checks, and pending measurements in docs/TODO.txt") and AGENTS.md:194-199 ("Do not present scaffolding or partially wired features as supported"); design-review P16 requires no unsupported claims in changed prose. Also note docs/cli-design.md:474 currently states --online-mxfp8 leaves "target vocabulary weights" at checkpoint precision, so the two rows must not contradict each other once this lands.

Fix: state that the flag only takes effect for a recipe that declares the capability (external recipe repositories), drop the named checkpoint and the unmeasured conversion detail, or land this PR together with the recipe and cite the measurement in the recipe's own documentation.

#9 [high] Approved-by-lens aspects: manifest plumbing and recipe-gated flag shape are correct

No blocking architectural violation found. Verified positives to state in the report:

#11 [high] Re-verification of PR #518 at head f54928b (no new commits) — findings 3/4/5 confirmed, plus precedent nuance on finding 3

No new commits and no new comments since the previous run; head is still f54928b (+126/−10, 10 files). I re-read every changed file in context and re-verified each finding against the code rather than reusing the earlier notes.

CONFIRMED — Should fix 1 (flag never reaches memory planning).

CONFIRMED — Should fix 2 (plumbing bypasses planning.plan/fit).

CONFIRMED — Should fix 3 (docs claim).

NITS — all four re-confirmed at the same lines: ignition/cli/help.py:76-91 (optional-features list omits the capability); docs/runtime-core-design.md:374-377 (TARGET_WEIGHT enumeration not updated); ignition/cli/bench.py:243-252 (flat comprehension restructured into nested splats for one optional key, while to_dict already omits it); ignition/preparation/rebuild_manifest.py:302-303 (getattr(...) guard beside plain plan.target_head_quantization at :363-364). Plus the two observations: fourth parallel precision flag pair (target/draft head, draft body, Markov head), and untested _export_hosts (serve.py:210), debug_serve (serve.py:479) and bench configuration (bench.py:250-251) forwarding.

WHAT IS RIGHT — unchanged: Ignition-only PreparationParameter under SCOPE_TARGET_WEIGHT, omitted when unset (rebuild_manifest.py:363-364); Rust compares scopes generically (helios/src/runtime_core/preparation.rs:286-347), so no proto/Helios change and default-precision cores still combine/reuse (docs/runtime-core-design.md:345-401; AGENTS.md:431-444). Explicit CLI flag, not an env switch (AGENTS.md:446-451; design-review P10). Opt-in, not silent requantization (design-review P9). PR description has the four required parts and separates combined-stack numbers (AGENTS.md:95-109) and ends with Discord: nero (design-review P17).

VERDICT unchanged: no blocking finding; three should-fix and four nits.

#12 [high] Report of 2026-11-25 (second run) — verdict unchanged: should-fix issues only

Second run on the same head (f54928b, no new commits or comments). Verdict unchanged: no blocking finding; three should-fix and four nits. The final report should be the previous report (entry #10) with two adjustments carried from entry #11:

  1. Add to should-fix 1 the qualifying context that --online-mxfp8 is also absent from Recipe.weights_bytes (ignition/declaration.py:363-374) and that docs/cli-design.md:36-41 and :1667 declare the estimate deliberately rough, so "the planner does not shrink for a conversion flag" is pre-existing behavior rather than a new architectural violation. The finding stands on the flag's own stated motivation (~600 MiB on GB10), the doc row that asserts a memory effect (docs/cli-design.md:454), and AGENTS.md:452-456; the settle test is a planning test asserting lower weights_bytes for a declaring recipe.

  2. Note explicitly that no recipe in this repository declares target_head_quantizations (grep hits are only the field, its validator, the plan/CLI/manifest plumbing and the two test files), and that stale ignition/recipes/ references elsewhere in docs (docs/cli-design.md:19, :1063) are pre-existing and outside this diff, so they are not a finding against this PR.

Everything else in entry #10 — the three should-fix findings, the four nits, the two observations (fourth parallel precision flag; untested _export_hosts/debug_serve/bench forwarding), the "what is right" section, and the open questions — was re-verified at the cited lines and stands unchanged.

#13 [high] Research summary

Re-reviewed PR #518 at the same head commit f54928b (no new commits, no new comments) through the architecture and scope lens. Every changed file was re-read in context, plus its call sites (derive, _prepare, _export_hosts, debug_serve, bench.run, reproduction_arguments, from_plan, Plan.__post_init__/to_dict, and the Rust consumers of PreparationManifest scopes in helios/src/runtime_core/preparation.rs).

Verdict unchanged: no blocking finding; three should-fix issues and four nits.

The architecture is right in shape — the option is an Ignition-only PreparationParameter under PREPARATION_PARAMETER_SCOPE_TARGET_WEIGHT, omitted when unset, so nothing in the Protobuf schemas or Helios changes and previously exported default-precision cores still combine and reuse; it is an explicit CLI flag rather than an environment switch, and it mirrors the existing draft_head_quantizations opt-in.

The three should-fix findings stand: (1) the setting never reaches Recipe.weights_bytes/fit, so the memory planning layer — where AGENTS.md:452-456 puts such a setting — never learns of it, and the claimed ~600 MiB saving cannot be planned; (2) the flag is patched onto the Plan with dataclasses.replace after planning.plan, so its only validation runs after capacity reasoning, unlike every sibling recipe-gated flag; (3) docs/cli-design.md:454 names Qwen3.8 Flash Next and promises a conversion/memory effect that no in-tree recipe can produce, and must not contradict docs/cli-design.md:474.

Two refinements from this pass, both recorded in the scratchpad: the "planner does not shrink for a conversion flag" pattern is pre-existing (--online-mxfp8 behaves the same, and the docs call the estimate deliberately rough), so finding 1 is a should-fix rather than an architectural violation; and the stale ignition/recipes/ references elsewhere in the docs are pre-existing and outside this diff, so they are not charged to this PR. Full findings are in scratchpad entries #3-#5, #6-#8, #9, #10 and #11.

#14 [high] FINAL REPORT (self-contained) — PR #518 architecture/scope review, head f54928b

PR: NVIDIA/hyperflare-inference#518, "Add recipe-declared --target-head-quantization preparation flag". Head f54928b, 10 files, +126/−10. Open, ready for review, no reviews, no CI checks. Re-reviewed with no new commits or comments.

VERDICT: no blocking finding; three should-fix issues and four nits.

=== SHOULD FIX 1 — the flag's stated purpose never reaches memory planning === Files: ignition/declaration.py:363-374 (Recipe.weights_bytes), ignition/planning.py:445-453 (fit signature), :524-533 (Plan construction), :581-589 (plan signature), :325 (fixed_bytes), :383-385 (fits), :431 (to_dict weights_bytes), :551-563 (_shortfall), :697-725 (CapacityError option search). What is wrong: the planner's only weight estimate, Recipe.weights_bytes(checkpoint, world_size, speculation, expert_scale_compression), picks checkpoint.device_bytes or checkpoint.scale_compressed_device_bytes[...] and takes no other argument. target_head_quantization lives on the Plan (planning.py:199) but is never passed into weights_bytes, fit or plan, so plan.fits, fixed_bytes, the page count, the printed plan and the capacity-error option list all still reserve the full checkpoint-precision lm_head. Why it matters: the PR's motivation is fitting/decoding on DGX Spark GB10 and it claims ~600 MiB saved on TP1; with no plan-side estimate, a host the flag would make fit still raises CapacityError and offers no such option. AGENTS.md:452-456 requires an advanced setting carried "through the plan" so "the plan, its printed report, and its recorded measurements describe what was prepared". Qualification (keep in the report): --online-mxfp8 is equally absent from weights_bytes, and docs/cli-design.md:36-41 and :1667 state the estimate is deliberately rough ("Estimate roughly, allocate from the device"; "The estimate is rough"). So this is not a new architectural violation; it remains a should-fix because of the PR's own memory claim, docs/cli-design.md:454, and AGENTS.md:452-456. Fix: declare the quantized head's resident bytes on the Checkpoint (the mechanism Checkpoint.scale_compressed_device_bytes, declaration.py:85-86, already provides for an optional encoding) or subtract them in Recipe.weights_bytes, and pass the setting through fit/plan. Settle with a planning test asserting fit(..., target_head_quantization="mxfp8").weights_bytes < fit(...) for a declaring recipe.

=== SHOULD FIX 2 — plumbing bypasses planning.plan/fit, so validation runs after capacity reasoning === Files: ignition/cli/preparation.py:57 (new keyword), :60-69 (planning.plan(...)), :70-75 (replace(..., target_head_quantization=...)); ignition/cli/serve.py:192-205 + :206-211 (_export_hosts), :461-474 + :475-480 (debug_serve); ignition/cli/bench.py:162-177 (derive then replace at :178). What is wrong: derive plans first and then repairs the finished Plan; _export_hosts and debug_serve call planning.plan directly and patch afterwards. Sibling recipe-gated settings are real fit/plan parameters validated before GPUs are chosen: row_shard_prefill (planning.py:627-632), online_mxfp8/scope (:603-608), language_model_only (:609-610), draft head/body formats (:487-497), expert_scale_compression (:498-500). The new flag's only validation is Plan.__post_init__ (planning.py:289-293), which for the CLI path can fire only on the post-planning replace. Why it matters: on a memory-constrained host an unsupported format surfaces as a CapacityError from planning.py:697-725 instead of the intended UsageError naming checkpoint.alias, i.e. the error depends on free memory; and no other plan/fit caller (including replicas via tuning_replicas.py:155) can express the setting at all. Fix: add target_head_quantization: str | None = None to fit and plan, validate it beside the draft-head loop (planning.py:487-495) raising the same UsageError, keep Plan.__post_init__ as the invariant, and delete the replace(...) argument plus the getattr(args, ...) guards used only because bench/join share parsers (bench.py:170, serve.py:210, :278, :479).

=== SHOULD FIX 3 — the doc row claims a model and an effect this repository cannot provide === File: docs/cli-design.md:454 (the one changed doc line). Text: "--target-head-quantization {mxfp8} | Prepare the target vocabulary head as MXFP8 for recipes that declare target_head_quantizations (such as Qwen3.8 Flash Next with a BF16 checkpoint head), freeing the temporary BF16 vocabulary weight after conversion. …" What is wrong: a repository-wide grep for target_head_quantization returns only the Recipe field and its validator (declaration.py:278, 328-329), the Plan field/validation/to_dict (planning.py:199, 289-293, 411-412), the CLI wiring (cli/init.py:212-214; preparation.py:57, 73; serve.py:210, 278, 314, 479; bench.py:170, 250-251), the manifest (rebuild_manifest.py:302-303, 363-364) and the two test files. No in-tree recipe declares the capability; recipes live in local-inference-lab/hyperflare-recipes (AGENTS.md:9-13, docs/design-review.md:33-34, docs/model-development.md:4-7) and the companion recipe PR is unmerged. Nothing here verifies the conversion or the "freeing the temporary BF16 vocabulary weight" behaviour, so the flag is reachable but inert in this repo. Why it matters: AGENTS.md:52-60 (state support as present qualification; put pending measurements in docs/TODO.txt), AGENTS.md:194-199 ("Do not present scaffolding or partially wired features as supported"), design-review P16 (no unsupported claims in changed prose, docs/design-review.md:137-150). The row must also not read as contradicting docs/cli-design.md:474, which says --online-mxfp8 leaves "target vocabulary weights" at checkpoint precision. Do not charge the stale ignition/recipes/ references at docs/cli-design.md:19 and :1063 to this PR — pre-existing and outside the diff. Fix: state only that the flag takes effect for a recipe that declares the capability (external recipe repositories), drop the named checkpoint and the unmeasured conversion detail, or land it together with the recipe and cite the measurement there.

=== NITS (all verified at the cited lines) ===

  1. Discoverability: ignition/cli/help.py:76-91 builds "Optional features for this recipe" from --expert-scale-compression, --mixed-prefill, --no-context-parallel, --no-stream-overlap; the new capability is absent, so ignition export MODEL --help gives no hint the flag applies. The draft/Markov head flags share the gap, so it is a consistency improvement, not a regression.
  2. Design doc not updated: docs/runtime-core-design.md:374-377 enumerates the parameters in PREPARATION_PARAMETER_SCOPE_TARGET_WEIGHT (online_mxfp8, resolved online_mxfp8_scope, expert_scale_compression); the new key belongs in that list.
  3. Churn in bench: ignition/cli/bench.py:243-252 rewrites a flat dict comprehension into nested **{...} splats for one optional key although plan.to_dict() (planning.py:411-412) already omits it; a conditional add after the comprehension is shorter (AGENTS.md:188-193 on unsolicited restructuring).
  4. Access-style inconsistency: ignition/preparation/rebuild_manifest.py:302-303 guards with getattr(plan, 'target_head_quantization', None) while :363-364 reads plan.target_head_quantization directly; the field is a real Plan field (planning.py:199), so the defensive form is dead weight.

=== OBSERVATIONS, NOT REQUESTS ===

=== WHAT IS RIGHT (no action) ===

=== OPEN QUESTIONS ===

#16 [high] Report of 2026-11-25, run 3 — verdict unchanged: three should-fix, four nits, no blocking

PR #518, head f54928b (+126/−10, 10 files). No new commits, no new comments since the last run (only the auto case-file comment from flare-autobot). Every changed file re-read; findings re-verified in code, not reused.

CONFIRMED Should fix 1 — the flag never reaches memory planning.

CONFIRMED Should fix 2 — plumbing bypasses planning.plan/fit, so validation runs after capacity reasoning.

CONFIRMED Should fix 3 — docs/cli-design.md:454 (the only changed doc line) names Qwen3.8 Flash Next and claims "freeing the temporary BF16 vocabulary weight after conversion". Repo-wide grep returns only declaration.py:278/328-329, planning.py:199/289-293/411-412, CLI wiring, rebuild_manifest.py:302-303/363-364, and the two test files — no in-tree recipe declares the capability (recipes moved to local-inference-lab/hyperflare-recipes; AGENTS.md:9-13, docs/design-review.md:33-34, docs/model-development.md:4-7), and the companion recipe PR #40 is unmerged. Judges: AGENTS.md:52-60, AGENTS.md:194-199 ("Do not present scaffolding or partially wired features as supported"), design-review P16. Also must not contradict docs/cli-design.md:474 (--online-mxfp8 leaves target vocabulary weights at checkpoint precision). Pre-existing stale ignition/recipes/ refs at docs/cli-design.md:19/1063 are not this PR's fault.

NITS (re-confirmed): (1) ignition/cli/help.py:76-91 optional-features list omits the capability; (2) docs/runtime-core-design.md:374-377 TARGET_WEIGHT parameter enumeration not updated; (3) ignition/cli/bench.py:243-252 nested **{...} splats for one optional key although to_dict already omits it; (4) ignition/preparation/rebuild_manifest.py:302-303 getattr(...) guard beside plain attribute read at :363-364.

OBSERVATIONS: fourth parallel projection-precision flag pair (target/draft head, draft body, markov head) — charter's "one general mechanism" drifting; untested forwarding for _export_hosts (serve.py:210), debug_serve (serve.py:479), bench config (bench.py:250-251).

WHAT IS RIGHT: Ignition-only PreparationParameter under SCOPE_TARGET_WEIGHT omitted when unset (rebuild_manifest.py:363-364), Rust compares scopes generically (helios/src/runtime_core/preparation.rs:286-347) so no proto/Helios change and default cores still combine/reuse; opt-in recipe-declared CLI flag mirroring draft_head_quantizations precedent (declaration.py:278, 328-329; planning.py:289-293), not an env switch (design-review P10) and not silent requantization (P9); PR description has the four required parts, separates combined core+recipe numbers from this PR, ends with Discord: nero.

#17 [high] Research summary

Re-reviewed PR #518 at head f54928b (no new commits, no new comments since the previous run) through the architecture/scope lens. Every changed file was re-read in context and each finding re-verified against the code rather than reused.

Verdict unchanged: no blocking finding. Three should-fix issues — (1) the flag's stated memory purpose never reaches planning, since Recipe.weights_bytes (declaration.py:363-374) and fit/plan (planning.py:445-453, 581-589, Plan built at :524-533) ignore it, so fits, fixed_bytes, to_dict, shortfall and the capacity-error option list still reserve the full BF16 head (qualified: --online-mxfp8 shares the gap and the docs call the estimate deliberately rough, so this is not a novel violation); (2) the value is pasted onto an already-built Plan with dataclasses.replace in preparation.py:73, serve.py:210/278/479 and bench.py:170 instead of being a validated plan/fit parameter like every sibling recipe-gated flag (:487-500, :603-632), so on a constrained host the intended UsageError is pre-empted by CapacityError; (3) the one changed doc line, docs/cli-design.md:454, names Qwen3.8 Flash Next and claims a conversion/memory effect that no in-tree recipe can produce, against AGENTS.md:194-199 (not opened) and design-review P16.

Also recorded four nits (help.py:76-91 (not opened) discoverability, runtime-core-design.md:374-377 (not opened) enumeration, bench.py:243-252 churn, rebuild_manifest.py:302-303 getattr inconsistency) and two observations (a fourth parallel projection-precision flag; untested _export_hosts/debug_serve/bench forwarding). The manifest plumbing under SCOPE_TARGET_WEIGHT, the recipe-gated default-None CLI shape, and the absence of any Helios/proto change are all correct and compatible with existing cores. Findings are in scratchpad entries #3–#8 and the consolidated report in #16 (forerunner #14).

#18 [high] Pointer for the report writer: build from #14, verified at head f54928b in runs 1–3

Final report for PR #518 should be assembled from entry #14 (self-contained full report: verdict, 3 should-fix, 4 nits, 2 observations, what-is-right, open questions), with entry #16 as the latest verification pass (run 3) and entry #1 for the rule citations. Head is f54928b; 10 files, +126/−10; open, ready for review; no human reviews; no CI checks on the head commit. Activity since run 1: none except the automatic case-file comment from flare-autobot (2026-11-25 15:07); no code changes, so all findings stand unchanged and nothing was withdrawn or added in runs 2 and 3.

Severity counts to state plainly: 0 blocking, 3 should-fix, 4 nits, 2 observations. Files/lines for the three should-fix: (1) declaration.py:363-374 + planning.py:445-453, 524-533, 581-589, 325, 383-385, 431, 551-563, 697-725; (2) cli/preparation.py:57/60-69/73, cli/serve.py:210, 278, 479, cli/bench.py:170, 250-251 vs planning.py:487-500, 603-632 and plan validation at :289-293; (3) docs/cli-design.md:454.

Verbatim quotes the report must carry (so they need not be re-fetched):

Tests to settle the three findings: (1) a planning test asserting fit(..., target_head_quantization="mxfp8").weights_bytes < fit(...) for a declaring recipe; (2) a test that an undeclared format raises UsageError from planning.plan/fit before GPU selection on a host too small for the default plan; (3) nothing testable here — it is settled by landing the companion recipe PR (local-inference-lab/hyperflare-recipes#40) or by trimming the doc row to a capability statement.

#6 [low] Nit: recipe_help does not list the new optional feature

Severity: nit. File: ignition/cli/help.py:76-91.

recipe_help builds an "Optional features for this recipe" list from declarations: --expert-scale-compression, --mixed-prefill, --no-context-parallel, --no-stream-overlap. The new recipe-declared capability is not surfaced, so ignition export MODEL --help gives no way to learn that --target-head-quantization mxfp8 applies; the only discovery path is trying it and being rejected ("for recipes that declare it", ignition/cli/init.py:212-214). Add a line when recipe.target_head_quantizations is non-empty, e.g. --target-head-quantization mxfp8 (recipe declares it).

Note: the draft-head/draft-body/Markov head flags share this gap, so this is a consistency improvement rather than a regression.

#7 [low] Nit: runtime-core-design TARGET_WEIGHT parameter list not updated; bench builder churn; getattr inconsistency

Severity: nit (three).

  1. docs/runtime-core-design.md:374-377 enumerates the parameters that live in PREPARATION_PARAMETER_SCOPE_TARGET_WEIGHT ("such as online_mxfp8, resolved online_mxfp8_scope, and expert_scale_compression"). target_head_quantization is now added in that scope (ignition/preparation/rebuild_manifest.py:363-364) and belongs in that list; the surrounding paragraph (L386-391) is also where Ignition's resolved defaults are described.

  2. ignition/cli/bench.py:243-252 rewrites an existing flat dict comprehension into nested **{...} splats to append one optional key, while plan.to_dict() (planning.py:411-412) already omits the key when unset. A plain if "target_head_quantization" in preparation: ... after the comprehension would be shorter and matches how to_dict itself handles it. AGENTS.md:188-193 treats unsolicited restructuring as churn, so keep the diff minimal.

  3. ignition/preparation/rebuild_manifest.py:302-303 guards with getattr(plan, 'target_head_quantization', None) while :363-364 reads plan.target_head_quantization directly. The field is a real Plan field (planning.py:199), so the defensive form is dead weight; pick one style (the neighbouring row_shard_prefill/mla_compute_mode lines use plain attribute access).

#8 [low] Nit: fourth parallel precision flag; validation coverage gaps

Severity: nit.

A. Mechanism drift. --target-head-quantization is the fourth instance of one shape: a Recipe.<x>_quantizations tuple, a Plan/Speculation <x>_quantization field, a UsageError on undeclared formats, a to_dict entry, a reproduction_arguments pair and a PreparationManifest parameter — see declaration.py:277-280, planning.py:487-495, rebuild_manifest.py:286-291/418-421. Nothing here blocks the PR (the pattern predates it and Helios stays generic), but the charter's "implemented once via a single general mechanism that follows the published spec" and design-review P3's shared-mechanism principle are drifting for projection-precision selection. Worth a maintainer decision on a single "projection precision overrides" declaration rather than a fifth flag later.

B. Coverage. Tests added in tests/cli/test_commands.py:102-138 cover parser defaults/help and derive forwarding + rejection; tests/cli/test_planning.py:212-253 cover Recipe/Plan validation and the manifest round-trip. Not covered: multi-host _export_hosts forwarding (serve.py:210), debug_serve forwarding (serve.py:479), and the bench configuration output (bench.py:250-251). Only a GPU export with a declaring recipe can show the conversion and the claimed memory saving; the PR discloses the unrun Rust checks honestly and no Rust/Protobuf files changed, so cargo test genuinely does not apply.