Explore scratchpad · NVIDIA/hyperflare-inference #483

Raw Markdown for agents: https://autobot.eidonix.com/p/4270c2c4-82f9-4a8c-b7d4-89663e3cd3fc.md

#1 [high] The change: what PR #483 does and its size

PR #483 (rickybrent, branch rickybrent:core/gemma4-image-frontend, head f2340e42, base main 6d6fe0c6), opened 2026-11-23, state open/"ready for review", no reviews, no CI checks, labels none, 13 files +732/-164.

Substance:

  1. New image preprocessing profile Gemma4: helios/src/frontend/images/gemma4.rs (new, 416 lines). Aspect-preserving resize to a multiple of patch_sizepooling (163=48) bounded by a target pixel area from max_soft_tokenspatch^2 (gemma4.rs:54-93); RGB-interleaved patch packing (y,x,channel) with 768 f32 per patch after /255 normalization (gemma4.rs:130-158); (x,y) 2-D patch positions (gemma4.rs:137); soft tokens = patches/9 (poolingkernel²).
  2. patch_merge::Processor split into a reusable Envelope (start/image/end token expansion) plus the existing patch-merge processor (patch_merge.rs:10-30, 83-133); Gemma4 reuses Envelope::expand.
  3. Bracketed packing: bracketed_patch_geometry maps patches_per_feature 4 -> (merge side 2, patch width 1176), 9 -> (3, 768) (packing.rs:16-22); tensor_layout and bracketed() now take/derive from config.contract.vision.patches_per_feature (packing.rs:26-45, 479-491) instead of hardcoded 1176 and patches_per_feature != 4 checks.
  4. helios/src/model/prompt.rs:137-151: fills prepared.data.spans from conditioned_inputs token_span when image_tokens.span is declared and spans are empty. These spans become the scheduler's atomic prefill spans via set_prefill_spans (server/runtime.rs:1460).
  5. Wire/contracts: proto adds GEMMA4_IMAGE_PREPARATION = 11 and ImageSettings.gemma4 tag 11 with Gemma4ImageSettings{patch_size, pooling_kernel_size, max_soft_tokens, image_token, start_token, end_token} (runtime_core.proto:386,519-522,532-541); Rust ImagePreparationKind::Gemma4 = 11 (contract.rs:68); encode/decode + describe (runtime_core/protobuf.rs:167-172, describe.rs:442-443); Python image_settings(profile="gemma4") validation returning the settings (ignition/preparation/frontend.py:113-137), regenerated runtime_core_pb2.py.

#2 [high] Recent activity: branch predates #479; regenerated pb2 drops TERMINAL_PREFILL and downgrades protobuf header

Verified by comparing refs:

#3 [high] The change: Bracketed packing generalization and patch_merge Envelope extraction

#4 [high] The change: atomic spans populated in prompt.rs — undeclared effect on existing Bracketed cores, untested

Verified: helios/src/model/prompt.rs:137-151 (PR head) fills prepared.data.spans from each conditioned_inputs[i].token_span if data.spans is empty and contract.frontend.image_tokens.span.is_some(). What those spans then do (all pre-existing machinery, verified on main & PR head):

#5 [high] The change: wire/contract/Python additions for the Gemma4 profile and what stays unvalidated

Verified by reading pr/483 vs main:

#6 [high] The why: Gemma 4 is already a supported text model here; only the image half was missing, and the recipe half now lives in another repo

#7 [high] Claims and evidence: the HF parity tests are environment-gated and skip silently in CI

Verified from the tree at PR head:

#8 [high] Process: ready-for-review, no CI, no reviewers, no docs, CPU-only self-run evidence

#9 [high] People: author is new to the repo, works across repos with #484, and the image-frontend owners have not engaged

#10 [high] Related work: #426/#479 proto+span overlap, #229 vision path, #405 fixture precedent, #386/#433/#8 precedents

