Prompt-Injection / Agentic-Behavior Screen — NVIDIA/hyperflare-inference PR #575
PR: #575 "Preserve raw JSON tool arguments in TmlOutput for strict TMLv0 calls" Author: fordbmorris (repo association NONE; 3 other open PRs #574, #576, #577; 0 merged/closed in 180 days) Base: main · Head: c7fae93 · Opened/updated: 2026-11-28 · Size: 3 files, +237/−10 State: open, ready for review · no labels, no reviews, no CI checks on the head commit.
Key findings
- No prompt injection and nothing aimed at causing unwanted agentic behavior was found. Verdict: All Clear.
- Every changed line in all three files was read in full (both the production hunk and both new tests). Nothing in the code, comments, commit/PR description, or discussion addresses an AI agent, reviewer, or automation, and nothing asks for instructions to be followed, permissions changed, or data exfiltrated.
- The change is a genuine, self-consistent numeric-precision fix:
TmlOutput::call(helios/src/output/tml.rs) replaces aserde_json::Valueround-trip that silently rounded integers aboveu64::MAXinto binary64 scientific notation with a#[serde(deny_unknown_fields)]helper struct borrowing&RawValue, emitting the raw JSON object text verbatim. - Security-relevant behavior is preserved, not loosened. The existing registered-tool-name check and header-name match remain, and the pre-existing rejection test at
helios/src/output/tml.rs:550-573(unregistered tools, non-object args, extra wrapper keys, non-string names) is untouched. The newargs.trim().starts_with('{')check plusdeny_unknown_fieldsis semantically comparable to the oldobject.len() != 2+is_object()gate. - No new endpoints, credentials, environment-variable exfiltration, file writes, shell execution, dependency additions, or CI/workflow edits. The only hostname anywhere in the added code is the test harness's own
FLARE_INKLING2_TEST_URL. - Hidden/zero-width/bidi unicode (U+200B–200F, U+202A–202E, U+2060–2064, U+FEFF) and homoglyph text: none in the diff.
- The only PR discussion is two comments from
flare-autobot, the repository's own review bot (a case-file/intake notice and a "Ready To Merge" summary linking external report pages on autobot.eidonix.com). Bot output only; they contain no instructions to an agent. Noted at low importance, as external links were not followed. - The PR body's only personal external reference is a Discord handle ("woooflet") — normal social contact, not an instruction.
Detail by file
1. helios/src/output/tml.rs (+41/−10) — the only production change.
- Imports:
serde::Deserializeandserde_json::value::RawValueadded alongside the existingValue(diff hunk at line ~19-22). TmlOutput::call(lines ~327-363): definesstruct RawCall<'a> { name: String, #[serde(borrow)] args: &'a RawValue }with#[serde(deny_unknown_fields)]; parses withserde_json::from_str(body).ok()?; then requiresargs.starts_with('{'),self.tools.iter().any(|tool| tool["function"]["name"] == parsed.name), andself.name.as_ref().is_some_and(|header| header != &parsed.name). EmitsEvent::ToolBegin { name: parsed.name },Event::ToolArguments { text: args.to_owned() },Event::ToolEnd.- Removed:
Valueround-trip,object.len() != 2guard,args.is_object()filter,args.to_string(). - New test
call_preserves_raw_json_arguments_including_arbitrary_precision_integers(lines ~607-629): asserts a 30-digit integer (123456789012345678901234567890), a negative 30-digit integer and a nested id survive verbatim; plus a duplicate-wrapper-key case ({"name":"lookup","name":"lookup","args":{}}) that must fall back to visible text. Pure in-process assertions; no I/O, no side effects, no instructions. - Behavior notes disclosed honestly in the PR body: non-strict TMLv0
argsare now forwarded verbatim and duplicate wrapper keys become visible text — both consistent with what the code and tests show.
2. helios/src/grammar/strict.rs (+105/−0) — test-only addition.
- New
tml_strict_parser_preserves_30_digit_integersstarting at line 3819: builds abyte_tokenizer_with(&CONTROL_MARKERS)tokenizer, a schema with 30-digit-capable integer fields (top,anyOf,$refvia$defs, nested object/array), compiles strict TML tools viacompile_presented_strict_tools, advances the grammar token by token, then runs anOutputPipelineand assertsraw_args.matches(big).count() == 5("TmlJson lost 30-digit precision"). Assertions only; no network, no file or process access. - The only other URL-like string in this file is the pre-existing
$ref: "https://example.com/s.json"fixture at line ~2537, outside the added hunk and unrelated to this PR.
3. tests/server/test_inkling2.py (+91/−0) — test-only addition.
- New
test_strict_tml_tool_calls_and_truncationusing the file's existingservicefixture, gated byFLARE_INKLING2_TEST_URL/FLARE_RUN_CUDA_TESTS(skips otherwise), issuingurllibrequests to the local/v1/chat/completionsand/v1/responsesand asserting: 30-digit integer preserved in tool arguments, a single streaming delta, and truncation omittingtool_calls. It follows the patterns already present in that file (lines 1-245 checked) and adds no imports, credentials, or outbound hosts beyond the configured base URL.
Injection indicators explicitly checked and absent
- Instruction-style phrasing aimed at an agent/reviewer ("ignore previous instructions", "disregard", "you must", "system prompt", "as an AI", tool-use directives): none in code, comments, doc strings, tests, PR title/body, or comments.
- Hidden unicode, bidi overrides, homoglyphs, or comments written to evade human review: none.
- Files outside the stated change set / hidden files:
pr_filesconfirms exactly the three files above; nothing unlisted. - Secrets, tokens, API keys, private hosts, or new outbound requests: none added (only the pre-existing test base-URL env var).
- Loosening of safety-relevant gates (tool allow-list, grammar strictness, schema validation): none — the existing rejection test is unchanged and still passes by inspection of the code path.
- PR discussion: two
flare-autobotcomments only; both are the repo's own bot, informational, with links to external report pages. They contain no directives a reader-agent could act on. Nothing else in the thread tries to redirect the PR's purpose or the reviewer.
Open questions / limits of this screen
- The screen is by reading, not execution:
cargo test/pytestwere not run here, and GitHub reports no CI checks on head commit c7fae93. Functional correctness (e.g., whether the new strict TML grammar test passes in CI) is therefore unverified by me — a correctness caveat, not a security one. - The external
autobot.eidonix.comreport links in the bot comments were not fetched (out of scope; content unverified). - Related items (#461, #457, #418, #578, #576, #574 and others) were used only as context and were not themselves screened; this verdict covers PR #575 alone.
serde_json::RawValueparsing was reviewed as written, not exercised against adversarial inputs beyond the tests shown; if reviewers want, fuzzingTmlOutput::callwith malformed/duplicate-key payloads would be a reasonable follow-up — again a robustness concern, not an injection finding.
Conclusion: All Clear — no prompt injection or other attempt to induce unwanted agentic behavior was found in PR #575.