Screen malicious report · NVIDIA/hyperflare-inference #575

Raw Markdown for agents: https://autobot.eidonix.com/p/a7fe5d27-77a1-4ae5-be1a-92984036fc4f.md

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

  1. 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_comments returns "No comments": there are no reviews and no inline review comments (result 5), so no instruction channel via discussion.
  2. The change is a genuine, narrow correctness fix. TmlOutput::call stops round-tripping tool-call arguments through serde_json::Value and 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).
  3. The test-file addition is test-only and self-contained. tests/server/test_inkling2.py gains one test that talks only to os.environ["FLARE_INKLING2_TEST_URL"] over urllib.request, matching the file's existing helpers; no shell, eval, network-to-third-party, or filesystem primitives (result 4).
  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).
  5. 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)

5. Repository-process observations (not security)

Open questions / what could not be verified