#1 [high] [should fix] Bracketed patch geometry is a count-keyed model allowlist in shared packing
Lens B (architecture/scope). helios/src/frontend/images/packing.rs:16-22 (new bracketed_patch_geometry):
4 => Ok((2, 1176)),
9 => Ok((3, 768)),
_ => Err("unsupported bracketed patches_per_feature")
Used at packing.rs:39-42 (tensor_layout) and packing.rs:480-481,486,497 (bracketed).
Why it matters: the patch vector width is 3*patch_size*patch_size (1176 = 321414 for the existing temporal patch-merge, 768 = 316*16 for Gemma 4), i.e. a property of the preparation profile's patch size, while the merge stride is sqrt(patches_per_feature). The table collapses two independent quantities into one lookup keyed on a bare count in shared upload packing. That is a model-identity allowlist expressed as arithmetic: patches_per_feature == 9 is "Gemma 4" here. AGENTS.md (architecture bullet, ~l.358-364) requires "Every member must have a meaning independent of model identity, and its consumers must implement shared behavior from actual data, geometry, and dependencies"; design-review.md principle 1 and 3 say the same (limit native specialization to cache storage/graph bindings; express differences through prepared layout metadata).
Third copy of the same knowledge: helios/src/frontend/images/conditioned.rs:192 Profile::Gemma4(_) => 768, plus gemma4.rs patch_size, plus this table.
Fix: declare the patch feature width (patch_size, or features-per-patch) in the prepared vision/frontend metadata and derive both merge_side (from patches_per_feature, e.g. isqrt with a divisibility check) and patch_width (from patch_size) from actual declared data, with one owner. At minimum, compute both from declared fields instead of a match on a count.
#2 [high] [should fix] Gemma4ImageSettings never validated against vision.patches_per_feature
helios/src/frontend/images/gemma4.rs:23-38 (Processor::load): validates patch_size != 0, <= 64, pooling_kernel_size != 0, <= 16, and max_soft_tokens membership, then stores limits. ImageLimits carries patches_per_feature (frontend/images/mod.rs:54) but it is never compared with pooling*pooling. max_patches() (l.48-50) and geometry() derive tokens/patches purely from pooling.
Consequence, checkable in code: a Gemma 4 core prepared with pooling 2 (patches_per_feature = 4) but patch_size 16 emits 768 floats per patch; bracketed_patch_geometry(4) returns patch_width 1176, so packing.rs:497 slices pixel_values.get(start*1176..end*1176) and returns "truncated vision pixels" at request time — a request-time failure instead of a load-time one, and Inputs::new (model/packing.rs:92-102) accepts the buffer because the table value is larger than the packed extent. Conversely pooling 4 would emit 3072 floats/patch and the table rejects the core at load with a misleading message.
Both padded_grid and glm hardcode their merge (padded_grid.rs:31,186) and are cross-checked by validate_conditioned_inputs (model/prompt.rs:171); the new profile is the only one whose merge is data-driven and unchecked.
Fix: reject in Processor::load unless pooling*pooling == limits.patches_per_feature and 3*patch_size*patch_size equals the packed feature width the layout will expect (once finding 1 gives the latter a declared owner).