#1 [high] PR 483 injection screening — findings
PR #483 "Add Gemma 4 image preparation, Bracketed patch-width metadata, and atomic spans" (open, author rickybrent, head 2b4a31e, base main, 36 files, +2269/−240).
Screened:
- Conversation (pr_comments): only flare-autobot intake/review notices ("A case file has been opened for 483", "Full Review" with Changes Requested), one paragraph-level human reply from rickybrent addressing blockers, and a reference to issue #74. The autobot notices contain an opt-out line "#autobot:ignore" — that is a repo review bot's standard footer aimed at humans, not an instruction to this agent, and no directive addressed to an AI agent appears anywhere.
- PR description: technical change log only; ends with "Discord: ran.cossack" (contact handle, benign).
- All 36 changed files at head. No imperative text addressed to agents/reviewers/models ("ignore previous instructions", "you are", "do not flag", "approve/merge this", "skip review", etc.). Repo-wide regex searches for ignore-previous/prompt-injection/reviewer-coercion phrasings returned only unrelated code (e.g. flare-cli/src/orbit/controller.rs:172 "instead of following the group").
- No hidden instructions in markdown/HTML: docs/ and the modified .md files contain no HTML comments; no bidi control chars found (search forms for \x{200B}/\x{202E}/\x{FEFF} were rejected by the tool's regex; no visual anomaly in the read text).
- tests/frontend/gemma4_images.json (new, 256 lines): strictly numeric/string processor+model metadata and 8 fixture cases with hex SHA-256 digests; no executable payload, no base64 blob, no URLs.
- tests/frontend/generate_gemma4_image_fixtures.py (new): imports argparse/hashlib/json/numpy/torch/torchvision/transformers, reads processor_config.json + config.json from a CLI-supplied snapshot and writes a JSON fixture. No network, no subprocess, no eval/exec, no env exfiltration.
- tests/preparation/test_frontend_gemma4.py (new): builds synthetic tokenizer snapshots in tmp_path, optional reads of cached HF snapshots via HF_HOME; test-only, no outbound calls.
- ignition/preparation/runtime_core_pb2.py: hand-checked header (still "Protobuf Python Version: 7.36.1", matches main) and tail (_globals serialized offsets, no extra statements). Diff is the descriptor AddSerializedFile blob only; contains the new Gemma4ImageSettings message and GEMMA4_IMAGE_PREPARATION geometry. No appended code, prints, imports, or env access outside the generated pattern.
- ignition/preparation/frontend.py gemma4 branch: dict-shape guards, fixed-value expectations,
Tokenizer.from_file(snapshot/tokenizer.json), single-vocabulary-token and config.json id cross-checks; fails closed when tokenizer_config/snapshot omitted. No shell, no network beyond the existing hf_hub_download path used by unrelated code. - helios/src/frontend/images/gemma4.rs (new, 534 lines): pure resize/pack/geometry code; the only process spawn is inside an
#[ignore]d parity test that runs../.venv/bin/python -c <inline script>and asserts on output — a normal parity harness, not an injection vector, and it cannot run without the ignore flag. Same pattern for the#[ignore]snapshot test, which writes a temp jinja template and removes it. - Protocol/contract/wire changes (runtime_core.proto, build.rs serde(default) attribute, model.rs VisionCapabilities.patch_features, contract.rs enum, protobuf.rs/describe.rs round-trip): additive and consistent with the description.
- Layout change in bracketed.rs / prompt.rs: atomic spans moved into the layout, gated on image_tokens.span; matches the review's request.
No suspicious prompt injection, no attempts to steer agentic behavior, no covert exfiltration or code-execution additions. Assessment: All Clear.
Context worth noting for the human reviewer (not a security issue): PR 483 is an external contributor's (GitHub association NONE) first large PR in helios/src and ignition/preparation; a prior autobot review already raised substantive design concerns (B1 patch-width table, B2 silent-return parity tests, B3 shared span emission, plus S1–S7), and the author says they were addressed. No CI checks ran on the head commit, so the claimed pass counts are unverified.
#2 [high] Research summary
Screening of NVIDIA/hyperflare-inference#483 ("Add Gemma 4 image preparation, Bracketed patch-width metadata, and atomic spans") is complete. Assessment: All Clear.
No prompt injection, no agent-directed instructions, and no suspicious payloads were found. The conversation contains only the flare-autobot intake/review notices (including its standard "#autobot:ignore" opt-out footer, aimed at humans and not addressed to this agent), one technical reply from the author, and a reference to issue #74. The description is a plain change log. Across all 36 changed files there is no imperative text aimed at reviewers/models ("ignore previous instructions", "you are…", "do not flag", "approve/merge this", "skip review"), no hidden HTML/markdown comments, and no obfuscation.
The riskiest-looking new artefacts were inspected line by line and are legitimate: the checked-in tests/frontend/gemma4_images.json holds only processor/model metadata and 8 numeric/SHA-256 fixture cases; the generator script imports only argparse/hashlib/json/pathlib/numpy/torch/torchvision/transformers and does no network, subprocess or eval work; ignition/preparation/runtime_core_pb2.py was regenerated in the expected generated-file shape (header still 7.36.1, descriptor blob only, no appended code); ignition/preparation/frontend.py adds dict-shape guards plus tokenizer lookups that fail closed; and helios/src/frontend/images/gemma4.rs is pure resize/pack/geometry code whose only process spawn sits inside an #[ignore]d parity test invoking ../.venv/bin/python on an inline script. Proto/contract/layout edits match the stated additive intent.
Only non-security context worth noting: this is an external contributor's large first PR into helios/src and ignition/preparation, an earlier autobot review raised substantive design concerns (patch-width table, silently-skipped parity tests, shared span emission, pinned vision tower, stale docs) that the author says are addressed, and no CI checks ran on head commit 2b4a31e, so the claimed test counts are unverified. That affects merge confidence, not safety.
#3 [medium] PR 483 screening — coverage gaps and per-file verdicts
Supplements entry 1 (PR NVIDIA/hyperflare-inference#483, head 2b4a31e, base main, 36 files +2269/−240, author rickybrent, GitHub association NONE).
Per-file verdicts (all benign):
- docs/TODO.txt (+8): one new "[ ] Qualify Gemma 4 vision end-to-end…" item naming E2B/E4B/26B-A4B/31B and a partial-span prefix-cache audit. Ordinary backlog entry.
- docs/runtime-core-design.md (+11/−4): prose on
patch_features(0 = legacy 1176) and bootstrap cross-checks. - helios/README.md (+8/−1), helios/model-contract.md (+1/−1): profile list and
visionrow updated for Gemma 4 / patch_features. - helios/proto/runtime_core.proto (+12): adds
VisionCapacity.patch_features = 6,GEMMA4_IMAGE_PREPARATION = 11,ImageSettings.gemma4 = 11,message Gemma4ImageSettings. All additive; no tag reuse. - helios/build.rs (+4): one more
.field_attribute(".flare.runtime.VisionCapacity.patch_features", "#[serde(default)]"). - helios/src/model.rs (+5):
patch_featuresfield,is_multiple_of(3)guard. helios/src/model/contract.rs (+1): enum variant Gemma4 = 11. - helios/src/model/prompt.rs (+126/−1): Bracketed call gains an
atomic_spansbool derived fromimage_tokens.span.is_some(); the rest is a new span-behaviour test. - helios/src/frontend/images/layouts/bracketed.rs (+22/−2): span flushing into
PromptData.spans, gated onatomic_spans, with marker-presence errors. - helios/src/frontend/images/packing.rs (+285/−6):
LEGACY_BRACKETED_PATCH_FEATURES = 1176,square_merge_side()viaisqrt+ checked mul, width read fromVisionCapabilities; plus two behavioural tests. - helios/src/frontend/images/patch_merge.rs (+154/−38):
Envelopeextracted; PatchMerge::load keeps its validation; new pure-Rust envelope test with a temp BPE tokenizer under std::env::temp_dir, cleaned up. - helios/src/frontend/images/mod.rs (+41):
Gemma4ImageSettings,Profile::Gemma4,patch_features(),max_image_envelope_tokens()dispatch. - helios/src/frontend/images/conditioned.rs (+14/−7): pixel width now from
processor.patch_features(). - helios/src/frontend/images/gemma4.rs (new, 534): resize/geometry/pack/expand + 5 tests, 2 marked
#[ignore](FLARE_GEMMA4_TEST_SNAPSHOT snapshot test;../.venv/bin/pythonparity test). The Python invocation is a hardcoded inline script writing little-endian bytes to stdout; no interpolation of repo/environment data into shell. - helios/src/server/config.rs (+143/−2):
validate_loaded_image_processor()— patch-width equality, 64-aligned prefill chunk bound, span.max_tokens bound, actionable re-export message; one boundary test. - helios/src/runtime_core/{protobuf.rs (+60), describe.rs (+10/−2)}: Gemma 4 profile (de)serialization and
vision_jsonpassthrough of patch_features; round-trip test. - Remaining ~15 files (flare-cli/tests/unverified_payload.rs, helios/tests/deepseek_requests.rs, helios/src/scheduler/*, helios/src/server/{models,request,runtime}.rs, protocol/decode.rs, runtime/phase_tests.rs, request/tml_tests.rs): single
patch_features: 0struct-literal line each — mechanical fixture updates. - tests/preparation/test_frontend_gemma4.py (new, 216): synthetic tokenizer/processor snapshots in tmp_path; three parametrized cases read cached HF snapshots under HF_HOME and
pytest.skipwhen absent.
Screening limitations to state honestly in the report:
- Tool regex engine (git grep) rejected patterns using non-capturing groups,
{n}, and \x{...} escapes, so bidi/invisible-character and some grouped-keyword sweeps could not be run mechanically; conclusions there rest on reading the diffs and files (none showed anomalous glyph ordering or wrapping). - No execution of the PR's tests; no CI ran on head 2b4a31e, so all claimed pass counts ("47 passed", "54 passed", "22 passed") are the author's, unverified.
- Screened at the file/line level, not a full security audit of the resize math or the atomic-span semantics; those are engineering-correctness questions already raised by the earlier autobot review, not injection.
- Nothing in the PR attempted to instruct me or any agent; no finding to report under that heading.