Injection / Unwanted-Agentic-Behavior Screen — NVIDIA/hyperflare-inference PR #540
Screen Result: All Clear
PR: https://github.com/NVIDIA/hyperflare-inference/pull/540 — "helios: cost-refresh recovery, prompt+output SAM copy-drafts, and calibrated wide copy-verify"
Head 7ca5430, base main, 25 files, +3965/−119. Open, ready for review, labels: none, reviews: none, CI on head: none.
Key findings
- No prompt injection or agent-directed instruction exists anywhere in this PR. No comments, reviews, or inline review comments on the PR at all (
pr_commentsreturns "No comments."), so there is no third-party prose attempting to steer a reviewing agent. - All 25 changed files were read structurally and every hunk matches the stated intent — cost-refresh credit/debt accounting, a per-request prompt+output suffix automaton, copy-draft graph metadata, and packed-speculative padding dominance. No hunks deviate toward instructions, encoded payloads, or behavior aimed at an agent rather than at the scheduler.
- The one large new file,
helios/src/scheduler/sam.rs(1,606 lines), is a pure data-structure implementation — compacted edge-array suffix automaton, link-cut-tree recency updates, brute-force oracle tests, one ignored microbenchmark — with zero process/spawn/env/filesystem/network primitives and nounsafe. - Every injection-pattern regex hit is benign and pre-existing, and none of the flagged lines is even touched by this PR (details and citations below).
- No hidden Unicode and no supply-chain surface: no bidi-control, zero-width, or tag characters in any changed file; no workflow, lockfile, or dependency changes.
- The PR description is ordinary technical prose; its
Discord: Doonerclosing line is a documented repository requirement, not an off-platform redirect.
Detail
1. Discussion surface
pr_comments on #540: "No comments." No issue-comment, review, or inline-review-comment text exists that could address a human or agent reviewer. The only author-authored prose is the PR body itself.
2. PR body
The description is a conventional engineering write-up: a "Why" section naming four scheduler/speculative-decoding gaps, a per-commit "What changed" list, a "Result" section, and an "Evidence & Limitations" section with test counts, benchmark numbers, and an explicit limitations list (GPU coverage limited to DeepSeek-V4.1 Flash TP4 on SM120). It contains no requests addressed to a reviewer or agent — no "approve", "merge without review", "skip the check", "do not flag", and no command-like text.
The closing line Discord: Dooner is mandated by the repository: docs/design-review.md:153-155 — "Give a Discord contact on PRs and issues. Every PR and issue description has a line after the technical explanation that gives the opener's Discord username, or states Discord: no username provided when the opener provides [none]." Verified directly in code/docs. It is therefore a policy compliance line, not an attempt to move review off-platform.
3. Diff coverage
Files changed and reviewed for prose/instruction-bearing content:
docs/scheduling-runtime-design.md(+31/−23) — design prose only, about timing-refresh credit/debt accrual across idle and the two-tierrefresh_orderkey. No instructions to readers or agents.heliopause/src/python.rs(+14/−3) —draft_sourceenum mapping (0/1/2→ None/Mtp/Copy) exposed to Python. Mechanical.ignition/preparation/execution.py(+10/−1) —GraphSignature.draft_sourcevalidation (enforcingconfidence_width == 0, nospeculative_prefix_limits, four copy input buffers on copy-only graphs) and plumbingdraft_sourceinto the exported graph dict.helios/src/execution/manifest.rs,helios/src/runtime_core/{selection,serving}.rs,helios/src/model/{catalog,packing}.rs,helios/src/server/runtime.rs,helios/src/scheduler.rs—draft_sourcemetadata, copy-graph retention/pruning under--history-drafts, per-requestArc<PromptSAM>wiring at admission,request_history_proposal.helios/src/scheduler/{cost,refresh,policy,rounds,speculation,decoded_history,checkpoints}.rsand the test modules (tests.rs,policy_tests.rs,speculative_lifecycle_tests.rs) — cost-calibration, readiness-wait exclusion, padding dominance (dominates_padding_with/prune_padding),DEFAULT_MIN_MATCH_LEN3 → 6.helios/src/scheduler/sam.rs(+1,544 new) — see below.
Nothing in these files addresses an agent, requests an action, or contains text that only makes sense as instruction-to-model.
4. The new file: helios/src/scheduler/sam.rs
Read essentially end to end (1,606 lines). Contents: an immutable PromptSAM (compacted flat edge array, topological max_endpos, 131,072-token trailing prompt cap), a lazy OutputSAM (inline 4-edge storage, 1-token lag, 512-token prompt-tail overlap, link-cut-tree O(log M) recency updates), PromptOutputSAM::push/propose, and randomized brute-force oracle tests.
Primitive sweep on this file returned zero matches for std::process|Command|fs::|std::env|include_str|include_bytes|unsafe. No sockets, no URLs, no shell, no file reads, no unsafe. It cannot execute anything, only compute.
Its only "ignore"-family hit is helios/src/scheduler/sam.rs:1544 — #[ignore = "CPU microbenchmark; run in release mode with --ignored --nocapture --test-threads=1"], an ordinary Rust test attribute (verified in code).
5. Regex sweep results and why each hit is benign
Sweeps were run over the whole repo at head 7ca5430 and narrowed over helios/src/scheduler.
- "instruction / instructions" — hundreds of hits, all pre-existing product/doc text:
docs/api.md(not opened) (OpenAI/Responses API field docs),docs/cli-design.md(not opened),helios/src/server/inference.rs:244-277 (not opened), 386, 443-457(system/developer instruction lowering; thetool_choice=requiredstring "You must call at least one of the provided tools in your next response." at :386 — product behavior toward the served model, not toward a code reviewer, and not opened by this PR),helios/src/frontend/jinja/compiler.rs(not opened) (internalInstructionenum for the Jinja VM),docs/clients/codex-models.json:14(not opened) (base_instructionsclient profile). None are addressed to an agent reviewing code. - "ignore / disregard" — three hits:
helios/src/scheduler/sam.rs:1544(above);tests/server/test_mixed_scheduler.py:40(not opened)"Ignore this filler: " + " apple" * 4096(pre-existing prompt fixture);.githooks/commit-msg:21andAGENTS.md(not opened) references to the repo's own commit self-review docs (pre-existing, unchanged here). - "agent / assistant / LLM / AI" — only
helios/src/scheduler/checkpoints.rs:1089,1113, test names/comments describing "long agentic prompts" and "agentic conversations" as workload shapes. NoAutobot, no "automated reviewer", no "language model" string anywhere. - URL sweep of changed areas — the only URLs in the repo are pre-existing doc/NOTICE/README links plus
.github/workflows/helios-lifecycle.yml(not opened) (tla2tools.jar), which this PR does not touch. A bare-domainhttps?://sweep overhelios/src/schedulerreturned no matches; nothing to fetch and report back to. - Network / exec primitives in changed files —
helios/src/scheduler/sam.rs: none (above).ignition/preparation/execution.py: only the pre-existingserve_rank(self, socket, *, rank, world)TP-rank server API at :359/:374 (unchanged); nosubprocess,os.environ,urllib,requests,pickle,eval,exec, oropenbeyond that. - Unicode sweep — no bidi-control (U+202A–U+202E, U+2066–U+2069), zero-width (U+200B–U+200F), or tag (U+E0000–U+E007F) characters in any PR-changed file. Multi-byte text exists only in pre-existing fixtures (
tests/frontend/inkling2_tml.json(not opened),tests/frontend/qwen38.json(not opened) — 世界 / naïve / emoji / CJK), none modified here. So no invisible-text smuggling. - Encoded blobs — none. No base64/hex payloads, no long opaque literals in the diff; the largest literals are test fixture token sequences and numeric tables.
6. Supply chain and CI
The file list contains no .github/workflows/*, no Cargo.toml (not opened)/Cargo.lock, no pyproject.toml (not opened)/uv.lock, no requirements*, no install scripts. This PR cannot alter CI execution, dependency resolution, or install-time behavior.
7. Note on scope of the change (context for the verdict)
The change is sizable but confined to scheduler cost accounting, speculative-decoding copy drafts, graph metadata, and padding selection, consistent with the author's prior merged work in the same area (#508, #499, #498, #515-family neighbours) and the charter's framing of Helios as the scheduling/cache/request runtime. Nothing in it reaches outside the repository or touches credential, publish, or release paths.
Open questions and what could not be found
- No CI check ran on the head commit, so there was no automated-signal cross-check to weigh; the verdict rests on direct reading of the entire diff and the documented sweeps above.
- No suspicious item was left unexplained. Every pattern hit is attributed to a specific pre-existing line, and in each case that line is untouched by this PR.
- Files outside the PR diff were swept by regex only, not read in full. That is sufficient for this screen, because only PR-changed content can deliver injected instructions into this change; the unchanged files are cited purely to explain why a regex hit was benign.
- Live-behavior claims in the PR body (throughput numbers,
max_b == C, SAM microbenchmark latencies) were not independently reproduced — out of scope for an injection screen, and their truth or falsity has no bearing on whether the diff attempts to manipulate an agent.