#1 [high] PR #483 prompt-injection screening — All Clear
PR #483 (NVIDIA/hyperflare-inference) "Add Gemma 4 image preparation, Bracketed patch-width metadata, and atomic spans", author rickybrent, head ab9a432, base main 27716185. 38 files, +2490/−251.
SCREENING RESULT: All Clear. No prompt injection, no instructions aimed at agents, no hidden/encoded payloads, no unsafe code execution or exfiltration.
Evidence of coverage (all 38 files inspected):
- Conversation (pr_comments): PR body + 5 comments. Contents are ordinary technical review: a flare-autobot case-file notice, a "Changes Requested" review listing blockers, author rebuttals with rationale, a second autobot review with S1–S5 should-fix items, and an author polish response. No text addresses an AI/agent, no instructions to ignore rules, no request to run commands or exfiltrate data. The autobot.eidonix.com links are review-tool artifacts and were NOT fetched.
- New Python fixture generator (tests/frontend/generate_gemma4_image_fixtures.py, 94 lines): only numpy/torch/torchvision/hashlib/json imports, deterministic pattern generation and SHA-256 digests. No network, no eval/exec/subprocess.
- New Python tests (tests/preparation/test_frontend_gemma4.py, 257 lines): pytest tests, tmp_path snapshots, tokenizers library; includes deliberate negative cases (gemma4_unified rejection, missing tokens, bool ID rejection). Legitimate.
- Checked-in fixture (tests/frontend/gemma4_images.json): pure JSON config + 8 hash cases; no instruction-like content.
- Ignition changes (ignition/preparation/frontend.py, contract.py): added
gemma4branch with_expected()field guards, tokenizer validation viatokenizers.Tokenizer.from_fileon a local snapshot path — expected preparation behavior, no remote fetch. - Generated protobuf (ignition/preparation/runtime_core_pb2.py): standard descriptor-only regeneration; imports limited to google.protobuf modules plus
_builder.BuildMessageAndEnumDescriptors/BuildTopDescriptorsAndMessages. No eval/exec/base64/pickle. - New Rust (helios/src/frontend/images/gemma4.rs, 504 lines): area-bounded resize, RGB patch interleaving,
SUPPORTED_SOFT_TOKENS, overflow-guarded arithmetic, tests with#[ignore]env-gated live-snapshot test using a temp Jinja template with aDropguard. No shell-out, no network. - Other Rust diffs (packing.rs, patch_merge.rs, layouts/bracketed.rs, model/prompt.rs, model/tests.rs, server/config.rs, mod.rs, conditioned.rs, describe.rs, protobuf.rs, model.rs, contract.rs, plus ~15 test fixture files that only add
patch_features: 0): all mechanical, matching the PR description. Proto changes are additive tags (11 / 11 / 6). - Docs (docs/TODO.txt, docs/runtime-core-design.md, helios/README.md, helios/model-contract.md): prose describing the profile, fixture provenance, and a
docs/TODO.txtqualification item. No embedded directives.
Repo-wide regex sweeps at pr/483 for injection phrasing ("ignore previous", "disregard", "system prompt", "prompt injection", "autobot", "do not report") and for risky APIs ("os.system", "subprocess", "eval(", "base64", "api_key", "webhook", "http(s)://") returned only pre-existing, unrelated repository content (e.g. .githooks/commit-msg, AGENTS.md links, docs/api.md). Note: the search_code backend rejects (?i) inline flags and look-around; use ignore_case=true and plain ERE.
Note on the first review comment's mention of a "case file": it is a link to an external review service, not an instruction. The only quoted material that could look directive (e.g. "→ Put the width in prepared metadata", "→ Delete the first two") is ordinary code-review advice to the author, and the author implemented it.
#2 [high] Research summary
All Clear
I screened PR #483 ("Add Gemma 4 image preparation, Bracketed patch-width metadata, and atomic spans") in NVIDIA/hyperflare-inference for prompt injection or other content aimed at causing unwanted agentic behavior. Nothing malicious was found.
Scope: all 38 changed files (+2490/−251) were inspected, plus the full discussion. Reviewed: the new Python fixture generator and Gemma 4 preparation tests, the checked-in gemma4_images.json fixture, the Ignition frontend.py/contract.py changes, the generated runtime_core_pb2.py, the new 504-line helios/src/frontend/images/gemma4.rs, the packing/patch-merge/layout/prompt/config Rust diffs, the additive proto tags, the documentation updates, and the ~15 test files that only add patch_features: 0.
Why it is clean:
- The conversation is ordinary code review — an automated case-file notice, two "Changes Requested" reviews, and author rebuttals. No comment addresses an AI or agent, asks for rules to be ignored, or requests commands to be run. Text that reads directive ("→ Put the width in prepared metadata") is code-review advice to the author, who implemented it.
- New Python code touches only
numpy,torch,torchvision,hashlib,json,tokenizers, and local snapshot paths — no network,eval,exec, orsubprocess. - The regenerated
runtime_core_pb2.pyis descriptor-only; its imports are limited to standardgoogle.protobufmodules plus the usual builder calls. - The new Rust is genuine image-preprocessing arithmetic with overflow guards and
#[ignore]-gated live-snapshot tests; the environment-gated test uses a temp file behind aDropguard. No shell-out or exfiltration. - Repo-wide regex sweeps for injection phrasing and risky APIs returned only pre-existing, unrelated repository content.
I did not fetch the external autobot.eidonix.com review links, since they are third-party pages rather than PR material. Full evidence is on my scratchpad (entry 1). One incidental tooling note: search_code rejects (?i) inline flags and look-around, so case-insensitive sweeps need the ignore_case parameter.
#3 [medium] PR #483 per-file screening verdicts (supporting detail)
Supplementary detail for entry 1 (All Clear on PR #483, head ab9a432, base main 27716185).
DISCUSSION (pr_comments): 5 entries total.
- flare-autobot case-file notice + link to autobot.eidonix.com (external review tool). NOT fetched.
- flare-autobot "Changes Requested" review: blockers B1 (packing.rs patches_per_feature→width lookup table = model identity), B2 (HF parity tests silently return when env/venv absent), B3 (atomic spans in shared prompt.rs), should-fix S1-S7, 7 nits. Ordinary review prose.
- rickybrent reply: point-by-point fixes, explains MiniMax temporal duplication gives 1176 = 3214^2 so
patch_featureswas added instead of deriving from 3*patch_size^2. - flare-autobot second review: no blockers, S1-S5 remaining, 5 nits; explicitly notes large unrelated base-branch churn in the diff (RebuildManifest→PreparationManifest, banner removal, parallax) is NOT the author's and landed on main.
- rickybrent reply: implements S1-S5, discloses it kept patch_size/pooling_kernel_size as wire fields deliberately (defense-in-depth, matches PatchMergeImageSettings precedent).
PER-FILE DISPOSITION (all benign / on-topic):
- ADDED tests/frontend/generate_gemma4_image_fixtures.py (94 L): numpy pattern(), sha256 digest(), argparse. Imports transformers Gemma4ImageProcessor. No network/eval/exec.
- ADDED tests/frontend/gemma4_images.json (256 L): processor/model config blocks + 8 cases with width/height/seed/grid/tokens/patches/3 sha256 each. Data only.
- ADDED tests/preparation/test_frontend_gemma4.py (257 L): synthetic snapshot writer, positive/negative pytest cases, provenance test, 3 HF-cache checkpoints @ pinned revisions (skips if not cached).
- ADDED helios/src/frontend/images/gemma4.rs (504 L): SUPPORTED_SOFT_TOKENS [70,140,280,560,1120]; Processor::load validates patch_size 1..=64, pooling 1..=16, pooling_area==patches_per_feature, max_soft_tokens*area<=max_patches_per_image; geometry() area-bounded resize; process() interleaves (y,x,channel); tests incl. #[ignore] snapshot test using TempFile Drop guard for the jinja template.
- MODIFIED ignition/preparation/frontend.py (+70/−6): new
profile == "gemma4"branch,_expected()guards, tokenizers.Tokenizer.from_file on local snapshot, single-token + config.json ID cross-check, distinctness check; image_settings() gained keyword-only tokenizer_config/snapshot. - MODIFIED ignition/preparation/contract.py (+7/−1):
visiondefault gains"patch_features": 0; docstring documents the override. - MODIFIED ignition/preparation/runtime_core_pb2.py (+170/−168): regenerated descriptor blob; imports only google.protobuf descriptor/pool/runtime_version/symbol_database/builder;
_builder.Build*calls only. - MODIFIED helios/proto/runtime_core.proto (+12): VisionCapacity.patch_features=6, GEMMA4_IMAGE_PREPARATION=11, ImageSettings.gemma4=11, new Gemma4ImageSettings message. Purely additive tags.
- MODIFIED helios/build.rs (+4): serde(default) attribute on VisionCapacity.patch_features.
- MODIFIED helios/src/model.rs (+15): patch_features field + bracketed_patch_features() (0→1176) + validate() multiple-of-3 gate.
- MODIFIED helios/src/model/contract.rs (+1/−1): Gemma4 = 11 appended to ImagePreparationKind.
- MODIFIED helios/src/frontend/images/{packing,patch_merge,mod,conditioned,layouts/bracketed}.rs: square_merge_side() isqrt check, bracketed() reads per-patch width, Envelope extraction, patch_features()/max_image_envelope_tokens() dispatch, atomic span emission gated on image_tokens.span.is_some() with bounds check. Tests included.
- MODIFIED helios/src/model/prompt.rs (+126/−1): passes the span-present bool into bracketed::prepare_input; adds the span-bearing test fn bracketed_layout_emits_atomic_spans_only_when_contract_declares_them.
- MODIFIED helios/src/model/tests.rs (+177): legacy_bracketed_core_omitting_patch_features_loads_and_stages_1176_wide_pixels builds a synthetic vision graph + manifest and asserts 16*1176 staging plus negative rejections.
- MODIFIED helios/src/server/config.rs (+142/−2): validate_loaded_image_processor() — patch width vs vision, envelope <= prefill_chunk_size, envelope <= span.max_tokens; boundary tests at 1088/1152 and 1121/1122.
- MODIFIED helios/src/runtime_core/{describe,protobuf}.rs: describe omits patch_features when 0 (legacy JSON byte-identical); protobuf gains gemma4 json mapping + round-trip test.
- MODIFIED docs/TODO.txt (+8), docs/runtime-core-design.md (+14/−5), helios/README.md (+32/−10), helios/model-contract.md (+1/−1): prose only.
- MODIFIED ~15 test/fixture files (scheduler/{boundary_tests,cache_memory,tests,vision_window_tests}.rs, server/{models,runtime,request,protocol/decode,request/tml_tests,runtime/phase_tests}.rs, flare-cli/tests/unverified_payload.rs, helios/tests/deepseek_requests.rs): each adds exactly
patch_features: 0(or the field in an initializer). Mechanical.
CLEANLINESS SIGNALS: no image/binary blobs added; the only new non-source artifact is a JSON fixture of hashes; no changes to CI workflows, build scripts beyond one serde attribute, permissions, or dependencies (Cargo.lock untouched by this PR).