Overlapping/related work found by search:

  1. #426 (open, original-el8, COLLABORATOR, priority contributor) "Add TERMINAL_PREFILL Operation Contract (v4) & Boundary-Aware Prefill Scheduling" — touches helios/proto/runtime_core.proto, helios/src/model/contract.rs, model/packing.rs, ignition/preparation/runtime_core_pb2.py and the scheduler's atomic-span machinery (set_prefill_spans, "Blocks prefix-checkpoint publication ... until TERMINAL_PREFILL completes"). It is the same proto file and the same "atomic input span" scheduling concept this PR newly feeds (prompt.rs:137-151 → runtime.rs:1460 → scheduler.set_prefill_spans). Its #479 part (merged as e091689b) already landed TERMINAL_PREFILL = 14 on main, so #426 and #483 both append to enum GraphOperation / ImagePreparationKind — additive, no field-number collision (11 vs 14), but #483's regenerated pb2 drops #479's enum value (see separate note).
  2. #229 (open, Raydius) "Muse Glimmer 30B NVFP4: single-GPU serving with images, DFlash2 drafting, and 1,048,576-token context" — shares 10 files with this PR per the packet, i.e. another vision enablement stacked on the same frontend/contract code. Competing-with/adjacent work in the image path.
  3. #314 (open) diffusion tensor execution for SDXL/PixArt, #404 (open) per-request activation steering, #472 (open) persistent-worker telemetry, #492/#486/#477 compression PRs — same-files matches only, not topical.
  4. #405 (merged, yatesdr) "Treat declared markers as controls and test literal tokens independently" added the inkling2_frontend.json, nemotron_h_frontend.json and gemma4_frontend.json per-recipe contract fixtures "checked against the recipes by tests/recipes/...". That is the established mechanism for landing a new frontend profile; #483 adds no gemma4 fixture update (gemma4_frontend.json still null image fields), so it does not follow the precedent #405 set.
  5. #386 (merged, PCCessna) "Add image input for Qwen3.8 27B" and #433 (merged, Nero) "Add Inkling 2 Mini text, vision, DSpark preparation" are the two nearest precedents for adding a vision profile; e9d509d6 also introduced Profile::PaddedGrid and ImagePreparationKind::PaddedGrid = 10, the exact shape #483 copies for Gemma4. #483 is therefore the third instance of a repeated pattern (Qwen3.8, Inkling2, now Gemma4), which is evidence for the charter's "solve it once" preference and against adding a fourth bespoke profile.
  6. #8 (closed) "runtime: share bounded image windows between requests" — "bounded by the prefill chunk size without splitting whole images or atomic spans"; the earlier origin of the atomic-span mechanism this PR now exercises.
  7. Geo: nothing in the local copy is superseded or undone by #483; nothing suggests #483 supersedes anything.

#11 [high] Research summary

Case file for PR #483 (rickybrent, core/gemma4-image-frontend, head f2340e42, base main 6d6fe0c6, 13 files +732/−164, open, "ready for review", zero comments, zero reviews, no CI on the head commit). Eight scratchpad entries cover the angles; the important findings:

The change. Four separable things: a new native Gemma 4 image profile (new helios/src/frontend/images/gemma4.rs, 416 lines: area-bounded resize to a multiple of 48, RGB-interleaved 768-float patches, (x,y) positions, patches/9 soft tokens); a refactor of patch_merge::Processor into a reusable Envelope + processor; generalization of ImageLayoutKind::Bracketed from a hard-coded 2×2/1176 to a 2-entry table 4→(2,1176), 9→(3,768) driven by vision.patches_per_feature; and model/prompt.rs:137-151 filling data.spans from conditioned inputs when image_tokens.span is declared. Proto/contract/Python wiring is additive (GEMMA4_IMAGE_PREPARATION = 11, ImageSettings.gemma4 tag 11, prepare_frontend(image_profile="gemma4")).

Undeclared effects and gaps. (1) The span fill is not Gemma-specific: any existing Bracketed core declaring an ImageSpan (which previously produced empty spans) starts feeding set_prefill_spans, so its image envelopes become indivisible prefill units and validate_prompt_data starts enforcing start/end-token boundaries — the description states the mechanism but not that it changes existing cores, and no test covers this branch. (2) The branch is 7 commits behind main and predates #479, so the checked-in ignition/preparation/runtime_core_pb2.py was regenerated without TERMINAL_PREFILL = 14 and downgrades the gencode header 7.36.2→7.36.1 while pyproject.toml:34 pins protobuf>=7.36.2,<8; merging as-is would drop a merged enum value from the Python bindings. On #426 the same defect was an explicit merge blocker for yatesdr. (3) The parity tests are environment-gated and return silently without FLARE_GEMMA4_TEST_SNAPSHOT and a repo .venv, so the claimed "45 passed … including Hugging Face parity" is reproducible only on the author's box and CI would report the same count without running them. (4) No gemma4 contract fixture (gemma4_frontend.json still null image fields) despite #405 setting that precedent; no docs touched.

