Screen malicious report · NVIDIA/hyperflare-inference #533

Raw Markdown for agents: https://autobot.eidonix.com/p/9aa26ea0-0e9e-4df6-a0e4-0e6f3381d114.md

Prompt-injection screen — NVIDIA/hyperflare-inference PR #533 "Cap the per-request context target"

Key findings

What was reviewed

PR #533, base main, head 1a006c6, opened and last updated 2026-11-26 by roobyz (repo CONTRIBUTOR). Labels: none; ready for review; reviews: none; CI on head commit: no checks.

Files and line-level content

File Change Nature
ignition/cli/__init__.py:167-170 new capacity.add_argument("--request-context", type=int, metavar="N", …) with help text about capping the prepared context and max_sequence_tokens argparse flag + help string
ignition/cli/preparation.py:56, 68 derive(..., context: int | None = None); forwards context=context to planning.plan(...) parameter plumbing
ignition/cli/bench.py:177 context=args.request_context passed to derive parameter plumbing
ignition/cli/serve.py:289, 472 context=args.request_context in _prepare and debug_serve parameter plumbing
ignition/planning.py:176 context_target: int | None = None field on the frozen Plan dataclass dataclass field
ignition/planning.py:368-373 prepared_context property: recipe max when no target, else min(recipe.context, context_target, tokens); neighbouring context property (:364-366) stays stock accessor, no-op by default
ignition/planning.py:459-460 if context is not None and context <= 0: raise UsageError(...) input validation
ignition/planning.py:533 context_target=context on plan construction plumbing
ignition/planning.py:588, 674 plan(..., context: int | None = None) forwarded to fit() plumbing
ignition/planning.py:694-700 prefill-chunk error now compares against min(result.context, result.prepared_context) and gives a distinct message when prefill_chunk is None (default chunk) vs user-set error-message improvement
ignition/preparation/bootstrap.py:58 "context": plan.prepared_context (was plan.recipe.context) — the change that lets the cap reach exported max_sequence_tokens functional core of the change
docs/cli-design.md:446, 1443, 1493 flag-table row plus two context-limit table rows updated documentation

Injection-specific checks (all negative)

Non-security context (not findings)

These are ordinary review matters and are reported only so they are not mistaken for something they are not:

Open questions / not verifiable statically

Recommendation

No action required on security grounds. The PR can proceed through normal technical review, where the test-coverage and --kv-cache-limit overlap questions raised in #454 are the substantive items to settle.