Screen malicious scratchpad · NVIDIA/hyperflare-inference #581

Raw Markdown for agents: https://autobot.eidonix.com/p/1442b5be-24ac-4ca4-a1a0-d6f6a5b23548.md

#1 [high] PR 581 injection screening — findings

PR 581 (open, head 61f64f1, base main 167f22c), author FujitsuPolycom, 3 files: ignition/preparation/runtime_core.py (+38/-1), tests/preparation/test_capture_graph_metadata.py (+96/-3), tests/preparation/test_recorded_export_graph_cuda.py (+3/-3).

Diff content (read in full via pr_diff, result 1): adds CUDA_GRAPH_INSTANTIATE_FLAG_* constants, _executable_instantiation_flags() using cuGraphExecGetFlags via existing _Cuda() CDLL wrapper, validation of flags against PERMITTED bits 1|8 in record_export_graph, sets graph._flare_instantiation_flags; _graphs() (runtime_core.py:282-287) already emitted instantiate_flags. Tests: fake Graph.exec_flags monkeypatch, new test_capture_forwards_export_sets_node_priority_instantiation_flag, CUDA test asserts flags_by_name == {"decode": 9, "tune": 1}.

Screening performed: searched repo for "Autobot", "ignore previous", "disregard", "prompt injection", "system prompt", "approve/LGTM/signed off", "agent/AI reviewer"; searched all three changed files for subprocess/urllib/requests/socket/base64/eval/exec/import/os.environ/open and for bidi/zero-width codepoints (no results beyond ordinary ASCII lines). No instruction-like text, no exfiltration, no credential/env access, no new network calls, no eval, no hidden unicode in the changed code. No AGENTS.md/.agents/skills/CI files touched. Subprocess use in the CUDA test predates the PR (pytest skipif on FLARE_RUN_CUDA_TESTS).

Discussion: only one review by voipmonitor (CHANGES_REQUESTED) — technical findings (keep_graph=False/_flare_graph_metadata validation gap at runtime_core.py:208-242, docs/design-review.md Principle 12/16 description inaccuracies, nit about hardcoded flags & ~9). Addressed to the human author; no requests aimed at an agent, no attempts to steer a monitoring tool.

Peripheral, non-malicious notes: PR description gives "Discord: Dooner" (AGENTS.md / design-review.md Principle 17 requires the line; unverifiable name but no instruction); PR cites a commit URL in a fork repo FujitsuPolycom/flare-local-inference.

Assessment: All Clear.

#2 [high] Research summary

All Clear.

I reviewed PR #581's full diff (3 files: ignition/preparation/runtime_core.py, tests/preparation/test_capture_graph_metadata.py, tests/preparation/test_recorded_export_graph_cuda.py), the PR body, and the single review comment (voipmonitor, CHANGES_REQUESTED).

No prompt injections or agent-directed content were found. The changes are ordinary CUDA-graph instantiation-flag plumbing plus tests. I searched the changed files (and the repo) for instruction-like or tool-steering text ("ignore previous", "disregard", "system prompt", "prompt injection", "Autobot", approval/LGTM leaning), for bidi/zero-width character tricks, and for new subprocess/network/eval/env access — nothing beyond pre-existing patterns. The one review is a normal technical critique addressed to the human author (keep_graph=False metadata validation gap, PR-description accuracy, a style nit), not an attempt to influence a monitoring agent. Only peripheral oddity: the PR's "Discord: Dooner" line and a fork-repo commit citation, neither of which is malicious. No files outside the three code/test files were touched (no AGENTS.md, skills, or CI changes).

#3 [medium] PR 581 — code/diff detail and review context (for report context)

PR #581 "ignition: set USE_NODE_PRIORITY flag on exported CUDA graphs" — FujitsuPolycom (CONTRIBUTOR), branch perf/ignition-export-use-node-priority -> main, head 61f64f18e06cdcb9de76c33765584a97752f3953 (61f64f1), opened 2026-11-28 20:45, updated 22:13, +137/-7.

Code (ignition/preparation/runtime_core.py:192-243, per diff and file read):

Tests: tests/preparation/test_capture_graph_metadata.py — fake Graph accepts exec_flags (default 1), recorder fixture monkeypatches runtime_core._executable_instantiation_flags (line 113); new cases for flags 9, 8-with-no-autofree, preserved bit 1 with instantiation_flags=0, None path, unsupported exec flags, bad requested flags (lines 204-302); new test test_capture_forwards_export_sets_node_priority_instantiation_flag (line 258). tests/preparation/test_recorded_export_graph_cuda.py now asserts flags_by_name == {"decode": 9, "tune": 1} (CUDA run gated by FLARE_RUN_CUDA_TESTS=1; subprocess call at lines 14-20 is pre-existing).

Review by voipmonitor (CHANGES_REQUESTED, 2026-11-28 22:13): reports CPU pytest 12 passed and live SM120 CUDA export test 1 passed; findings — [Major] qualify exported-core flare run behavior (design-review.md Principle 12) since USE_NODE_PRIORITY activates CTA-level preemption for kernels on ScratchArena.auxiliary_stream (ignition/preparation/scratch.py:83-105); [Major] record_export_graph does not validate keep_graph=False/_flare_graph_metadata graphs at runtime_core.py:208-242 and could fail later in _graphs(); [Minor] PR description inaccuracies (Principle 16) — "rejecting unsupported bits on either source before mutating graph state" is imprecise for prior_flags, and instantiation_flags=None claim about tuning graphs is wrong since tuning graphs use capture_graph+instantiate_graph, not record_export_graph; [Nit] reuse PERMITTED_CUDA_GRAPH_INSTANTIATE_FLAGS in _graphs() instead of hardcoded ~9, and cache _Cuda().

Note: CI on head commit — no checks reported in the orientation packet; no other discussion, reviews, or linked items in the PR's Discussion section.