#1 [high] PR 483 overview + review rules
PR #483 NVIDIA/hyperflare-inference, author rickybrent (NOT a repo member; 0 merged PRs, this + #484 open). Base main 6d6fe0c6, head f2340e42. 13 files +732/−164. No reviews yet, no CI checks.
Changes: proto tag 11 ImageSettings.gemma4 (Gemma4ImageSettings), ImagePreparationKind Gemma4=11, Rust gemma4.rs image profile (new, 416 lines), patch_merge.rs refactor extracting Envelope, packing.rs derives bracketed stride from contract.vision.patches_per_feature (4->(2,1176), 9->(3,768)), model/packing.rs passes patches_per_feature into tensor_layout, model/prompt.rs populates data.spans from conditioned_inputs when image_tokens.span is Some, conditioned.rs Profile::Gemma4 => 768 features, describe.rs + protobuf.rs + ignition frontend.py profile.
Rules: charter line 12 "Keep the runtime small and model-agnostic... shouldn't accumulate per-model branches"; AGENTS.md "Model core compatibility" (protobuf additions must use defaults preserving existing behavior; every engine version must load previous cores), docs/design-review.md principles 3 (shared mechanisms, prepared metadata; reject per-model policy flags), 10 (persist only consumed structural frontend settings in typed protobuf fields), 13 (core compat).
Key rule citations: AGENTS.md lines 431-444 (model core compatibility), docs/design-review.md principles 3/10/13.
#2 [high] Findings inventory (correctness lens)
Key facts gathered so far (files at head f2340e4):
- helios/src/model/prompt.rs:137-151:
prepare_image_inputsfillsprepared.data.spansfromconditioned_inputs[i].token_spanwhenever the layout declares anImageSpanand spans are still empty. Only runs when images are non-empty. Deepseek layout already fills spans earlier (layouts/deepseek.rs:149), so it is unaffected. - helios/src/model.rs:408-457
validate_prompt_datavalidates spans: ordered, non-overlapping,s.len() <= config.limits.prefill_chunk_size, first token == span.start_token, last == span.end_token, and every scoped token must be inside a span. - helios/src/server/runtime.rs:1458-1465 calls
scheduler.set_prefill_spans(handle, &incoming.prompt.data.spans)right after admission (i.e. after prefix-cacheconsumed_tokensis known); an error cancels the request and fails it. scheduler.rs:1913-1936 rejects a span that straddlesconsumedor exceeds prefill capacity. - helios/src/frontend/images/packing.rs:16-22 new
bracketed_patch_geometry: only 4->(2,1176) and 9->(3,768); tensor_layout now takes patches_per_feature (model/packing.rs:92-97). Old cores all bracket at 4, so unchanged behaviour. - helios/src/frontend/images/packing.rs:479-509 bracketed() slices
images.pixel_values.get(start*patch_width..end*patch_width); a wrong derived width silently slices misaligned data when the graph buffer is large enough (only errors once the slab runs past the end). - helios/src/frontend/images/gemma4.rs:15-31
Processor::loadonly rejects patch_size==0/>64 and pooling==0/>16 plus a max_soft_tokens whitelist; it accepts patch_size != 16 or pooling != 3 that the packing path cannot represent. - helios/src/frontend/images/conditioned.rs:192
Profile::Gemma4(_) => 768hardcodes the feature width, while packing derives 768 from patches_per_feature=9: two independent derivations. - helios/src/frontend/images/patch_merge.rs:12-30
Envelopeextracted from the patch-merge Processor; same validation checks, but error text for empty/duplicate envelope tokens changed to "invalid image envelope tokens". - helios/src/frontend/images/mod.rs:537,613,705: EXIF orientation is skipped for Moonvit/DeepseekRowMajor/PaddedGrid, applied for every other profile (Gemma4 included); gemma4.rs parity test feeds synthetic tensors so orientation/alpha handling is untested.
- ignition/preparation/frontend.py:113-137 gemma4 profile writes patch_size=16, pooling=3, max_soft_tokens from the checkpoint and hardcodes "<|image|>", "<|image>", "<image|>".
- ignition/preparation/runtime_core_pb2.py diff also downgrades the generated-file header "Protobuf Python Version: 7.36.2" -> "7.36.1" (unrelated regeneration churn).
#3 [high] Findings A-D with file:line
FINDING A (should fix) — Gemma 4 profile accepts settings the packing path cannot represent.
helios/src/frontend/images/gemma4.rs:23-31 Processor::load validates only patch_size != 0 && <= 64, pooling_kernel_size != 0 && <= 16, and a max_soft_tokens whitelist. It never requires patch_size == 16 and pooling == 3, which are the only values bracketed_patch_geometry (helios/src/frontend/images/packing.rs:16-22) maps to a patch width, and the only values ignition/preparation/frontend.py:116-129 will export. Consequences of any other accepted value (e.g. patch_size=14/pooling=2 from a future or edited core):
tensor_layout(packing.rs:39-42) is called through model/packing.rs:92-97 while loading the core; it now returns Err("unsupported bracketed patches_per_feature") — but the failure is keyed onpatches_per_feature, not on the Gemma profile, so a Gemma 4 core whose contract declares patches_per_feature = pooling^2 (e.g. 4 for pooling 2) loads fine and then packs 31414 = 588 floats per patch into a 1176-float slot.conditioned.rs:192hardcodes 768 floats per patch forProfile::Gemma4(_), sovalid_processed(conditioned.rs:185-225) accepts the processor's own output and the mismatch is never caught there.bracketed()(packing.rs:479-509) then slicesimages.pixel_values.get(start*patch_width..end*patch_width); with the wrong width the slice either errors ("truncated vision pixels") or, when the slab is longer than needed, silently uploads misaligned data into the vision graph. No test covers a Gemma 4 processor whose patch_size/pooling differ from 16/3. Fix: require patch_size == 16 && pooling_kernel_size == 3 inProcessor::load(matching what frontend.py already enforces), and derive the feature width in conditioned.rs from the same bracketed geometry table instead of a second literal 768.
FINDING B (should fix) — Two independent derivations of the Gemma 4 patch width.
helios/src/frontend/images/conditioned.rs:192 (Profile::Gemma4(_) => 768) and helios/src/frontend/images/packing.rs:19 (9 => (3, 768)) each state 768 separately; gemma4.rs:116 computes 3 * patch_size * patch_size a third time. The cached-record validator and the upload staging therefore can disagree without any error. The PR description claims the derived-width design removes model-identity branching while the feature-width check still hardcodes the profile.
FINDING C (nit) — Unrelated regeneration churn in the checked-in Python bindings.
ignition/preparation/runtime_core_pb2.py header changes "Protobuf Python Version: 7.36.2" -> "7.36.1" (and the runtime version check argument 2 -> 1) while adding GEMMA4_IMAGE_PREPARATION and Gemma4ImageSettings. helios/manifest.md:465-472 says to regenerate with protoc --proto_path=helios/proto --python_out=ignition/preparation; the downgraded header shows the file was produced by a different protoc than main. It is cosmetic today but makes the reviewed diff harder and pins the bindings to an older generator than the rest of the tree; regenerate with the documented protoc.
FINDING D (nit / no defect found, note for the report) — prompt.rs span fill behaves, but only for tracks already covered.
helios/src/model/prompt.rs:137-151 fills data.spans from conditioned_inputs only when data.spans.is_empty() and the layout declares an ImageSpan. For Images/Deepseek the layout already wrote spans (layouts/deepseek.rs:149) so nothing changes; for every other layout image_tokens.span is None (see helios/tests/support/contracts/*.json) so the branch is inert. validate_prompt_data (model.rs:420-454) then enforces ordering, s.len() <= prefill_chunk_size, and the declared start/end token ids, and server/runtime.rs:1458-1465 passes them to set_prefill_spans, which fails the request if a span straddles the prefix-cache boundary (scheduler.rs:1913-1936). One consequence worth flagging to the author rather than a defect: a Gemma 4 envelope of an image larger than prefill_chunk_size (up to 1121 tokens) is rejected at admission ("invalid atomic prefill spans or prefix boundary"), so the recipe must keep chunks above the envelope size; no test asserts that message for a Gemma 4-sized envelope.
#5 [high] Research summary
Verdict: should-fix issues only
I re-checked every changed file at head 2b4a31e through the correctness lens. Most of my previous report is now genuinely addressed at the code level, and two of the fixes are substantive:
- Patch width is no longer a model table:
helios/src/frontend/images/packing.rs:16-24readsVisionCapabilities.patch_features(0→ legacy 1176), andsquare_merge_side(packing.rs:26-32) derives the stride from any positive squarepatches_per_feature. - The three width derivations are collapsed:
conditioned.rs:187now callsprocessor.patch_features()rather than a per-profile literal table. This also fixes a pre-existing bug onmain: the old_ => 588arm caughtProfile::PatchMerge, so MiniMax's 1176-float patches failedvalid_processed/materialize(conditioned.rs:213,249). - Span emission moved into
layouts/bracketed.rs:52-88and is gated on the declaredImageSpan; the shared fallback inmodel/prompt.rsis gone; the pure-Rust span/no-span/chunk-too-small tests exist (model/prompt.rs:1171-1281). gemma4::Processor::load(gemma4.rs:25-39) now requirespooling² == limits.patches_per_featureandmax_soft_tokens·pooling² <= max_patches_per_image, andserver::config::validate_loaded_image_processor(config.rs:443-487) ties the processor width tovision.patch_featuresforBracketed, and bounds the envelope byprefill_chunk_sizeandspan.max_tokens.- HF parity is now CI-runnable:
tests/frontend/gemma4_images.jsonis checked in and read withinclude_str!bycanonical_processor_pixels_positions_and_resize, and the snapshot/venv tests are#[ignore]with explicit assertions instead of silent returns.
Blocking: none.
Should fix
-
helios/src/frontend/images/gemma4.rs:30-38— one opaque error string covers six distinct rejections, including the newmax_soft_tokens·pooling² > limits.max_patches_per_imagecapacity check. A Gemma 4 core whose captured patch capacity is below itsmax_soft_tokensbudget (e.g. capacities captured at 280 while the checkpoint declares 1120) fails atImageProcessor::loadwithinvalid Gemma 4 image settingsand no hint which of settings or capacity is wrong;server::config.rs:449-484shows the actionable style. Fix: name the failing field/limit. -
helios/src/scheduler/policy.rs:337-351withhelios/src/scheduler.rs:2027-2042— an atomic envelope longer than a captured prefill capacity makes that graph unusable without any load-time check.set_prefill_spansonly bounds a span byprefill_chunk_size, andprefill_work_throughtruncatesendtospan.start, so a graph whose capacity is below the span length computesend.saturating_sub(start) == 0— zero work for a request sitting at the span start. Nothing invalidate_loaded_image_processoror the catalog validation tiesmax_envelope_tokensto the captured prefill catalog (only toprefill_chunk_size), and no test covers a Gemma 4 envelope with a smaller catalog entry. Settle with a scheduler test that advertises a prefill catalog containing a capacity below the 1122-token envelope, or reject such catalogs at bootstrap. -
helios/src/frontend/images/packing.rs:26-32,49-56—Bracketednow fails at core load for apatches_per_featurethat is not a positive square (viamodel/packing.rs:92-97inPacking::new). Onmainsuch a core loaded and failed per request atbracketed(). That is a startup narrowing the description does not mention ("existing cores … remain loadable and unchanged"); it is only safe if no shipped/spelled core declares a non-square ratio. Fix: state the narrowing in the description, or keep the load-time check and add a mounting test for a square-but-unusual value (e.g. 16, which now loads and packs at the legacy 1176 width).
Nits
docs/TODO.txt:331-336correctly tracks the partial-span prefix-cache case, but no guard exists:scheduler.rs:2036-2037fails a whole request whenconsumed_tokenslands strictly inside a span.checkpoints.rs:116-123keeps published endpoints span-aligned; a host-store record restored with a mid-span endpoint would still fail admission. Worth a test asserting the intended behaviour once the audit lands.gemma4.rs:13SUPPORTED_SOFT_TOKENSduplicatesignition/preparation/frontend.py:132; two allowlists will drift.
Verified as no longer a problem: runtime_core_pb2.py churn (regenerated at matching libprotoc 36.1, descriptor-only), check_input_extent/geometry() ordering, envelope validation (patch_merge.rs:20-31), and the patch_features serde default (build.rs:53-56, model.rs:52-53).
#6 [high] Report of 2026-11-25 (run 2), PR 483 at head 2b4a31e — should-fix only
PR #483, head 2b4a31e (base main 27716185), 36 files +2269/−240. Lens: correctness.
VERDICT: should-fix only; no blockers.
FIXED SINCE PREVIOUS REPORT (verified in code):
- Patch width is metadata, not a model table: helios/src/frontend/images/packing.rs:16-24
bracketed_patch_featuresreadsVisionCapabilities.patch_features, 0 -> LEGACY_BRACKETED_PATCH_FEATURES 1176; packing.rs:26-32square_merge_sidederives stride from any positive squarepatches_per_feature. tensor_layout now takes&VisionCapabilities(packing.rs:34-56) and is passed it from helios/src/model/packing.rs:92-97. - Width derivations collapsed: helios/src/frontend/images/conditioned.rs:187
let pixel_width = self.processor.patch_features();replaces the per-profile literal table. Side effect: this FIXES a pre-existing bug on main — the old_ => 588arm matched Profile::PatchMerge, so MiniMax 1176-float patches failed valid_processed (conditioned.rs:213) and materialize (conditioned.rs:249). Note for report as a positive. - ImageProcessor::patch_features() (helios/src/frontend/images/mod.rs:459-471) covers all 11 profiles; cross-profile test at packing.rs:695-826.
- Spans: helios/src/frontend/images/layouts/bracketed.rs:52-88 emits spans gated on
atomic_spans, validates envelope markers on both ends; shared fallback deleted from model/prompt.rs; tests at model/prompt.rs:1171-1281 (span-bearing, 64-aligned chunk-too-small, no-span/MiniMax). - gemma4::Processor::load (helios/src/frontend/images/gemma4.rs:25-39) now requires pooling^2 == limits.patches_per_feature and max_soft_tokens*pooling^2 <= limits.max_patches_per_image.
- server::config::validate_loaded_image_processor (helios/src/server/config.rs:443-487) ties processor width to vision.patch_features for Bracketed and bounds max_envelope by prefill_chunk_size and span.max_tokens; called from Bootstrap (config.rs:291-298); test config.rs:937-1023.
- Parity is CI-runnable: tests/frontend/gemma4_images.json checked in, read via include_str! in gemma4.rs canonical_processor_pixels_positions_and_resize; generator tests/frontend/generate_gemma4_image_fixtures.py; snapshot/venv tests are #[ignore] with explicit assertions.
- mock/churn: runtime_core_pb2.py regenerated at matching libprotoc 36.1 (descriptor-only diff); patch_features serde(default) via helios/build.rs:50-57 and helios/src/model.rs:52-53.
FINDING 1 (should fix) — opaque load error loses the capacity check. helios/src/frontend/images/gemma4.rs:30-38: one condition with one message "invalid Gemma 4 image settings" covers patch_size bounds, pooling bounds, the SUPPORTED_SOFT_TOKENS allowlist, pooling^2 != patches_per_feature, and the new max_soft_tokens*pooling^2 > limits.max_patches_per_image check. A core whose captured patch capacity is below its declared soft-token budget (e.g. 280-token capacity with a 1120 checkpoint) fails at ImageProcessor::load with no indication whether settings or capacity are wrong. Fix: split into named errors, following the actionable style of config.rs:449-484.
FINDING 2 (should fix) — envelope larger than a captured prefill capacity is unchecked and yields zero work.
helios/src/scheduler.rs:2027-2042 bounds a span only by limits.prefill_chunk_size; helios/src/scheduler/policy.rs:337-351 truncates end to span.start when the span straddles, so a graph capacity below the span length yields end.saturating_sub(start)==0 (no work) for a request sitting at span start. Nothing ties max_envelope_tokens (up to 1122) to the captured prefill catalog — validate_loaded_image_processor only checks prefill_chunk_size (config.rs:473-482). No test. Fix: reject at load when the envelope exceeds the smallest captured prefill capacity a span-split chunk can use, or add the scheduler test.
FINDING 3 (should fix, description accuracy/compat) — Bracketed load-time narrowing.
helios/src/frontend/images/packing.rs:26-32 + 49-50 + helios/src/model/packing.rs:92-97: Packing::new (core load) now errors with "bracketed patches_per_feature must be a positive square" for any Bracketed core that is not a square ratio; on main such a core loaded and failed per request in bracketed() (packing.rs:491-509). PR description says existing cores remain loadable and unchanged. Fix: disclose the narrowing, and/or add a mounting test for square-but-unusual values such as 16 (loads, packs at legacy 1176).
NITS:
- Partial-span prefix-cache: docs/TODO.txt:331-336 tracks the audit, but helios/src/scheduler.rs:2036-2037 fails the whole request when consumed_tokens lands strictly inside a span. scheduler/checkpoints.rs:116-123 keeps published endpoints span-aligned, so a host-store record restored with a mid-span endpoint still fails admission; needs a test asserting intended behaviour.
- helios/src/frontend/images/gemma4.rs:13 SUPPORTED_SOFT_TOKENS duplicates the allowlist in ignition/preparation/frontend.py:132.
RULES CITED: charter ("Supported matrix & compatibility ... verify that existing data, artifacts, and exported cores still load"; "No per-model special cases or flags"); AGENTS.md 431-444; docs/design-review.md principles 3/10/13.
#8 [high] Report of 2026-11-25 (run 3), PR 483 at head ab9a432b — should-fix/nits only
PR #483, head ab9a432b (branch rickybrent:core/gemma4-image-frontend), base main 27716185. 38 files, +2490/−251. Lens: correctness. Read-only review (no cargo/pytest run).
VERDICT: no blockers; one should-fix (coverage of a value the exporter can emit), rest nits. Earlier findings verified fixed.
RESOLVED SINCE MY LAST REPORT (verified in code at this head):
- Opaque load error is gone: helios/src/frontend/images/gemma4.rs:25-83 now returns a distinct message per rejection — patch_size bounds (:27-33), pooling bounds (:34-40), soft-token allowlist (:41-47), pooling_area != limits.patches_per_feature (:52-60), max_soft_tokens*pooling_area > limits.max_patches_per_image (:61-71), then Envelope::load (:72-76). Each names the field and both values. Previous finding 1 closed.
- Bracketed load narrowing disclosed: PR body now has an explicit "Narrowings:
Bracketednow requires a positive-squarepatches_per_feature" paragraph; zero is already rejected earlier by helios/src/model.rs:88 for any enabled vision core, so only non-square nonzero values newly fail. Mounting test added: helios/src/model/tests.rs:1279-1452 (deserializes a Bracketed contract JSON withoutpatch_features,Inputs::newok, stages 16x1176; 768-wide manifest and non-square patches_per_feature rejected). Previous finding 2 closed. patch_featuresauthored in Ignition defaults: ignition/preparation/contract.py:112-119 ("patch_features": 0in the vision default plus docstring note). Width authoring stays with the recipe (author's stated, defensible choice; recipe lands with the core profile).
FINDING (should fix, coverage): the Rust allowlist accepts five soft-token budgets but only two are ever loaded in tests, and Ignition can emit all five.
- helios/src/frontend/images/gemma4.rs:13 SUPPORTED_SOFT_TOKENS = [70,140,280,560,1120]; ignition/preparation/frontend.py:132 accepts the same five and writes whichever the checkpoint declares (:168-171).
- Rust tests load only 280 (processor_with_budget at gemma4.rs:225-240, used by every test) and 1120 (fixture cases, tests/frontend/gemma4_images.json via gemma4.rs:~318-330). 70, 140 and 560 are never loaded, so a drift between the two allowlists or an arithmetic assumption that only holds for 280/1120 (e.g. geometry rounding at 70) would surface only at
flare runfor a real checkpoint. Fix: add 70/140/560 to the fixture specs (generator tests/frontend/generate_gemma4_image_fixtures.py:31-40) or a table test that loads each allowlisted budget and asserts geometry for one shape.
NITS:
- helios/src/model.rs:89
!self.patch_features.is_multiple_of(3)applies to every vision core although the field is only consumed bybracketed_patch_features()(model.rs:74-80, used from packing.rs:41 and :486). A non-Bracketed core declaring a width that is not a multiple of three (e.g. 1024) fails with the generic "invalid prepared vision capabilities" instead of naming the field. Either scope the rule to Bracketed or name the field in the message. - Two copies of the soft-token allowlist in two languages (gemma4.rs:13 and frontend.py:132) with no test tying them; see the finding above — one test closes both.
- helios/src/frontend/images/gemma4.rs:99
max_patches()and :139patches / (self.pooling * self.pooling)are unchecked multiplications/divisions; they are safe only because load caps max_soft_tokens<=1120 and pooling<=16. Worth a one-line comment, since a future budget added to SUPPORTED_SOFT_TOKENS changes the bound silently. - scheduler/policy.rs:343-350 truncates
endtospan.startfor a straddling span, so any captured prefill capacity below the envelope length contributes no work for a span-bearing image request. The new bootstrap bound (server/config.rs:464-487) makes that unreachable whenprefill_chunk_sizeis the captured capacity, but nothing pins it with a test.
VERIFIED CLEAN (so the report is honest):
- Atomic spans live in the layout: helios/src/frontend/images/layouts/bracketed.rs:52-88, gated on
atomic_spans(computed once at helios/src/model/prompt.rs:52-65 fromimage_tokens.span.is_some()), bounds-checked on both ends,spansdefault empty for span-less Bracketed cores (MiniMax) so model.rs:467-469 stays satisfied; shared fallback deleted from prompt.rs; test at model/prompt.rs:1172-1281 covers span-bearing, 64-aligned chunk too small, and no-span cases. - Wire additions are additive and defaulted: helios/proto/runtime_core.proto VisionCapacity.patch_features = 6, ImageSettings gemma4 = 11, ImagePreparationKind Gemma4 = 11 (model/contract.rs:68); helios/build.rs:53-56 serde(default); describe.rs:466-468 omits 0 so legacy describe JSON is byte-identical; protobuf.rs:813-865 round-trip test.
- One width authority: ImageProcessor::patch_features (mod.rs:459-471) used by conditioned.rs:187, checked against
vision.patch_features/bracketed_patch_features()at server/config.rs:448-463; cross-profile test packing.rs:685-816. - Sizing is overflow-safe on the new path: gemma4.rs:48-71 checked_mul, :157-170 try_fold/checked_mul, check_batch before and after geometry (:152, :163), check_input_extent/check_image_patches (:103, :133), reserve_outputs (:177).
- Envelope extraction (patch_merge.rs:10-136) keeps MiniMax validation semantics and its expand behaviour; only the message text changed.
COULD NOT SETTLE: whether any core already published from local-inference-lab/hyperflare-recipes declares a Bracketed layout with a non-square patches_per_feature — that is now disclosed as a narrowing and covered by a load test, so it is a compatibility question for the recipe repo, not a defect in this tree.
#9 [high] Research summary
Reviewed PR #483 at head ab9a432b (38 files, +2490/−251) through the correctness lens.
The two should-fix findings from my previous turn are now genuinely closed in code: gemma4::Processor::load (helios/src/frontend/images/gemma4.rs:25-83) returns a distinct, value-naming error for each of the six rejections, including the settings-vs-captured-capacity checks; and the Bracketed load-time narrowing is disclosed in the PR body and covered by a mounting test that deserializes a contract without patch_features and asserts Inputs::new stages 16×1176 (helios/src/model/tests.rs:1279-1452), with the zero case already rejected earlier by VisionCapabilities::validate (helios/src/model.rs:88).
What remains is one should-fix: the Rust soft-token allowlist (gemma4.rs:13) and Ignition's (ignition/preparation/frontend.py:132) both admit 70/140/280/560/1120 and Ignition emits whichever the checkpoint declares, but only 280 and 1120 are ever loaded in tests, so a drift or a budget-specific arithmetic assumption would first appear at flare run. Plus four nits (the patch_features % 3 rule applied to non-Bracketed cores, the duplicated allowlist, unchecked arithmetic that is safe only via the load caps, and the untested sub-envelope prefill capacity path in policy.rs:343-350).
Wire additions, span emission in the layout, the single patch-width authority and the overflow/size guards all check out; details are in scratchpad entry #8.
#10 [high] Supersession notice: entries #6 and #7 are superseded by #8
The final report must be built from note #8 (head ab9a432b). Notes #6 and #7 describe head 2b4a31e and contain three claims that are NO LONGER TRUE at ab9a432b — do not repeat them:
-
“Opaque Gemma 4 load error / seven rejections share one message” — FIXED. helios/src/frontend/images/gemma4.rs:25-83 now splits into patch_size bounds (:27-33), pooling bounds (:34-40), soft-token allowlist (:41-47), pooling_area vs limits.patches_per_feature (:52-60), max_soft_tokens*pooling_area vs limits.max_patches_per_image (:61-71), then Envelope::load (:72-76). Each names the field and both values; test at gemma4.rs:250-311 asserts the messages contain the numbers.
-
“Bracketed load-time narrowing is undisclosed / no core-load test” — FIXED. The PR body now carries an explicit “Narrowings:
Bracketednow requires a positive-squarepatches_per_feature” paragraph, and helios/src/model/tests.rs:1279-1452 provideslegacy_bracketed_core_omitting_patch_features_loads_and_stages_1176_wide_pixels(serde JSON withpatch_featuresremoved decodes as 0,Inputs::newsucceeds, staging is 16x1176 floats, and both a 768-wide manifest andpatches_per_feature = 3are rejected at load). -
“Nothing on the Python side authors
patch_features” (my S2) — PARTLY FIXED. ignition/preparation/contract.py:112-119 adds"patch_features": 0to the vision default dict with a docstring note thatBracketedrecipes with non-1176 widths must set it. Explicit width authoring deliberately stays in the recipe (author’s rationale: it pairs withpatches_per_feature/patch_capacitiesand the recipe lands with the profile). Treat as resolved-by-design, not a finding.
Also withdrawn: the earlier runtime_core_pb2.py generator-version concern (regenerated descriptor-only, Protobuf Python Version: 7.36.1 identical on main and head).
The only should-fix carried forward is the allowlist coverage gap in #8, and the four nits listed there. Verdict: no blockers; the change is loadable/behaviourally safe for existing cores and for every configuration reachable from the exporter.