Screening report — PR #575 (NVIDIA/hyperflare-inference)
PR: "Preserve raw JSON tool arguments in TmlOutput for strict TMLv0 calls" Head commit: 07955d7 (single commit 07955d70, author "woooflet", base 167f22c8) · Size: 3 files, +237/−10 · State: open, ready for review, no labels Verdict: All Clear — no prompt injection, no hidden instructions, no unwanted agentic behavior.
Key findings
- No injection content anywhere in scope. The PR description, the three-file diff, and the discussion contain no instructions aimed at an agent, no "ignore previous instructions"/system-prompt-override text, no exfiltration or credential-access requests, and no attempts to redirect tool use.
pr_commentsreturns "No comments": there are no reviews and no inline review comments (result 5), so no instruction channel via discussion. - The change is a genuine, narrow correctness fix.
TmlOutput::callstops round-tripping tool-call arguments throughserde_json::Valueand instead emits the raw argument text, which is exactly what the PR says it does and is consistent with the existing Qwen/GLM/DeepSeek parsers (result 3). - The test-file addition is test-only and self-contained.
tests/server/test_inkling2.pygains one test that talks only toos.environ["FLARE_INKLING2_TEST_URL"]overurllib.request, matching the file's existing helpers; no shell, eval, network-to-third-party, or filesystem primitives (result 4). - No privileged or supply-chain surface is touched. No CI workflow, Dockerfile, Cargo.toml (not opened)/lockfile, git hook, or build-script changes appear in the diff, so the change cannot execute code in CI or alter dependencies (result 3, 4, 6).
- Repo-wide injection sweeps came back clean — only legitimate documentation,
AGENTS.md(not opened), frontend fixtures, and server source matched, never the changed files.
Detail
1. helios/src/output/tml.rs — the substantive change (result 3)
Old code parsed the invocation body into serde_json::Value, required exactly two keys, and emitted args.to_string() (a Value re-serialization that loses arbitrary-precision integers). New code:
#[derive(Deserialize)]
#[serde(deny_unknown_fields)]
struct RawCall<'a> {
name: String,
#[serde(borrow)]
args: &'a RawValue,
}
let parsed: RawCall<'_> = serde_json::from_str(body).ok()?;
let args = parsed.args.get();
if !args.starts_with('{')
|| !self.tools.iter().any(|tool| tool["function"]["name"] == parsed.name)
|| self.name.as_ref().is_some_and(|header| header != &parsed.name)
{ return None; }
and emits Event::ToolArguments { text: args.to_owned(), .. } verbatim. Guards retained: unknown wrapper keys fail via deny_unknown_fields; non-object args fail via starts_with('{'); name must be a declared tool and must match the optional recipient header. All failure paths return None, i.e. fall back to visible text — the pre-existing TMLv0 recovery semantics (see rejected_invocations_surface_as_text_and_open_calls_complete_only_at_eos, ~lines 550–560 of the same file, which already asserts this for {"name":"other","args":{}}, {"name":"lookup","args":[]}, {"name":"lookup","args":{},"extra":1}, {"name":"7"...}, and "incomplete").
The only other addition in this file is the unit test call_preserves_raw_json_arguments_including_arbitrary_precision_integers inside the existing mod tests, asserting 30-digit positive and negative integers survive byte-for-byte and that the duplicate-key payload {"name":"lookup","name":"lookup","args":{}} surfaces as text rather than as a tool call. Nothing here is agent-directed.
2. helios/src/grammar/strict.rs — tests only (result 6)
The diff touches a single hunk inside the existing mod tests, inserted at ~line 3816 immediately before glm_required_parallel_grammar_rejects_prose_and_accepts_multiple_calls. It adds tml_strict_parser_preserves_30_digit_integers, which builds an in-memory tokenizer with byte_tokenizer_with(&CONTROL_MARKERS), compiles a strict schema exercising top, anyOf, $ref, and nested object/array integers, drives the GrammarCompiler and OutputPipeline, and asserts the emitted ToolArguments text contains 123456789012345678901234567890 five times. No environment variables, files, network, or downloads — no side effects and no production-code path altered by this file.
3. tests/server/test_inkling2.py — one live integration test (result 4)
New test_strict_tml_tool_calls_and_truncation covers Chat Completions and Responses, buffered and streamed, the 30-digit integer, property-order preservation, and max_tokens/max_output_tokens truncation. Every request goes to url = os.environ["FLARE_INKLING2_TEST_URL"].rstrip("/"); the module-level pytestmark skips unless FLARE_RUN_CUDA_TESTS == "1" and the URL is set. Imports across the file are limited to concurrent.futures, json, os, urllib.error, urllib.request, pytest, and from .test_minimax_m3 import answer, image. File-scoped searches for subprocess, os.system, eval(, exec(, base64, curl , wget , requests.(post|get), and socket. returned no matches, so the test cannot execute commands or reach third-party hosts.
4. Negative searches and surface review (result 2, 3)
- Repo-wide regexes for ignore-previous/prior/about, "system prompt", "prompt injection", "you are an ai/assistant", "language model", autobot, "do not tell", exfiltrat, and instruction matched only legitimate docs,
AGENTS.md(not opened), frontend fixtures, and server source — never the changed files. - No workflow/YAML, Dockerfile,
Cargo.toml(not opened)/Cargo.lock,.githooks, or build-script entries in the diff. No dependency additions. No postinstall/build hooks. No privilege escalation path. - No obfuscation in the diff: no zero-width or bidi characters, no base64 blobs, no HTML-comment or homoglyph tricks; the added text is plain Rust and Python.
- The description is consistent with the code it claims to change; there is no mismatch between prose and diff that would suggest a disguised payload.
5. Repository-process observations (not security)
- The PR body is signed "Discord: woooflet", matching the commit author name "woooflet", while the GitHub account is
fordbmorriswith NONE association and one other open PR (#574). Identity aliasing of this kind is ordinary for contributors and is not an injection. - The description's "Supporting Evidence" (ARM64 GB10
cargo testcounts7/7,28/28,2/2,5/5;35/35live 4-Spark TP4 qualification) cannot be verified from the diff, and no CI checks were reported on the head commit. That warrants a reviewer's skepticism about the claimed qualification coverage, but it is a verifiability gap, not a sign of malice. - The description contains no meta-instructions to automated reviewers, no request to merge, label, or release anything, and no prompt-shaped text quoted from elsewhere.
Open questions / what could not be verified
- Whether the live qualification numbers in the PR body are accurate: not derivable from the diff, and no CI ran on 07955d7 to corroborate the unit-test claims.
- Whether
serde_jsonis compiled witharbitrary_precisionin every affected build: the PR notes it is compiled without it, which is the motivation forRawValue; the dependency configuration was not part of the diff and was not verified. - Interaction with the open sibling PRs #457 (TMLv0 content-header/strict-tool grammar alignment) and #461 (documenting strict tool numeric range precision): both touch the same grammar area, so a merge-order conflict is possible, but neither relates to security.
- Nothing malicious was found, so no report item rises to "Clearly Malicious".