#1 [high] PR #514 screening — All Clear
PR #514 "helios: allow lenient EOS close for GLM argument-tag tool calls" by jannerchang (external contributor, GitHub association NONE; 2 open PRs, 0 merged), head 732b868, base main, +61/-0, 2 files, no CI checks, no reviews, no comments.
Scope verified: pr_files shows exactly 2 modified files (helios/src/output/argument_tags.rs +32/-0, helios/src/output/tagged.rs +29/-0); the full pr_diff is those hunks only. No new files, no build scripts, no CI/workflow, no dependency/manifest changes, no test harness or dev-tooling changes.
Change content:
- tagged.rs:40 adds trait const
LENIENT_EOS_CLOSE: bool = falsetoToolDialect(default strict for every dialect). - tagged.rs:304-329
TaggedTools::finish: onTermination::EoswithD::LENIENT_EOS_CLOSE, takes the existing buffer and triesD::parse; on success and non-empty emits ToolBegin/ToolArguments/ToolEnd for calls already in the model's own buffer; otherwise falls through to the priorincomplete {NAME} tool callerror (line 330). Existing early-return for Cancelled/ExecutionError/UserStop/OutputLimit (lines 294-303) is untouched. - argument_tags.rs:29 sets
LENIENT_EOS_CLOSE = trueonly forArgumentTags(GLM). grep for LENIENT_EOS_CLOSE shows 3 hits total — no other dialect opts in. - argument_tags.rs:346-375 new test
unclosed_glm_tool_call_at_eos_emits_parsed_callasserts the recovered call and that an empty<tool_call>still errors.
Injection / unwanted-agentic-behavior review: no natural-language instructions addressed to an agent or reviewer anywhere in the diff, the diff comments, the PR description or its comments (pr_comments: none; read_item #514 discussion: 0). Grep of both changed files for agent/instruction/ignore/todo/fixme/secret/http/curl/exec/Command/fs::/unsafe/process returned no suspicious matches (only Termination::ExecutionError enum matches). No network, filesystem, process-spawn, or credential access added; no prompt/system-message text introduced. No hidden/obfuscated content visible in the hunks.
Only behavioral nit for the human review (not a security finding): the flag makes the GLM parser accept an unterminated <tool_call> at normal EOS and emit the tool call for execution, so truncated GLM generations containing a complete arg-tag body will now run tools instead of failing 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 it fabricates nothing not present in model output.
Verdict: All Clear.
#2 [high] Research summary
Screened PR #514 ("helios: allow lenient EOS close for GLM argument-tag tool calls") for prompt injection and other attempts to induce unwanted agentic behavior: All Clear.
The PR is exactly what it says: +61/−0 across two files. helios/src/output/tagged.rs gains a defaulted trait const LENIENT_EOS_CLOSE: bool = false (line 40) and a branch in TaggedTools::finish (lines 304–329) that, only on Termination::Eos and only for dialects that opt in, re-parses the already-buffered tool-call body with the existing D::parse and emits the normal ToolBegin/ToolArguments/ToolEnd events, falling through to the previous incomplete {NAME} tool call error otherwise. helios/src/output/argument_tags.rs:29 opts in only for the GLM ArgumentTags dialect, and adds one unit test. A repo-wide grep finds no other dialect setting the flag, and the existing early return for Cancelled/ExecutionError/UserStop/OutputLimit is untouched.
Nothing in the diff, the description, or the (empty) discussion contains text addressed to an agent, reviewer, or automated system; no new files, dependencies, CI/workflow, build scripts, or tooling changes; and a grep of both files for instruction-like or capability-escalating content (agent/instruction/ignore/todo/fixme/secret/http/curl/exec/Command/fs::/unsafe/process) returned nothing suspicious. No network, filesystem, process-spawn, credential, or prompt/system-message behavior is introduced, and no obfuscated or hidden content appears in the hunks.
Worth a human's attention, but not a security finding: by design, this makes truncated GLM generations whose arg-tag body is already complete execute the tool instead of failing the response — visible behavior change, confined to GLM, and it cannot fabricate arguments that the model did not emit (strict parse still requires closed <arg_key>/<arg_value> tags). Full notes are in scratchpad entry 1.
#3 [medium] PR #514 — context, provenance and review-gap facts
Supporting details for the PR #514 screening report (verdict All Clear; main findings in scratchpad entry 1).
Provenance / state (read_item #514, orientation packet):
- Author jannerchang, GitHub association with the repo: NONE. 0 merged, 0 closed, 2 open items in 180 days: #513 "helios: suppress prompt-only special tokens from output and stop matching" and #397 "helios: skip zero-valued kernel-node attributes the replay driver rejects". Both open, neither merged.
- PR open, "ready for review", base main, head 732b8687cdd0f470999dc6447213f197d8a48008, opened and last updated 2026-11-25 11:29. Labels: none. Reviews: none. Discussion: 0 comments (pr_comments returned "No comments"; read_item shows "Discussion (0)"). CI on head commit: no checks ("no checks" per packet).
- Branch: pr/glm-lenient-eos-tool-close. No default-branch commits since the branch point (2771618) touch the two changed files, so the diff is not stale-and-misleading.
Verification claim (PR description, unverified by me — no build/test run was performed in this screening): cargo test --manifest-path helios/Cargo.toml --features runtime-core,server --lib -- output::argument_tags:: output::chatml:: reported 24 passed / 0 failed, including unclosed_glm_tool_call_at_eos_emits_parsed_call, malformed_calls_fail, and chatml::tests::terminal_cause_preserves_incomplete_call_errors_and_never_fabricates_calls. Worth noting for the reviewer that the last named test is the guard proving non-GLM dialects keep strict behavior; the changed code's default false (tagged.rs:40) is what that relies on.
Related items (orientation packet) for reviewer context, not security findings: #59 (open PR) "Fix GLM tool-call argument tag parsing"; #39 (closed issue) GLM argument-tags parser aborts the whole stream when an argument doesn't match its declaration; #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. Several overlap this file, so #514 may be redundant with or conflict with #59 — a sequencing question for maintainers, not a safety issue.
Config-dependent third-party library check performed: #[warn(unconditional_pub)..] Not applicable.
No instruction-like text, no external links, no encrypted/encoded blobs, and no request to run commands, change scope, or contact anyone appears in the description, diff, or discussion.