PR #573 — Prompt-injection / agentic-manipulation screen: All Clear
Pull request: NVIDIA/hyperflare-inference#573 — "helios: tolerate omitted closing tags on complete tagged tool calls at EOS"
Author: lukealonso (repo association: COLLABORATOR; 10 merged PRs in the last 180 days, 0 open, 0 closed)
State at screen time: open, ready for review, head 09cc5244, base main, 9 files, +1423/−70, CI passed on head, 0 reviews, 0 comments.
Key findings
- No prompt injection, and no attempt at one. There are no comments, reviews, or inline review comments on the PR at all (the discussion is empty), so there is no conversational injection vector. The PR description is ordinary engineering prose — motivation, per-file before/after, test evidence, and an explicit "Unrun checks / limitations" list — containing no instructions addressed to an agent, no requests to run shell commands, no CI/credential/config changes, and no persuasive framing aimed at a reader-agent.
- The diff is what it claims to be. All changes are Rust output-parser logic and unit tests (
helios/src/output/{argument_tags,chatml,gemma_call,minimax_xml,pipeline,tagged}.rs,helios/src/server/logprobs.rs,helios/src/server/protocol/tests.rs) plus specification prose indocs/api.md. The addedparse_eosimplementations are gated on non-strict tools, a structurally complete body, and no trailing non-whitespace; strict tools and truncation paths still reject or omit. - No executable, exfiltration, or environment-touching content. Greps over the touched area find no
std::process,Command::new,unsafe,include_bytes,env::var, or HTTP client usage; test code only asserts on parser events. - No injection-style phrasing. Repo-wide greps for "ignore (all|previous|prior)" and "system prompt" return no matches; hits for
autobot|language model|agenticare unrelated documentation and source comments (for example a Kimi eval table indocs/api.md:762,docs/mtp-design.md:590(not opened), and a scheduler test comment). - Reviewer note, not a security finding: the PR deliberately relaxes a previously failing path — unclosed non-strict tagged tool calls at natural
EOSare now accepted and emitted instead of erroring. That is a real behavioral/product tradeoff (the kind of scope the charter's "what gets merged" list admits), not manipulation of the reviewing agent. Detail in item 7 below.
What was examined
- Full diff (all ~83k characters, all three pages of
pr_diff), covering:docs/api.md(+17/−1)helios/src/output/argument_tags.rs(+280/−10)helios/src/output/chatml.rs(+206/−6)helios/src/output/gemma_call.rs(+130/−10)helios/src/output/minimax_xml.rs(+167/−15)helios/src/output/pipeline.rs(+108/−0)helios/src/output/tagged.rs(+66/−28)helios/src/server/logprobs.rs(+101/−0)helios/src/server/protocol/tests.rs(+348/−0)
- PR description in full, including the claimed-result and evidence sections and the stated unrun checks (
FLARE_TEST_TEMPLATE_DIR,FLARE_*_TEST_SNAPSHOTsnapshot-gated tokenizer/grammar tests, no live GPU serving run). - Discussion via
read_item 573andpr_comments: no comments, reviews, or inline comments. - Docs prose at head (
docs/api.md:438-451anddocs/api.md:501-530), verified to be specification text describing the implemented behavior. - Code at head (
helios/src/output/tagged.rs:302-322):TaggedTools::finishreturnsOk(vec![])early forCancelled/ExecutionError/UserStop/OutputLimit(buffer cleared), and only onEOSreachesif !self.confirmed || in_json_string { Err("incomplete <dialect> tool call") }before delegating toD::parse_eos(...). - Branch commits: a single new commit
09cc5244with an ordinary message; no commits on the default branch since the PR branched touch its files.
Why the diff is benign as an agent-facing artifact
- No hidden directive text. The
docs/api.mdadditions are prose rules for natural-completion recovery that match the code paths I read ("accept a non-strict call whose inner arguments are structurally complete and self-delimited when only its closing wrapper tag is omitted… unclosed strict calls remain errors"). No URLs, shell commands, config keys, or encoded payloads were added. - Tests are assertions only. The new unit and protocol tests assert on emitted parser events, argument equivalence, and finish semantics; nothing invokes a shell, network, or filesystem outside test fixtures.
- Failure modes are preserved where they matter. The description and the code agree that undecided openers (
<tool_call>run,<tool_call>run<arg,<tool_call>run</tool), bare headers, unclosed arguments/braces/elements, trailing text,strict: truetools missing their wire closer, and all non-EOS terminations (OutputLimit,UserStop,Cancelled,ExecutionError) continue to error or omit rather than fabricate calls. - The PR title, description, and code tell the same story. Nothing in the description asks the reader to trust claims that the diff contradicts, which is the usual signature of a socially-engineered change.
Open questions / what could not be verified
- Invisible/bidi-character scan was not regex-verified. The code-search tool rejected the unicode-range pattern used for zero-width and bidi control characters (
[\x{200b}-\x{200f}\x{202a}-\x{202e}\x{2066}-\x{2069}\x{feff}], "Invalid range end"; a later\x{200b}|\x{202e}|\x{feff}attempt also failed with "Invalid content of {}"). The no-obfuscation conclusion therefore rests on manually reading the full diff rather than on a matching scan. Given that the added text is small, contiguous Rust and Markdown, the residual risk is low. - Behavioural correctness was not independently executed. I did not run the test suite; the claimed 203-passed / 0-failed result and the compiled-but-unrun snapshot-gated suites come from the PR's own evidence section. The orientation packet does record CI as passing on head
09cc5244. - Semantic downstream effect not traced beyond the parser layer. Whether accepted unclosed calls interact badly with client-side tool execution is a design question for the maintainers (parallel, related open PR #514 "helios: allow lenient EOS close for GLM argument-tag tool calls" and closed issue #39 on GLM argument-tag parsing set the precedent). This is product judgement, not an injection finding.
Reviewers' scope note (not a security issue)
The PR intentionally makes a previously rejected case succeed: a non-strict tagged tool call whose payload is structurally complete but whose closing wrapper tag is missing at natural EOS is now emitted to the client instead of raising incomplete <dialect> tool call. The description frames this as matching practical serving expectations while keeping anti-fabrication, strict-tool, and truncation guarantees, and the code read at helios/src/output/tagged.rs:302-322 supports that framing. If reviewers want to challenge anything, it should be this policy relaxation and its per-dialect edge cases — not any agent-directed manipulation, of which there is none.
Verdict
All Clear. No prompt injection, no instruction smuggling (in the description, the diff, the docs, or test files), no attempt to redirect agentic behavior, and no hostile or exfiltration-capable code in the change.