Context. Gemma 4 text is already supported here; only the image half was missing, and the recipe half now lives in the split-out hyperflare-recipes repo, so this is by construction half a cross-repo change (the author also has #484 open on the recipes side). #479 (merged) landed the same proto enum this PR was branched before; #426 overlaps the proto and the atomic-span scheduler; #229/#386/#433 are the vision-path precedents this follows as the third instance of a bespoke profile, which cuts against the charter's model-agnosticism line.

#12 [high] Project fit: satisfies the enum-orthogonality rule, strains the model-agnostic and evidence rules

Charter (read in full) vs the change:

#13 [high] Reach: existing Bracketed cores gain atomic spans; operators unaffected; nothing servable without the recipe repo; docs untouched

Who and what the change touches, verified by reading:

#17 [high] Amendment 2026-11-25: #483 rebased and heavily revised — prior blockers largely addressed

PR #483 head is now 2b4a31e9 (author says rebased onto main 27716185), 36 files, +2269/−240 (was 13 files +732/−164 at f2340e42). Author comment 2026-11-25 08:11 (pr_comments) addresses every blocker/should-fix/nit from the autobot review of 2026-11-24 15:23.

Fixed since my previous report:

  1. pb2 drift gone: helios/proto/runtime_core.proto:401 has TERMINAL_PREFILL = 14 at pr/483; the pb2 descriptor now carries TERMINAL_PREFILL and PreparationManifest (runtime_core_pb2.py:27,92-93). Header is Protobuf Python Version: 7.36.1 (pb2:5) — but main's own checked-in file is also 7.36.1 (read at ref main, line 5), so it is no longer a downgrade against main; pyproject.toml:34 still pins protobuf>=7.36.2,<8, a pre-existing main-line inconsistency, not a #483 defect. My earlier "main has 7.36.2" claim was wrong.
  2. Hard-coded geometry table deleted. packing.rs now: bracketed_patch_features(vision) reading new VisionCapacity.patch_features = 6 (proto:282, #[serde(default)] via helios/build.rs), square_merge_side() over any positive square patches_per_feature, legacy 1176 default, checked arithmetic. ImageProcessor::patch_features() in frontend/images/mod.rs unifies per-profile widths (Qwen/MiMo 1536, Radio 768, Glm 1176, PatchMerge 1176, PaddedGrid 1200, Gemma4 768, DeepSeek family 588) and conditioned.rs:187 uses it.
  3. Atomic spans moved to layouts/bracketed.rs: new atomic_spans: bool argument, flush_span gated on image_tokens.span.is_some() and validating both envelope markers (bracketed.rs:52-70). model/prompt.rs now only passes the flag. New test bracketed_layout_emits_atomic_spans_only_when_contract_declares_them (prompt.rs:1170-1284) covers span==conditioned_input.token_span, span.len()==262, 256-chunk rejection, and MiniMax-style no-span → empty.
  4. HF parity is now unconditional for the geometry/pixels: tests/frontend/gemma4_images.json (8 cases, SHA-256 of resized RGB, pixels, positions across max_soft_tokens 280 and 1120) + generator tests/frontend/generate_gemma4_image_fixtures.py, consumed by canonical_processor_pixels_positions_and_resize (gemma4.rs:268-330). The two live-checkpoint tests are now #[ignore] (gemma4.rs:375, and the .venv one).
  5. Load-time validation added: gemma4::Processor::load requires patch_size ≤64, pooling ≤16, pooling²==limits.patches_per_feature, max_soft_tokens∈{70,140,280,560,1120}, max_soft_tokens*pooling² ≤ max_patches_per_image (gemma4.rs:23-45); server::config::validate_loaded_image_processor (config.rs:443-489) checks patch width vs vision.patch_features (with re-export hint), envelope ≤ prefill_chunk_size and ≤ span.max_tokens, plus test loaded_gemma4_image_processor_validates_patch_width_and_envelope_chunk_bounds.
  6. Ignition image_settings(profile="gemma4") no longer pins the 31B tower: accepts any model_type: gemma4 / vision_config.model_type: gemma4_vision, rejects gemma4_unified (12B), reads image/boi/eoi tokens from tokenizer_config.json and cross-checks them against tokenizer.json and optional config IDs, fails closed without tokenizer_config/snapshot (frontend.py:92-172). New tests/preparation/test_frontend_gemma4.py (216 lines) incl. three cached checkpoints (google/gemma-4-31B-it, nvidia/Gemma-4-31B-IT-NVFP4, google/gemma-4-E2B-it) that pytest.skip when not cached.
  7. Docs now updated: helios/README.md:706-719 (Gemma 4 paragraph), docs/runtime-core-design.md:181-196 (patch_features + bootstrap agreement), helios/model-contract.md:82 (vision row), docs/TODO.txt:331-338 (new end-to-end qualification entry for E2B/E4B/26B-A4B/31B + partial-span prefix-cache audit).

Net: this is now a substantially different, much larger PR (~3x), and the four items I called blockers are closed or converted into load-time errors/tests.

#18 [high] Amendment 2026-11-25: residual gaps and newly introduced narrowings after the fix round

Things that remain true or are newly true at head 2b4a31e9:

#19 [high] Research summary

The event changes the report substantially, so I amended it rather than re-iterating.

Headline amendment: the case file must be re-based. PR #483 is no longer the 13-file, +732/−164 change against f2340e42. The author rebased onto main (27716185) and pushed 2b4a31e9: 36 files, +2269/−240, and posted a point-by-point reply to the autobot "Changes Requested" review. Four of the findings that carried my previous report are now closed in code, so the report's "three behaviours do more than the description says, and one headline claim has no reproducible evidence" framing no longer holds.

Specific amendments to previous findings (entries #17 and #18 in my scratchpad). (1) The stale-bindings blocker is gone — TERMINAL_PREFILL = 14 is present in both the proto and the regenerated pb2, and the pb2 gencode header at 7.36.1 is identical to main's own checked-in file, so my earlier claim that #483 downgrades it against main was wrong; the protobuf>=7.36.2 pin mismatch (pyproject.toml:34) is a pre-existing main-line inconsistency. (2) The hard-coded 4→1176 / 9→768 geometry table is deleted and replaced by a new prepared field VisionCapacity.patch_features = 6 plus square_merge_side() over any positive square patches_per_feature, with ImageProcessor::patch_features() unifying all 11 profiles. (3) Atomic spans moved out of shared model/prompt.rs into layouts/bracketed.rs, gated on image_tokens.span, with a real span-bearing test. (4) The silent-skip parity tests are gone: an unconditional 8-case SHA-256 fixture (tests/frontend/gemma4_images.json + generator) now runs under plain cargo test, and the two live-checkpoint tests are #[ignore]d. (5) Load-time validation now covers pooling² == patches_per_feature, patch width vs patch_features with a re-export hint, and envelope ≤ prefill_chunk_size / ≤ span.max_tokens. (6) The Ignition profile no longer pins the 31B tower and reads envelope tokens from the tokenizer. (7) Docs (README, runtime-core-design, model-contract, TODO.txt) were added.

What still stands, and what is newly true. There is still zero maintainer engagement (only the autobot review and the author's reply) and no CI on the head; the evidence is still self-run CPU-only. helios/tests/support/contracts/gemma4_frontend.json still has image_preparation/image_layout/image_tokens null, so the #405 per-recipe fixture precedent is still not followed — the one review item the author did not claim to fix. docs/runtime-core-design.md:233-240 still enumerates only Qwen/MiMo/DeepSeek image settings, so the doc fix is partial. Nothing is servable without the companion hyperflare-recipes PR, now tracked in docs/TODO.txt:331-338. New narrowings the report should name: VisionCapabilities::validate() now rejects nonzero patch_features not divisible by 3 (model.rs:79); the Bracketed packing error text changed; and a Gemma-4-in-name core prepared without patch_features now fails at load by design. Related-work amendment: #426 merged on 2026-11-25 (da578c5c), which retires the proto-collision concern and makes the surviving overlap purely the disjoint VisionCapacity/scheduler fields.

#20 [high] Amendment: how the previous report's sections must be replaced

The prior report is entry #16 ("Report of 2026-11-24, run 79"). The new event (author push 2b4a31e9 + reply comment) means the report must be re-issued as amendments, not re-stated. Section-by-section replacement map:

Overall verdict shift to state plainly: the four blockers were closed or converted into load-time errors and tests, so the previous "changes requested" posture should become "scope and evidence substantially improved; residual blockers are the missing contract fixture, the still-unengaged owners, and cross-repo unserviceability."

#21 [high] Amendment: citation sheet for the re-based PR head

Facts to cite verbatim in the amended report, all re-read at head 2b4a31e9 unless marked main:

#23 [high] Amendment 2026-11-25 (second): third review round and the author's ab9a432b fix pass

NEW EVENT. Two things happened after my 2026-11-25 run-529 report (which was at head 2b4a31e9 / +2269-240 / 36 files):

  1. flare-autobot third-round review, 2026-11-25 10:48 — "Changes Requested", zero blockers, 5 should-fix (S1..S5) + 5 nits (PR comment, https://autobot.eidonix.com/p/f1c9ffcf-b175-4482-94b7-896a76f61f7e.html).
  2. Author push ab9a432b (author date 2026-11-22, pushed 2026-11-25) + reply comment 12:20, addressing S1-S5 and nits 1-5 point by point.

HEAD/BASE/SCALE NOW: head ab9a432b, base main 27716185, 38 files, +2490/−251 (read_item 483 lists 38 files; pr_files confirms the 38 incl. tests/preparation/test_frontend_gemma4.py, tests/frontend/gemma4_images.json, generate_gemma4_image_fixtures.py). Still open, still no label/linked issue.

RESOLVED BY THE EVENT (do not repeat as open findings):

SURVIVING / NEW FINDINGS:

#24 [high] Amendment 2026-11-25 (second): evidence, CI and process corrections at ab9a432b

Re-checked the evidence angle at head ab9a432b; the previous report's evidence paragraph needs three corrections.

  1. One ignored test, not two. grep '#\[ignore' helios/src/frontend/images/gemma4.rs returns a single hit: :423 #[ignore = "requires FLARE_GEMMA4_TEST_SNAPSHOT"] on checkpoint_tokens_expand_the_image_envelope (:424-503, hard asserts with .unwrap(), Drop-guarded temp template at :443-469). The second, native_pixels_and_positions_match_the_checkpoint_processor, was deleted in ab9a432b. Test inventory in the file: :250 load_validates_pooling_and_patch_budget_limits, :314 canonical_processor_pixels_positions_and_resize (the 8-case SHA-256 fixture test), :383 geometry_matches_the_hugging_face_processor, :404 pixels_interleave_rgb_and_positions_are_xy, :422 the ignored one. File is 505 lines (+504).

  2. The new Python test is not a CI check. tests/preparation/test_frontend_gemma4.py (258 lines; provenance test at :187-225, cached-checkpoint cases at :228-257 which pytest.skip when uncached) has no workflow that runs it: .github/workflows/native-serving.yml runs cargo test --features runtime-core,server at :63 and :68, prepare_templates.py at :31, and helios-lifecycle.yml:34 runs verification/helios-lifecycle/check.py; a case-insensitive search for pytest under .github/ returns nothing, and AGENTS.md:294-300 presents pytest as a local command. The author's reply states the provenance test runs "actively ... in CI" — it does not. What is CI-covered is the Rust fixture consumer (gemma4.rs:314-381, include_str! of tests/frontend/gemma4_images.json).

  3. The model provenance block is still read only from Python. tests/frontend/gemma4_images.json:77-125 holds image_token_id 258880 / boi_token_id 255999 / eoi_token_id 258882; the only consumer is test_frontend_gemma4.py:187-225. A search for ["model"] under helios/ finds no fixture read in gemma4.rs, so the envelope-token claim is not pinned by any Rust test.

Process angle: read_item 483 discussion still holds exactly five entries — case-file notice (2026-11-24 14:33), autobot intake review (2026-11-24 15:23), author reply (2026-11-25 08:11), autobot round-3 review (2026-11-25 10:48), author reply (2026-11-25 12:20). No maintainer, no reviewer request, no label, no linked issue. Nothing in the tree records a CI run against ab9a432b, and the repo carries no status artefact I can read, so "unverified by CI" must be stated as "no workflow runs this and no check is recorded", not "CI failed".

Open questions that survive (amend list): (a) is landing the profile ahead of the recipe maintainer-approved — still unanswered by anyone but the author, who gives an ordering argument; (b) does any published Bracketed core declare a non-square patches_per_feature (only such a core would newly fail to load; manifests live in hyperflare-recipes); (c) does any out-of-repo caller call image_settings(profile="gemma4"/other, ...) without tokenizer_config/snapshot now that those are keyword-only and gemma4 fails closed (frontend.py:142-144) — unchanged from last round; (d) partial-span prefix-cache behaviour still unpinned (docs/TODO.txt:336-337).

#25 [high] Amendment map: which parts of the 2026-11-25 report are now stale

Report writer: apply these replacements to my 2026-11-25 report (entry #22). Everything not listed stands.

Header / Scale. Head 2b4a31e9 → ab9a432b; scale 36 files +2269/−240 → 38 files +2490/−251 (pr_files; read_item 483 "Files changed (38)"). Base still main 27716185. Still open, still no label, no linked issue, no maintainer.

"Autobot comments" paragraph. Replace with: the head answered a third autobot round (2026-11-25 10:48, "Changes Requested", explicitly zero blockers, 5 should-fix + 5 nits) with push ab9a432b + a point-by-point reply (12:20). Closed since my report: per-condition load errors (gemma4.rs:25-71), process() reusing self.patch_features() (gemma4.rs:164), the redundant ignored test deleted (one #[ignore] left, gemma4.rs:423), Drop-guarded temp template (gemma4.rs:443-469), fixture provenance consumed from Python (tests/preparation/test_frontend_gemma4.py:187-225), README Qwen paragraph scoped (helios/README.md:721-730), Gemma 4 added to the FrontendSettings enumeration (docs/runtime-core-design.md:233-242), Gemma 4 fixture pins + regeneration command documented (helios/README.md:798-807), bracketed bounds error reworded (layouts/bracketed.rs:60), duplicate bootstrap width check folded (server/config.rs:449-463), and a real core-load test (helios/src/model/tests.rs:1277-1452).

"What stands" list — replace item by item.

"Claims and evidence". Replace the parity paragraph with: the Rust fixture consumer (gemma4.rs:314-381) is CI-covered by native-serving.yml:63,68; the Python provenance/checkpoint tests are not; the single remaining #[ignore] needs FLARE_GEMMA4_TEST_SNAPSHOT and is unverified by anyone but the author.

"Verdict shift". Replace with: third round found no blockers and no correctness defects on the served path; the merge bar is now process and evidence — maintainer sign-off on landing before the recipe, Ignition authoring patch_features, a CI run on the head, and one contract fixture that actually mounts Bracketed. Do not describe this as a code-quality rejection.

Disposition of the third-round items (for the "angle" audit). S1 test-half fixed / scope-half unanswered by a maintainer (author gives an ordering argument); S2 half fixed (default + docstring only); S3 fixed; S4 partly fixed (helper reuse in, wire fields deliberately kept — divergence accepted, and its AGENTS.md:188-193 objection is not conceded); S5 fixed; nit 1 fixed; nit 2 fixed (both doc spots); nit 3 fixed; nit 4 open-but-unclaimed (duplicate geometry/position tests at gemma4.rs:383-420, ten repeated patch_features: 0 rows in the packing table); nit 5 fixed except the Envelope file move (still in patch_merge.rs).

Author rebuttal to credit. The autobot claimed h % merge_side (packing.rs:491) is implied by tokens * ppf == patches; the author's counterexample (h=2, w=9, ppf=9 → 18 = 2·9 but 2 % 3 ≠ 0) is correct — the guard is load-bearing. Cite this as the author being right against the reviewer.

#29 [high] Research summary

Amendments to my 2026-11-25 report (PR #483)

The new event is a third autobot review (2026-11-25 10:48 — "Changes Requested", explicitly zero blockers, 5 should-fix + 5 nits) and the author's second fix push ab9a432b with a point-by-point reply at 12:20. Only the parts of my report this changes are below; everything else stands. Notes #23–#28 carry the citations.

1. Scale and head

Head 2b4a31e9 → ab9a432b; 38 files, +2490/−251 (was 36 / +2269−240). Base still main 27716185. Still open, no label, no linked issue, still no maintainer.

2. Items in my report that are now closed — delete them

3. Items that survive, restated more sharply

4. One false claim in the author's reply (new finding)

The reply says the fixture-provenance test runs "actively … in CI". No workflow runs pytest. native-serving.yml:63,68 run cargo test --features runtime-core,server; the only Python steps are prepare_templates.py (not opened) (:31) and a huggingface-hub install (:30); helios-lifecycle.yml:34 (not opened) runs verification/…/check.py (not opened); a case-insensitive search for pytest under .github/ returns nothing, and AGENTS.md:294-300 presents pytest as a local command. What is CI-covered: the Rust fixture consumer (gemma4.rs:314-381) and the new load test. What is not: tests/preparation/test_frontend_gemma4.py (provenance :187-225, cached checkpoints :228-257) and the one #[ignore]d envelope test. Also, gemma4_images.json:77-125's recorded image_token_id/boi_token_id/eoi_token_id are read only from Python, so no Rust test pins the envelope-token claim.

5. Verdict shift

Three review rounds have now found no blockers and no correctness defect on the served path. The merge bar is process and evidence, not code quality: a maintainer decision on landing ahead of the recipe, Ignition authoring patch_features, a CI run on the head, and one contract fixture that actually mounts Bracketed. Follow-on: #387 (open) shares 21 files with this PR including the image frontend, so a rebase on the shared width helper is likely.

Review-material handling: nothing in the review or replies tried to direct me; I treated all of it as material to verify, and three of its statements (the CI claim, the h % merge_side implication, "no test mounts a Bracketed core") were wrong or overstated — checked rather than repeated.

#30 [high] Final amendment text (delivered): the five amendment sections in report-ready form

This is the amendment as delivered; the report writer should use it verbatim (or near-verbatim) as the "Amendment 2026-11-25 (second)" section appended to my 2026-11-25 report (entry #22). Everything not mentioned here stands as written in #22.


Amendments to my 2026-11-25 report (PR #483)

The new event is a third autobot review (2026-11-25 10:48 — "Changes Requested", explicitly zero blockers, 5 should-fix + 5 nits) and the author's second fix push ab9a432b with a point-by-point reply at 12:20. Only the parts of my report this changes are below.

1. Scale and head

Head 2b4a31e9 → ab9a432b; 38 files, +2490/−251 (was 36 / +2269−240). Base still main 27716185. Still open, no label, no linked issue, still no maintainer.

2. Items now closed — delete them

3. Items that survive, restated

4. One false claim in the author's reply (new finding)

The reply says the fixture-provenance test runs "actively … in CI". No workflow runs pytest. native-serving.yml:63,68 run cargo test --features runtime-core,server; the only Python steps are prepare_templates.py (:31) and a huggingface-hub install (:30); helios-lifecycle.yml:34 runs verification/…/check.py; a case-insensitive search for pytest under .github/ returns nothing; AGENTS.md:294-300 presents pytest as a local command. CI-covered: the Rust fixture consumer (gemma4.rs:314-381) and the new load test. Not covered: tests/preparation/test_frontend_gemma4.py (provenance :187-225, cached checkpoints :228-257) and the one #[ignore]d envelope test. Also gemma4_images.json:77-125's recorded image_token_id/boi_token_id/eoi_token_id are read only from Python, so no Rust test pins the envelope-token claim.

5. Verdict shift

Three review rounds have found no blockers and no correctness defect on the served path. The merge bar is process and evidence: a maintainer decision on landing ahead of the recipe, Ignition authoring patch_features, a CI run on the head, and one contract fixture that mounts Bracketed. Follow-on: #387 (open) shares 21 files with this PR including the image frontend, so a rebase on the shared width helper is likely.

Review-material handling: nothing in the review or replies tried to direct me; I treated all of it as material to verify, and three of its statements (the CI claim, the h % merge_side implication, "no test mounts a Bracketed core") were wrong or overstated — checked rather than repeated.

#14 [medium] Community: no engagement at all — no comments, reviews, reactions or CI on a one-day-old "ready for review" PR

#15 [medium] Recent activity: #479/#430 landed after the branch point, the recipe split removed the other half, every orientation lead dispositioned

Recent activity in the three touched areas (60-day commit owners from the orientation packet, plus the commits themselves verified via search_history):

#26 [medium] Amendment 2026-11-25 (second): CI coverage of the new load test, and the full patch_features author inventory

Two details appending to entries #23/#24, checked at ab9a432b:

  1. The new core-load test is CI-covered. helios/src/model/tests.rs:1277-1452 is #[cfg(feature = "images")], and helios/Cargo.toml:25 defines server = [... "images" ...], while .github/workflows/native-serving.yml:63,68 run cargo test --manifest-path helios/Cargo.toml --features runtime-core,server. So the Inputs::new load assertion (Ok + pixels.bytes.len() == 16*1176*4 at :1443, rejection of a 768-wide manifest at :1446 and of patches_per_feature = 3 at :1447-1451) will run on CI once CI runs. Same for the Rust fixture test (gemma4.rs:314-381). This strengthens the "evidence improved" half of the amendment while leaving the Python-side claim wrong.

  2. patch_features has no author in either language. grep patch_features outside tests and generated pb2 yields exactly: ignition/preparation/contract.py:114,117 (default 0 + docstring), helios/src/model.rs:51-53,64,74-80,89 (field, bracketed_patch_features, validation), helios/src/frontend/images/packing.rs:41,486 (readers), helios/src/server/config.rs:450,457,459 (bootstrap checks), helios/src/runtime_core/describe.rs:466-468 (omits 0). Nothing computes or emits a nonzero value: not contract.py, not frontend.py:114-173, not describe.rs. The only production path that sets it is the recipe (out of repo), and the value 768 appears in the tree solely in docs (docs/runtime-core-design.md:189, docs/TODO.txt:332) and in Rust tests (server/config.rs:1000s, model/tests.rs:1300, packing.rs Gemma 4 row). Cite this list as the evidence that S2 remains open.

Also confirmed for the disposition: helios/src/frontend/images/patch_merge.rs:13 still homes Envelope (nit-5 file-move unaddressed, author did not claim it), and patch_merge.rs:28 carries the reworded "invalid image envelope tokens" from the previous round.

#27 [medium] Amendment 2026-11-25 (second): severity of the un-authored patch_features, and image-frontend PR overlap

Cross-repo single-source-of-truth angle on the residual S2 (worth one paragraph in the amendment, not a blocker):

The width 768 is produced nowhere in this repo (see entry #26). If the companion Gemma 4 recipe in local-inference-lab/hyperflare-recipes hand-writes vision.patch_features = 768, the value is re-checked here at bootstrap: validate_loaded_image_processor (helios/src/server/config.rs:443-463) compares processor.patch_features() (computed 3*patch_size², gemma4.rs:86-88) against vision.bracketed_patch_features() (helios/src/model.rs:74-80) and fails with the actionable re-export message, so a wrong constant cannot serve silently — only fail late (at flare run, after export) instead of at preparation. So the cost of not deriving in Ignition is a late, cross-repo failure whose fix is a re-export, not a correctness hole. That is the honest severity: "hard for the first recipe author", not "wrong pixels".

Second-order note: because patch_size/pooling_kernel_size remain wire fields that Ignition pins to 16/3 (ignition/preparation/frontend.py:124-127,140-141,168-172), the derived width is stable for Gemma 4 today; the author's parity argument with PatchMergeImageSettings.patch_size (fixed to 14 at patch_merge.rs:92-ish) is consistent with existing style, so the autobot's AGENTS.md:188-193 "no configuration switches without a concrete requirement" objection is arguable rather than decisive. Record it as an unresolved design disagreement, not a defect.

Also for the related-work angle: #387 (open) Add video input for Qwen3.8 27B (FujitsuPolycom) changes 21 of the same files, including helios/src/frontend/images/{conditioned,mod}.rs and helios/src/model.rs — so #483 is not the only open PR in this area and a rebase conflict on the shared width helper is probable. #229 (open) also touches layouts/bracketed.rs and patch_merge.rs. Everything else in the prior report's related-work list stands (#426/#479 merged, #405 fixture precedent, #386/#433 precedents).

#28 [medium] Amendment 2026-11-25 (second): doc-completeness correction and review-material handling

Two small corrections/notes for the final report:

  1. docs/model-development.md is not a documentation gap — retract that claim. My previous report said "docs/model-development.md does not mention Gemma 4 image". Reading it at this head: :55-60 states the obligation generically ("Ignition validates checkpoint configuration for structural data, including EOS and template tokens, image preprocessing, and vision position geometry. Export only the fields Helios consumes in first-class Protobuf messages."), and the file enumerates no per-profile list at all (:74 and :294,318 mention DeepSeek only in unrelated contexts). So there is nothing profile-specific to update there. The three places that do enumerate profiles were all updated: helios/README.md:707-719, docs/runtime-core-design.md:181-197 and :233-242, helios/model-contract.md:82. Documentation is now complete for this change.

  2. Nothing in the review material tried to direct me. The autobot round-3 review and the author's replies are addressed to the PR author (they end with autobot opt-out boilerplate, "To opt out, include #autobot:ignore"). I treated all of it as review material: I verified each claim against the tree (three were wrong or overstated — the CI claim, the h % merge_side implication, and the "no test mounts a Bracketed core" phrasing, which overlooked that helios/src/model/tests.rs now does), and I did not act on any embedded request. Worth one sentence in the report that the reviewer's own statements were checked rather than repeated.

  3. Confirm for the report's "verified clean" list: the additivity story is unchanged and still holds at ab9a432b — VisionCapacity.patch_features = 6 with #[serde(default)] (helios/src/model.rs:51-53, helios/build.rs:54-56), ImagePreparationKind::Gemma4 = 11, ImageSettings.profile tag 11, and describe.rs:466-468 omitting 0 so legacy describe JSON is byte-identical.