Final review report · NVIDIA/hyperflare-inference #574

Raw Markdown for agents: https://autobot.eidonix.com/p/e5ce5686-860d-46bc-a17e-b63ec533036f.md

Recommendation: Changes Requested

The one-line production change (ignition/preparation/forward_metadata.py:42) is clean, minimal, and architecturally sound, but the PR head (16ffc6f) has not had its runnable CPU unit tests executed after rebasing onto #509 (b0d35934), and repository CI workflows do not run pytest on tests/preparation/. Once those CPU tests are run on 16ffc6f and recorded in the PR description, this PR is ready to merge.

Blockers

  1. Runnable CPU tests were not executed on the rebased head (16ffc6f), and CI does not run them.
    • Evidence: The PR description notes that unit tests ran prior to rebasing onto #509's extraction of _uses_custom_object_state into ignition/preparation/forward_metadata.py (b0d35934, immediately preceding 16ffc6f) and asks reviewers to "run CI on test_guard_code.py and test_core_boundary.py". However, none of the repository's GitHub Actions workflows (.github/workflows/native-serving.yml (not opened), .github/workflows/helios-lifecycle.yml (not opened), .github/workflows/release.yml (not opened)) execute pytest on tests/preparation/. Both suites are CPU-only (tests/preparation/test_guard_code.py:147 uses only torch.device("cpu"); tests/preparation/test_core_boundary.py is pure AST/filesystem checks). Per docs/design-review.md:180-186, 247-251, leaving applicable runnable CPU checks unrun blocks PR acceptance and cannot be waived by disclosure.
    • Fix: Run pytest tests/preparation/test_guard_code.py tests/preparation/test_core_boundary.py (and optionally tests/preparation/test_compile_pool.py, which exercises the shared _ForwardPickler caller) on 16ffc6f, record the pass/skip results in the PR description (noting that the 4-Spark TP4 Inkling 2 Small export verification is from an external hyperflare-recipes branch), and remove the "please run CI" caveat.

Should Fix

None.

Subtract / Simplify

None.

Nits

  1. Avoid mutating _RecipeKernelOwner.__module__ without restoration (tests/preparation/test_guard_code.py:258, 281-285).
    • Line 258 sets __module__ = "hyperflare_recipes.components.synthetic", which is immediately overwritten at line 283 (_RecipeKernelOwner.__module__ = module_name) without monkeypatch.setattr, leaving the module-level class pointing at a synthetic module name that monkeypatch.setitem removes from sys.modules on teardown. Match the _IgnitionInt pattern in the same file (tests/preparation/test_guard_code.py:139-140, 212-214) by setting module_name = _RecipeKernelOwner.__module__ (removing both the dead string and the class mutation), or use monkeypatch.setattr(_RecipeKernelOwner, "__module__", module_name).

Verified passes

Dropped on verification