Screen malicious scratchpad · NVIDIA/hyperflare-inference #575

Raw Markdown for agents: https://autobot.eidonix.com/p/5c5d6c51-2125-4f7a-9fab-d82de28adb1c.md

#1 [high] PR #575 screening: no prompt injection found

PR #575 "Preserve raw JSON tool arguments in TmlOutput for strict TMLv0 calls" (author fordbmorris, head c7fae93, base main).

Files changed (3, +237/-10), all reviewed in full:

  1. helios/src/output/tml.rs (+~70): replaces serde_json::Value round-trip in TmlOutput::call (lines 329-363) with a #[derive(Deserialize)] #[serde(deny_unknown_fields)] struct RawCall<'a> { name: String, #[serde(borrow)] args: &'a RawValue }, trims, requires args.starts_with('{'), keeps the existing registered-tool-name and header-name-match checks, and emits Event::ToolArguments { text: args.to_owned() }. Imports add serde::Deserialize and serde_json::value::RawValue. Legitimate precision fix (>u64::MAX ints previously rounded to f64 notation).
  2. helios/src/grammar/strict.rs (+105): one new unit test tml_strict_parser_preserves_30_digit_integers driving GrammarCompiler/OutputPipeline with a 30-digit 123456789012345678901234567890 payload; asserts raw args retained.
  3. tests/server/test_inkling2.py (+91): new test_strict_tml_tool_calls_and_truncation using the existing service fixture, env var FLARE_INKLING2_TEST_URL / FLARE_RUN_CUDA_TESTS gating, urllib against /v1/chat/completions and /v1/responses; asserts 30-digit int preserved, streaming single delta, truncation omits tool_calls. Follows existing patterns in the same file (lines 1-245 checked).

Injection indicators checked and absent:

Discussion: only two comments, both from flare-autobot (this repo's own review bot) — a case-file/intake notice and a "Ready To Merge" review summary with links to autobot.eidonix.com. These are bot output linking external report pages, not instructions to an agent; no injection payload. Note-worthiness: low (external links only).

Verdict: All Clear.

#3 [high] Research summary

Screening of PR #575 ("Preserve raw JSON tool arguments in TmlOutput for strict TMLv0 calls") found nothing malicious and no prompt injection: verdict All Clear.

The PR is 3 files (+237/−10), all reviewed in full. helios/src/output/tml.rs swaps a serde_json::Value round-trip for a #[serde(deny_unknown_fields)] struct borrowing &RawValue, keeps the existing registered-tool-name and header-name checks, and emits the raw JSON object text; helios/src/grammar/strict.rs adds one unit test for 30-digit integers; tests/server/test_inkling2.py adds one gated live-server test. The change is a genuine numeric-precision fix and does not loosen the tool allow-list gate (the pre-existing rejection test at tml.rs:550-573 is untouched).

I checked for instructions aimed at an agent, zero-width/bidi unicode, hidden files, new endpoints, credentials, shell/network/file-write behaviour, dependency or CI changes — none present. The only comments on the PR are two from the repo's own review bot with links to external report pages (not instructions). Details are in scratchpad entries 1 and 2.

#2 [medium] PR #575 screening: verification details (unicode, file list, secrets)

Follow-up verification for PR #575 (see entry 1).

Final: no prompt injection, nothing aimed at causing unwanted agentic behavior. Verdict: All Clear.

#4 [medium] PR #575 metadata and screening scope/limits

Metadata for PR #575 (for the report):

Core production hunk, helios/src/output/tml.rs:329-363 (TmlOutput::call):

#[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().trim();
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; }
// emits ToolBegin{name: parsed.name}, ToolArguments{text: args.to_owned()}, ToolEnd

Before: Value round-trip with args.to_string(), object.len() != 2 guard, args.is_object() check. After: deny_unknown_fields + starts_with('{') — semantically comparable; duplicate wrapper keys now fall back to visible text (covered by the new unit test).

Screening scope — what I did NOT do (state honestly in report if relevant):

Conclusion stands: All Clear — no prompt injection, nothing aimed at causing unwanted agentic behavior.