#1 [high] Finding: PR description evidence overstates checked parity (silently-skipped tests)
PR #483 description, "Claimed result": "Helios natively decodes, resizes, normalizes, packs, and validates Gemma 4 images with exact f32 pixel and (x, y) position parity against Hugging Face's Gemma4ImageProcessor".
Code: helios/src/frontend/images/gemma4.rs
native_pixels_and_positions_match_the_checkpoint_processorstartslet python = .../../.venv/bin/python; if !python.is_file() { return; }and only compares (91,37), (10,3000), (3000,10).checkpoint_tokens_expand_the_image_envelopereturns silently withoutFLARE_GEMMA4_TEST_SNAPSHOT/tokenizer.json, and also returns if the python probe or template export fails (if !status.success() { return; }).geometry_matches_the_hugging_face_processoris a hard-coded expected table, not a live HF comparison.
Both silent returns count as passes, so "45 passed" cannot distinguish run parity from skipped parity. AGENTS.md #required-pr-descriptions item 4: "Keep material failures, skipped checks, and measurement limitations visible"; prose skill: "State evidence as conditions, measurement, result, and conclusion... disclose missing hardware, inputs, and unrun checks". Fix: say which of the 45 ran the HF comparison and which skipped, or mark skips (#[ignore]/eprintln) and report counts separately.
#2 [high] Finding: compatibility claim and unrelated persistent_workers evidence
PR #483 description, "Claimed result": "... Existing cores and non-Gemma image profiles remain wire-compatible and unaffected." No evidence item loads a previously exported core or exercises a non-Gemma profile; the evidence list contains only unit-test runs. AGENTS.md #required-pr-descriptions: "Remove process assurances that add no technical evidence"; docs/design-review.md principle 13 requires previous cores be "validated through loading and serving". Fix: either cite the core-loading check or state the compatibility claim as unverified.
Also: evidence bullet "plus Python runtime_core_pb2 round-trip verification for ImageSettings.gemma4 and Execution.persistent_workers" — Execution.persistent_workers is from #430 (merged 66bf6d03), unrelated to this diff, and is an unexplained reference (prose skill: no false definite references / resolve references). Remove it or explain.
Related disclosure gap: ignition/preparation/runtime_core_pb2.py header goes from "Protobuf Python Version: 7.36.2" to 7.36.1 (and ValidateProtobufRuntimeVersion arg 2 -> 1), while pyproject.toml pins protobuf>=7.36.2. A regeneration downgrade is a material change to a checked-in generated artifact and is not mentioned (AGENTS.md item 2: "Identify material numerical, compatibility, and resource-lifetime changes"; helios/manifest.md:465-472 documents the regeneration command).
#3 [high] Findings: description structure and missing docs for the new profile
Description prose defects in PR #483 (against AGENTS.md #required-pr-descriptions and .agents/skills/repo-prose/SKILL.md):
-
Why section gives mechanism, not causality: "Previously, Helios lacked a Gemma 4 image preparation profile, ...
prepare_image_inputsdid not populatedata.spans...". AGENTS.md item 1 requires the affected workflow and "the concrete defect, cost, or missing capability" plus "why it matters and why the chosen approach addresses it". Current text lists absences. Missing: which workflow fails without it (Gemma 4 multimodal checkpoints cannot be served by Helios at all; spans absence would let a prefill chunk split an image envelope sohelios/src/model/packing.rs:623-625returns "prefill splits an atomic image span" at serve time). It also does not say why the Bracketed layout can absorb 3x3 while remaining model-agnostic (patches_per_feature is prepared metadata), which is the design argument reviewers need. -
"What changed" over-inventories files as a bullet list and bundles two independent behaviours — the atomic-span population in
helios/src/model/prompt.rs:137-151applies to every span-declaring layout, not Gemma 4 specifically, and its before/after effect (which layouts previously failed) is not stated. AGENTS.md item 2: "A file list or a label ... does not explain what was done"; "Make the before/after explicit". -
Claimed result mixes an implementation inventory ("decodes, resizes, normalizes, packs, and validates") with the result. The measurable result (does a Gemma 4 image request now admit and produce a prompt that matches the checkpoint processor) is only implied.
-
Section headings "Why / What changed / Claimed result / Supporting evidence and limitations" are fine (headings not required, not forbidden), and the four parts are present and in order — this part passes.
-
"Branch logistics" block repeats repository/branch/commit/base — merge logistics only; AGENTS.md allows logistics last, so acceptable, but the base commit is already in the evidence preamble ("Verified on base 6d6fe0c6"), which is duplicated.
-
Tone/claims: "orthogonal", "no model-identity branching in upload packing" are design claims not evidenced in the evidence list. "Existing cores ... unaffected" unsupported (see entry 2).
-
Line-level prose: helios/src/frontend/images/gemma4.rs commits to a "// Gemma 4 patch vectors interleave RGB per pixel: (y, x, channel)." — that is a genuine invariant comment, acceptable. But gemma4.rs
SUPPORTED_SOFT_TOKENSand the magic validation constants (patch_size > 64, pooling > 16) have no comment explaining why those bounds; repo-prose skill: "Comments explain invariants, intent, and non-obvious constraints". Minor/nit. -
Doc updates absent: docs/runtime-core-design.md:226-233 enumerates per-profile frontend image settings ("Qwen image settings contain ... MiMo ... DeepSeek ...") and docs/runtime-core-design.md:206-210 states frontends are data not model identity; he similar enumerations in helios/model-contract.md:224-254. A new image preparation kind and a new ImageSettings oneof variant are not documented anywhere. AGENTS.md: docs are present-state specs; "Documentation is a present-state specification" and new enum/profile additions should appear. Also helios/README.md:698-745 "Native image preparation" lists the profiles; Gemma 4 is missing. This is a should-fix for a change that adds a served image profile.
#4 [high] Finding: new Gemma 4 image profile missing from the docs that enumerate profiles
Repository docs enumerate the image preparation profiles; PR #483 adds ImagePreparationKind::Gemma4 (helios/src/model/contract.rs:68) and ImageSettings oneof tag 11 (helios/proto/runtime_core.proto:522) without updating them:
- helios/README.md:702-704: "Profiles cover Qwen, MiMo, patch-merge, DeepSeek, DeepSeek row-major, Moonvit, Step, RADIO, and GLM inputs." — Gemma 4 missing.
- docs/runtime-core-design.md:226-233: "Qwen image settings contain ... MiMo ... DeepSeek's image profile has fixed geometry validated by Ignition" — no Gemma 4 entry, and no mention that Bracketed now derives patch width from patches_per_feature.
- helios/model-contract.md:224-254 "Frontend implementations" enumerates image preparation/layout selectors and states layout data declares feature IDs and atomic spans; a new preparation profile and its geometry/pooling settings belong here.
- docs/TODO.txt is where unresolved work goes (AGENTS.md:57-58); nothing added there.
AGENTS.md:52-56 and repo-prose SKILL.md:26 ("Documentation is a present-state specification"). Severity: should fix (docs, not wire behavior).
#5 [high] Line-level code-prose observations (in-lens) with severities
Files/lines verified for the prose-lens write-up of PR #483 (head f2340e42, base 6d6fe0c6, 13 files, +732/−164):
In-lens code prose (comments/docstrings) checked in context:
- helios/src/frontend/images/gemma4.rs:8 module doc "//! Gemma 4 area-bounded resize, interleaved RGB patch packing, and envelopes." — clear, cites the three behaviours.
- gemma4.rs:11
const SUPPORTED_SOFT_TOKENS: [usize; 5] = [70, 140, 280, 560, 1120];and gemma4.rs:33-41 validation (patch_size > 64,pooling_kernel_size > 16) — no comment says where these bounds come from (checkpointmax_soft_tokensset and the Gemma 4 processor's allowed values). repo-prose SKILL: "Comments explain invariants, intent, and non-obvious constraints". Nit. - gemma4.rs:134 "// Gemma 4 patch vectors interleave RGB per pixel: (y, x, channel)." — good invariant comment.
- gemma4.rs:159, 178 "side_multiple"/"max_patches" — derived names explain themselves.
- Error strings: gemma4.rs:37 "invalid Gemma 4 image settings"; gemma4.rs:57/78 "image resizes below one Gemma 4 patch group" / "Gemma 4 resize exceeds the soft-token budget" (both say what failed) — fine. packing.rs:20 "unsupported bracketed patches_per_feature" — names the field, fine; packing.rs:491 renamed "invalid temporal patch-merge image extent" → "invalid bracketed patch-merge image extent": "bracketed" is an ImageLayoutKind name, consistent with docs/runtime-core-design.md:206-210 (enums are the identity). Acceptable, but note "bracketed" is used only here as prose for a layout that the README (helios/README.md:703) calls "patch-merge"; slight terminology drift.
- patch_merge.rs:10 "/// Start/feature/end token envelope shared by enveloped image layouts." — self-referential ("enveloped ... envelope"); minor wording nit. patch_merge.rs:27 "invalid image envelope tokens" — fine.
- conditioned.rs:192 adds
Profile::Gemma4(_) => 768to a pixel-width match with no comment; the magic widths (1536/768/1176/1200) are pre-existing undocumented magic. Nit only, pre-existing pattern. - ignition/preparation/frontend.py:113-137 gemma4 profile: no docstring for the new branch; the surrounding branches (padded_grid:99, glm, mimo:213) carry explanatory comments (e.g. line 99 explains why
sizeis not a resize target; line 213 says the frontend consumes packaged values rather than fixing them). The gemma4 branch's fixed tokens"<|image|>","<|image>","<image|>"and fixed vision dims have no note saying they are the checkpoint's canonical values rather than console defaults, so a reader cannot tell why they are hard-coded. Should fix, small.
Not in lens (leave to other reviewers): whether bracketed_patch_geometry maps 4→1176 / 9→768 correctly, span population correctness, protobuf/oneof compat, the 3×3 pool math.
Note also docs/cli-design.md:749 lists a gemma4 sampling row and docs/model-preparation.md:345 lists Gemma 4 checkpoints, i.e. Gemma 4 text serving is documented; the image profile is the only undocumented half.
#7 [high] Run 2 report: prior blockers verified resolved; remaining prose findings
Prose re-review, PR #483, head 2b4a31e (base main 27716185), 36 files
Rules: AGENTS.md:43-70 (required prose review), :72-140 (four mandatory description parts; :103-112 evidence, :110-112 reproduction must identify inputs; :129-132 no process assurances), :52-60 (documents are present-state specs; support as present qualification; TODO.txt for unrun checks), .agents/skills/repo-prose/SKILL.md:26-35 (docs are present-state specs, no changelog), :35-37 (evidence = conditions/measurement/result/limits), :40-43 (commits/PRs state problem, behavior, compat, validation).
Verified resolved since run 89 (do not re-raise)
- Silently-returning HF tests: now
#[ignore = "requires FLARE_GEMMA4_TEST_SNAPSHOT"](gemma4.rs:374-375) and#[ignore = "requires .venv with transformers Gemma4ImageProcessor"](gemma4.rs:449-450), both with hard asserts. New unconditional fixture testcanonical_processor_pixels_positions_and_resize(gemma4.rs:266-333) reads checked-intests/frontend/gemma4_images.json(8 cases, 280 and 1120 soft tokens; hashes for pixels/positions/resized) generated bytests/frontend/generate_gemma4_image_fixtures.py. Headline parity claim is now backed. runtime_core_pb2.py"downgrade": main also carriesProtobuf Python Version: 7.36.1(read at ref=main, line 5), so nothing regressed relative to main; drop the earlier finding.- Atomic spans: emission moved to
layouts/bracketed.rs:52-88,106gated onatomic_spans(threaded frommodel/prompt.rs:52-65); the sharedprompt.rsfallback is gone; testbracketed_layout_emits_atomic_spans_only_when_contract_declares_them(prompt.rs:1172-1282) covers span-bearing, 64-aligned-too-small chunk, and no-span (MiniMax) cases. - Description now lists the load-path narrowings (positive-square
patches_per_feature; legacypatch_features == 0Gemma 4 cores rejected with re-export error), matchingpacking.rs:18-30andserver/config.rs:443-470. patch_merge.rs:10-11doc comment,packing.rs:491error rename,helios/README.md:709-719Gemma 4 paragraph,docs/runtime-core-design.md:181-197patch_features,docs/TODO.txt:331-338,helios/model-contract.md:82all added as asked.Execution.persistent_workersstray evidence reference removed from the description.
Remaining findings
Should fix 1 — helios/README.md:721-728 contradicts the Gemma 4 paragraph above it
"process produces packed pixel_values[N,1536] float32 ... Patch features are ordered by channel, temporal copy, pixel row, and pixel column; patches are ordered by 2×2 spatial merge blocks." After :713-719 documents Gemma 4 as 768 floats with no temporal copy and 3×3 pooling, these unqualified sentences read as the shared contract. Fix: scope them ("For the Qwen and MiMo profiles, ...").
Should fix 2 — docs/runtime-core-design.md:233-240 still omits the new profile
Paragraph enumerates "Qwen image settings contain ... MiMo ... DeepSeek's image profile has fixed geometry validated by Ignition" and is where a reader learns which settings each preparation kind consumes; Gemma 4 (patch_size, pooling_kernel_size, max_soft_tokens, envelope tokens) is absent. Also true of padded-grid/PatchMerge, but this PR adds the new kind, so it belongs here (AGENTS.md:52-56).
Should fix 3 — description evidence command cannot be run as written
"FLARE_GEMMA4_TEST_SNAPSHOT=<gemma-4-31B-it@842da379> cargo test ... --ignored --exact frontend::images::gemma4::tests::checkpoint_tokens_expand_the_image_envelope ..." uses a placeholder where a path is required; the test also needs tokenizer.json and tokenizer_config.json in that directory (gemma4.rs:376-386). AGENTS.md:110-112: reproduction must identify required inputs directly or by precise reference; placeholders alone do not.
Should fix 4 — the new fixtures are undocumented
helios/README.md:772-789 is the section explaining image fixture provenance (qwen38 generators, pinned Transformers/PyTorch/Torchvision/Pillow versions, "SHA256 checks compare every resized RGB byte..."). It names only tests/frontend/qwen38_images.json and generate_image_fixtures.py; gemma4_images.json and generate_gemma4_image_fixtures.py, which back the PR's headline parity claim, appear nowhere in the docs, so their provenance and regeneration command are not reproducible from the repository.
Nit 1 — gemma4.rs:30-38 one opaque error for seven checks
"invalid Gemma 4 image settings" covers zero/oversized patch_size and pooling, unsupported max_soft_tokens, pooling² != patches_per_feature, and patch-budget overflow; the patch_size > 64 / pooling_kernel_size > 16 bounds (:32-33) are still unexplained while :11-13 now explains only the soft-token list.
Nit 2 — bracketed.rs:57-65 error claims a check it does not make
"bracketed image span is missing envelope markers" fires on start == 0 || end >= len (bounds), not on marker identity; the start/end token match is enforced later by validate_prompt_data (model.rs:441-446).
Nit 3 — frontend.py:123 duplicates the soft-token allowlist silently
max_soft_tokens not in (70, 140, 280, 560, 1120) mirrors gemma4.rs:13 SUPPORTED_SOFT_TOKENS with no comment naming the source or the mirror; the Rust side names HF, the Python side does not.
Nit 4 — description precision on the regenerated binding
"Regenerated ignition/preparation/runtime_core_pb2.py with libprotoc 36.1" does not match the file header's Protobuf Python Version: 7.36.1 (runtime version, not compiler), and the header line is unchanged from main.
Nit 5 — commit message has no compatibility/validation statement
Single commit 2b4a31e "Add Gemma 4 image preparation, Bracketed patch-width metadata, and atomic spans" names behaviours only (SKILL.md:40-43); compat detail lives in the PR description.
Not in lens / left to others
Pack arithmetic correctness, span semantics in the scheduler, protobuf oneof compatibility, max_soft_tokens vs prefill_chunk_size enforcement behaviour (now tested at config.rs:935-1024).
#8 [high] Research summary
Re-reviewed PR #483 at head 2b4a31e (36 files) through the prose lens against AGENTS.md and .agents/skills/repo-prose/SKILL.md (not opened). Most of the previous blocking items are genuinely fixed: the Hugging Face comparison tests are now #[ignore]d with hard assertions instead of silent returns, an unconditional checked-in fixture test (tests/frontend/gemma4_images.json, 8 cases at 280 and 1120 soft tokens) backs the parity claim, atomic spans moved into layouts/bracketed.rs with span-bearing / too-small-chunk / no-span tests, the pybind "downgrade" is identical to main, and the docs, TODO entry, and description corrections were all made.
Remaining in-lens findings are no longer blocking: helios/README.md:721-728 still states 1536-wide channel/temporal/2×2 ordering unqualified right under the new Gemma 4 paragraph; docs/runtime-core-design.md:233-240 still enumerates image-settings contents without Gemma 4; the description's --ignored reproduction command uses a placeholder path where a real snapshot directory (with tokenizer files) is required; and the new Gemma 4 fixtures/generator are absent from the README's fixture-provenance section. Nits: the single opaque invalid Gemma 4 image settings error and the still-unexplained patch_size > 64 / pooling > 16 bounds, a bracketed span error that claims a marker check it does not perform, the uncommented soft-token allowlist duplicated in frontend.py, the "libprotoc 36.1" wording versus the file's 7.36.1 runtime header, and a commit message without compatibility/validation. Details are in scratchpad entry #7.
#9 [high] Verbatim quotes and citations for the final report of run 2
Quotes and cites for PR #483 prose report (head 2b4a31e)
Verdict shape: previous blockers resolved; remaining items should-fix (prose/docs) and nits. Nothing blocking in this lens.
Q1 helios/README.md:709-728 (verbatim)
- :709 "GLM, padded-grid, and Gemma 4 inputs."
- :713-719 "The Gemma 4 processor uses area-bounded RGB8 bicubic-antialias resize to multiples of
patch_size * pooling_kernel_size(48 px for 16×16 patches and 3×3 pooling), packs interleaved(y, x, channel)float32 patch vectors of width3 * patch_size²(768) scaled by1/255, emits[x, y]patch coordinates, and reuses the bracketed start/feature/end token envelope; when the prepared contract declaresimage_tokens.span, the bracketed layout emits atomic spans covering each envelope." - :721-725 "
processproduces packedpixel_values[N,1536]float32, image grids[1,H,W], vision positions[N,2]int64, interpolation indices[N,4]int64 and weights[N,4]float32, and per-image cumulative patch offsets int32. Patch features are ordered by channel, temporal copy, pixel row, and pixel column; patches are ordered by 2×2 spatial merge blocks." → Contradiction: the unqualified 1536 / temporal-copy / 2×2 sentences immediately follow the Gemma 4 (768, no temporal copy, 3×3) paragraph. Fix: scope to Qwen/MiMo.
Q2 docs/runtime-core-design.md:233-240 (verbatim)
"FrontendSettings contains EOS token IDs, the special-token strings used by the chat template, and optional image settings. Qwen image settings contain resize area limits, learned-position geometry, and image/video token IDs. MiMo image settings contain resize limits and channel normalization. DeepSeek's image profile has fixed geometry validated by Ignition."
→ The enumeration a reader uses to learn what each preparation kind consumes still omits Gemma 4 (patch_size, pooling_kernel_size, max_soft_tokens, image/start/end tokens). AGENTS.md:52-56 (documents specify the architecture; state support as present qualification).
Q3 Description reproduction command
"FLARE_GEMMA4_TEST_SNAPSHOT=<gemma-4-31B-it@842da379> cargo test ... --ignored --exact frontend::images::gemma4::tests::checkpoint_tokens_expand_the_image_envelope frontend::images::gemma4::tests::native_pixels_and_positions_match_the_checkpoint_processor"
→ <gemma-4-31B-it@842da379> is a placeholder where a filesystem path is required; the test needs a directory containing tokenizer.json and tokenizer_config.json (gemma4.rs:376-386, :386-412) and ../.venv/bin/python for the second test (:452-457). AGENTS.md:110-112 requires reproduction commands to identify required inputs directly or by precise reference; placeholders alone do not explain it.
Q4 Fixtures undocumented
helios/README.md:772-789 is the fixture-provenance section; it names only tests/frontend/qwen38_images.json and generate_image_fixtures.py, with pinned Transformers/PyTorch/Torchvision/Pillow versions, and ends "These checks qualify CPU preparation; vision graph execution and decoder consumption require separate model integration." The PR's new tests/frontend/gemma4_images.json (257 lines, 8 cases) and tests/frontend/generate_gemma4_image_fixtures.py (94 lines) are mentioned in no document, so their provenance (which checkpoint/Transformers revision produced the hashes) and regeneration command are not reproducible from the repo, though the PR's headline claim rests on them.
Nits (verified)
- gemma4.rs:30-38 single message "invalid Gemma 4 image settings" for seven distinct conditions; :32-33
patch_size > 64/pooling_kernel_size > 16still unexplained (only SUPPORTED_SOFT_TOKENS at :11-13 is now explained). - bracketed.rs:57-65 "bracketed image span is missing envelope markers" fires on
start == 0 || end >= expanded.token_ids.len()— a bounds test; marker identity is enforced later at model.rs:441-446 (tokens[s.start] != span.start_token || tokens[s.end - 1] != span.end_token). - frontend.py:123
max_soft_tokens not in (70, 140, 280, 560, 1120)duplicates gemma4.rs:13SUPPORTED_SOFT_TOKENSwith no comment naming either the source or the mirror. - Description says "Regenerated ... with
libprotoc 36.1"; runtime_core_pb2.py:5 says "Protobuf Python Version: 7.36.1" (a runtime version, not the compiler), and that header line is byte-identical to main (verified by reading the file at ref=main). - Commit 2b4a31e subject names only the three behaviours; no compatibility impact or validation (SKILL.md:40-43). Acceptable because the PR description carries it.
Explicitly checked and fine (so the report can say so)
- gemma4.rs:6 module doc; :134 ": Gemma 4 patch vectors interleave RGB per pixel: (y, x, channel)"; :150 comment; errors at :30/:57/:78, packing.rs:20/:498 name the failing field.
- patch_merge.rs:11-12 new doc comment names both profiles; runtime-core-design.md:181-192 documents
patch_featuresand0 → 1176; model-contract.md:82 documents it in the vision row; docs/TODO.txt:331-338 records the recipe dependency, E2B/E4B/26B-A4B/31B qualification, and the partial-span prefix-cache audit; docs/runtime-core-design.md/README/model-contract all updated as previously requested.
#11 [high] Report of 2026-11-25, run 611 — verdict: no blocking, nits only
Prose review — PR #483 at head ab9a432b (38 files, +2490/−251), base main 27716185
Rules applied: AGENTS.md:43-70 (required prose review), AGENTS.md:72-140 (four-part PR description), AGENTS.md:110-112 (reproduction commands identify inputs), AGENTS.md:188-199 (no unsolicited churn; do not present scaffolding as supported), AGENTS.md:431-444 (core compatibility), .agents/skills/repo-prose/SKILL.md:13-46 (present-state spec, no journey, scale detail to change).
Verdict: no blocking, no should-fix. Five nits.
Prior round's four should-fixes — verified resolved in the diff
- README contradiction FIXED. helios/README.md:721-724 now reads "For Qwen,
processproduces packedpixel_values[N,1536]... (other profiles report their own per-patch width viaImageProcessor::patch_features())". The Gemma 4 paragraph (:713-719) is no longer contradicted. "For Qwen" is also the accurate scope: interpolation tensors are Qwen/Moonvit/Step/Radio/PaddedGrid only (conditioned.rs:189-192), and MiMo does not produce them. - docs/runtime-core-design.md FIXED. :237-239 adds "Gemma 4 image settings contain patch and pooling
geometry, the soft-token budget, and the validated envelope token strings (
image_token,start_token,end_token)."patch_featuresdocumented at :184-190, bootstrap checks at :191-194 (matches server/config.rs:443-489). - Fixture provenance FIXED. helios/README.md:798-807 now documents
tests/frontend/gemma4_images.json: transformers 5.23.0, torch 2.14.1+cu132, torchvision 0.29.1+cu132,google/gemma-4-31B-it@842da379..., 8 cases at max_soft_tokens 280/1120, plus the.venv/bin/python tests/frontend/generate_gemma4_image_fixtures.py "$SNAPSHOT" ...command. Versions agree with pyproject.toml:22-24. Fixture is now consumed by Rust (gemma4.rs:315-381) and by tests/preparation/test_frontend_gemma4.py:187-225 (processor + model blocks incl. recorded ids). - Description evidence FIXED. The
--ignoredblock now says "not part of CI", requires a local snapshot directory containingtokenizer.jsonandtokenizer_config.jsonfromgoogle/gemma-4-31B-itat 842da379, and passesFLARE_GEMMA4_TEST_SNAPSHOT=/path/to/gemma-4-31B-it-snapshot(a real path form, not<repo@rev>). The second (native_pixels_...Python-IPC) test was deleted, so the.venvrequirement is gone. Matches gemma4.rs:422-468 (reads tokenizer.json, tokenizer_config.json through test_support::tokens, writes its own temp Jinja template with a Drop guard at :443-448). The pb2 version nit is also gone: description now says "(Protobuf Python Version: 7.36.1, pure descriptor-only diff)", matching runtime_core_pb2.py:5. The gemma4.rs load-error nit is gone: :27-71 splits by condition, naming field and both values, with :26 explaining the 1..=64 / 1..=16 wire caps. The bracketed.rs message nit is gone: :60 now "bracketed image feature run is outside the expanded prompt", matching the bounds test at :59.
Description accuracy spot-checks (all verified against code)
- "a span-declaring
Bracketedimage fails per-request atvalidate_prompt_data": main model.rs:436-454 errors "image token spans do not match their declared boundaries" because main's Bracketed layout emitted no spans; current model.rs:451-469 + layouts/bracketed.rs:57-65,86-88 fix it. - "per-request chunk-size rejections": main model.rs:421-423
s.len() > prefill_chunk_size. Now load-time: server/config.rs:473-486. - "
Bracketednow requires a positive-squarepatches_per_feature": packing.rs:16-24 square_merge_side. - "Gemma 4 core with patch_features == 0 rejected with an actionable error": server/config.rs:449-455.
- "20th tag": ImagePreparationKind::Gemma4 = 11 appended (model/contract.rs), ImageSettings tag 11, VisionCapacity.patch_features tag 6 with #[serde(default)] (build.rs:53-56).
- factually correct: 8 fixture cases, max_soft_tokens in (70,140,280,560,1120) in both languages (gemma4.rs:13, frontend.py:132).
Nits (5)
N1. Description "Claimed result": "Helios natively decodes, resizes, normalizes, packs, and validates
Gemma 4 images". The Gemma 4 profile does not normalize: frontend.py:124-127 requires
do_normalize: false, image_mean: [0.0]*3, image_std: [1.0]*3, and gemma4.rs:195 applies only
* (1.0/255.0); README:716 correctly says "scaled by 1/255". Fix: "decodes, resizes, rescales by
1/255, packs, and validates" (AGENTS.md:88-94, identify numerical behavior precisely).
N2. helios/README.md:804-807 reuses $SNAPSHOT for a different checkpoint than :784-791, where the same
variable names the Qwen3.8 snapshot. Nothing local defines the referent for the Gemma 4 command
(SKILL.md:17-19: false definite references need a locally introduced, unambiguous referent).
Fix: GEMMA4_SNAPSHOT, or state the directory in the sentence at :798-802.
N3. ignition/preparation/frontend.py:131-133 hard-codes (70, 140, 280, 560, 1120) with no comment that
gemma4.rs:11-13 mirrors it as SUPPORTED_SOFT_TOKENS; the Rust copy cites Hugging Face as the
source, the Python copy cites nothing, so the pair can drift silently. Fix: one comment naming the
source and the mirror.
N4. Two tests restate the bit-exact fixture already pinned by SHA-256. gemma4.rs:383-402
geometry_matches_the_hugging_face_processor lists 9 shapes of which 7 ((1,1), (672,672),
(1008,672)/(91,37), (1920,1080), (10,3000), (3000,10)) are fixture rows in
tests/frontend/gemma4_images.json:126-238; only (100,3000) and (3000,100) are unique.
gemma4.rs:404-420 pixels_interleave_rgb_and_positions_are_xy restates the 91x37 case, whose
pixels and positions hashes are pinned at gemma4_images.json:155-156. AGENTS.md:188-193 (no
unsolicited churn) and :194-199 (tests exercise the contract, not restate it).
N5. Commit ab9a432b carries only its subject line: "Add Gemma 4 image preparation, Bracketed
patch-width metadata, and atomic spans" — no compatibility statement or validation, though it
narrows the load path (positive-square patches_per_feature, patch_features re-export) and adds
wire tags (SKILL.md:40-43). Acceptable only because the PR description carries both; noting last.
Doc/code prose checked and fine (so the report is honest)
gemma4.rs:6 module doc; :11-13 source comment; :182 interleave invariant comment; :26 wire-cap comment;
:27-71 error messages name field and both values; :115/:127 geometry errors name the budget; :161/168
overflow errors; patch_merge.rs:10-12 Envelope doc names both profiles; model.rs:51,72-73 and
:89 (is_multiple_of(3)) doc the zero fallback; model-contract.md:82 vision row;
docs/TODO.txt:331-337 records the recipe dependency, E2B/E4B/26B-A4B/31B qualification and the
partial-span cache audit; docs/runtime-core-design.md:184-194, 237-239; helios/README.md:709, 713-719,
721-724, 798-807; contract.py:111-115 docstring documents patch_features authoring.
#12 [high] Research summary
Re-reviewed PR #483 at head ab9a432b through the prose lens against the charter, AGENTS.md:43-140, AGENTS.md:188-199/431-444 and .agents/skills/repo-prose/SKILL.md (not opened). All four should-fix items from the previous round are verified fixed in the diff: helios/README.md:721-724 now scopes the 1536/temporal-copy/2×2 paragraph to Qwen and points at ImageProcessor::patch_features(); docs/runtime-core-design.md:237-239 now enumerates the Gemma 4 settings; helios/README.md:798-807 documents tests/frontend/gemma4_images.json with pinned Transformers/Torch/Torchvision, the checkpoint revision and a regeneration command; and the description's --ignored block now requires a real snapshot path with the two tokenizer files and states the run is not CI. The earlier nits on gemma4.rs load errors, the bracketed.rs span message and the libprotoc/7.36.1 mismatch are also gone.
What remains is five nits, no blocking and no should-fix: the description's "claimed result" says Helios "normalizes" Gemma 4 images when the profile requires do_normalize: false and applies only 1/255 (README says "scaled by 1/255" correctly); helios/README.md:804-807 reuses $SNAPSHOT for a different checkpoint than the Qwen command 20 lines above with no local definition; ignition/preparation/frontend.py:131-133 mirrors gemma4.rs:13's soft-token allowlist with no note of the source or the mirror; two gemma4.rs tests (383-402, 404-420) restate shapes and hashes already pinned bit-exactly in the checked-in fixture; and the single commit carries only its subject line with no compatibility or validation note, which the description covers.
I also spot-checked the description's causal claims against main: the validate_prompt_data failure on a span-declaring Bracketed image and the per-request prefill_chunk_size rejection both exist on main (helios/src/model.rs:421-423,436-454 at main) and are now handled at load time, so the "Why" section is accurate. Full detail with line cites is in scratchpad entry #11.
#13 [high] Verbatim quotes for the run-611 report (resolved passages and remaining nits)
Verbatim quotes, PR #483 @ ab9a432b
Resolved (quote the new text)
- helios/README.md:721-724 — "For Qwen,
processproduces packedpixel_values[N,1536]float32, image grids[1,H,W], vision positions[N,2]int64, interpolation indices[N,4]int64 and weights[N,4]float32, and per-image cumulative patch offsets int32 (other profiles report their own per-patch width viaImageProcessor::patch_features())." - docs/runtime-core-design.md:237-239 — "Gemma 4 image settings contain patch and pooling geometry, the
soft-token budget, and the validated envelope token strings (
image_token,start_token,end_token)." - helios/README.md:798-807 — "Gemma 4 fixtures in
tests/frontend/gemma4_images.jsonpin Transformers5.23.0, PyTorch2.14.1+cu132, Torchvision0.29.1+cu132, andgoogle/gemma-4-31B-itat revision842da3794eaa0b77d5f08bae87a17459d91ff475across 8 bit-exact SHA256 cases (max_soft_tokens280 and 1120), regenerated with:" + fenced.venv/bin/python tests/frontend/generate_gemma4_image_fixtures.py "$SNAPSHOT" tests/frontend/gemma4_images.json - gemma4.rs:26-32 — "// Defensive wire caps prevent pathological patch/pooling allocations from
malformed payloads." then "Gemma 4 patch_size ({}) must be in 1..=64"; :52-59 pooling-area message
names
pooling_kernel_size, the square andlimits.patches_per_feature; :65-70 the patch-budget message namesmax_soft_tokens, the area, the product andmax_patches_per_image. - layouts/bracketed.rs:59-60 —
if start == 0 || end >= expanded.token_ids.len() { return Err( "bracketed image feature run is outside the expanded prompt") }(matches the bounds test).
Remaining nits (quote verbatim)
- Description, "Claimed result": "Helios natively decodes, resizes, normalizes, packs, and validates
Gemma 4 images" — but frontend.py:124-127 requires
do_normalize: False,image_mean: [0.0]*3,image_std: [1.0]*3, and gemma4.rs:195 applies onlypixels[offset + channel] as f32 * (1.0 / 255.0). helios/README.md:716 states it correctly: "scaled by1/255". - helios/README.md:804-807 reuses
$SNAPSHOTafter :785-790 uses the same name for the Qwen3.8 snapshot ("--bin test_images -- "$SNAPSHOT" tests/frontend/qwen38_images.json"); no local definition for the Gemma 4 command (SKILL.md:17-19 false definite references). - frontend.py:131-133 —
if type(max_soft_tokens) is not int or max_soft_tokens not in (70, 140, 280, 560, 1120):with no note of gemma4.rs:11-13SUPPORTED_SOFT_TOKENS(whose comment names Hugging Face as the source). - gemma4.rs:383-402
geometry_matches_the_hugging_face_processorrows (1,1) (672,672) (1008,672) (91,37) (1920,1080) (10,3000) (3000,10) duplicate gemma4_images.json:126-238 cases; only (100,3000)=[1,273,9]/273 and (3000,100)=[1,9,273]/273 are unique. gemma4.rs:404-420 restates the 91x37 case whosepixels/positionshashes are pinned at gemma4_images.json:155-156. - Commit ab9a432b body: subject only ("Add Gemma 4 image preparation, Bracketed patch-width metadata, and atomic spans") — no compatibility/validation (SKILL.md:40-43); description covers it.
Why-section accuracy (verified against main)
main helios/src/model.rs:436-454 errored "image token spans do not match their declared boundaries"
because main's layouts/bracketed.rs never pushed data.spans; main :421-423 errored when
s.len() > config.limits.prefill_chunk_size. Both now handled at load (server/config.rs:449-455
patch_features re-export error; :473-486 prefill_chunk_size / span.max_tokens bounds).