Screening report — PR #574
PR: NVIDIA/hyperflare-inference#574 — "Strip unguarded attributes from hyperflare_recipes objects in AOT guard serialization"
Author: fordbmorris (commit author woooflet, Discord woooflet) · head 16ffc6f · base main · 2 files, +54/−1 · no labels, no reviews, no CI checks on head.
Key findings
- No prompt injection or agent-directed content found. Verdict: All Clear.
- The diff matches the description exactly: one allowlist string addition in
ignition/preparation/forward_metadata.py:42and one new unit test intests/preparation/test_guard_code.py:252-303(verified in the head tree — no additional edits, no new imports, no packaging/CI/meta changes). - The added test is inert and hermetic: synthetic test-local classes, a
monkeypatch-installed fakehyperflare_recipes.*module,torch.compile; no network, subprocess, filesystem writes, oreval/execof PR-supplied strings. - No obfuscation: no non-ASCII/zero-width/homoglyph characters, no hidden comments, no
#autobot:ignore-style directives, no@flare-autobotpings authored by the contributor. - The only requests in the PR text are ordinary maintainer-facing caveats (run CI on
test_guard_code.py/test_core_boundary.py; a note about the mirrored check atrebuild_manifest.py:365). These are honest review information, not instructions to an agent. - The discussion contains only the repository's own automated reviewer (
flare-autobot): a case-file notice plus an "Autobot Review — Changes Requested" asking that pytest results on16ffc6fbe recorded because CI does not run pytest ontests/preparation/. Normal project tooling; a substantive review concern, not manipulation.
Detail by check
1. Diff fidelity
ignition/preparation/forward_metadata.py:42— inside_uses_custom_object_state, the prefix tuple is now('ignition.', 'b12x.', 'hyperflare_recipes.')(previously('ignition.', 'b12x.')). Verified at the PR head; the surrounding predicate (hasattr(value, '__dict__'),not inspect.isclass(value),not isinstance(value, _NON_OBJECT_NEW_TYPES)) is unchanged.tests/preparation/test_guard_code.py:252-303— newtest_guard_pickler_strips_unguarded_attributes_from_recipe_objects, with helpers_UnpicklableHandle(raisesTypeErrorfrom__reduce__, mirroring an unpicklable TritonCompiledKernel),_RecipeKernelOwner(__module__ = "hyperflare_recipes.components.synthetic"), and_RecipeForward. The test usesmonkeypatch.setitem(sys.modules, ...)withtypes.ModuleType("hyperflare_recipes.components._synthetic_guard_test").- Nothing else was added: no new imports, no CI workflow, packaging, or meta-file changes.
2. Agent-directed / hidden content
- Non-ASCII scan (
[^\x00-\x7F]) over the touched test file returns only plain ASCII text; no zero-width characters, homoglyphs, or RTL overrides. - No text such as "ignore previous instructions", no fake tool output or system-prompt overrides, no directives addressed to an agent or reviewer bot, in code comments, docstrings, the PR description, or the discussion.
- Comment/docstring text in the added block is ordinary technical description of what the synthetic classes simulate.
3. Behavior added by the test
- Test-local classes only; monkeypatched synthetic module never shadows the real
hyperflare_recipespackage. - No network access, no shell invocation, no filesystem writes, no deserialization of external data, no
eval/exec. - The only
subprocess.runin the file is the pre-existing test attests/preparation/test_guard_code.py:67, untouched by this PR.
4. Consistency with the codebase and charter
hyperflare_recipesis the documented external recipe package (AGENTS.md:379-393;docs/model-development.md:5-7(not opened),:276); the prefix is a legitimate name, not an attacker-chosen hook.- Core
ignitionstill never importshyperflare_recipes— the check is a string comparison ontype(value).__module__, sotests/preparation/test_core_boundary.py:39-58(AST scan forbiddinghyperflare_recipesimports inignition/andtests/) still holds conceptually, consistent with the charter's "keep the runtime small and model-agnostic" (charter line 12). - The runtime consumer
_GuardPickler(ignition/preparation/aot.py:157-166) only readsvars(obj), so the widened allowlist changes no execution path. - The mirrored check at
ignition/preparation/rebuild_manifest.py:365(('b12x.', 'ignition.')) is indeed unchanged, exactly as the PR's caveat says — the caveat is accurate, not a misdirection.
5. Discussion / review surface
pr_comments/read_item574 contain only two automatedflare-autobotcomments: a case-file notice (19:31) and an "Autobot Review — Changes Requested" (20:29) asking for recorded pytest results on16ffc6f, with links to the project's own autobot host (autobot.eidonix.com). No human review comments, no third-party links, no requests to run commands outside the project's test suite.- The "run CI on
test_guard_code.pyandtest_core_boundary.py" caveat is a request to maintainers about standard repo tests — benign and appropriate.
6. Author context
- Author has 3 open PRs in the last 180 days (#575, #576, #577) and no merged/closed items; no prior injection history observable in the local copy. Nothing in this PR depends on those.
Open questions / limitations
- CI on
16ffc6freports no checks, so correctness was not independently verified by CI; this does not affect the injection screening (the author's own caveat asks for exactly this run). - No human review exists yet, so any maintainer-side judgement on the merits (e.g. whether the
rebuild_manifest.py:365mirror should also change) remains open — a design question, not a security one. - The repository's automated reviewer is
flare-autobotonautobot.eidonix.com; its comments were treated as review material, not instructions, and contained no attempt to direct agent behavior.
Conclusion: All Clear — no suspicious prompt injection or items aimed at causing unwanted agentic behavior.