#1 [high] PR #573 screening: no prompt injection found
PR #573 "helios: tolerate omitted closing tags on complete tagged tool calls at EOS" by lukealonso (COLLABORATOR), open, +1423/-70, 9 files, base main, head 09cc524. CI passed, 0 comments/reviews.
Reviewed: entire pr_diff (83k chars, all three pages) + read_item 573 (description, files, empty discussion).
Files: docs/api.md (+17/-1 prose spec about EOS recovery rules), helios/src/output/{argument_tags,chatml,gemma_call,minimax_xml,pipeline,tagged}.rs, helios/src/server/{logprobs.rs, protocol/tests.rs}.
Findings:
- No comments, reviews, or inline comments at all (pr_comments: "No comments"), so no conversational injection vector.
- PR description is ordinary engineering prose (why/what changed/evidence/limitations); no instructions addressed to an agent, no "ignore previous instructions", no requests to run commands, exfiltrate data, or alter CI.
- Diff content is pure Rust parser logic + unit tests: adds ToolDialect::parse_eos, tracks
confirmed/outer_closedin TaggedTools, counts ToolBegin events in TaggedOutput::finish, per-dialect parse_eos implementations (strict-tool rejection, trailing-non-whitespace rejection), PlainText::parse_eos returns existing "tool parsing is not configured" error. Test code is normal assertions; no shellouts, no env reads, no network. - Grep over helios/src/output/ for "ignore (all|previous|prior)", "system prompt": no matches; for
std::process|Command::new|unsafe|include_bytes|env::var|reqwest|http: no matches. Repo-wide "autobot|language model|agentic|AI reviewer": only unrelated hits (docs/api.md:762 Kimi eval table, docs/mtp-design.md:590, scheduler/checkpoints.rs tests, ignition/parameters.py:1193). - docs/api.md additions are spec documentation matching code behavior; no hidden directives.
- Commit history on branch: single new commit 09cc5244, ordinary message.
Assessment: All Clear. Scope-wise the change is behavior-affecting (accepts previously-rejected unclosed tool calls at natural EOS, relaxes error paths) but it is a documented, tested product decision, not agent-targeted manipulation; strict tools and truncation paths remain rejecting, and tests assert non-EOS omissions.
#2 [high] Research summary
Screening of PR #573 ("helios: tolerate omitted closing tags on complete tagged tool calls at EOS") found no prompt injection or other agent-targeted manipulation: All Clear.
What I examined: the full diff (all 83k characters across docs/api.md, helios/src/output/{argument_tags,chatml,gemma_call,minimax_xml,pipeline,tagged}.rs, helios/src/server/logprobs.rs and helios/src/server/protocol/tests.rs), the PR description and its (empty) discussion, the head-revision docs prose it adds, and the branch commits (a single new commit, 09cc5244, ordinary message).
Why it is clean: the PR description is ordinary engineering prose (motivation, before/after per file, test evidence with named limitations) with no instructions addressed to an agent, no requests to run commands, change CI, or handle credentials. There are no comments, reviews, or inline comments at all, so no conversational injection vector. The diff is pure Rust parser logic and unit tests: a new ToolDialect::parse_eos, confirmed/outer_closed tracking in TaggedTools, ToolBegin counting in TaggedOutput::finish, per-dialect EOS recovery gated on non-strict tools plus no trailing non-whitespace, and PlainText::parse_eos returning the existing "tool parsing is not configured" error. Tests only assert on parser events; there are no shell-outs, environment reads, network calls, unsafe, or include_bytes in the touched area (grep over helios/src/output for process/Command/unsafe/env/HTTP returns nothing; "ignore all/previous instructions" and "system prompt" return nothing). The docs/api.md additions are specification text that matches the implemented behavior, with no hidden directives, and I saw no invisible/bidi characters or obfuscation attempts.
Note for the record (not a security finding): the change deliberately relaxes a previously failing path — unclosed non-strict tagged tool calls at natural EOS are now accepted — which is a real behavioral/product tradeoff reviewers should judge on its merits (strict tools, truncation causes, and trailing-text cases still fail, and tests assert the non-EOS omissions). Detail is in scratchpad entry 1.
#3 [medium] PR #573 screening: supplementary verification details
Addenda to entry 1 (PR #573, head 09cc5244, base main, CI passed on head, opened 2026-11-28, 0 comments/reviews).
-
Code read at head, helios/src/output/tagged.rs:302-322 —
TaggedTools::finishreturnsOk(vec![])early for Cancelled/ExecutionError/UserStop/OutputLimit (buffer cleared), and only for EOS reachesif !self.confirmed || in_json_string { Err("incomplete <dialect> tool call") }thenD::parse_eos(...). So the risk of fabricated calls is bounded: unconfirmed openers and unfinished JSON strings still error, and truncation paths still omit. -
Doc prose at head verified by reading docs/api.md:438-451 and 501-530. New text ("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"; per-dialect sentence starting "When a non-strict tagged call omits its closing wrapper tag at natural completion...") is specification prose that matches the implemented behavior. No instructions, no hidden directives, no URLs or shell commands added.
-
Verification-method limitation (be honest in the write-up): the code search tool rejected two regex attempts — an
(?i)(...|curl |api[_-]?key|token=)pattern ("Invalid preceding regular expression", result 9) and a unicode-range class[\x{200b}-\x{200f}\x{202a}-\x{202e}\x{2066}-\x{2069}\x{feff}]("Invalid range end", result 10); a later\x{200b}|\x{202e}|\x{feff}attempt also failed ("Invalid content of {}", result 17). So invisible/bidi-character scanning was NOT regex-verified; the no-injection conclusion rests on reading the whole 83k-char diff manually plus the greps that did run (result 11 "ignore (all|previous|prior)" no matches; result 12 "system prompt" no matches; result 15 std::process|Command::new|unsafe|include_bytes|env::var|reqwest|http no matches in helios/src/output/; result 13 repo-wide autobot|language model|agentic only unrelated doc/comment hits). -
Scope note for reviewers (product judgement, not a security issue): the PR intentionally relaxes an error path — unclosed non-strict tagged tool calls at natural EOS are now accepted and emitted to clients. Files/lines: docs/api.md +17/-1; helios/src/output/argument_tags.rs +280/-10; chatml.rs +206/-6; gemma_call.rs +130/-10; minimax_xml.rs +167/-15; pipeline.rs +108/-0; tagged.rs +66/-28; helios/src/server/logprobs.rs +101/-0; helios/src/server/protocol/tests.rs +348/-0. Reasoning/answer text is preserved and tests assert OutputLimit/UserStop omission semantics, so this is a documented parsing-policy change, not manipulation of the reviewing agent.