Prompt-Injection Screening — NVIDIA/hyperflare-inference PR #549
Title: Report KV pages held by active requests
Author: WynnD (GitHub association: NONE)
State: open, draft · base main · head 5ed7af8 · 7 files, +218/−10 · no reviews · no CI checks
Key findings
- All Clear. No prompt injection, no agent-directed instructions, and no hidden or unwanted-behavior payloads were found anywhere in PR #549 — not in the code diff, the description, the discussion, or the two linked items (#537, #548).
- The discussion is empty:
read_item#549 reports "Discussion (0)", andpr_commentsreturns "No comments." There are no reviews to screen. - The diff does exactly what the description says: two new read-only Prometheus gauges (
flare_request_kv_pages,flare_reserved_kv_pages), a cache-side counter (CacheStats::request_pinned_pages) maintained bypin_request/unpin_request, corresponding scheduler call-site switches, tests, and one docs paragraph. No new dependencies, no CI/workflow files, no scripts, no binaries, no obfuscated or encoded strings, no network/exfiltration paths. - The docs text added at
docs/api.md:298-305is plain metric documentation — verified in full; it contains no instruction-like or agent-addressable content. - One benign oddity: the PR description refers to "this agent session's own requests" while explaining its live scrape numbers. In context this is an honest caveat that the scraped gauges include the author's own agent traffic (measurement contamination), not an instruction to any reader or agent.
- Repository automation appears only on the sibling PR #548 as the standard flare-autobot case-file notice — that is expected repo behavior, not injected content, and it makes no behavioral request of an agent.
Scope of screening
| Surface | What was examined | Outcome |
|---|---|---|
| Code diff | All 7 changed files in full (helios/src/cache.rs, helios/src/scheduler.rs, helios/src/server/metrics.rs, helios/src/cache/lifecycle_tests.rs, helios/src/cache/tests.rs, helios/src/scheduler/tests.rs, docs/api.md) |
Only metric counters, pin/unpin plumbing, tests, docs. No injection |
| PR description | Full body: motivation, change list, claimed result, evidence, live-scrape numbers, merge-order note | Ordinary technical prose; one benign "agent session" measurement caveat |
| Discussion / reviews | read_item #549 → "Discussion (0)"; pr_comments → "No comments." |
Nothing to screen |
| Linked items | #537 (issue it closes — vLLM-parity metrics request), #548 (sibling metrics PR, same author) | Both benign; no agent-directed content |
| Head-tree searches | Injection phrasing ("ignore/disregard/override … previous/prior/above/earlier/system") and agent-directed terms ("autobot", "claude", "prompt inject", "you are an AI/agent") | No matches during screening |
Code spot-checks cited in this report
helios/src/cache.rs:548-580 — the new request-pin API, read in full:
pin_requestcallsself.pin(id), incrementsdirect_request_pins, then walksself.chain(id)incrementingrequest_pinson each ancestor and addingnode.tail_pages.len()torequest_pinned_pageswhen the ancestor's count rises from zero.unpin_requestrejects a release whendirect_request_pins == 0("checkpoint has no request pin to release"), then reverses the increments.
This is ordinary reference-counting code: no dynamic dispatch on external input, no filesystem/network access, no string construction from environment or request data, no eval-like behavior.
docs/api.md:298-305 — the added documentation block, read in full:
flare_request_kv_pagescounts the distinct KV pages that active requests reference: their private pages plus the tail pages of the prefix checkpoints they pin, each page counted once even when several requests reference it.flare_reserved_kv_pagescounts pages reserved for active requests' future growth that are neither free, cached, nor written yet. Both are gauges read from scheduler state on each scrape. Dividingflare_request_kv_pagesbyflare_total_kv_pagesgives the KV share held by live requests; idle cached prefixes and snapshot backing pages are outside that share.
Pure metric semantics — no directives, no hidden text.
Benign items evaluated and dismissed
- "this agent session's own requests" (PR description, evidence section). Read in context, the sentence explains that the author's own agent session was served by the instrumented instance, so the reported live gauge values include that traffic alongside the two streaming chats. It is a disclosure about data contamination, not a request to a reader or an agent to do anything.
- "Not run here: the Windows build and the full helios suite, which CI covers." Standard PR evidence caveat; no instruction.
- Sibling PR #548 by the same author, also metrics-related, merging in a disjoint region of
helios/src/server/metrics.rs. Its only comment is the flare-autobot "case file opened" notice — repository automation. - Unaffiliated authorship. GitHub association NONE, with no merged or closed items in the last 180 days (one open PR: #548). This is a legitimate review-attention signal for a maintainer (first-time contributor touching cache accounting), but it is not evidence of malicious content, and nothing in the changed code behaves unexpectedly for what it claims to do.
Open questions and limits
- Search re-verification failed at the end of this run. Two confirmation greps issued in the final step errored with
git fatal: -e option ... Invalid preceding regular expression— the repository'sgit greprejects the(?i)+non-capturing-group/\ssyntax used. The clean results recorded during screening (and the direct reading of every changed hunk and the added docs block) are the basis for this verdict; the failed re-check produced no output and does not indicate matches. - Static review only. The code was not built or executed; the PR's test results (508 passed), the live two-GPU DeepSeek scrape figures, and the claimed metric arithmetic were taken as reported and not reproduced. Verifying those is a correctness-review task, not an injection-screening one.
- Repository files outside the PR were not audited beyond the targeted head-tree searches. A malicious payload planted elsewhere in the tree and merely referenced by this PR would not have been caught; nothing in the diff suggests such a reference exists.
- No prompt-injection attempt was found, so there is nothing to report as an attempted instruction to this agent. The verdict stands: All Clear.