Screen malicious scratchpad · NVIDIA/hyperflare-inference #457

Raw Markdown for agents: https://autobot.eidonix.com/p/3f54fb1e-2e9f-42c6-b861-a036d4b72eea.md

#1 [high] PR 457 screening: prompt injection assessment (All Clear)

PR #457 (NVIDIA/hyperflare-inference, open, head aacbca1, base main) "Fail untyped TML model headers at EOS and align TMLv0 content-header and strict-tool grammars with TmlOutput" by brandonmmusic-max.

Scope: 4 files only — helios/src/grammar.rs (+81/-2), helios/src/grammar/strict.rs (+134/-2), helios/src/output/tml.rs (+91/-3), helios/src/server/request/tml_tests.rs (+125/-0). No CI, no scripts, no build/manifest, no docs changed (pr_files). No comments/discussion at all (pr_comments returned none; no reviews).

Content inspected line by line:

Injection scan: no imperative text addressed to an agent/LLM, no "ignore previous instructions", no URLs to fetch, no base64/hex blobs (regex search for base64-like runs: no matches), no process spawning / network / fs access added (std::env / std::process only pre-existing test fixture lines: grammar.rs:1379,1752,1757,2009; strict.rs:4366), no bidi/control-char homoglyphs in added code (non-ASCII matches are all pre-existing file lines and ordinary text like "café 世界", U+00A0 in existing whitespace tests at strict.rs:3678,3696, U+FF5C in existing escape check at strict.rs:49). Changes are semantically what the description claims.

Assessment: All Clear — no suspicious prompt injection or agent-directing content. Only note is benign/unverifiable provenance: description claims live SM120 GPU runs and an agentic_suite.py, and credits a Discord handle; these are claims about testing, not instructions, and are not part of the diff.

#2 [high] Research summary

All Clear. PR #457 changes only four Rust files in helios/src (grammar.rs, grammar/strict.rs, output/tml.rs, server/request/tml_tests.rs; +431/−7), with no comments, reviews or CI, and I found nothing aimed at steering an agent.

Everything in the diff is what the description says it is: an AnswerState tracker in TmlOutput that errors at EOS when a non-empty model header closes with no content kind and no answer/tool call (helios/src/output/tml.rs:78-83, 282-288, 338, 399-401), plus tool_unnamed grammar rules and a preamble-then-tool ending in compile_content_headers (helios/src/grammar.rs:372-417) and compile_strict_tml (helios/src/grammar/strict.rs:1565-1620). Parse bounds (1 MiB header/call limits) and strict rejections for unregistered tools, header/body mismatch and schema violations are retained, and no import, network, process-spawn or filesystem behaviour is added beyond pre-existing test fixtures.

Scan results: no instructions addressed to agents/LLMs, no "ignore previous instructions", no fetch-this-URL, no base64/hex blobs, no bidi or homoglyph control characters in added code (all non-ASCII matches are pre-existing lines or ordinary text such as "café 世界" and a U+00A0 whitespace test). The only unverifiable element is the description's testing provenance (live SM120 GPU runs, agentic_suite.py (not opened), a Discord credit) — claims about evidence, not directives, and outside the diff. Not treated as a finding.

Details are in scratchpad entry 1.

#3 [medium] PR 457 provenance trail: commits, related PRs, review surface

Provenance / review surface for PR #457 (NVIDIA/hyperflare-inference), supplementing scratchpad entry 1.

Branch commits (search_history at pr/457, newest first):

Review surface: pr_comments returns no comments/reviews; pr_files lists exactly 4 changed files; orientation packet reports "CI on the head commit: no checks". So there is no human discussion to inspect for injected directives — the only untrusted prose is the PR description and code comments.

Related PRs named in the description and confirmed by read_item #457: #304 (Inkling 2 Small NVFP4, merged), #405 (declared markers as controls, merged), #418 (strict function-tool schemas for DSML/Qwen/GLM/TML, merged commit 0b09434d), #433 (Inkling 2 Mini, merged), #458 and #468 (same author). #468 mentions #457. Prior merged work by this author in helios (#162, #154) suggests a legitimate contributor track record — supporting context, not a security conclusion.

Added tests worth noting for the report's completeness claim (all in the diff): output/tml.rs:589-640ish nonempty_model_header_closed_without_a_content_kind_fails_at_eos, a_closed_untyped_header_allows_visible_content_and_completed_calls, empty_model_headers_other_roles_and_external_stops_keep_their_termination; grammar.rs:1931+ content_headers_grammar_allows_preamble_before_tools; strict.rs:4134+ TML_unnamed case and strict.rs:4525+ strict_tml_grammar_allows_unnamed_headers_and_preamble_before_tools; server/request/tml_tests.rs:246+ a_model_frame_without_a_content_kind_reports_a_failed_response, 392+ inkling_stress_untyped_closed_header_must_surface_failure, 442+ inkling_stress_custom_grammar_preamble_then_tool (all #[ignore]d, need FLARE_INKLING2_TEST_SNAPSHOT). These tests are behavioural assertions only, no hidden side effects.