Screening report — PR #514 "helios: allow lenient EOS close for GLM argument-tag tool calls"
Key findings
- Verdict: All Clear. No prompt injection, no instruction-like text aimed at an agent or reviewer, and no attempt to cause unwanted agentic behavior was found in PR #514 — not in the code diff, comments, PR description, or discussion.
- The change is small, contained, and matches its stated purpose: +61/−0 across two files (
helios/src/output/tagged.rs,helios/src/output/argument_tags.rs). No new files, dependencies, manifests, CI workflows, build scripts, or tooling changes. - The only behavioral consequence is intentional and GLM-only: an unterminated
<tool_call>whose argument body is already complete is now parsed and executed at normal EOS instead of failing the response. It cannot fabricate arguments the model did not emit, and no other dialect opts in. - No new network, filesystem, process-spawn, credential, or prompt/system-message behavior is added; no hidden, encoded, or obfuscated content appears in the hunks.
- Provenance/review-gap context (not a security finding): external author with no repo association and no merged items, zero reviews, zero comments, and no CI checks on the head commit, so the PR's "24 passed" verification claim is unverified.
Detail
1. What the PR actually changes
pr_files and the full pr_diff show exactly two modified files and no others:
| File | Change |
|---|---|
helios/src/output/tagged.rs |
+29/−0 |
helios/src/output/argument_tags.rs |
+32/−0 |
helios/src/output/tagged.rs:40— new trait constant onToolDialect:const LENIENT_EOS_CLOSE: bool = false;. Thefalsedefault means every existing dialect keeps strict incomplete-call behavior unless it explicitly opts in.helios/src/output/tagged.rs:304–329— new branch inTaggedTools::finish:
It reuses the existing dialect parserif cause == Termination::Eos && D::LENIENT_EOS_CLOSE { let raw = std::mem::take(&mut self.buffer); if let Ok(calls) = D::parse(&raw, &self.tools) && !calls.is_empty() { return Ok(calls.into_iter().enumerate().flat_map(|(offset, (name, arguments))| { let index = self.index + offset; [Event::ToolBegin { index, name, id: None }, Event::ToolArguments { index, text: arguments }, Event::ToolEnd { index }] }).collect()); } } Err(format!("incomplete {} tool call", D::NAME).into())D::parse; on failure or an empty result it falls through to the unchanged error attagged.rs:330. The pre-existing early return forCancelled | ExecutionError | UserStop | OutputLimit(tagged.rs:294–303) is untouched, so those terminations never take the lenient path.helios/src/output/argument_tags.rs:29—const LENIENT_EOS_CLOSE: bool = true;set only on the GLMArgumentTagsdialect.helios/src/output/argument_tags.rs:346–375— new unit testunclosed_glm_tool_call_at_eos_emits_parsed_call, asserting both that the complete-but-unclosed body is recovered and that an empty<tool_call>still errors.
A repo-wide code search for LENIENT_EOS_CLOSE returns exactly three hits (argument_tags.rs:29, tagged.rs:40, tagged.rs:304), confirming no other dialect (ChatML/Qwen, DeepSeek, TML, DSML) opts in.
2. Injection / unwanted-agentic-behavior review
- No natural-language instructions. Nothing in the diff, the diff comments, the PR description, or the discussion is addressed to an automated agent, reviewer, or system.
pr_commentsreturned no comments and the PR's discussion has zero entries. - No capability escalation. No network calls, filesystem access, process spawning, credential or environment access, or prompt/system-message text is introduced. A grep of both changed files for
agent|instruction|ignore|todo|fixme|secret|http|curl|exec|Command|fs::|unsafe|processproduced no suspicious matches (only the pre-existingTermination::ExecutionErrorenum variant). - No hidden content. No encoded/encrypted blobs, unusual Unicode, external URLs, or instructions to contact anyone, change scope, run commands, or fetch remote material.
- No supply-chain surface. The PR touches no
Cargo.toml(not opened), lockfile, CI workflow, build script, or test harness/dev tooling, so it cannot alter how tests or builds execute.
The diff is exactly the behavior described in the PR body; there is no discrepancy between description and code that could conceal an unrelated change.
3. Behavioral note for human reviewers (not a security finding)
The flag makes the GLM parser accept an unterminated <tool_call> at normal EOS and emit the call for execution. So a truncated GLM generation whose <arg_key>/<arg_value> body is already complete will now run a tool rather than fail the response. This is the PR's stated purpose and is confined to GLM; strict D::parse still requires closed <arg_key>/<arg_value> tags (argument_tags.rs:52–89), and the code emits only what the model itself buffered — nothing is fabricated. Worth a deliberate sign-off, since it converts a hard error into tool execution.
4. Provenance and review gaps
- Author jannerchang: GitHub association with the repository NONE; 0 merged and 0 closed items in 180 days, 2 open PRs (#513 "helios: suppress prompt-only special tokens from output and stop matching", 2026-11-25; #397 "helios: skip zero-valued kernel-node attributes the replay driver rejects", 2026-11-19).
- PR state: open, marked ready for review, base
main, head732b868, branchpr/glm-lenient-eos-tool-close. Labels: none. Reviews: none. Discussion: 0 comments. CI on the head commit: no checks. - The description's verification claim —
cargo test --manifest-path helios/Cargo.toml (not opened) --features runtime-core,server --lib -- output::argument_tags:: output::chatml::→ 24 passed / 0 failed, includingunclosed_glm_tool_call_at_eos_emits_parsed_call,malformed_calls_fail, andchatml::tests::terminal_cause_preserves_incomplete_call_errors_and_never_fabricates_calls— is unverified: no build or test run was performed in this screening, and no CI exists to corroborate it. The last-named test is the guard proving non-GLM dialects keep strict behavior; it depends directly on thefalsedefault attagged.rs:40, which is present. - No default-branch commits since the branch point (
2771618) touch the two changed files, so the diff is not stale.
5. Related items (context only)
Several existing items touch the same GLM parser area and suggest a possible sequencing/redundancy question for maintainers, not a safety issue: #59 (open PR) "Fix GLM tool-call argument tag parsing"; #39 (closed issue) GLM argument-tags parser aborts the whole stream on a mismatched argument; #133 (closed issue) GLM-5.3 live-serving tool-call rejections; #418 (merged) strict function-tool schemas for DSML/Qwen/GLM/TML; #405 (merged) declared markers as controls; #67 (merged) prose tool-tag mentions kept as text.
Open questions / could not be found
- No independent verification of the test results. No CI checks exist on the head commit and this screening did not build or run the suite; the "24 passed" claim rests on the PR description alone.
- Overlap with open PR #59 (also GLM argument-tag parsing) was not examined in depth — maintainers should confirm which lands first and whether the two conflict.
- Nothing malicious was found and nothing was omitted intentionally; there is no hidden or ambiguous element in the diff that I flagged but chose not to report. The only judgment call in this screening is the item in section 3, which is a deliberate, documented design change rather than a security defect.