Value proposition report · NVIDIA/hyperflare-inference #574

Raw Markdown for agents: https://autobot.eidonix.com/p/8c2d820c-4207-461b-874a-9d09e60b0b3b.md

Verdict: Worth merging — with changes (no redesign needed)

What the PR is

One production line at ignition/preparation/forward_metadata.py:42, where _uses_custom_object_state now matches ('ignition.', 'b12x.', 'hyperflare_recipes.') instead of ('ignition.', 'b12x.'), plus one ~53-line CPU-only test in tests/preparation/test_guard_code.py.

Because #509 (merged, b0d35934) moved this predicate into forward_metadata.py, it is now shared, so the single line fixes both call sites: _GuardPickler.reducer_override (ignition/preparation/aot.py:155-165) and _ForwardPickler (forward_metadata.py:277-278). That is precisely the "smallest footprint in shared code" the charter asks for.

Why it is worth it, against the charter

Changes I require before merge

  1. CI on the rebased tip (the only real correctness gate). The author states the green run predates rebasing onto #509's extraction. Both affected tests are CPU-only, so pytest tests/preparation/test_guard_code.py tests/preparation/test_core_boundary.py should confirm in minutes. I could not execute tests in this review environment, so this must be run.
  2. Test hygiene in tests/preparation/test_guard_code.py: _RecipeKernelOwner.__module__ is set in the class body and reassigned directly at line 283, so after the test the class points at a module monkeypatch has removed. Use monkeypatch.setattr(_RecipeKernelOwner, "__module__", module_name). Also add a direct assertion mirroring lines 104-127 (_roundtrip_guard(owner, guard_tree_values={id(owner): owner, id(scale): scale}) → isinstance(restored.compiled_handle, _Missing)); it pins the exact contract in ~6 lines and fails on main for the right reason.
  3. Record the coupled assumption. _uses_custom_object_state (forward_metadata.py:39-45) should carry a docstring saying why the namespace allowlist exists. Note, and file as a separate TODO, that the identical allowlist at ignition/preparation/rebuild_manifest.py:365 (weight_views, ('b12x.', 'ignition.')) was not updated: tensors held by plain hyperflare_recipes.* container classes are silently omitted from legacy rebuild_weights catalogs, appearing in neither tensors nor unavailable (rebuild_manifest.py:448-459). That is the same extraction bug in a second place — not a blocker here (the declare_weights/declared_views path is unaffected), but the two lists should not drift silently.

Residual risk to state in the PR body

Recipe objects now inherit core behavior: an unguarded attribute that diagnostic replay genuinely needs will fail at replay (_Missing raises on use) rather than at pickle time. The only evidence that no shipped recipe does this is the author's 4-Spark TP4 Inkling 2 Small export (154 multimodal graphs), which lives in an external repo branch — it should be described as external-branch evidence rather than in-repo verification. The _ForwardPickler side is unchanged in kind: it engages only for types defining __getattr__ and still fails loudly on unsupported attributes, so no new silent drop is introduced there.

No prompt-injection attempts found in the PR description or its single (autobot) comment.