#1 [high] PR #231 screening: All Clear
PR #231 "Race a Triton tile kernel against cuBLAS for GLM's BF16 head projections" (author original-el8, COLLABORATOR; base main, head 0ba78eb; 6 files, +373/-16).
Files reviewed in full at pr/231:
- ignition/components/bf16_bmm.py (new, 1-184) — Triton kernel, Query dataclass, native_contract/native_plan, custom_op flare::bf16_bmm, query validation. No network, no subprocess, no eval/exec, no dynamic imports of external data, no file writes.
- ignition/components/linear.py (1-110) — BatchedUnquantizedProjection now delegates to bf16_bmm.declare_bmm/execute; removed local validation (moved into query_from_call).
- ignition/preparation/tuning.py (1-140) — _prepare_compiler_toolchain() moved to module import (line 66) and removed from RecordedPreparationSession.init and declare(). Only imports ignition.runtime_patches, torch._inductor config/_set_triton_libdevice_path.
- tests/components/test_bf16_bmm.py (1-44), test_bf16_bmm_cuda.py (1-123) — numeric/ULP and graph-replay tests.
- tests/preparation/test_toolchain.py (1-84) — subprocess sub-run asserting CUDAOptions extern_libs/hash identity; embedded source is self-contained and only asserts; new "import" case.
Injection sweep results:
- No instruction-like text ("ignore previous", "you are an agent", "system prompt", "disregard") in any changed file: search_code ignore_case for agent|autobot|claude|copilot|assistant|reviewer|approve|inject|ignore in bf16_bmm.py and tests/components → no matches.
- No non-ASCII / zero-width / bidi characters in changed files: search [^ -~] → only pre-existing tuning.py:533 middle dot in a display string.
- No prompt injection or third-party-directed instructions in the 3 PR comments (all by the author; categorized as kernel perf work, merge-conflict notice, repository-split triage note pointing at local-inference-lab/hyperflare-recipes as a follow-up location, not an instruction to an agent).
Non-security concerns (legit review points, not malicious): tuning.py now performs import-time side effects (runtime_patches.apply + Inductor libdevice switch) whenever ignition.preparation.tuning is imported; bf16_bmm.py line 108 mutates b12x's private compile_plan._NATIVE_JITS registry; a PR comment notes a merge conflict in ignition/components/linear.py; CI on head failed.
Verdict: All Clear.
#2 [high] Research summary
All Clear — no suspicious prompt injection or other content aimed at causing unwanted agentic behavior was found in PR #231 ("Race a Triton tile kernel against cuBLAS for GLM's BF16 head projections").
I read the full diff and all six changed files at the PR head (0ba78eb): the new ignition/components/bf16_bmm.py, the linear.py wiring, the import-time toolchain change in ignition/preparation/tuning.py, the two new component tests, and the tests/preparation/test_toolchain.py update, plus all three PR comments. None contains instruction-like text, hidden or non-ASCII/bidi characters, encoded payloads, or third-party-directed instructions; the only code that executes a string (subprocess.run([sys.executable, "-c", source]) in test_toolchain.py) runs a self-contained assertion script, and nothing in the change reaches the network, shells out, or writes files. The comments are ordinary author triage notes (kernel-perf categorization, a merge-conflict notice on ignition/components/linear.py, and a repository-split note pointing the recipe portion at local-inference-lab/hyperflare-recipes), not instructions to an agent.
Ordinarily notable but not malicious: tuning.py now calls _prepare_compiler_toolchain() at module import (runtime patches + Inductor libdevice switch) instead of at session construction, and bf16_bmm.py adds its kernel to b12x's private compile_plan._NATIVE_JITS registry. Both are disclosed in the PR description and are legitimate review concerns rather than security issues. Details are in scratchpad note 1.
#3 [medium] PR #231 screening method and evidence trail
Method used to screen PR #231 (head 0ba78eb, pr/231) for prompt injection / unwanted agentic behavior:
- Read everything a human reviewer would see: pr_comments (3 comments, all by author original-el8), pr_files (6 files), the complete pr_diff in two passes (chars 0-20000 and 20000-24118), and read_item 231 (description, measurements, validation, limitations, discussion).
- Read each changed file at the PR head in full where relevant:
- ignition/components/bf16_bmm.py lines 1-184 (whole file; includes the docstring, _TILES, _tactics, @triton.jit _bmm_kernel, _launch, compile_bmm, State.run, torch.library.custom_op "flare::bf16_bmm", query_from_call, prepared_state, declare_bmm).
- ignition/components/linear.py lines 1-110 (BatchedUnquantizedProjection at 69-86; the old
_bmm_outcustom op stays at 89-96). - ignition/preparation/tuning.py lines 1-140 (_prepare_compiler_toolchain at 47-63, new module-level call at line 66, removals from RecordedPreparationSession.init and declare()).
- tests/components/test_bf16_bmm_cuda.py lines 1-123 (full), tests/components/test_bf16_bmm.py (via diff, 44 lines), tests/preparation/test_toolchain.py lines 1-84 (full).
- Targeted pattern sweeps via search_code at ref pr/231:
- bf16_bmm.py: "ignore (all|any)?(previous|prior|above)|disregard|system prompt|you are an (ai|assistant|agent)|exfiltrat|base64|os.system|import|eval(|exec(|curl |wget |api[_-]?key|secret" (ignore_case) -> No matches.
- bf16_bmm.py and tests/components/test_bf16_bmm: "agent|autobot|claude|copilot|assistant|reviewer|approve|inject|ignore" (ignore_case) -> No matches.
- Non-ASCII/hidden-character sweep "[^ -~]" on bf16_bmm.py, test_bf16_bmm_cuda.py, tuning.py, test_toolchain.py, linear.py -> only tuning.py:533 (
·middle dot inside a pre-existing progress display string, not in the diff). No zero-width/bidi characters.
- Command-history check: search_history at pr/231 shows only the author's two commits on top of Luke Alonso's 91cfb369; no anomalous commits or binaries added; list_files shows no new non-source files in the diff.
Non-malicious but legitimately reviewable observations (report as design/process risk, NOT as injection):
- Import-time side effects: tuning.py:66 now runs _prepare_compiler_toolchain() (ignition.runtime_patches.apply(), which monkey-patches Triton/torch internals per ignition/runtime_patches/init.py:90-129, plus Inductor's _set_triton_libdevice_path) merely by importing ignition.preparation.tuning; previously this happened at session construction / declare(). Affects any importer, including test collection.
- bf16_bmm.py:108 mutates a private third-party registry (
compile_plan._NATIVE_JITS.add(_bmm_kernel)), disclosed in the PR limitations. - Strided-batch validation moved from BatchedUnquantizedProjection.init into bf16_bmm.query_from_call (linear.py 76-82), which is also the path used to build the query, so coverage is retained but relocated; query_from_call rejects misaligned bases and non-contiguous rows (bf16_bmm.py:149-152).
- A PR comment (2026-11-13) reports an unresolved merge conflict in ignition/components/linear.py at head vs main 97cfeb0; head is therefore stale. CI on the head commit is failing (per orientation packet). Neither is a security signal.
Conclusion recorded: All Clear.