Security Screening Report — NVIDIA/hyperflare-inference#483
PR: "Add Gemma 4 image preparation, Bracketed patch-width metadata, and atomic spans"
Author: rickybrent (GitHub repository association: NONE)
Head: 2b4a31e (rickybrent:core/gemma4-image-frontend) → base main @ 27716185
Size: 36 files, +2269/−240
State: open, ready for review; no reviews; no CI checks on the head commit
Key findings
- No prompt injection, no agent-directed instructions, and no suspicious payloads were found. The screening result is All Clear.
- The entire conversation consists of flare-autobot intake/review notices, one technical reply from the author, and a reference to issue #74 — no directive addressed to any AI agent or reviewer appears anywhere.
- The
#autobot:ignoreline in the bot notices is that repository review bot's standard opt-out footer, written for humans interacting with the bot. It is not an instruction to this agent, and I did not act on it. - All 36 changed files were read at head. No hidden HTML/markdown comments, no bidi or invisible-character anomalies, no obfuscation, no covert network calls, no new subprocess/eval paths in shipped code.
- The four highest-risk-looking new artifacts — the checked-in fixture JSON, the fixture generator script, the regenerated
runtime_core_pb2.py, and the newgemma4.rs— were inspected line by line and are legitimate. - Non-security concerns worth passing to the human reviewer: an external contributor's first large PR into
helios/srcandignition/preparation, design concerns already raised by an earlier autobot review, and no CI ran on head2b4a31e, so the PR's claimed test counts are unverified. These affect merge confidence, not safety.
Detail
1. Conversation and description
Conversation (pr_comments). Only:
- flare-autobot intake notice ("A case file has been opened for 483").
- flare-autobot "Full Review" notice with a Changes Requested verdict and structured blocker items (B1 patch-width table, B2 silently-returning parity tests, B3 shared span emission, plus S1–S7).
- One paragraph-level human reply from rickybrent addressing the blockers.
- A reference to issue #74.
The autobot notices end with an #autobot:ignore opt-out line. That is the repository review bot's standard footer directed at humans who want to silence its comments; it is not addressed to this agent, and nothing in it was treated as an instruction.
Description. A technical change log (why / what changed / claimed result / supporting evidence / branch logistics), matching the diff. It ends with a contact handle, "Discord: ran.cossack", which is benign. No imperative text is aimed at reviewers, models, or automated agents.
2. Searches for injected or coercive content
Repo-wide regex sweeps for the usual injection and reviewer-coercion phrasings — "ignore previous instructions", "you are …", "do not flag", "approve this", "merge this", "skip review", "prompt injection" — returned only unrelated source code (for example flare-cli/src/orbit/controller.rs:172 (not opened), "instead of following the group"). Nothing in the PR text, commit-facing markdown, or code comments attempts to steer automated behavior.
No hidden HTML comments were found in docs/ or in the .md files this PR modifies, and no bidi-control or zero-width characters were observed in the text that was read; nothing showed anomalous glyph ordering or line wrapping.
3. Per-file verdicts (all benign)
Wire and contract metadata
helios/proto/runtime_core.proto(+12): addsVisionCapacity.patch_features = 6,GEMMA4_IMAGE_PREPARATION = 11,ImageSettings.gemma4 = 11, andmessage Gemma4ImageSettings. All additive; no tag reuse.helios/build.rs(+4): one additional.field_attribute(".flare.runtime.VisionCapacity.patch_features", "#[serde(default)]").helios/src/model.rs(+5):patch_featuresfield plus anis_multiple_of(3)guard.helios/src/model/contract.rs(+1):Gemma4 = 11enum variant.helios/src/runtime_core/protobuf.rs(+60) anddescribe.rs(+10/−2): Gemma 4 profile (de)serialization andvision_jsonpassthrough ofpatch_features, plus a round-trip test.ignition/preparation/runtime_core_pb2.py: regenerated file, header still reports "Protobuf Python Version: 7.36.1" (matchingmain), diff confined to theAddSerializedFiledescriptor blob containing the newGemma4ImageSettingsmessage and GEMMA4 geometry,_globalsserialized offsets unchanged. No appended code, prints, imports, or environment access outside the generated pattern.
Runtime and layout code
helios/src/frontend/images/gemma4.rs(new, 534 lines): resize/geometry/pack/expand plus 5 tests, 2 of them#[ignore]d. The ignored parity test runs a hardcoded../.venv/bin/python -c <inline script>that writes little-endian bytes to stdout and asserts on the output; there is no interpolation of repository or environment data into a shell, and the test cannot run without the ignore flag. The ignored snapshot test writes and removes a temporary jinja template. Both are ordinary parity harnesses, not injection vectors.helios/src/frontend/images/packing.rs(+285/−6):LEGACY_BRACKETED_PATCH_FEATURES = 1176,square_merge_side()viaisqrtwith checked multiplication, width read fromVisionCapabilities; plus two behavioural tests.helios/src/frontend/images/patch_merge.rs(+154/−38):Envelopeextracted;PatchMerge::loadkeeps its validation; a new pure-Rust envelope test uses a temp BPE tokenizer understd::env::temp_dirand cleans it 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 sourced fromprocessor.patch_features().helios/src/frontend/images/layouts/bracketed.rs(+22/−2): span flushing intoPromptData.spans, gated onatomic_spans, with marker-presence errors — matching the review's request to move span emission into the layout.helios/src/model/prompt.rs(+126/−1): the Bracketed call gains anatomic_spansbool derived fromimage_tokens.span.is_some(); the remainder is a new span-behaviour test.helios/src/server/config.rs(+143/−2):validate_loaded_image_processor()— patch-width equality, 64-aligned prefill chunk bound,span.max_tokensbound, actionable re-export message; one boundary test.
Checkpoint validation and fixtures
ignition/preparation/frontend.py: Gemma 4 branch adds dict-shape guards, fixed-value expectations,Tokenizer.from_file(snapshot/tokenizer.json (not opened)), single-vocabulary-token andconfig.json(not opened) ID cross-checks, and fails closed whentokenizer_configorsnapshotis omitted. No shell invocation, no new network beyond the pre-existinghf_hub_downloadpath used by unrelated code.tests/frontend/gemma4_images.json(new, 256 lines): strictly numeric/string processor and model metadata plus 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/pathlib/numpy/torch/torchvision/transformers; readsprocessor_config.json(not opened) andconfig.json(not opened) from a CLI-supplied snapshot and writes a JSON fixture. No network, no subprocess, no eval/exec, no environment exfiltration.tests/preparation/test_frontend_gemma4.py(new, 216 lines): builds synthetic tokenizer/processor snapshots intmp_path; three parametrized cases read cached HF snapshots underHF_HOMEandpytest.skipwhen absent. Test-only, no outbound calls.
Docs and mechanical edits
docs/TODO.txt(+8): one new "[ ] Qualify Gemma 4 vision end-to-end…" backlog entry naming E2B/E4B/26B-A4B/31B plus a partial-span prefix-cache audit.docs/runtime-core-design.md(+11/−4),helios/README.md(+8/−1),helios/model-contract.md(+1/−1): prose and tables updated forpatch_features(0 = legacy 1176) and the Gemma 4 profile.- 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): a singlepatch_features: 0struct-literal line each — mechanical fixture updates.
4. Non-security observations for the human reviewer
- This is an external contributor's (association NONE) first large PR touching
helios/srcandignition/preparation, areas dominated by maintainers Luke Alonso, Martin Vit, and yatesdr on the default branch. - An earlier flare-autobot review already raised substantive design concerns (patch-width lookup table, silently-skipped parity tests, shared span emission, pinned vision tower, stale docs), and the author states they were addressed. Whether they were is an engineering-correctness question, outside this screening.
- No CI checks ran on head
2b4a31e. Every pass count asserted in the description ("47 passed, 0 failed, 2 ignored"; "54 passed"; "28 passed"; "22 passed"; "3 passed"; "202 passed") is the author's claim and is unverified here.
Open questions and what could not be verified
- Bidi / invisible-character sweeps could not be run mechanically. The code-search tool's regex engine rejected patterns using non-capturing groups,
{n}quantifiers, and\x{...}escapes, so those checks rest on directly reading the diffs and files rather than on a mechanical scan. Nothing anomalous was seen, but the sweep was not exhaustive. - No tests were executed and no CI results exist for the head commit, so the PR's behavioural claims (fixture parity, load-time rejections, existing-core loadability) are unconfirmed.
- Scope. This was a screening for prompt injection and content aimed at causing unwanted agentic behavior, plus a look for covert payloads. It is not a security audit of the bicubic resize math, the
Envelope::expandsemantics, or the atomic-span invariants, nor a judgment on whether the per-model logic belongs in the runtime given the charter's "keep the runtime small and model-agnostic" line. - Nothing in this PR attempted to instruct me or any other agent. There is no finding to report under that heading.
Screen result: All Clear.